world
hub="Iocamus.ShinobiChronicles"
view = "25x25"
name = "Shinobi Land"
status = "Updated 2.1"
tick_lag=1
cache_lifespan=0
loop_checks=0
turf=/turf/Blah
New()
..()
LoadMute()
LoadVillageNotes()
LoadNotepad()
LoadObjects()
log=file("Runtimes.log")
Security()
spawn Years()
spawn Begin()
/*for(var/area/outside/O in world) // Look for outside areas
spawn() O.daycycle()*/ // begin the daycycle
proc/Begin()
Load_Admins()
LoadRanks()
LoadChronicle()
Load_Ban()
LoadLogs()
LoadVillageNotes()
LoadRules()
LoadYear()
obj/EditVillagePage
verb
EditPage()
set category="Rank"
if(usr.Village=="Konohagakure")
KonohagakureNotes=input("Edit the VillageNotes!","Konohagakure","[KonohagakureNotes]")as message
var/savefile/F = new ("SSO/KonohagakureNotes.sav")
F["KonohagakureNotes.sav"]<< KonohagakureNotes
if(usr.Village=="Kirigakure")
KirigakureNotes=input("Edit the VillageNotes!","Kirigakure","[KirigakureNotes]")as message
var/savefile/F = new ("SSO/KirigakureNotes.sav")
F["KirigakureNotes.sav"]<< KirigakureNotes
if(usr.Village=="Sunagakure")
SunagakureNotes=input("Edit the VillageNotes!","Sunagakure","[SunagakureNotes]")as message
var/savefile/F = new ("SSO/SunagakureNotes.sav")
F["SunagakureNotes.sav"]<< SunagakureNotes
proc/LoadVillageNotes()
if(fexists("SSO/KonohagakureNotes.sav"))
var/savefile/F = ("SSO/KonohagakureNotes.sav")
F["KonohagakureNotes.sav"]>> KonohagakureNotes
if(fexists("SSO/KirigakureNotes.sav"))
var/savefile/F = ("SSO/KirigakureNotes.sav")
F["KirigakureNotes.sav"]>> KirigakureNotes
if(fexists("SSO/SunagakureNotes.sav"))
var/savefile/F = ("SSO/SunagakureNotes.sav")
F["SunagakureNotes.sav"]>> SunagakureNotes
Problem description:
When the world starts up it should load files that are created and saved when the world is running, however when it starts it creates new versions. I can't seem to figure out why. Above is an example of how the load/save procs look, as well as the current World thinger.