ID:142046
 
Problem description:
Ok so recently my save code has stopped working and i cant figure out why. Its not with my code cause i havent changed anything and i dont know why its doint it. Here is the error and the line it refers to

BYOND Error:(Sfile.cpp,1177) failed to open file:
BYOND Error:(Sfile.cpp,1177) C:\Documents and Settings\Deering\Desktop\Avatar Universe\Avatar Universe\Players\nightjumper881.sav
proc name: SaveExit (/mob/proc/SaveExit)

var/savefile/F = new("Players/[src.ckey][src.save].sav")

Are you sure that's the right program...?
.cpp is C++ files, why is that there for BYOND files?
And I think we need to see the whole SaveExit() proc.
In response to DemonSpree
Well im pretty sure theres nothing wrong with my save proc cause it was working and then just stopped all of a sudden, but here it is
SaveExit()
if(src.cantsave)
return
if(!src.initialized)
// world<<"not initialized"
return
if(!istype(src,/mob/player))
// not a player
return
if(src)
var/savefile/F = new("Players/[src.ckey][src.save].sav") //creates a new savefile or overwrites an old one
for(var/obj/text/O in client.screen)
del O
for(var/obj/back/O in client.screen)
del O
for(var/obj/Questtext/O in client.screen)
del O
if(src.AFK)
src.AFK()
Write(F)