jcmcbeth / Planets

2 stars 1 forks source link

cedit save doesn't seem to save the code #14

Closed jcmcbeth closed 3 years ago

jcmcbeth commented 3 years ago

I created a new command and forgot the code, cedit skills create

So then I do cedit skills code do_skills

Then cedit save.

The skills command starts working. When the MUD is rebooted the code for skills goes to "reserved".

jcmcbeth commented 3 years ago

When saving the commands it uses the skill_name() function to convert the function pointer to a string name to save in the file. If there is no case for the specified function pointer it just returns the word reserved which is then written to file when the commands are saved. When the mud is loaded again the "reserved" skill is loaded for the command which does nothing.