Problem With HUD: Cannot read null.screen in Developer Help
|
|
I've had a problem with an HUD before that had worked up until now for some reason:
obj/Wright icon = 'Phoenix Wright Table Slam.dmi' icon_state = "" layer = 999 New(client/c) screen_loc="10,5" c.screen+=src Del(client/c) c.screen-=src mob/proc Wright() src << sound(null) src << sound('Investigation ~ Cornered 2004 Remix.mid') sleep(10) var/obj/Wright/W = new/obj/Wright W.icon_state = "1"
|
runtime error: Cannot read null.screen
proc name: New (/obj/Wright/New)
I have also tried:
obj/Wright icon = 'Phoenix Wright Table Slam.dmi' icon_state = "" layer = 999 New(client/c) screen_loc="10,5" c.screen+=src Del(client/c) c.screen-=src obj/var screen mob/proc Wright() src << sound(null) src << sound('Investigation ~ Cornered 2004 Remix.mid') sleep(10) var/obj/Wright/W = new/obj/Wright W.icon_state = "1"
|
And got a different runtime error, but no errors on the compiler.
What I need to know is what is wrong with it. I do not need any "spoon feeding". I recall on another post I wished for an explanation, not a string of code and got trolled by almost everyone saying I want to be spoon fed.
|