ID:270167
 

Problem description:runtime error: undefined variable /turf/screen/var/screen
proc name: New (/obj/New)
usr: null
src: the start (/obj/start)
call stack:
the start (/obj/start): New(the screen (2,5,2) (/turf/screen))
runtime error: undefined variable /turf/screen/var/screen
proc name: New (/obj/New)
usr: null
src: the start (/obj/start)
call stack:
the start (/obj/start): New(the screen (3,5,2) (/turf/screen))
runtime error: undefined variable /turf/screen/var/screen
proc name: New (/obj/New)
usr: null
src: the start (/obj/start)
call stack:
the start (/obj/start): New(the screen (4,5,2) (/turf/screen))
runtime error: undefined variable /turf/screen/var/screen
proc name: New (/obj/New)
usr: null
src: the start (/obj/start)
call stack:
the start (/obj/start): New(the screen (5,5,2) (/turf/screen))
runtime error: undefined variable /turf/screen/var/screen
proc name: New (/obj/New)
usr: null
src: the start (/obj/start)
call stack:
the start (/obj/start): New(the screen (6,5,2) (/turf/screen))
runtime error: undefined variable /turf/screen/var/screen
proc name: New (/obj/New)
usr: null
src: the start (/obj/start)
call stack:
the start (/obj/start): New(the screen (7,5,2) (/turf/screen))
runtime error: undefined variable /turf/screen/var/screen
proc name: New (/obj/New)
usr: null
src: the start (/obj/start)
call stack:
the start (/obj/start): New(the screen (8,5,2) (/turf/screen))
runtime error: undefined variable /turf/screen/var/screen
proc name: New (/obj/New)
usr: null
src: the start (/obj/start)
call stack:
the start (/obj/start): New(the screen (9,5,2) (/turf/screen))
runtime error: undefined variable /turf/screen/var/screen
proc name: New (/obj/New)
usr: null
src: the start (/obj/start)
call stack:
the start (/obj/start): New(the screen (10,5,2) (/turf/screen))
runtime error: undefined variable /turf/screen/var/screen
proc name: New (/obj/New)
usr: null
src: the start (/obj/start)
call stack:
the start (/obj/start): New(the screen (11,5,2) (/turf/screen))
runtime error: undefined variable /turf/screen/var/screen
proc name: New (/obj/New)
usr: null
src: the start (/obj/start)
call stack:
the start (/obj/start): New(the screen (2,6,2) (/turf/screen))
runtime error: undefined variable /turf/screen/var/screen
proc name: New (/obj/New)
usr: null
src: the start (/obj/start)
call stack:
the start (/obj/start): New(the screen (3,6,2) (/turf/screen))
runtime error: undefined variable /turf/screen/var/screen
proc name: New (/obj/New)
usr: null
src: the start (/obj/start)
call stack:
the start (/obj/start): New(the screen (4,6,2) (/turf/screen))
runtime error: undefined variable /turf/screen/var/screen
proc name: New (/obj/New)
usr: null
src: the start (/obj/start)
call stack:
the start (/obj/start): New(the screen (5,6,2) (/turf/screen))
runtime error: undefined variable /turf/screen/var/screen
proc name: New (/obj/New)
usr: null
src: the start (/obj/start)
call stack:
the start (/obj/start): New(the screen (6,6,2) (/turf/screen))
runtime error: undefined variable /turf/screen/var/screen
proc name: New (/obj/New)
usr: null
src: the start (/obj/start)
call stack:
the start (/obj/start): New(the screen (7,6,2) (/turf/screen))
runtime error: undefined variable /turf/screen/var/screen
proc name: New (/obj/New)
usr: null
src: the start (/obj/start)
call stack:
the start (/obj/start): New(the screen (8,6,2) (/turf/screen))
runtime error: undefined variable /turf/screen/var/screen
proc name: New (/obj/New)
usr: null
src: the start (/obj/start)
call stack:
the start (/obj/start): New(the screen (9,6,2) (/turf/screen))
runtime error: undefined variable /turf/screen/var/screen
proc name: New (/obj/New)
usr: null
src: the start (/obj/start)
call stack:
the start (/obj/start): New(the screen (10,6,2) (/turf/screen))
runtime error: undefined variable /turf/screen/var/screen
proc name: New (/obj/New)
runtime error: Cannot modify null.loc.
proc name: New (/client/New)

this is wired and it dont give a error line any clue what it means


No need to post all of that when clearly the runtimes are repeating themselves with irrelevant differences.

Could you show us turf/screen/New()?
In response to Artemio
turf
screen
icon='title screen.png'
client
New()
usr.loc=locate(6,6,2)
..()


there is no turf/screen/New(0 but there is this.
In response to National Guardsmen
eh why was this moved this is a codeing error or someting now a how to.
In response to National Guardsmen
Please show us obj/New() .
In response to Mysame
obj/menu/arrow
icon='arrow.dmi'
layer=MOB_LAYER+7
New(client/C)C.screen+=src

obj
back/icon='back.dmi'
text/icon='font.dmi'
text2/icon='font.dmi'
layer=MOB_LAYER+5
New(client/C) C.screen+=src

this came form my edited version of reakwons DW_onscreen_text liabry/demo thing i see nothing wrong with any of it but its saying thats whats wrong.
In response to National Guardsmen
Runtime Errors like this are very hard to find with DEBUG mode off. Please turn on DEBUG mode by putting <code>#define DEBUG</code> somewhere in your code, and recreate this error.
In response to Mega fart cannon
runtime error: undefined variable /turf/screen/var/screen
proc name: New (/obj/New)
source file: Misc..dm,84
usr: null
src: the start (/obj/start)
call stack:
the start (/obj/start): New(the screen (2,5,2) (/turf/screen))
In response to Artemio
In response to Artemio
There is no object new the only objects i have in my game i have POSTED.
In response to National Guardsmen
It is happening because of this:

obj
New(client/C) C.screen+=src


You're assuming the argument is a client, when it could be an actual location where the object is being created on the map. You should never do that for all objs, since all objs aren't on the hud. You should only do that for specific path types, or don't use the first argument (since it is where the object will be created by default. In other words, make a new path type just for hud objects.

~~> Unknown Person