runtime error: Failed to write variable Name to savefile players/Alaricus.sav. The value being written was "Testington".
proc name: Write (/mob/Write)
usr: Alaricus (/mob)
src: Alaricus (/mob)
call stack:
Alaricus (/mob): Write(players/Alaricus.sav (/savefile))
Alaricus (/mob): SaveC()
Alaricus (/mob): Save()
Problem description: I... I don't even know. Last time I used the save verb, it worked just fine. I have no idea what broke it, as I haven't used it in forever.
Here's the actual code:
mob/verb
Save()
usr.SaveC()
usr<<output("Save successful.","system")
mob
proc
SaveC()
if(src.cansave)
var/savefile/F=new("players/[src.key].sav")
Write(F)
mob
Write(var/savefile/F)
..()
F["x"] << x
F["y"] << y
F["z"] << z
F["Level"] << src.Level
F.dir.Remove("cooldowns")
As you can see, the actual writing is very minimal, because in previous experience the other variables were being saved. I only specified those five, the first three for loading location purposes, the last one for resetting cooldowns, and the fourth one... I don't truly remember lol.
(Edit: Also, those three pieces of code are in reverse to how they're ordered in my source. I was just being lazy.)