Omfg... Im so sick of this error.


(RazerMapper) #1

Ok this time it has a CMM1 and now i’m like wtf! Can someone please just help me out on this documents problem and i will send the .map over to you! Please just help me out :S

Xfire: inverted2007

Whoever helps will be credited in the mission objective info when the map loads.


(-SSF-Sage) #2

Omg… There’s billion tutorials, check them before asking. Have you ever heard someone saying: “Help us to help you”? You should post your entities and the script so we can see. You didn’t provide almost any info. We already told you what to do, so if it’s still not working, post those entities and the script ^^.-


(RazerMapper) #3

Growl :?


(89blitz) #4

Would of been nice if you kept this in your old topic :banghead:


(Avoc) #5

Post your .script file in here please.
Post your entities (the stealobject targetname, scriptname etc etc.)
Post what you want it do.


(S14Y3R) #6

…no doubt, is this the same error?

“What do you think, Mr.Spock?” I asked with utter disdain. As he raised his eyebrow he blessed us with his foresight, “think logically, jackass”

If you’re still getting “targetname not found” -what has that targetname? -what is targeting that targetname?

Enlighten us, growling noob.

Nobodies going to want their name on something you got half finished from somebody else. (you obviously didn’t build whatever it is) If you want to be profficient, start from scratch. There’s lots of noob tutorials around.

oh, and last-but-not-least:


(RazerMapper) #7

I also did start from scratch thank you very much, only the brushes and detailed bunkers. Only 1 Prefab which is one of the bunkers.

Ok here’s the problem, almost same as before but it’s CMM1 at the end

'trigger_objective_info' has a missing target 'documents_CMM1'

Now I’m going to post my current script:

game_manager
{
spawn
{
// Set scenario information

wm_mapdescription "get the secret documents and transmit them!"

wm_axis_respawntime 15
wm_allied_respawntime 15
wm_number_of_objectives 2
wm_set_round_timelimit 15


//we have 2 objectives, taking the documents and transmitting them:
wm_set_objective_status 1 0
wm_set_objective_status 2 0


wm_set_defending_team 0
wm_setwinner 0

accum 1 set 0
accum 2 set 0
}


trigger objective1
{
wm_set_objective_status 2 1
accum 2 set 1
wm_announce "Allied team has transmitted the documents!"
trigger game_manager checkgame
}

trigger axis_object_stolen
{
wm_set_objective_status 1 1
}

trigger axis_object_returned
{
wm_set_objective_status 1 0
}


trigger checkgame
{
accum 2 abort_if_not_equal 1
wm_setwinner 1
wait 1500
wm_endround
}
}


transmitter_obj
{
spawn
{
}
death
{
trigger game_manager objective1
}
}
targetname_of_ctf_flag
{
        spawn
        {
              wait 250
              alertentity targetname_of_ctf_flag
        }

   trigger stolen
   {
      
   }

   trigger returned
   {
      
   }

   trigger captured
   {
      
      wm_announce "doc stolen"
   }
}

Picture of Entities… I think :S lol

What I Want:

All I want it to do is the allies take documents, then they just secure at transmitter :slight_smile: My gate for the map is fine so I can leave that alone.

Now is it possible for me to get serious help now?


(-SSF-Sage) #8

Hmm… I already told you to REMOVE the target key of TOI. You didn’t. The message is saying that. Btw If you do have only one documents, why didn’t you keep it in one scriptblock. I’ll look at it bit more when I’m at home.


(Flippy) #9

If you see this error message:
‘trigger_objective_info’ has a missing target ‘documents_CMM1’

What can you understand from that…? --> That the ‘documents_CMM1’ target is not pointing at anything, obviously… So why do you still have a ‘documents_CMM1’ target, without any ‘documents_CMM1’ targetname?

You need to take these error messages literally and just see what they are trying to tell you. If you have to come to a forum and ask about every single error message you get, I can assure you your map isn’t going to be complete in 8 years…


(Avoc) #10

Ahahahahaha… oh god, thanks for the laugh, and excuse my rudeness. But that was really funny.


(-SSF-Sage) #11

Hmm… we will do it again. This is how I would do it. I will list only what target/targetname/scriptname to give it, if I don’t list it, don’t add the key for target/targetname/scriptname.

FIRST OF ALL. Add only 1 script_multiplayer and give it a scriptname game_manager. This will make your scriptfile “seen” (to work).


trigger_objective_info:

REMOVE THE TARGET KEY!
targetname  documents_toi                  This is used for hiding the TOI
scriptname documents_toi                    Isn't used but needs to have it

team_CTF_redflag:

scriptname documents                          Used for all scripting

trigger_flagonly_multiple:

scriptname transmitter                          not used here, added anyway

And here is the whole script I would use for it. Note I didn’t test it but I’m pretty sure it works with these assets. Hope I didn’t make a typo.

game_manager
{
spawn
{
// Set scenario information

wm_axis_respawntime 15
wm_allied_respawntime 15
wm_number_of_objectives 2
wm_set_round_timelimit 15

// wm_objective_status <objective> <team (0=Axis, 1=Allies)> <status (0=neutral 1=complete 2=failed)>
//we have 2 objectives, taking the documents and transmitting them:
wm_objective_status 1 1 0
wm_objective_status 2 1 0
wm_objective_status 1 0 0
wm_objective_status 2 0 0

wm_set_defending_team 0
wm_setwinner 0
}
}

//Document's scripts below
documents  //scriptname of the flag
{

	spawn
	{
	wait 200
	}

	trigger stolen
	{
        wm_objective_status 1 1 1
        wm_objective_status 1 0 2
	setstate documents_toi invisible  //hide the TOI when the documents are taken
	}

	trigger returned
	{
        wm_objective_status 1 1 2
        wm_objective_status 1 0 1
	wait 100
	setstate documents_toi default  //reveal the TOI as the obj is returned
	}	

	trigger captured  //documents transmitted
	{
        wm_objective_status 2 1 1  //not needed really since it can be seen for only 1,5 seconds
        wm_objective_status 2 0 2

	wm_announce "Allied team has transmitted the documents!" 
	wm_setwinner 1 //allies will win
        wait 1500
        wm_endround  //game ends

 	}

	trigger dropped
	{
	wm_announce "Allies have dropped the documents!"
	}
}

(RazerMapper) #12

Thank You So Much! All I have is two more errors to fix on my own this time.


(-SSF-Sage) #13

No problem.