How to fix wrong username or password error for 1.4.5 v69 server released by Bola

Page 1 of 2 12 LastLast
Results 1 to 15 of 17
  1. #1
    Member skamara is offline
    MemberRank
    Feb 2010 Join Date
    64Posts

    How to fix wrong username or password error for 1.4.5 v69 server released by Bola

    This error was driving me mad . For people having this problem you can try the following.

    Go to your apache root directory commonly located at var/www
    Make a file called register.php
    enter the script below changing username to watever username you want and password to watever password you want. Make sure password doesnt have uppercase characters. Before anyone asks yes i know this is very unsafe and simply stupid but if you just want to quickly log into your server without making some complicated secure login system. you can use this method of generating the password in your secure login system. Anyways just enter your server ip/register.php in any browser. copy the hash you see and go to your database via phpmyadmin. open the authd table and paste the hash you copied in the password and password2 fields. you can now login without getting this damn annoying error(i hope )

    <?

    $Login = "username";
    $Pass = "password";

    $Salt = $Login.$Pass;
    $Salt = md5($Salt);
    $Salt = "0x".$Salt;

    //$Salt = base64_encode(md5($Login.$Pass, true));

    echo $Salt;

    ?>


  2. #2
    uint is best int. Swoosh91 is offline
    MemberRank
    Feb 2010 Join Date
    BerlinLocation
    712Posts

    Re: How to fix wrong username or password error for 1.4.5 v69 server released by Bola

    Well yeah, or you can simply remove call to base64 decode function in mysql procedure, or change register.php to deal with "normal" md5, or use the stupid binary dump method that seems to be so common, etc.

    Your way means additional work.

  3. #3
    Member skamara is offline
    MemberRank
    Feb 2010 Join Date
    64Posts

    Re: How to fix wrong username or password error for 1.4.5 v69 server released by Bola

    Quote Originally Posted by Swoosh91 View Post
    Well yeah, or you can simply remove call to base64 decode function in mysql procedure, or change register.php to deal with "normal" md5, or use the stupid binary dump method that seems to be so common, etc.

    Your way means additional work.
    perhaps. just posting this because most people here dont really post how they fixed their problems so you have to waste time finding it yourself. Also i would like to add for anyone having the annoying version low error, gs located in /PWServer/gamed will cause this error if you change it to the v53 patched gs that reads ptemplate.conf for easy xp rate modifications. Basically gs is another cause of this error ontop of the countless others.

  4. #4
    Would You Kindly? Bola is offline
    DeveloperRank
    Dec 2011 Join Date
    BrazilLocation
    1,763Posts

    Re: How to fix wrong username or password error for 1.4.5 v69 server released by Bola

    guy, you made me laugh so hard, you dont have idea.

  5. #5
    uint is best int. Swoosh91 is offline
    MemberRank
    Feb 2010 Join Date
    BerlinLocation
    712Posts

    Re: How to fix wrong username or password error for 1.4.5 v69 server released by Bola

    I thought it was common sence that using a different gs version then your other daemons will give you problems

  6. #6
    Member skamara is offline
    MemberRank
    Feb 2010 Join Date
    64Posts

    Re: How to fix wrong username or password error for 1.4.5 v69 server released by Bola

    Quote Originally Posted by Bola View Post
    guy, you made me laugh so hard, you dont have idea.
    i never said i was a perfect world server genius. and to swoosh, its not "common sense" for people who are new to perfect world servers. some people get too arrogant simply because they know more about something than others.

  7. #7
    uint is best int. Swoosh91 is offline
    MemberRank
    Feb 2010 Join Date
    BerlinLocation
    712Posts

    Re: How to fix wrong username or password error for 1.4.5 v69 server released by Bola

    It's common sence that any (software) system that is meant to be used as a single entity has versioning differences, and exchanging components at will will cuase problems. Guess you taught me now that it's not that common

  8. #8
    Member skamara is offline
    MemberRank
    Feb 2010 Join Date
    64Posts

    Re: How to fix wrong username or password error for 1.4.5 v69 server released by Bola

    Quote Originally Posted by Swoosh91 View Post
    It's common sence that any (software) system that is meant to be used as a single entity has versioning differences, and exchanging components at will will cuase problems. Guess you taught me now that it's not that common
    am sure there is a concept called backward compatibility.

  9. #9
    uint is best int. Swoosh91 is offline
    MemberRank
    Feb 2010 Join Date
    BerlinLocation
    712Posts

    Re: How to fix wrong username or password error for 1.4.5 v69 server released by Bola

    Don't want to spam your thread anymore, but there is no backwards compatability in PW. Else, for instance, you could keep using a single version of iweb, because server interface packet structures like

    PHP Code:
    class pwCharBase {
        
        
        public 
    $id;
        public 
    $name;
        public 
    $race;
        public 
    $cls;
        public 
    $gender;
        public 
    $customDataOctetLength;
        public 
    $customDataOctets;
        public 
    $configDataOctetLength;
        public 
    $configDataOctets;
        public 
    $customStamp;
        public 
    $deleteStatus;
        public 
    $deleteTime;
        public 
    $createTime;
        public 
    $lastLogin;
        public 
    $banned;
        public 
    $banInfo//pwGRoleForbid object reference
        
    public $helpStatesOctetLength;
        public 
    $helpStates
        public 
    $spouse;
        public 
    $userID;
        public 
    $reserved1;


    wouldn't have changed. Only thing that stayed the same pretty much is authd, and probably only because it's used accross all wanmei games, so versioning this would be a headache.

  10. #10
    Account Upgraded | Title Enabled! ninekinsen is offline
    MemberRank
    Apr 2011 Join Date
    /PWv153/Location
    334Posts

    Re: How to fix wrong username or password error for 1.4.5 v69 server released by Bola

    Quote Originally Posted by skamara View Post
    <?

    $Login = "username";
    $Pass = "password";

    $Salt = $Login.$Pass;
    $Salt = md5($Salt);
    $Salt = "0x".$Salt;

    //$Salt = base64_encode(md5($Login.$Pass, true));

    echo $Salt;

    ?>
    try change to this

    $Salt = '0x'.md5($login.$passwd);

  11. #11
    Account Upgraded | Title Enabled! SpiritHawk is offline
    MemberRank
    Sep 2004 Join Date
    Evans , GALocation
    733Posts

    Re: How to fix wrong username or password error for 1.4.5 v69 server released by Bola

    is this how server development has turned? in so many years of developing servers now we all gonna bash each other about a script specially when someone just trying to help? vote +1 to close to due bashing...

  12. #12
    uint is best int. Swoosh91 is offline
    MemberRank
    Feb 2010 Join Date
    BerlinLocation
    712Posts

    Re: How to fix wrong username or password error for 1.4.5 v69 server released by Bola

    If you mean me, I am not bashing, just pointing out. This section died because of drama and QQ, your post being the prime example of latter, and not people pointing out facts. And 99% of this section is not development, it's copying stuff from forum to your server.

    Just my two cents...

  13. #13
    Newbe likertuban is offline
    ModeratorRank
    Apr 2012 Join Date
    2,334Posts

    Re: How to fix wrong username or password error for 1.4.5 v69 server released by Bola

    thanks
    it help me so much as beginner

  14. #14
    Angelemu founder tbnanubis is offline
    MemberRank
    Mar 2011 Join Date
    Unicorn ForestLocation
    527Posts

    Re: How to fix wrong username or password error for 1.4.5 v69 server released by Bola

    Quote Originally Posted by ninekinsen View Post
    try change to this
    where in gods name is that different to the previous script? It does exactly the same and is no improvement at all.

  15. #15
    Member skamara is offline
    MemberRank
    Feb 2010 Join Date
    64Posts

    Re: How to fix wrong username or password error for 1.4.5 v69 server released by Bola

    he's most likely trying to show his skills with php. people seem to forget the fact that people with little technical or programming knowledge will attempt to make perfect world server so everything has to be simple to cater for everyone not just the seasoned tinker.



Page 1 of 2 12 LastLast

Advertisement