ID:2156199
 
(See the best response by Lummox JR.)
Code:
var/test


Problem description:
Would I need to manually save each world variable, or just a standard save proc rather than one attached to a mob? Same for objects.

Global vars would have to be saved manually. However if you keep them in a datum, you can simply save the datum.
In response to Lummox JR
I'm still rather new to BYOND, how exactly would I do so and what is a datum?
Best response
A datum is basically any object, which holds its own vars and procs. Think of atoms (areas, turfs, objs, mobs) as special versions of datums. So for instance, if you wanted a datum to hold world settings:

settings
var/max_players = 4
var/AI_level = 1
...

var/settings/settings = new // world settings

You could save that datum to a file, and also load it.

world/New()
try
var/savefile/S = new("settings.sav")
S >> settings
catch() // empty catch
..()

world/Del()
var/savefile/S = new("settings.sav")
S << settings
..()
In response to Lummox JR
Thanks! I thought I knew what that was, something similar to classes in Python, but I wasn't sure. :p.
...man, I completely forgot we have try and catch now. This drastically simplifies my map file handling.