http://developer.byond.com/forum/ index.cgi?action=message_read&id=549224&forum=3&view=1
Ok the third take on my little learning spree
Gate
icon='PGate.dmi'
var/address=""
var/active=0
var/busy=0
var/obj/Stargate/Gate/G
var/obj/DHD/D
Bumped(atom/O)//line 68
if(G.address==D.current)
src.loc = locate(G.x,G.y-1,G.z)
atom/proc/Bumped(atom/movable/bumped_by)
atom/movable/Bump(atom/O)
if(O) O.Bumped(src)
runtime error: Cannot read null.address
proc name: Bumped (/obj/Stargate/Gate/Bumped)
source file: Stargates.dm,68
usr: Yorae (/mob)
src: Gate (/obj/Stargate/Gate)
call stack:
Gate (/obj/Stargate/Gate): Bumped(Yorae (/mob))
Yorae (/mob): Bump(Gate (/obj/Stargate/Gate))
In my DHD i made the gate solid after you finish dialing so you can bump it after the gate activation, but when i bump the gate i get an runtime error. I've tracked down the error to the above code. I'm really sure i was right on this one but i guess not.
Check that both G and D are being set correctly. It's likely one of them is null, which would give you a "cannot read null.[var]" error.