Go Back   EQEmulator Home > EQEmulator Forums > Archives > Archive::Development > Archive::Bugs

Archive::Bugs Archive area for Bugs's posts that were moved here after an inactivity period of 90 days.

Reply
 
Thread Tools Display Modes
  #1  
Old 03-05-2003, 11:27 PM
zebranski
Fire Beetle
 
Join Date: Mar 2003
Posts: 3
Default zone.exe crash on server startup can be easily fixed

I saw many people complaining about ZONE.EXE crash during server startup (i had same problem). I looked up into sources and discovered that this problem may occur because most people use latest version of MySQL (i use 3.23.54) which probably behaves differently from older versions.
Current version of MySQL returns 1 row of data (with NULL value) for "select max" query even if table is empty, this causes code in loottables.cpp to crash.
Here:

line 42:
max_loottable = atoi(row[0]);
i've changed to
if (row[0] != 0) max_loottable = atoi(row[0]);

same at line 60:
max_lootdrop = atoi(row[0]);
changed to
if (row[0] != 0) max_lootdrop = atoi(row[0]);

Maybe this problem is already fixed, but i'm letting you know just in case....

NOTE: Still, i could not make the game itself to work, zone.exe crashes when i finish character creation and enter the area itself. This is, probably, because i have latest EQ patch...
Is it possible to get an EQEMU compatible game version somewhere? because i dont have a game itself... i downloaded eqfull from SONY, but it seems unplayable without patching and if i patch, it still wont work because of incompatibility with EQEMU.
I used EQEMUPatcher, but, still, no results...
Reply With Quote
  #2  
Old 03-06-2003, 01:28 AM
zebranski
Fire Beetle
 
Join Date: Mar 2003
Posts: 3
Default

Phew!
At last i managed to enter a game itself....
The problem was in lsaccount_id field, since it didnt have default value (0 for example) it was NULL, which caused zone.exe to crash.... So, everything below "NOTE:" in previous message can be discarded
Reply With Quote
  #3  
Old 03-06-2003, 04:43 AM
Drel
Fire Beetle
 
Join Date: Mar 2003
Posts: 5
Default

how exactly did you put the fix in place to stop zone.exe from crashing after hitting enter on char select?
Reply With Quote
  #4  
Old 03-06-2003, 05:10 AM
Drel
Fire Beetle
 
Join Date: Mar 2003
Posts: 5
Default

Wooo.. that worked. thank you thank you! been banging head against wall for a while now trying to get past that zone.exe crashing when hitting enter on char select..

update account set lsaccount_id = 0;

Fix'd it all..

Thanks again )))
Reply With Quote
  #5  
Old 03-10-2003, 07:27 PM
zebranski
Fire Beetle
 
Join Date: Mar 2003
Posts: 3
Default

Another note about ZONE.EXE!

Do NOT run server until you have a game database fully prepared!!!
This means you should have imported db.sql (which comes with distribution) AND world data MUST be installed too (you will not be able to play without it anyway)
Check this http://forums.eqemu.net/viewtopic.php?t=6176 link for world databases and how to install them.
Still it IS possible to run server without it, but you'll have to patch sources as was described above.
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

   

All times are GMT -4. The time now is 10:13 PM.


 

Everquest is a registered trademark of Daybreak Game Company LLC.
EQEmulator is not associated or affiliated in any way with Daybreak Game Company LLC.
Except where otherwise noted, this site is licensed under a Creative Commons License.
       
Powered by vBulletin®, Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Template by Bluepearl Design and vBulletin Templates - Ver3.3