• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!
  • 2026 staff recruitment is open! Check it out and consider applying!

doSaveServer

Potar

SocialWorld
Senator
Joined
Mar 1, 2009
Messages
1,661
Reaction score
125
Location
Warsaw, Poland
What script (C++) is responsible for the command:
doSaveServer becouse i want to change this command for save house data only, without players / storages etc. this is possible?
 
On 0.4/trunk you can set flags to doSaveServer, like doSaveServer(13), that allow you to choose if you want to save the players, the map, the gamestate or everything. The flags are on game.h, but I don't know how to calculate them, maybe you should ask some developer :p

Code:
enum SaveFlag_t
{
    SAVE_PLAYERS = 1 << 0,
    SAVE_PLAYERS_SHALLOW = 1 << 1,
    SAVE_MAP = 1 << 2,
    SAVE_STATE = 1 << 3
};
 
Back
Top