lfeutre / lmud

An Erlang and LFE MUD/MUSH Server.
Other
23 stars 9 forks source link

Support multiple versions of file formats (file-based storage) #54

Closed oubiwann closed 2 years ago

oubiwann commented 2 years ago

For background info on this ticket, see the config enhancement ticket:

Part of:

Tasks:

Work continues (in new v2 module) with the following:

oubiwann commented 2 years ago

Current uses of storage file versions ...

In code:

apps/lmud/src/em_login.erl:75:    "{version, 1}.\n",
apps/lmud/src/em_login.erl:79:    "{version, 1}.\n",
apps/lmud/src/em_room.erl:262:    "{version, 1}.\n",

In data files:

data/objects/painting.dat:1:{version, 1}.
data/objects/sword.dat:1:{version, 1}.
data/rooms/room1.dat:1:{version, 1}.
data/rooms/room2.dat:1:{version, 1}.
data/rooms/room3.dat:1:{version, 1}.
data/rooms/test1.dat:1:{version, 1}
oubiwann commented 2 years ago

The new datamodel is here (currently only supports the "living" type): apps/lmud/src/lmud-datamodel.lfe

Once we get everything in there, it will be easier to make decisions about versioning the schemas ...

oubiwann commented 2 years ago

Done.