consol errors fow working objective

Post your scripting questions / solutions here

Moderator: Moderators

Post Reply
Bjarne BZR
Site Admin
Posts: 3298
Joined: Wed Feb 05, 2003 2:04 pm
Location: Sweden
Contact:

consol errors fow working objective

Post 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...
Admin .MAP Forums
Image
Head above heels.
Innkeeper
Colonel
Posts: 475
Joined: Mon Nov 25, 2002 10:13 pm
Location: NC, USA (about 7.5 klicks from the capital dome)
Contact:

Post by Innkeeper »

Try using parens and a +

println ("self.target.destroyed_model = " + self.target.destroyed_model)
Bjarne BZR
Site Admin
Posts: 3298
Joined: Wed Feb 05, 2003 2:04 pm
Location: Sweden
Contact:

Post 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:
Admin .MAP Forums
Image
Head above heels.
jv_map
Site Admin
Posts: 6521
Joined: Tue Sep 03, 2002 2:53 pm
Location: The Netherlands
Contact:

Post 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 ;).
Image
Bjarne BZR
Site Admin
Posts: 3298
Joined: Wed Feb 05, 2003 2:04 pm
Location: Sweden
Contact:

Post by Bjarne BZR »

Hmmm well thats a good explanation at least... :D
Admin .MAP Forums
Image
Head above heels.
User avatar
mohaa_rox
Field Marshal
Posts: 2760
Joined: Mon Nov 11, 2002 7:05 am
Contact:

Post by mohaa_rox »

It means that your object has no targetname that you added in the script.
Live to map, not map to live.
-mohaa_rox, .map
moderator
Bjarne BZR
Site Admin
Posts: 3298
Joined: Wed Feb 05, 2003 2:04 pm
Location: Sweden
Contact:

Post 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.
Admin .MAP Forums
Image
Head above heels.
User avatar
mohaa_rox
Field Marshal
Posts: 2760
Joined: Mon Nov 11, 2002 7:05 am
Contact:

Post 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:
Live to map, not map to live.
-mohaa_rox, .map
moderator
Bjarne BZR
Site Admin
Posts: 3298
Joined: Wed Feb 05, 2003 2:04 pm
Location: Sweden
Contact:

Post 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
Admin .MAP Forums
Image
Head above heels.
Post Reply