proc/saveworld()
var/savefile/W = new("World_Save")
for(var/turf/T in world)
W << T
Write(W)
proc/loadworld()
if(fexists("World_Save.sav"))
var/savefile/W = new("World_Save")
Read(W)
Problem description:
WorldGenerator.dm:210:error: Write: undefined proc
WorldGenerator.dm:214:error: Read: undefined proc
2 errors, 0 warnings
Doesnt. Make. Sense.
What I am trying to do is save all of the world's "/turf/" files into a savefile for use later. These maps are randomly generated. Random generation of the maps works fine, but for some reason this portion of the code does not, and these are built-in procs =/
Can someone tell me what I am doing wrong (or if there is another way of having what I wish to accomplish done)? Its probably something simple I just cannot see (-.-)
edit: Not all of the loadWorld proc was posted here, but there are no errors after that point.
Also note that writing every single turf into the savefile is quite likely to be incredibly slow, unnecessary, and prone to some fun errors when you save something you didn't expect.