- Joined
- Sep 20, 2007
- Messages
- 138
- Reaction score
- 0
Alas the long awaited auto save function 
EDIT: I've now found the better way to do the autosave
check it out! ^_^ can't believe this took me a few hours =.= You only need to edit one file
1. Make sure you've installed: http://forum.ragezone.com/f427/release-save-command-382734/
2. Open MapleStoryServer.cpp
3. At the top with the includes, put:
4. Above
put:
5. Above
put:
6. At the bottom of the file put:
If you want to change the save interval in seconds, change the part where it says:
If you don't want the save message to appear in game, delete:
credits to me and the internet for helping me research threads
EDIT: I've now found the better way to do the autosave
1. Make sure you've installed: http://forum.ragezone.com/f427/release-save-command-382734/
2. Open MapleStoryServer.cpp
3. At the top with the includes, put:
Code:
#include <process.h>
#include <windows.h>
#include <stdio.h>
#include "PlayersPacket.h"
#include "Players.h"
4. Above
Code:
void main(){
Code:
void autoSave( void * );
5. Above
Code:
while(getchar()){}
Code:
int saveInterval = 150; // save interval in seconds
_beginthread( autoSave, 0, (void*)saveInterval);
6. At the bottom of the file put:
Code:
void autoSave( void *arg ) {
while(true) {
for (hash_map <int, Player*>::iterator iter = Players::players.begin(); iter != Players::players.end(); iter++)
iter->second->save();
PlayersPacket::showMassage("All progress has been saved successfully", 5);
printf("All progress saved by autosave\n");
Sleep(((INT_PTR)arg)*1000);
}
}
If you want to change the save interval in seconds, change the part where it says:
Code:
int saveInterval = 150; // save interval in seconds
If you don't want the save message to appear in game, delete:
Code:
PlayersPacket::showMassage("All progress has been saved successfully", 5);
credits to me and the internet for helping me research threads
Last edited:

