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.

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #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
 


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 11:45 AM.


 

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