ID:176199
 
Ok

Anyone have any idea how to reduce the size of each players .sav file?Right now my /players directory is around 120MB, I dont understand why.unelss ofcourse the actual playerfile is saving the map/turfs each time.

Is there a more efficient way to make saved pfiles less space consuming?#


/Oreld
by the sounds of things each save file has al the turfs and objects, you should make indivdual ones for the players and one for turfs/objs
In response to Maz
I have no idea how to do that.Or where to start
In response to Oreldwin
why did u even post? Dont waste Dantoms bandwith by say "i dont know how to do that". That aint gonna help.
In response to Zlegend2
Well, thank god not everyone is like you.I meant i dont know where to start concerning saving turfs.And foremost, if you are going to be rude and obscene in PAGE, i suggest you dont hide behind BAN next time.

Thanks.
In response to Oreldwin
oopsy. Lol! I didnt realize you were the one that posted this topic.
In response to Oreldwin
look whos talking
In response to Zlegend2
LOL
In response to Oreldwin
but now you're the one hiding behind a ban. and the reason i banned u cuz i dont wanna hear a crap from someone i'll never care about nor see again.
In response to Zlegend2
...?I havent banned you sir..
In response to Oreldwin
well some guy did that was a real newb. Insults were terrible
Player savefiles only save mob information (variables and lists assigned to the mob) by default, or they can be added to explicitly...

In order to add anything to them that isn't part of the mob, you have to code it to do so... So since I assume you haven't done that, then only mob info must be saved in your savefiles...

What that suggests is that you're saving some VERY large pieces of mob information... And the only thing that I've had any experience with that does this is a list... So, are there any lists that your players have that could potentially get very big? (I.E. due to adding other atoms to them) If so, then these big lists are also getting saved to your mob's savefile, which can make it very large fairly easily (it happened to me when I defined a list under mob that stored the HUD objects used in my game.. it made the savefile rather large)

The way to fix this is to go through all variables and lists your mobs have and declaring the ones that don't need to be saved as tmp ( define them as: mob/var/tmp/'variable')

These vars will then not be saved, and will not add to the size of the file...
Like you've been told, you're most likely saving the turfs and objects of the world. Cut those out.

Also, you can tmp a var to make it not save. (Do this for variables you don't need saved...) ex:
var/tmp/Myvar = 0

Otherwise, we'd have to see some code to help...
-<font color="#33ff33">Nova</font>