Page 1 of 2

Null entity clarification please...

Posted: Sun Mar 07, 2004 8:55 am
by Splaetos
^~^~^ Script Error: IsTouching used with a NULL entity.


Does this mean its not recognizing the trigger-multiple I am using with the proper target name?

Or does it mean something else?

script

Posted: Sun Mar 07, 2004 9:01 am
by tltrude
It means there is a script line somewhere that is looking for an entity (targetname) in the map that is not there. It should tell you which script the line is in, and the targetname it can't find.

Posted: Sun Mar 07, 2004 5:15 pm
by Splaetos
It cant find any of my trigger-multiples that are supposed to count players in an area. I'll have ot look closer at the script I stole from bjarne =)

I would understand any number of other errors in this script, but im not sure why it cant find the triggers that are named...

script

Posted: Sun Mar 07, 2004 7:26 pm
by tltrude
The error can come from any script, so are you using any "global" scripts? exploder.scr? obj_dm.scr?

Posted: Sun Mar 07, 2004 7:29 pm
by Splaetos
its in my script, and I know where, it is a if statement using several player istouching x lines linked with || where x = triggermultiples.

trying to make a liberation map work with more then one jail.

not that ive gotten it to work quite yet with one jail either =)

Posted: Sun Mar 07, 2004 8:52 pm
by Bjarne BZR
Trying one first, mey be a good idea... ;)

But check the targetnames you gave the triggers CAREFULLY again. Its VERY easy to make small spelling errors and make things go south at alarming speeds.

Posted: Sun Mar 07, 2004 9:49 pm
by Splaetos
i dont have the same problem with the more limitted jail o nthe ally side, but i have completely different problems, such as not working at all.

$player

Posted: Sun Mar 07, 2004 10:03 pm
by tltrude
Well, It my be that you have a "$" where there should not be one--like the example below. If it's a variable name like "local.player", there should be a line above like this.

local.player = parm.other

That line sets/resets the variable for the next player. If that line is not used, the variable value will be "NIL" the first time the thread is read.

It is that way for any variable name--it has to be set to something or it has NIL as its value. I don't know really know if NULL and NIL are interchangeable, but they both are used for "no value".

We can't help much without info.

Posted: Mon Mar 08, 2004 12:22 am
by nuggets
what i do if i have that problem is show the line and make sure i've spelt the target i'm looking for correctly

iprintln_noloc $targetname.size

if it's 0, that's where u've gone wrong

Posted: Mon Mar 08, 2004 2:10 am
by Splaetos
this works now, I was mostly curious if I was reading the message right, and it was an oversight...

ah but now for the real problem... but thats more a mapping issue I think so I will post it there...

unless i find anything in this next search =)

Posted: Mon Mar 08, 2004 9:46 pm
by nuggets
i'd of pasted you next question in scripting again :P

Posted: Tue Mar 09, 2004 1:52 am
by Splaetos
but I know that the method behind its scripting works =p

because it comes from a working liberation map =)

Not to say my script doesnt have errors =)

Posted: Tue Mar 09, 2004 1:55 am
by nuggets
post ur whole script

Posted: Tue Mar 09, 2004 2:06 am
by agentmad007
i m doing a lib map too is it possible to have a several jail lol !!!!!
can i have the script plz ? ??? and tell me a bit how it work plz ty

you seems to be good on this forum at scripting!!!!!!

Posted: Tue Mar 09, 2004 2:13 am
by nuggets
i don't know who you mean when you say "you" but i'll presume you mean someone else 8-)

anyway, if i had the script i'd let you have it, but as i don't i can't, but would make ya one if there's not a suitable one out there

and yes it would be possible to create multiple jail cells, but the script in it's current state may need editting