Go Back   EQEmulator Home > EQEmulator Forums > Archives > Archive::Support > Archive::Windows Servers

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

Reply
 
Thread Tools Display Modes
  #1  
Old 11-18-2003, 07:28 AM
Cripp's Avatar
Cripp
Discordant
 
Join Date: Oct 2003
Location: The Shire
Posts: 474
Default error in world.exe...start_zones

to the point...

Code:
[error] Database: Could not find start_zones entry in database. Using Defaults..
WTF is this? i have start_zones table in database...
and is it even a big enough problem to deal with or is it fine to just let it be

thanks--
Cripp Nugs
__________________
Nug Blazers - ServerOP / founder
^^comming... later!

www.nugblazers.com
Reply With Quote
  #2  
Old 11-18-2003, 08:06 AM
bud9weiser's Avatar
bud9weiser
Sarnak
 
Join Date: Apr 2003
Posts: 35
Default

Their is a bug in the code that couses this, search forums for "start_zones" and thier is a nice fix. Im currently working on a "start_zones" table in the format from the fix, and should have it ready for TCS's next database release
Reply With Quote
  #3  
Old 11-18-2003, 11:25 AM
Cripp's Avatar
Cripp
Discordant
 
Join Date: Oct 2003
Location: The Shire
Posts: 474
Default

k went to the forum where it says how to fix, i replace the code in
database.cpp where it says to and i just get a bunch of errors...

Code:
--------------------Configuration: Zone - Win32 Release--------------------
Compiling...
database.cpp
C:\eqemu\cvs\eqemu\NewSource\common\database.cpp(6583) : error C2143: syntax error : missing ';' before 'else'
C:\eqemu\cvs\eqemu\NewSource\common\database.cpp(6583) : error C2143: syntax error : missing ';' before '{'
C:\eqemu\cvs\eqemu\NewSource\common\database.cpp(6583) : error C2447: missing function header (old-style formal list?)
C:\eqemu\cvs\eqemu\NewSource\common\database.cpp(6587) : error C2143: syntax error : missing ';' before '->'
C:\eqemu\cvs\eqemu\NewSource\common\database.cpp(6587) : error C2501: 'in_pp' : missing storage-class or type specifiers
C:\eqemu\cvs\eqemu\NewSource\common\database.cpp(6587) : error C2143: syntax error : missing ';' before '->'
C:\eqemu\cvs\eqemu\NewSource\common\database.cpp(6587) : error C2143: syntax error : missing ';' before '->'
C:\eqemu\cvs\eqemu\NewSource\common\database.cpp(6587) : error C2501: 'in_pp' : missing storage-class or type specifiers
C:\eqemu\cvs\eqemu\NewSource\common\database.cpp(6587) : error C2086: 'in_pp' : redefinition
C:\eqemu\cvs\eqemu\NewSource\common\database.cpp(6587) : error C2143: syntax error : missing ';' before '->'
C:\eqemu\cvs\eqemu\NewSource\common\database.cpp(6587) : error C2143: syntax error : missing ';' before '->'
C:\eqemu\cvs\eqemu\NewSource\common\database.cpp(6587) : error C2501: 'in_pp' : missing storage-class or type specifiers
C:\eqemu\cvs\eqemu\NewSource\common\database.cpp(6587) : error C2086: 'in_pp' : redefinition
C:\eqemu\cvs\eqemu\NewSource\common\database.cpp(6587) : error C2143: syntax error : missing ';' before '->'
C:\eqemu\cvs\eqemu\NewSource\common\database.cpp(6588) : error C2143: syntax error : missing ';' before 'switch'
C:\eqemu\cvs\eqemu\NewSource\common\database.cpp(6589) : error C2143: syntax error : missing ';' before '{'
C:\eqemu\cvs\eqemu\NewSource\common\database.cpp(6589) : error C2447: missing function header (old-style formal list?)
C:\eqemu\cvs\eqemu\NewSource\common\database.cpp(6675) : error C2143: syntax error : missing ';' before 'return'
C:\eqemu\cvs\eqemu\NewSource\common\database.cpp(6676) : error C2143: syntax error : missing ';' before '}'
C:\eqemu\cvs\eqemu\NewSource\common\database.cpp(6676) : error C2143: syntax error : missing ';' before '}'
C:\eqemu\cvs\eqemu\NewSource\common\database.cpp(6676) : error C2143: syntax error : missing ';' before '}'
C:\eqemu\cvs\eqemu\NewSource\common\database.cpp(6681) : error C2143: syntax error : missing ';' before '{'
C:\eqemu\cvs\eqemu\NewSource\common\database.cpp(6681) : error C2447: missing function header (old-style formal list?)
Error executing cl.exe.

Zone.exe - 23 error(s), 0 warning(s)
here is part of my database.cpp where errors occur...

Code:
	if (RunQuery(query, MakeAnyLenString(&query, "SELECT x,y,z,zone_id,bind_id FROM start_zones WHERE player_choice=%i and player_class=%i and player_deity=%i and player_race=%i", in_cc->start_zone, in_cc->class_, in_cc->deity, in_cc->race), errbuf, &result)) {
		safe_delete_array(query); 

      if (mysql_num_rows(result) != 0) { 
         row = mysql_fetch_row(result); 
         in_pp->y = atoi(row[0]);
         in_pp->x = atoi(row[1]);     
         in_pp->z = atoi(row[2]);
         in_pp->zone_id = atoi(row[3]); 
         in_pp->bind_zone_id = atoi(row[4]); 
         mysql_free_result(result); 
         return true; 
      } 
		}
		else {
		    LogFile->write(EQEMuLog::Error, "Database: could not find start_zones entry in database. Using Defaults..");
		}
		mysql_free_result(result);
	}
	else {
		LogFile->write(EQEMuLog::Error, "Database: could not find start_zones table in database. Using Defaults..");
		safe_delete_array(query);
	}
	in_pp->x = 0; in_pp->y = 0; in_pp->z = 0;
	switch(in_cc->start_zone)
	{
any help here would be awsome.

thanks
cripp
__________________
Nug Blazers - ServerOP / founder
^^comming... later!

www.nugblazers.com
Reply With Quote
  #4  
Old 11-18-2003, 11:41 AM
Guest
 
Posts: n/a
Default

Without the whole source file and line numbers, it is hard to say, but:

Quote:
if (mysql_num_rows(result) != 0) {
row = mysql_fetch_row(result);
in_pp->y = atoi(row[0]);
in_pp->x = atoi(row[1]);
in_pp->z = atoi(row[2]);
in_pp->zone_id = atoi(row[3]);
in_pp->bind_zone_id = atoi(row[4]);
mysql_free_result(result);
return true;
}
} // <------- Try deleting this
You may have an extraneous end brace there. Try deleting that.
Reply With Quote
  #5  
Old 11-18-2003, 11:48 AM
arkaria's Avatar
arkaria
Discordant
 
Join Date: Oct 2003
Location: Victoria, BC
Posts: 253
Default

an extraneous end brace would result in a compile error I would think.
Reply With Quote
  #6  
Old 11-18-2003, 11:52 AM
Guest
 
Posts: n/a
Default

Quote:
an extraneous end brace would result in a compile error I would think.
Yup, those syntax errors he lists are compile errors.
Reply With Quote
  #7  
Old 11-18-2003, 12:07 PM
arkaria's Avatar
arkaria
Discordant
 
Join Date: Oct 2003
Location: Victoria, BC
Posts: 253
Default

Oh lol I was reading up to high. Didn't look close enough to the subsiquent posts. My bad
Reply With Quote
  #8  
Old 11-18-2003, 12:10 PM
Guest
 
Posts: n/a
Default

No worries Arkaria, I thought that is what happened ... if you ever see a post by me that say 'n/t', it happened to me too
Reply With Quote
  #9  
Old 11-18-2003, 03:02 PM
Cripp's Avatar
Cripp
Discordant
 
Join Date: Oct 2003
Location: The Shire
Posts: 474
Default

Quote:
You may have an extraneous end brace there. Try deleting that
checked, didnt see any brace there.. want me to send the whole database.cpp code?
__________________
Nug Blazers - ServerOP / founder
^^comming... later!

www.nugblazers.com
Reply With Quote
  #10  
Old 11-18-2003, 06:51 PM
ndnet
Hill Giant
 
Join Date: Oct 2003
Posts: 105
Default

The extra brace was quoted from the source which you originally quoted. Unless you've already deleted it, or you somehow added it incorrectly when quoting the source, the brace should still be there ^.^
Reply With Quote
  #11  
Old 11-19-2003, 10:16 AM
Cripp's Avatar
Cripp
Discordant
 
Join Date: Oct 2003
Location: The Shire
Posts: 474
Default

ah im a moron, i got it i thought he meant delete the two forward slashes. LOL stupid me.
thanks it worked now thanks alot

-Cripp Nugs
__________________
Nug Blazers - ServerOP / founder
^^comming... later!

www.nugblazers.com
Reply With Quote
  #12  
Old 11-19-2003, 10:18 AM
Guest
 
Posts: n/a
Default

Sorry for the confusion Cripp, glad it fixed your problem.
Reply With Quote
Reply

Thread Tools
Display Modes

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 01:19 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