Null entity clarification please...

Post your scripting questions / solutions here

Moderator: Moderators

Splaetos
Major General
Posts: 730
Joined: Tue Jan 20, 2004 2:55 pm
Contact:

Null entity clarification please...

Post 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?
When I am king, you will be first against the wall~
Image
User avatar
tltrude
Chuck Norris
Posts: 4774
Joined: Sun Jul 07, 2002 4:03 am
Location: Oklahoma, USA
Contact:

script

Post 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.
Tom Trude,

Image
Splaetos
Major General
Posts: 730
Joined: Tue Jan 20, 2004 2:55 pm
Contact:

Post 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...
When I am king, you will be first against the wall~
Image
User avatar
tltrude
Chuck Norris
Posts: 4774
Joined: Sun Jul 07, 2002 4:03 am
Location: Oklahoma, USA
Contact:

script

Post by tltrude »

The error can come from any script, so are you using any "global" scripts? exploder.scr? obj_dm.scr?
Tom Trude,

Image
Splaetos
Major General
Posts: 730
Joined: Tue Jan 20, 2004 2:55 pm
Contact:

Post 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 =)
When I am king, you will be first against the wall~
Image
Bjarne BZR
Site Admin
Posts: 3298
Joined: Wed Feb 05, 2003 2:04 pm
Location: Sweden
Contact:

Post 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.
Admin .MAP Forums
Image
Head above heels.
Splaetos
Major General
Posts: 730
Joined: Tue Jan 20, 2004 2:55 pm
Contact:

Post 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.
When I am king, you will be first against the wall~
Image
User avatar
tltrude
Chuck Norris
Posts: 4774
Joined: Sun Jul 07, 2002 4:03 am
Location: Oklahoma, USA
Contact:

$player

Post 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.
Tom Trude,

Image
nuggets
General
Posts: 1006
Joined: Fri Feb 28, 2003 2:57 am
Location: U-england-K (england in the UK) :P
Contact:

Post 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
hope this helps, prob not cos it's all foreign 2 me :-/
Splaetos
Major General
Posts: 730
Joined: Tue Jan 20, 2004 2:55 pm
Contact:

Post 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 =)
When I am king, you will be first against the wall~
Image
nuggets
General
Posts: 1006
Joined: Fri Feb 28, 2003 2:57 am
Location: U-england-K (england in the UK) :P
Contact:

Post by nuggets »

i'd of pasted you next question in scripting again :P
hope this helps, prob not cos it's all foreign 2 me :-/
Splaetos
Major General
Posts: 730
Joined: Tue Jan 20, 2004 2:55 pm
Contact:

Post 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 =)
When I am king, you will be first against the wall~
Image
nuggets
General
Posts: 1006
Joined: Fri Feb 28, 2003 2:57 am
Location: U-england-K (england in the UK) :P
Contact:

Post by nuggets »

post ur whole script
hope this helps, prob not cos it's all foreign 2 me :-/
agentmad007
Brigadier General
Posts: 570
Joined: Tue Feb 24, 2004 3:52 pm

Post 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!!!!!!
nuggets
General
Posts: 1006
Joined: Fri Feb 28, 2003 2:57 am
Location: U-england-K (england in the UK) :P
Contact:

Post 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
hope this helps, prob not cos it's all foreign 2 me :-/
Post Reply