ID:153052
 
Instead of creating a standard OLC to make a MUD, I was thinking about making a second program to function as the MUD editor. Is this possible? Can I share savefiles between two Byond programs? The idea is that the Editor program is used to create MUD areas, create NPCs and create FOE factions. The MUD program would load the mud from the "init" savefiles that the editor creates. The MUD would also be responsible for backing itself (and its players) up, by creating "backup" savefiles.

Just in case you have questions, hard-coded in the MUD would be these things already mentioned:

FOEs (aka mobs) (including behavior)
NPC 'templates' (including behavior)
Room 'templates'
Faction 'templates'

So, is that doable?

=$= Big J Money =$=
Savefiles that contain the same object types and variables are interchangeable between BYOND programs. If, however, the savefile contains objects that were saved with types or variables that don't exist in your other project, then attempting to Load() such an object will fail.

Counter to this, however, any BYOND program can read any other BYOND program's savefiles manually by running through the savefile's directories. For instance, if in the savefile there is a mob written directly to the savefile (.1 which has type = /mob/player and key = "Spuzzum"), someone could still navigate to the directory with F.cd = ".1" and read all of the mob variables directly.

(This is one reason why people should consider manual encryption of the variables in their savefiles.)
That's awsome...do it.
In response to Spuzzum
Hey Spuzzum, any reccomendation on any Libs out there that use manual encryption? I don't mind starting from scratch, but if someone has already done it, a good lib would be helpful. Preferably one that wouldn't have too many features in it, so I could modofiy it more easily. I suppose I'll end up using the same library in the editor program and the MUD program.

There aren't any tutorials that address manual encryption are there? Or, is it something that pretty much needs to be figured out through studying the DM reference? I'm not trying to take shortcuts here, if it's better for me to just hunker down and learn savefiles back and forward.

=$=