Need Help With Transmitting my Documents! :O


(iPood) #1

Hi all,

in my current project (First map that I have ever put objectives into) I have two transmitters and two sets of documents (one for each team).

Okay well this is the problem. Allies can take the Axis documents and transmit them and all the stuff comes up like the sound “Objective Captured” my wm_announce comes up and it ends the round setting the winner; yet when Axis transmit the Allied Documents the objectives dissapear but nothing happens… (it doesnt read the info from my script).

So I was thinking that the problem was to do with the script but the script looks to be in order. So I’m not sure what to do :oops:

Anyway, If someone could help me (go through it with me or whatever) it would be fantastic!!

This is all the entities from my map that are used with the Allied documents and Axis transmitter:


Axis Transmitter:

Objective Info:

classname		trigger_objective_info
customaxisimage		gfx/limbo/cm_transmitter
scriptname		axis_transmitter_toi
shortname		Axis Transmitter
spawnflags 		17
target			axis_transmitter_cm_marker
targetname		axis_transmitter_toi
track			the Axis Transmitter

Flagonly Multiple:

classname		trigger_flagonly_multiple
scriptname		axis_objectives	
spawnflags		2

Command Map Marker:

classname		misc_commandmap_marker
scriptname		axis_transmitter_cm_marker
spawnflags		1
targetname		axis_transmitter_cm_marker

Allied Documents:

Objective Info:

classname		trigger_objective_info
customalliesimage	gfx/limbo/cm_warplandocs
customaxisimage		gfx/limbo/cm_warplandocs
scriptname		allied_documents_toi
shortname		Allied Documents
spawnflags		18
target			allied_documents_cm_marker
targetname		allied_documents_toi	
track			the Allied Documents	

Blue Flag:

classname		team_CTF_blueflag
message 		the Allied War Plan Documents
model			models/mapobjects/sectretdocs/secretdocs.md3
scriptname		allied_documents

Command Map Marker:

classname		misc_commandmap_marker
scriptname		allied_documents_cm_marker
targetname		allied_documents_cm_marker

And here is the scripting:


allied_documents
{
spawn
{
wait 200
setstate allied_documents_captured invisible
setstate allied_documents_cm_marker default
}
trigger stolen
{
setstate allied_documents_cm_marker invisible
wm_objective_status 5 1 2
wm_objective_status 3 0 1
}
trigger dropped
{
wm_announce "Axis have dropped the Allied War Plan Documents!
}
trigger returned
{
setstate allied_documents_cm_marker default
wm_objective_status 5 1 1
wm_objective_status 3 0 0
}
trigger captured
{
wm_announce “Axis have transmitted the Allied War Plan Documents!”
setstate allied_documents_captured default
wm_objective_status 6 1 2
wm_objective_status 1 0 1
wm_teamvoiceannounce 0 “axis_hq_objective_captured”
wm_teamvoiceannounce 1 “axis_hq_objective_captured”
wm_setwinner 0
wait 1500
wm_endround
}
}


Thankyou for any help!!


(Donpedro) #2

Ipod :frowning:
I had this problem, too, but havent figured it out. type \developer 1, and transmit the obj, then ET will say some yellow error in the console.


(murka) #3

never tried obj like that. maybe ET wont allow to do such things


(ayatollah) #4

To do what? Transmit docs? Of course it does.

Tell me this, for triggers such as captured, returned, dropped, etc. Do you have an equivalent axis version? Ie. I think that the code needs to have seperate names like axis_captured and allied_captured. Otherwise the script just looks for the first instance.

This may not be the case but I can’t test the theory as I am in work! But if you look for a map called Mountain Radio, which is the same only it has 3 docs to capture, and look through that script to see how its done, it may help. Otherwise debug the script with /developer 1 and see what it says.

(NOTE: Mountain Radio can be found at http://www.vplclan.org/errol/maps/mountainradio_b1.zip big up da VPL!)


(murka) #5

isnt it better to debug with /g_scriptdebug 1?
it shows the scriptname and the thing that its going through.


(ayatollah) #6

Excuse me, that is actually what I meant to write… :oops:


(nUllSkillZ) #7

Ifurita has a great tutorial on his side.
http://planetwolfenstein.com/4newbies


(iPood) #8

Ooo thank you all for the comments and support :slight_smile:

I am sure I can get this thing working soon

I will download that map now 8)

And yeah I’ve already been through iffys objective tutorial.

That’s how I learnt how to make objectives :stuck_out_tongue: Hooray for iffys tutorials :lol:


(iPood) #9

Thanks for that mate, I will try that straight away! :smiley:


(iPood) #10

Okay this is just getting weirder by the minute…

I was playing by myself testing out the pretty cool map :stuck_out_tongue: with g_scriptdebug 1 and then I was axis, grabbed the documents and for a laugh I /killed while running back across the bridge and then it goes “Objective Captured” and ended the round and said Axis Won…

Very Strange… and then it came up with this in console:

“WARNING: BBOX Entity is being linked to world origin. This is probably a bug”

…as well as all the other stuff like wm_endround, wm_setwinner, wm_objectivestatus and all that kinda stuff…

Can someone give me a hand to fix this?

Thanks for all your help, especially you nullskillz, I have so many problems and you are always there :smiley: :smiley:

Cheers,
iPood


(shadrach) #11

Here’s the dual-doc script I ended up with when I made my map canyon3. It’s commented too so you can follow what’s going on…


game_manager
{
	spawn 
   	{
		remapshaderflush
		
		// Game rules
		wm_axis_respawntime	1
		wm_allied_respawntime	1
		wm_number_of_objectives	4
		wm_set_round_timelimit	30

		// Objectives
		//1 Capture axis docs
		//2 deliver axis docs
		//3 Capture Allied docs		
		//4 deliver Allied docs
		
		//Accums
		accum 1 set 1
		accum 2 set 1
	
		// Current main objectives for each team (0=Axis, 1=Allies)
		wm_objective_status 1 0 0
		wm_objective_status 1 1 0
		wm_objective_status 2 0 0
		wm_objective_status 2 1 0
		wm_objective_status 3 0 0
		wm_objective_status 3 1 0
		wm_objective_status 4 0 0
		wm_objective_status 4 1 0

		
		// Stopwatch mode defending team (0=Axis, 1=Allies)
		wm_set_defending_team	0

		// Winner on expiration of round timer (0=Axis, 1=Allies, -1=no winner at expiration)
		wm_setwinner	-1 

		wait 2000

   	}

//Objective Flags
trigger obj1  //Capture of Axis Docs
           	{
                       	//Add to objective accum 1 so we know that the objective has been completed
                       	accum 1 inc 1

                       	//Call function called checkgame in game_manager to check if the round has been won
                      	trigger game_manager allied_checkgame
           	}

trigger allied_checkgame // checks to see if Allied win requirements have been met
            {
                  	accum 1 abort_if_not_equal 2
                      	wm_setwinner 1
				wait 1500
                       	wm_endround
           	}

trigger obj2  //Capture of Allied Docs
           	{
                       	//Add to objective accum 1 so we know that the objective has been completed
                       	accum 2 inc 1

                       	//Call function called checkgame in game_manager to check if the round has been won
                      	trigger game_manager axis_checkgame
           	}

trigger axis_checkgame // checks to see if Axis win requirements have been met
            {
                  	accum 2 abort_if_not_equal 2
                      	wm_setwinner 0
				wait 1500
                       	wm_endround
           	}


} 

//End of Game_manager section
//Axis Docs. Allied team must capture and secure an Axis docs module containing critical codes
axis_docs //enter this as the scriptname value for the team_CTF_red/blueflag entity
{
	spawn
	{
	wait 200
	setstate axis_docs_captured invisible
	}

	trigger stolen

	{
	wm_announce "Allies have the docs! Allies have the docs!"
	setstate axis_docs_cm_marker invisible

	wm_objective_status 1 0 2
	wm_objective_status 1 1 1
	
	// *----------------------------------- vo ----*
		wm_teamvoiceannounce 0 "axis_obj_taken"
		wm_teamvoiceannounce 1 "allied_obj_taken"
	// *----------------------------------- vo ----*

	}

	trigger returned

	{
	wm_announce "The Axis have retrieved the docs"
	setstate axis_docs_cm_marker default

	wm_objective_status 1 0 1
	wm_objective_status 1 1 2
	
	// *----------------------------------- vo ----*
		wm_teamvoiceannounce 0 "axis_obj_returned"
		wm_teamvoiceannounce 1 "allied_obj_returned"
	// *----------------------------------- vo ----*

	}

	trigger captured

	{
	wm_announce "The Allied have transmitted the Axis docs"
	setstate axis_docs_red invisible
	setstate axis_docs_captured default

	wm_objective_status 2 0 2
	wm_objective_status 2 1 1
	
	// *----------------------------------- vo ------------------------------------------*
		wm_teamvoiceannounce 0 "axis_obj_lost"
		wm_teamvoiceannounce 1 "allied_obj_secured"
	// *----------------------------------- vo ------------------------------------------*

	}

}

//Allied Docs. Axis team must capture and secure an Allied docs module containing critical codes
allied_docs //enter this as the scriptname value for the team_CTF_red/blueflag entity
{
	spawn
	{
	wait 200
	setstate allied_docs_captured invisible
	}

	trigger stolen

	{
	wm_announce "Axis have the docs! Axis have the docs!"
	setstate allied_docs_cm_marker invisible

	wm_objective_status 3 0 2
	wm_objective_status 3 1 1
	
	// *----------------------------------- vo ----*
		wm_teamvoiceannounce 0 "allied_obj_taken"
		wm_teamvoiceannounce 1 "axis_obj_taken"
	// *----------------------------------- vo ----*

	}

	trigger returned

	{
	wm_announce "The Allied have retrieved the docs"
	setstate allied_docs_cm_marker default

	wm_objective_status 3 0 1
	wm_objective_status 3 1 2
	
	// *----------------------------------- vo ----*
		wm_teamvoiceannounce 0 "allied_obj_returned"
		wm_teamvoiceannounce 1 "axis_obj_returned"
	// *----------------------------------- vo ----*

	}

	trigger captured

	{
	wm_announce "The Axis have transmitted the Allied docs"
	setstate allied_docs_red invisible
	setstate allied_docs_captured default

	wm_objective_status 4 0 2
	wm_objective_status 4 1 1
	
	// *----------------------------------- vo ------------------------------------------*
		wm_teamvoiceannounce 1 "allied_obj_lost"
		wm_teamvoiceannounce 0 "axis_obj_secured"
	// *----------------------------------- vo ------------------------------------------*

	}

}

axis_objectives //enter this as the scriptname value for the single trigger_flagonly_multiples entity 
{

death
	{
		trigger game_manager obj1
	}
}

allied_objectives //enter this as the scriptname value for the single trigger_flagonly_multiples entity 
{

death
	{
		trigger game_manager obj2
	}
}


Your CTF entities have different scriptnames of course. Watch your accums, those are what makes the script work. When the docs are delivered(axis_objectives or allied_objectives), it triggers either “obj1” or “obj2” sections in game_manager. Definitely check Ifurita’s site though, I learned alot about scripting there.


(iPood) #12

Thanks shadrach, I edited all the stuff that needed to be edited for my map (I know what I’m doing :P) but unfortunately, it still doesn’t work.

I’m beginning to think it’s a fault in the map.
I tried deleting the ctf_blue_flag, the cm marker and the toi but still no such luck… hmm

Anyone else got any ideas?! :frowning:


(shadrach) #13

weird…make sure there’s no conflict w/any other accums you have in your script. Try making a boxmap w/my script and if it works, just copy/paste into yours. It works for me…dunno :frowning:


(iPood) #14

hmm yeah this is sad :frowning:

aww well I stopped with the map for a while…
now I’ve been working on my mapping script…
but if anyone has any ideas just pop up in here :slight_smile:

thanks,
iPood

:slight_smile: