Code:
//how skills are added basic but same for all other spots
Give_Skill(O as null|anything in typesof(/obj/Skill))
set category = "Staff"
if(!O)
return
if(!usr.skills) usr.skills = new
usr.skills+=new O
//Save and Load System
SaveMob()
if(src.cantsave)
return
if(!src.initialized)
return
if(!istype(src,/mob/player))
return
if(src)
src.Delete_Screen()
if(src.AFK)
src.AFK()
spawn(35)
src.AFK()
src<<"<font size=1><font color=red><B>Info: <font color=green>Saving..."
var/savefile/F = new("Players/[src.ckey][src.save].sav")
Write(F)
sleep(35)
src<<"<font size=1><font color=red><B>Info: <font color=green>Your game has been saved"
LoadMob()
if(fexists("Players/[src.ckey][src.save].sav"))
var/savefile/F = new("Players/[src.ckey][src.save].sav")
if(src.key in GM2)
src.verbs+=typesof(/mob/GM1/verb)
src.verbs+=typesof(/mob/GM2/verb)
if(src.key in GM1)
src.verbs+=typesof(/mob/GM1/verb)
Read(F)
if(src.Avatar)
var/T
F["Last_Log"]>>T
if(T+864000<Time)
src.AvatarKill()
src<<"You did not log in enough as the Avatar and have lost your Avatar abilities"
NextAvatar(src)
src.LoginJunk()
I cant think of anything that would be causing the problem and it isnt any code deleting something from the list cause i do the same process to an item before the first save and then save and it saves but then after the first save it wont save again.
Edit:I found a fix by manually saving and loading the skills list by modifying the write and read procs but still would like to know why the Write() proc isnt working right.
<d