Page 1 of 1

consol errors fow working objective

Posted: Sun Mar 09, 2003 3:58 pm
by Bjarne BZR
I get these errors in the console from the exploder system, the objective works fine as far as I can see... but maby it is the cause of another problem I posted in the mapping forum?
consol wrote:----------------------Z-----------------------
self = distiller_bomb
self.target (flak 88 or other) =
println "self.target.destroyed_model = " self.target.destroyed_model (global/obj_dm.scr, 31)
println "self.target.destroyed_model = " self.target^

^~^~^ Script Error: There are 0 entities with targetname ''. You are using a command that requires exactly one.


self.target.destroyed_model = NIL
println "self.target.target (collision entity) = " self.target.target (global/obj_dm.scr, 32)
println "self.target.target (collision entity) = " self.target^

^~^~^ Script Error: There are 0 entities with targetname ''. You are using a command that requires exactly one.


self.target.target (collision entity) = NIL
self.trigger_name = distiller_trigger
self.exploder_set = 1
self.explosion_fx = models/fx/fx_explosion.tik
self.explosion_sound = NIL
self.killarea = groundzero
----------------------Z-----------------------
self.target.collisionent = self.target.target (global/obj_dm.scr, 40)
self.target.collisionent = self.target^

^~^~^ Script Error: There are 0 entities with targetname ''. You are using a command that requires exactly one.


self.target.collisionent = self.target.target (global/obj_dm.scr, 40)
self.target^

^~^~^ Script Error: There are 0 entities with targetname ''. You are using a command that requires exactly one.


self.target notsolid (global/obj_dm.scr, 41)
self.target ^

^~^~^ Script Error: There are 0 entities with targetname ''. You are using a command that requires exactly one.
...can anyon explain what causes these errors?
It looks like the bomb should have a target... what target would that be? This i someting I missed in my tytorial on objective bombs...

Posted: Sun Mar 09, 2003 4:06 pm
by Innkeeper
Try using parens and a +

println ("self.target.destroyed_model = " + self.target.destroyed_model)

Posted: Sun Mar 09, 2003 4:26 pm
by Bjarne BZR
Ehhh... thanx Innkeeper.... but the stuff that i showed in the post is written in the console by the exploder system... I don't think its a good idea for me to change anything in the exploder.scr file... :wink:

Posted: Sun Mar 09, 2003 4:36 pm
by jv_map
The error is caused by a flaw in the obj_dm script. It's not meant to be used for bombs without a target (model to blow up).

Uh well but it works ;).

Posted: Sun Mar 09, 2003 4:45 pm
by Bjarne BZR
Hmmm well thats a good explanation at least... :D

Posted: Mon Mar 10, 2003 6:17 am
by mohaa_rox
It means that your object has no targetname that you added in the script.

Posted: Mon Mar 10, 2003 2:19 pm
by Bjarne BZR
Rox, U R chrystal clear as ever... what R U talkling about :?:
mohaa_rox wrote:It means that your object has no targetname that you added in the script.
"It means" : What means?
"your object" : What object would that be?
"has no targetname that you added in the script" : What R U saying here?

I know English. Thats not the problem...

Rox, U know lots of cool s**t, and I like U, but U are often VERY unclear in your posts... try to be a bit more exact... and maby add a sentece or two to mape people understand what U R thinking... really...

Dont take this the wrong way, I'm just ryying to help ass all uderstand each other.

Posted: Mon Mar 10, 2003 2:24 pm
by mohaa_rox
:D Sorry about that mate.

Ok, "It means" means that your script error.

"your object" is any object you have to add in MOHRAD with a targetname that you add in your script, for example a flak with targetname "flak" which in your script appears as "$flak".

Better? :wink:

Posted: Mon Mar 10, 2003 3:00 pm
by Bjarne BZR
Yes, much better! :D

I understood that ( because I'm ever so smart :wink: ) but think of all the n00b mapper trying this... an expalnation like that would tell them nothing... as a .map admin you have a large responcibility to the hords of por sods coming here for some help on their first map :P