Original Post
I'm working on a single player semi persistant world and want to make it sort of how oblivion was in the way that the stuff that the player changes stays changed. A problem I've run into is how to save and load everything from a map type area. I'm planning on having the world divided into large maps on disk. I don't want to have alot of these areas, just a few large ones and I just want to have the area the player is in on the map loaded. The map disk file is divided into sections sort of like a tile based game with the sections name, then how many objects/npc's/enemies.. etc are on that map section and have whatever is on it loaded/saved on the fly as the player comes to new sections of the map. The problem I have is that these sections in the map disk file have to be of variable size for the fluctuating number of objects and what have you on that map section and I'm not sure how I should go about loading and saving the sections of variable size from the map file. so a map section would look like this in the map file: Section name number objects number npc's number monsters object name object position object name object position npc name npc position npc name npc position monster name monster position monster name monster position Does anyone have any suggestions on how I could do this?