Code:
Problem description:
I got this when I logged in on a save:
runtime error: undefined variable /var/bounds
proc name: SaveK (/mob/proc/SaveK)
source file: Save And Load.dm,19
usr: the kilop (/mob)
src: the kilop (/mob)
call stack:
the kilop (/mob): SaveK()
the kilop (/mob): AutoSave()
the kilop (/mob): Slot1()
LoadA (3,11,20) (/turf/LoadA): Click(LoadA (3,11,20) (/turf/LoadA), "Main_Screen.map1", "icon-x=1;icon-y=14;left=1;scre...")
And I get this when I click Save()
runtime error: undefined variable /var/bounds
proc name: SaveK (/mob/proc/SaveK)
source file: Save And Load.dm,19
usr: the kilop (/mob)
src: the kilop (/mob)
call stack:
the kilop (/mob): SaveK(the kilop (/mob))
the kilop (/mob): AutoSave()
the kilop (/mob): Slot1()
LoadA (3,11,20) (/turf/LoadA): Click(LoadA (3,11,20) (/turf/LoadA), "Main_Screen.map1", "icon-x=1;icon-y=14;left=1;scre...")
Save And Load.dm,19 = Write(F)
Is it me? I haven't used bounds, nor really dove into them at all. It's nonexistent in my coding...
ID:138917
Sep 15 2011, 4:47 pm
|
|
Sep 22 2011, 1:57 am
|
|
Did you even try to create the variable?
|
In response to Fushi Is Awesome
|
|
Fushi Is Awesome wrote:
Did you even try to create the variable? Nope. Isn't it built in? |
In response to Ganing
|
|
It's not built in, try searching the reference.
|
In response to Raimo
|
|
It is built in. Try to make mob/var/bounds.
|
In response to Ganing
|
|
I highly doubt that, there is only a proc since the new version called bounds(). But I don't see a var in the release notes nor in the reference with that name.
|
In response to Raimo
|
|
Skalert.dm:9:error: bounds: duplicate definition (conflicts with built-in variable)
|
In response to Ganing
|
|
Ganing wrote:
Skalert.dm:9:error: bounds: duplicate definition (conflicts with built-in variable) Since you're re-defining bounds variable, which is a built-in variable. EDIT: Either, the reference hasn't been updated or well, some other issue. |
In response to Ocean King
|
|
That was just to prove to Raimo that it was there.
|
In response to Ganing
|
|
Could you provide some snippet? We don't know how your Load and Save procedures work.
|
In response to Ocean King
|
|
I've sent it to Lummox for testing but here it is.
mob |
In response to Ganing
|
|
Ganing wrote:
I've sent it to Lummox for testing but here it is. > mob That works fine here. Same variable names, everything is the same. |
In response to Ocean King
|
|
I know. That's why this is so confusing.
|
In response to Ganing
|
|
Are you using the latest BYOND version? If not: http://www.byond.com/download/build/490/490.1110_byond.exe
Seems confusing, the error isn't happening here. |