Hi can you help me fix this code i keep getting this runtime error in the game
runtime error: Cannot read null.Beam_Type
proc name: Blast (/mob/verb/Blast)
source file: Bea,s.dm,61
usr: Dave (/mob)
src: Dave (/mob)
call stack:
Dave (/mob): Blast()
Please Help me out Thanks In Advance And They You Goku72 For makin the code :)
obj
techniques
var
Beam_Type
Ki_Blast
Beam_Type=/obj/beams/Ki_Blast
beams
proc
Explode()
for(var/mob/M in view(src.Blast_Radius,src))
spawn()
M.hp=max(M.hp-max(round(src.damage/get_dist(src,M)),1),0)
M.deathcheck(src.Owner)
Moving()
while(src.moves)
src.moves--
var/turf/T=src.loc
step(src,src.dir)
if(src.Trail_Type)
if(T)
var/obj/beams/Beam=locate() in T.loc
if(!Beam)
Beam=new src.Trail_Type(T.loc)
Beam.Owner=src.Owner
Beam.dir=src.dir
sleep(src.Move_Timer)
del(src)
var
Blast_Radius=3
Move_Timer=10
damage=0
moves=10
tmp
mob
Owner
Trail_Type=/obj/beams/trail
head
Bump(atom/A)
if(ismob(A))
var/mob/M=A
M.hp=min(max(M.hp-src.damage,0),src.mhp)
spawn(1)
M.deathcheck(src.Owner)
del(src)
New()
spawn(src.Delete_Time)
del(src)
mob
var
obj
techniques
currtech
tmp
obj
beams
Blast
verb
Blast()
if(!src.Blast)
src.Blast=new src.currtech.Beam_Type(src.loc)
Blast.dir=src.dir
Blast.Owner=src
spawn(1)
Blast.Moving()
client
North()
if(mob.Blast)
mob.Blast.dir=NORTH
step(mob.Blast,mob.Blast.dir)
return
return ..()
South()
if(mob.Blast)
mob.Blast.dir=SOUTH
step(mob.Blast,mob.Blast.dir)
return
return ..()
East()
if(mob.Blast)
mob.Blast.dir=EAST
step(mob.Blast,mob.Blast.dir)
return
return ..()
West()
if(mob.Blast)
mob.Blast.dir=WEST
step(mob.Blast,mob.Blast.dir)
return
return ..()
Southwest()
if(mob.Blast)
return
return ..()
Southeast()
if(mob.Blast)
return
return ..()
Northwest()
if(mob.Blast)
return
return ..()
Northeast()
if(mob.Blast)
return
return ..()
Center()
if(mob.Blast)
spawn(1)
mob.Blast.Explode()
return
return ..()
obj
beams
Ki_Blast
icon = 'turfs.dmi'
icon_state="head"
density = 1
obj
beams
trail
icon = 'turfs.dmi'
icon_state="trail"
density = 1
ID:262070
Aug 5 2004, 5:57 pm
|
|
Aug 5 2004, 11:49 pm
|
|
Problem is it has KI in it and is DBZ-related.
|
I will assume line 61 is "src.Blast=new src.currtech.Beam_Type(src.loc)" For future reference, put a tag of some sort on the line in question.
Your problem there is that currtech is null. |
In response to Siientx
|
|
Please only post if you know whats wrong and dont bring up the fact its a dbz game.
|
In response to Dark_samurai
|
|
Just do us a favor and delete it. :)
|
In response to Siientx
|
|
Siientx wrote:
Just do us a favor and delete it. :) Just do us a favor and don't post irrelevant things ":)" |
Well you have a null.beam type its pretty self explanatory define the mob's beam type and that wont occur...
|
In response to Siientx
|
|
Just do me a favor and don't be gay. If you really care that much about a post on a beam for a dbz game you have some issues. It is just a show it is not like it's hurting anyone.
|
In response to Majinveku
|
|
When was the occasional smiley wrong? Please go die now. :)
|
In response to Siientx
|
|
I think he was refering to what you said. It has been said time and time again to stop posting anti-DBZ stuff. A great many people are tired of all the DBZ stuff and it is an unsightly epidemic, but there are multiple posts in the announcement section about not pestering them.
Alathon wrote in the announcements section: Any bashing/insulting of people or their interests on these forums is against the community standards and the rules set by Dantom. Bashing someone for creating a specific type of game is still discrimination. This includes things such as fangames. I see a lot of people jumping to insult someone who posts here, advertising their Dragonball game, or 'letting people know' they're making one. Whether a thread has any relevance or not, going off insulting them or their interests is still the same as insulting anyone or anything else. |