ID:147237
 
Allrighty... i finally got my blocks to spawn and fall... but now i want em to crush teh people!! okay so im trying to use the bump proc to do it. That "could" be my first mistake although i doubt it.
Here is the proc:
Bump(atom/mob, mob/M as mob)
if(M.man == 1)
M.icon_state = "gman"
M.density = 0
if(M.dog == 1)
M.icon_state = "gdog"
M.density = 0
if(M.dman == 1)
M.icon_state = "gwman"
M.density = 0
else
return


when i compile its fine but at runtime it gives me tons of errors:
runtime error: Cannot read null.man
proc name: Bump (/obj/blocks/red/Bump)
usr: 0
src: the red (/obj/blocks/red)
call stack:
the red (/obj/blocks/red): Bump(the dirt (16,1,1) (/turf/dirt), null)
runtime error: Cannot read null.man
proc name: Bump (/obj/blocks/red/Bump)
usr: 0
src: the red (/obj/blocks/red)
call stack:
the red (/obj/blocks/red): Bump(Tabu34 (/mob), null)
runtime error: Cannot read null.man
proc name: Bump (/obj/blocks/red/Bump)
usr: 0
src: the red (/obj/blocks/red)
call stack:
the red (/obj/blocks/red): Bump(the dirt (16,1,1) (/turf/dirt), null)
runtime error: Cannot read null.man
proc name: Bump (/obj/blocks/red/Bump)
usr: 0
src: the red (/obj/blocks/red)
call stack:
the red (/obj/blocks/red): Bump(Tabu34 (/mob), null)
runtime error: Cannot read null.man
proc name: Bump (/obj/blocks/red/Bump)
usr: 0
src: the red (/obj/blocks/red)
call stack:
the red (/obj/blocks/red): Bump(the dirt (16,1,1) (/turf/dirt), null)
runtime error: Cannot read null.man
proc name: Bump (/obj/blocks/red/Bump)
usr: 0
src: the red (/obj/blocks/red)
call stack:
the red (/obj/blocks/red): Bump(Tabu34 (/mob), null)
runtime error: Cannot read null.man
proc name: Bump (/obj/blocks/green/Bump)
usr: 0
src: the green (/obj/blocks/green)
call stack:
the green (/obj/blocks/green): Bump(the dirt (7,1,1) (/turf/dirt), null)
runtime error: Cannot read null.man
proc name: Bump (/obj/blocks/blue/Bump)
usr: 0
src: the blue (/obj/blocks/blue)
call stack:
the blue (/obj/blocks/blue): Bump(the green (/obj/blocks/green), null)
runtime error: Cannot read null.man
proc name: Bump (/obj/blocks/red/Bump)
usr: 0
src: the red (/obj/blocks/red)
call stack:
the red (/obj/blocks/red): Bump(the dirt (16,1,1) (/turf/dirt), null)
runtime error: Cannot read null.man
proc name: Bump (/obj/blocks/red/Bump)
usr: 0
src: the red (/obj/blocks/red)
call stack:
the red (/obj/blocks/red): Bump(Tabu34 (/mob), null)
runtime error: Cannot read null.man
proc name: Bump (/obj/blocks/green/Bump)
usr: 0
src: the green (/obj/blocks/green)
call stack:
the green (/obj/blocks/green): Bump(the dirt (7,1,1) (/turf/dirt), null)
runtime error: Cannot read null.man
proc name: Bump (/obj/blocks/blue/Bump)
usr: 0
src: the blue (/obj/blocks/blue)
call stack:
the blue (/obj/blocks/blue): Bump(the green (/obj/blocks/green), null)
runtime error: Cannot read null.man
proc name: Bump (/obj/blocks/red/Bump)
usr: 0
src: the red (/obj/blocks/red)
call stack:
the red (/obj/blocks/red): Bump(the dirt (16,1,1) (/turf/dirt), null)
runtime error: Cannot read null.man
proc name: Bump (/obj/blocks/red/Bump)
usr: 0
src: the red (/obj/blocks/red)
call stack:
the red (/obj/blocks/red): Bump(Tabu34 (/mob), null)
runtime error: Cannot read null.man
proc name: Bump (/obj/blocks/green/Bump)
usr: 0
src: the green (/obj/blocks/green)
call stack:
the green (/obj/blocks/green): Bump(the dirt (7,1,1) (/turf/dirt), null)
runtime error: Cannot read null.man
proc name: Bump (/obj/blocks/blue/Bump)
usr: 0
src: the blue (/obj/blocks/blue)
call stack:
the blue (/obj/blocks/blue): Bump(the green (/obj/blocks/green), null)
runtime error: Cannot read null.man
proc name: Bump (/obj/blocks/green/Bump)
usr: 0
src: the green (/obj/blocks/green)
call stack:
the green (/obj/blocks/green): Bump(the dirt (13,1,1) (/turf/dirt), null)
runtime error: Cannot read null.man
proc name: Bump (/obj/blocks/blue/Bump)
usr: 0
src: the blue (/obj/blocks/blue)
call stack:
the blue (/obj/blocks/blue): Bump(the green (/obj/blocks/green), null)
runtime error: Cannot read null.man
proc name: Bump (/obj/blocks/red/Bump)
usr: 0
src: the red (/obj/blocks/red)
call stack:
the red (/obj/blocks/red): Bump(the dirt (16,1,1) (/turf/dirt), null)
runtime error: Cannot read null.man
proc name: Bump (/obj/blocks/red/Bump)
runtime error: Cannot read null.man
proc name: Bump (/obj/blocks/green/Bump)
runtime error: Cannot read null.man
proc name: Bump (/obj/blocks/blue/Bump)
runtime error: Cannot read null.man
proc name: Bump (/obj/blocks/green/Bump)
runtime error: Cannot read null.man
proc name: Bump (/obj/blocks/blue/Bump)
runtime error: Cannot read null.man
proc name: Bump (/obj/blocks/red/Bump)
runtime error: Cannot read null.man
proc name: Bump (/obj/blocks/red/Bump)
runtime error: Cannot read null.man
proc name: Bump (/obj/blocks/green/Bump)
runtime error: Cannot read null.man
proc name: Bump (/obj/blocks/blue/Bump)
runtime error: Cannot read null.man
proc name: Bump (/obj/blocks/green/Bump)
runtime error: Cannot read null.man
proc name: Bump (/obj/blocks/blue/Bump)
runtime error: Cannot read null.man
proc name: Bump (/obj/blocks/yellow/Bump)
runtime error: Cannot read null.man
proc name: Bump (/obj/blocks/red/Bump)
runtime error: Cannot read null.man
proc name: Bump (/obj/blocks/red/Bump)
runtime error: Cannot read null.man
proc name: Bump (/obj/blocks/green/Bump)
runtime error: Cannot read null.man
proc name: Bump (/obj/blocks/blue/Bump)
runtime error: Cannot read null.man
proc name: Bump (/obj/blocks/green/Bump)
runtime error: Cannot read null.man
proc name: Bump (/obj/blocks/blue/Bump)
runtime error: Cannot read null.man
proc name: Bump (/obj/blocks/yellow/Bump)
runtime error: Cannot read null.man
proc name: Bump (/obj/blocks/green/Bump)
runtime error: Cannot read null.man
proc name: Bump (/obj/blocks/red/Bump)
runtime error: Cannot read null.man
proc name: Bump (/obj/blocks/red/Bump)
runtime error: Cannot read null.man
proc name: Bump (/obj/blocks/green/Bump)
runtime error: Cannot read null.man
proc name: Bump (/obj/blocks/blue/Bump)
runtime error: Cannot read null.man
proc name: Bump (/obj/blocks/green/Bump)
runtime error: Cannot read null.man
proc name: Bump (/obj/blocks/blue/Bump)
runtime error: Cannot read null.man
proc name: Bump (/obj/blocks/yellow/Bump)
runtime error: Cannot read null.man
proc name: Bump (/obj/blocks/green/Bump)
runtime error: Cannot read null.man
proc name: Bump (/obj/blocks/red/Bump)
runtime error: Cannot read null.man
proc name: Bump (/obj/blocks/green/Bump)
runtime error: Cannot read null.man
proc name: Bump (/obj/blocks/blue/Bump)
runtime error: Cannot read null.man
proc name: Bump (/obj/blocks/red/Bump)
runtime error: Cannot read null.man
proc name: Bump (/obj/blocks/red/Bump)
runtime error: Cannot read null.man
proc name: Bump (/obj/blocks/green/Bump)
runtime error: Cannot read null.man
proc name: Bump (/obj/blocks/blue/Bump)
runtime error: Cannot read null.man
proc name: Bump (/obj/blocks/green/Bump)
runtime error: Cannot read null.man
proc name: Bump (/obj/blocks/blue/Bump)
runtime error: Cannot read null.man
proc name: Bump (/obj/blocks/yellow/Bump)
runtime error: Cannot read null.man
proc name: Bump (/obj/blocks/green/Bump)
runtime error: Cannot read null.man
proc name: Bump (/obj/blocks/red/Bump)
runtime error: Cannot read null.man
proc name: Bump (/obj/blocks/green/Bump)
runtime error: Cannot read null.man
proc name: Bump (/obj/blocks/blue/Bump)
runtime error: Cannot read null.man
proc name: Bump (/obj/blocks/green/Bump)
runtime error: Cannot read null.man
proc name: Bump (/obj/blocks/red/Bump)
runtime error: Cannot read null.man
proc name: Bump (/obj/blocks/red/Bump)
runtime error: Cannot read null.man
proc name: Bump (/obj/blocks/green/Bump)
runtime error: Cannot read null.man
proc name: Bump (/obj/blocks/blue/Bump)
runtime error: Cannot read null.man
proc name: Bump (/obj/blocks/green/Bump)
runtime error: Cannot read null.man
proc name: Bump (/obj/blocks/blue/Bump)
runtime error: Cannot read null.man
proc name: Bump (/obj/blocks/yellow/Bump)
runtime error: Cannot read null.man
proc name: Bump (/obj/blocks/green/Bump)
runtime error: Cannot read null.man
proc name: Bump (/obj/blocks/red/Bump)
runtime error: Cannot read null.man
proc name: Bump (/obj/blocks/green/Bump)
runtime error: Cannot read null.man
proc name: Bump (/obj/blocks/blue/Bump)
runtime error: Cannot read null.man
proc name: Bump (/obj/blocks/green/Bump)
runtime error: Cannot read null.man
proc name: Bump (/obj/blocks/red/Bump)
runtime error: Cannot read null.man
proc name: Bump (/obj/blocks/red/Bump)
runtime error: Cannot read null.man
proc name: Bump (/obj/blocks/green/Bump)
runtime error: Cannot read null.man
proc name: Bump (/obj/blocks/blue/Bump)
runtime error: Cannot read null.man
proc name: Bump (/obj/blocks/green/Bump)
runtime error: Cannot read null.man
proc name: Bump (/obj/blocks/blue/Bump)
runtime error: Cannot read null.man
proc name: Bump (/obj/blocks/yellow/Bump)
runtime error: Cannot read null.man
proc name: Bump (/obj/blocks/green/Bump)
runtime error: Cannot read null.man
proc name: Bump (/obj/blocks/red/Bump)
runtime error: Cannot read null.man
proc name: Bump (/obj/blocks/green/Bump)
runtime error: Cannot read null.man
proc name: Bump (/obj/blocks/blue/Bump)
runtime error: Cannot read null.man
proc name: Bump (/obj/blocks/green/Bump)
runtime error: Cannot read null.man
proc name: Bump (/obj/blocks/red/Bump)
runtime error: Cannot read null.man
proc name: Bump (/obj/blocks/blue/Bump)
runtime error: Cannot read null.man
proc name: Bump (/obj/blocks/red/Bump)
runtime error: Cannot read null.man
proc name: Bump (/obj/blocks/red/Bump)
runtime error: Cannot read null.man
proc name: Bump (/obj/blocks/green/Bump)
runtime error: Cannot read null.man
proc name: Bump (/obj/blocks/blue/Bump)
runtime error: Cannot read null.man
proc name: Bump (/obj/blocks/green/Bump)
runtime error: Cannot read null.man
proc name: Bump (/obj/blocks/blue/Bump)
runtime error: Cannot read null.man
proc name: Bump (/obj/blocks/yellow/Bump)
runtime error: Cannot read null.man
proc name: Bump (/obj/blocks/green/Bump)
runtime error: Cannot read null.man
proc name: Bump (/obj/blocks/red/Bump)
runtime error: Cannot read null.man
proc name: Bump (/obj/blocks/green/Bump)
runtime error: Cannot read null.man
proc name: Bump (/obj/blocks/blue/Bump)
BYOND Warning: further proc crash messages are being suppressed to prevent overload...

so....
i dunno what to do
plz help
Maybe you should, you know, read the errors.

runtime error: Cannot read null.man
the red (/obj/blocks/red): Bump(the dirt (16,1,1) (/turf/dirt), null)

Those are the important ones. The first is the error, and is rather straightforward. The second is the proc the error occurs in, Bump(), and the arguments it got passed: a dirt turf at (16,1,1), and null.
In response to Garthor
Well i kinda got rid of all of the errors that didnt have to do with me by changing Bump() to this:
Bump(atom/M, mob/P as mob)
if(istype(M,/mob))
if(P.man == 1)
P.icon_state = "gman"
P.density = 0
if(P.dog == 1)
P.icon_state = "gdog"
P.density = 0
if(P.dman == 1)
P.icon_state = "gwman"
P.density = 0
else
return
else
return

so now i get this error over and over:
runtime error: Cannot read null.man
proc name: Bump (/obj/blocks/green/Bump)
usr: 0
src: the green (/obj/blocks/green)
call stack:
the green (/obj/blocks/green): Bump(Tabu34 (/mob), null)


and i dunno whats wrong because in login i define the variable... i think:
    Login()
switch(input("Which Are You?" , "Race", text) in list ("Human","Dog","Wolf-Man"))
if("Human")
src.loc = locate(1,2,1)
world << "[src] logged in."
spawn(gravity) src.GravCheck() // Start the gravity.
if(src.key == "Tabu34"||src.key == "Darkdemonrad")
src.verbs += typesof(/mob/me/verb)
src.man = 1
src.dog = 0
src.dman = 0
..()
if("Dog")
icon_state = "dog"
src.loc = locate(1,2,1)
world << "[src] logged in."
spawn(gravity) src.GravCheck() // Start the gravity.
if(src.key == "Tabu34"||src.key == "Darkdemonrad")
src.verbs += typesof(/mob/me/verb)
src.dog = 1
src.man = 0
src.dman = 0
..()
if("Wolf-Man")
icon_state = "wolfman"
src.loc = locate(1,2,1)
world << "[src] logged in."
spawn(gravity) src.GravCheck() // Start the gravity.
if(src.key == "Tabu34"||src.key == "Darkdemonrad")
src.verbs += typesof(/mob/me/verb)
src.dman = 1
src.man = 0
src.dog = 0
..()


im confused now!
In response to Tabu34
runtime error: Cannot read <font size=7 color=red>null</font>.man
In response to Garthor
nevermind i fixed it