| Message |
I have this problem every time I start a new mud, and every time I forget how to fix it..
I spent a few minutes looking around here, yet did not find much advice besides "make a backup directory".
So I had to sit down and figure it out; decided to post it here in case it'll help people with this problem in the future.
When you save in smaug, it saves to a tmpfile, then overwrites the original pfile to cut down on pfile bugs.
Unfortunately, Windows does not allow this..so you have to add a line of code deleting the original pfile first.
Open up save.c, and search for
if (ferr)
{
perror(strsave);
bug("Error writing temp file for %s -- not copying", strsave);
}
else
rename(TEMP_FILE, strsave);
}
replace it with
if (ferr)
{
perror(strsave);
bug("Error writing temp file for %s -- not copying", strsave);
}
else
{
remove(strsave);
rename(TEMP_FILE, strsave);
}}
That should fix all problems with pfile saving and the delete/destroy commands.
Cheers!
~S.
|
ASJ Games - .Dimension 2, Resident Evil, and snippets - oh my!
http://asj.mudmagic.com
Drop by the area archives and find something for your mud. http://areaarchives.servegame.com | top |
|