ID:261327
 
Here are some bits of code to show you what I am doing. I cannot seem to find the problem or a fix for it, so I suppose I'm doing something wrong.
// things from the game engine itself
var/list
CI1 = list()
proc/LoadCustomSet()
var/savefile/S = new("Setup.sav")
var/path = "CustomObjSet/"
S["[path]CI1/Name"] >> CI1["Name"]
S["[path]CI1/Desc"] >> CI1["Desc"]
S["[path]CI1/Othr"] >> CI1["Othr"]
obj
c
var
//name // Name is a var here. It will set the object's name.
odesc // The object's description.
othr // Other comments.
name = "Object"
CI1
New()
src.name = CI1["Name"]
src.odesc = CI1["Desc"]
src.othr = CI1["Othr"]
world
mob = /mob/Login_Mob
New()
LoadCustomSet()
// lots of other things
..()
proc/CustomSet()
var
o1 = new /obj/c/CI1 (null)
var/CustomSet = list(o1) // o1 and many other things
return CustomSet
mob
GM
proc
MakeFromObjSet()
set name = "Make New Object From Object Set"
set category = "Player Controlls"
newobject_definition = 1
var/newobj = input("What object to create?","Which one?") in CustomSet()
newobj_name = newobj:name
newobj_desc = newobj:odesc
newobj_other = newobj:othr
// I think that's all the important stuff from the engine. Now let's look at the setup program:
var
o1
world.New()
o1 = new /obj/o/o1
// other things
..()
obj
o
o1
New()
var/savefile/S = new("Setup.sav")
var/path = "CustomObjSet/"
if(S["[path]/CI1/Name"] != null)
S["[path]/CI1/Name"] >> src.name
S["[path]/CI1/Desc"] >> src.odesc
S["[path]/CI1/Othr"] >> src.othr
proc/SetSave()
var/savefile/S = new("Setup.sav")
var/path = "CustomObjSet/"
S["[path]/CI1/Name"] << o1:name
S["[path]/CI1/Desc"] << o1:odesc
S["[path]/CI1/Othr"] << o1:othr


Thanks for looking at this. I use the object 1 example because I know for sure that it does not work and if I can get the first one working I can configure the other 39 likewise. Again, thanks to all of you for your time.

-Lord of Water