Help, on a never-heard-of Error I would think.


(RazerMapper) #1

Well, well, well here we are again, It’s my first time almost finishing my map! Yet only one thing is holding me back…


Error Report:
'trigger_objective_info' has a missing target 'documents_CMM0'

How can I fix this issue in my map, I have no idea how… I have a map with two objectives dynamite the gate, and steal the documents. If you need a picture of where each is located, or the Press “N” Stuff. I will give you a picture of the Press “N” Thing :stuck_out_tongue:

I’m excited to release it but I just am going to have to wait tell I get this problem fixed.

Please Help Me :S


(Avoc) #2

Well, I cannot say that I’m any wonder at scripting myself, but I would guess that one of your ToI’s targets an entity that is not there. Or perhaps the entity has its scriptname spelled wrongly.


(-SSF-Sage) #3

Check the targetname of the documents! It should be documents_CMM0 I think. This is where the error comes from I guess.


(RazerMapper) #4

Ok, that didn’t work, can someone give me a prefab+script for a stealable objective??? :?


(-SSF-Sage) #5

Hmmmm… Wait a second. You were talking about stealable objective… The TOI is just for decoration there…

So remove the “target” key from the TOI and give it targetname (to hide it when you want) and scriptname.

Give the team_CTF_teamflag a scriptname where it is controlled from (what happens when stolen etc.).

Then make the trigger_flagonly_multiple. For it you only need scriptname and team. And then use the scriptname to execute script when the obj is captured.

This might sound complicated if you have no experience on scripting and you are doing it for first time but it is really simple. You can check goldrush for an example or search for tutorials.


(S14Y3R) #6

There’s that bug when using targetname in a ctf_flag(docs) that you need to “alertentity” at map start for it to work. that’s probably why your toi isn’t ‘seeing’ it. If you’re not setstating them at all, remove the targetname from the docs(but leave scriptname) and remove target from the toi, like sage said.

If you have to setstate them(multiple ctf_flag capturable at different points) add this spawn to your team_ctf_red/blueflag:


targetname_of_ctf_flag
{
        spawn
        {
              wait 250
              alertentity targetname_of_ctf_flag
        }

	trigger stolen 
	{
		
	}

	trigger returned 
	{
		
	}

	trigger captured 
	{
		
		wm_announce "doc stolen"
	}
}

(-SSF-Sage) #7

Yes, that is true what S14Y3R said. I did assume he uses only one tho. And also one thing is nessesery if you use multiple objectives, and you need to give them targetnames (to hide the others if you want that), is that you need that wait 250. I couldn’t get it to work if there wasn’t atleast 250 wait in total, after spawn.


(Flippy) #8

That bug with having to alertentity the objective is true, but it wouldn’t give an error afaik. It just doesn’t appear in the game, that’s all.


(RazerMapper) #9

Ok, I got another problem… I wanted a capturable flag by allies/axis but I just decided I would leave that out at this point, because I just want to get it up and ready to play :slight_smile:


(-SSF-Sage) #10

Yeah. That’s what happened to me. They just didn’t appear. But wait 250 and alertentity did the trick.


(RazerMapper) #11

What are you talking about :?


(Flippy) #12

Merely trying to help here, don’t worry…

S14Y3R mentioned a bug in the game that he thought could have caused this error. I just pointed out that this couldn’t be the case since the bug in question doesn’t throw an error. And {SSF}Sage agreed with me.


(S14Y3R) #13

another error you get when using a targetname in team_ctf_flags


(89blitz) #14

[/quote]

What is it with you and these weird pictures all of a sudern :lol:


(S14Y3R) #15

Aggravated boredom 8)

The SD ones have been around a while :smiley: feel free to use them, right-click/copy image location, heh heh.


(abina999) #16

Im not a even novice about scripting but, I think its because there is something wrong with .arena file coz its the objective_info… Or in the script you have forgot quotes (")…


(-SSF-Sage) #17

It has nothing to do with arena file. It is an entity called trigger_objective_info (the message, you are near… etc.), we call it the TOI.

The error comes because there’s the TOI and it has a target-key (“documends_CMM1” in this case), but there isn’t any targetname that it is targeting (a targetname with value “documends_CMM1”). But for this situation, there’s no use for that target-key and it needs to be deleted. unless you would use it for misc_commandmap_marker, but this can be set from the TOI itself with customimages etc.