Getting 5.7 - DR2 working
For those of you out htere who are having problems with character creation, I got mine working earlier today by doing the following:
Starting with the 5/1/04 files, some editing will need to be done in .\common\database.cpp. First make sure that all instances of 'result' are initialized to 0. I did this with a find and replace of 'MYSQL_RES *result;' with 'MYSQL_RES *result = NULL;' Then, also in database.cpp in the function Database::GetStartZone(), the make the following change. This bit of code... if((rows = mysql_num_rows(result)) == 1) row = mysql_fetch_row(result); if(result) mysql_free_result(result); ...needs to be conditional upon result != NULL, like this: if(result) { if((rows = mysql_num_rows(result)) == 1) row = mysql_fetch_row(result); if(result) mysql_free_result(result); } Aside from that. There was one instance of the pointer 'query' not being initialized before use. Make sure anything that looks like 'char *query;' becomes 'char *query = 0;'. After making those changes my server works fine, character creation and all. Good luck. -Gyre |
OMG thanx.. ur fix works wonders... Can devs incorporate it into their code please?
|
yay
|
Looks like the people agree.
Tastes great! :D |
Grr
I don't know what in the world I might be doing wrong... I followed your instructions by the letter, got no errors with compilation, and still I cannot create a character. I used the 05-01 CVS, and even tried the 05-05 CVS, and still I can't create a character.
(As a side note, I even tried the method in the other post with adding that extra line in the eq_packet_structs.h file) Interestingly enough, this WILL work with the latest EQ Live patch (05-05), but I can only log in with the eqemu account, and not my custom account (which has my other characters and serverop access level). As an addendum, I use a minilogin server. Anyone have any ideas of what I could be doing wrong? |
Well, I don't. But if you can repro a world break and get a stack trace it will give you some idea as to where to look.
My repro steps for the problem where: !. Try to create a character. Tha would fail at the last step. 2. Go back to character selection and create another character. 3. At the name selection stage, hit the name generation button. If it returns a blank name, you have a repro. 4. Keep hitting the name generation button until you get disconnected from the server. At this point world.exe has hit an unrecoverable problem. You can get the stack trace from world.exe by launching it in a debugger. I use ntsd in Windows. "ntsd -g world.exe" hope that helps. -Gyre |
laerg619,
Quote:
Quote:
if you dont it will log u in only to eqemu/eqemu. Should look like this: MiniLoginAccounts.ini Code:
IP1 Account_Name1 Password1 Code:
IP1 Account_Name1 Password1 (space) Hope this helps =) if it doesn't ill look into your problem some more. Good luck! |
Aye
I have the minilogin accounts file set up, and have been using my own personal server for a while now :) I haven't tried the method described two posts above to locate the error yet (haven't had too much time as of late), but will get to it! ;)
|
try this for character still not creating :
in world/client.cpp : around line 384 Code:
else if (app->size != sizeof(CharCreate_Struct)) Code:
else if (app->size != sizeof(CharCreate_Struct)) checked to make sure ur DB matches ur miniloginaccounts.ini EXACTLY? sometimes i make a mistake there :P hmm good luck with that |
All times are GMT -4. The time now is 05:35 AM. |
Powered by vBulletin®, Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.