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

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

Reply
 
Thread Tools Display Modes
  #1  
Old 06-12-2003, 03:44 AM
Yodason
Hill Giant
 
Join Date: Jan 2002
Posts: 205
Default ZSave fix

in
Code:
bool Zone::SaveZoneCFG(const char* filename) {
change
Code:
	if ((zhdr_file = fopen(filename, "wb")) == 0) {

		cout << "Could not open " << fname << " for writing." << endl;

		return false;

	}
to
Code:
	if ((zhdr_file = fopen(fname, "wb")) == 0) {

		cout << "Could not open " << fname << " for writing." << endl;

		return false;

	}
and in client.cpp change the "zsave" else to
Code:
	else if(strcasecmp(sep->arg[0], "#zsave") == 0) {
		// modifys and resends zhdr packet
		if(sep->arg[1][0]==0)
			Message(0, "Usage: #zsave <zone name>");
		else {
			if(zone->SaveZoneCFG(sep->argplus[1]))
				Message(13, "Zone header file %s saved successfully.", sep->argplus[1]);
			else
				Message(13, "ERROR: Zone header data was NOT saved. (%s)", sep->argplus[1]);
		}
	}
BTW - scruffy's code here.
Reply With Quote
  #2  
Old 06-12-2003, 03:47 AM
gej302
Sarnak
 
Join Date: May 2003
Location: Silverfist
Posts: 42
Default

NM - had a blonde moment...
Reply With Quote
  #3  
Old 06-12-2003, 03:48 AM
Yodason
Hill Giant
 
Join Date: Jan 2002
Posts: 205
Default

filename to fname
Reply With Quote
  #4  
Old 06-12-2003, 05:25 AM
Trumpcard
Demi-God
 
Join Date: Jan 2002
Location: Charlotte, NC
Posts: 2,614
Default

Man Yoda, you guys are cranking em out !
__________________
Quitters never win, and winners never quit, but those who never win and never quit are idiots.
Reply With Quote
  #5  
Old 06-15-2003, 03:00 PM
Trumpcard
Demi-God
 
Join Date: Jan 2002
Location: Charlotte, NC
Posts: 2,614
Default

Merged this into cvs. Mind certifying it is implemented correctly?


Thanks.
__________________
Quitters never win, and winners never quit, but those who never win and never quit are idiots.
Reply With Quote
  #6  
Old 06-15-2003, 07:27 PM
fnemo's Avatar
fnemo
Discordant
 
Join Date: Dec 2002
Posts: 354
Default

i'll check it out since yoda is away for a couple weeks.
__________________
Nemo
Administrator and coder for the World Alkora Server
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 04:33 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