Welcome!

Join our community of MMO enthusiasts and game developers! By registering, you'll gain access to discussions on the latest developments in MMO server files and collaborate with like-minded individuals. Join us today and unlock the potential of MMO server development!

Join Today!

[Release] Semi-Fix Invalid Pointer

Status
Not open for further replies.
Initiate Mage
Joined
Jan 8, 2006
Messages
19
Reaction score
0
Description:
Everytime you enter map's that are bugged, you get logged off MapleStory with the error "Invalid Pointer" Such as when entering the elevator.
Your character Map ID gets changed to the bug map.
Now you cannot login untill you change it manually in Query Browser SQL.

Fix:
*NOTE*
It's an semi-fix,
What i mean with this is that, you will get warped to bug map when using bugged portal's, however. When starting maple you can just login, and you will be in hennesys again.
This will become handy to public MS server's who get's alot of complain's about this.

What to do:

In MySQLM.CPP UNDER
PHP:
void MySQL::deleteRow(char* table, int id){
	char query[255]; 
    sprintf_s(query, 255, "delete from %s where ID='%d';", table, id);
	mysql_real_query(&maple_db, query, strlen(query));
}

ADD THIS
PHP:
void MySQL::PointerError(){
	char query[255];
	sprintf_s(query, 255, "update Characters set map='100000000' where map='999999999'");
	mysql_real_query(&maple_db, query, strlen(query));
	}

In Login.CPP UNDER
PHP:
LoginPacket::loginConnect(player, username, usersize);

ADD THIS
PHP:
MySQL::PointerError();

In MySQLM.h UNDER
PHP:
	static int getSkills(int id, int skills[200][2]);

Add this
PHP:
	static void PointerError();

Also add this in Players.cpp on top
PHP:
#include "MySQLM.h"

It's a simple code i wrote, Everytime you login, it fixes the map bug.
Untill theres a full fix for it, i advice you to use this.

Greets.
 
Last edited:
Initiate Mage
Joined
Jan 8, 2006
Messages
19
Reaction score
0
lol?
Compare it, it's not the same.
Believe it or not,
i coded it myself without looking at that topic. =.="
 
Delta
Member
Joined
Apr 4, 2008
Messages
951
Reaction score
305
I know its not coded the same.

Its still the same concept. And its still here. His works just fine
 
Junior Spellweaver
Joined
Feb 8, 2008
Messages
113
Reaction score
1
This is way more different :D and cleaner! Thanks :)
 
Junior Spellweaver
Joined
Feb 8, 2008
Messages
113
Reaction score
1
So don't say copy and paste = ="
Atleast i'm trying to help MS Source.

Ignore him and move on, he is expressing their opinion. Don't be put down by it. Thanks again!
 
Junior Spellweaver
Joined
Mar 22, 2008
Messages
139
Reaction score
5
I like this one better as well, You can always rely on IF statements
 
Experienced Elementalist
Joined
Apr 13, 2008
Messages
211
Reaction score
0
i gonna use it
i actually trying to use the post from before...
anyway i gonna change the relog map...
 
Delta
Member
Joined
Apr 4, 2008
Messages
951
Reaction score
305
I was only expressing my thoughts, Not trying to put anyone down.

Anyways as much as I hate to say it this one is deffinetivly MUCH cleaner/ better.

Less trouble too.
 
Status
Not open for further replies.
Back
Top