Script problem


(AAley) #1

I followed a tutorial for making obj: taking obj and carry them to somewhere else.
I think there is a problem with my script file:

game_manager
{
	spawn
	{
		// Set scenario information
		wm_axis_respawntime 15
		wm_allied_respawntime 10
		wm_set_round_timelimit 25
		wm_number_of_objectives 2

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


wm_set_defending_team 0
wm_setwinner 0

accum 1 set 0
accum 2 set 0
}


trigger objective1
{
wm_objective_status 2 1 
accum 2 set 1
wm_announce "Allied team can now play soccer!"
trigger game_manager checkgame
}

trigger axis_object_stolen
{
wm_objective_status 1 1
}

trigger axis_object_returned
{
wm_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
}
}

The game won’t start anymore, and it did before i added the obj. Is there anything wrong with this piece of code or did i made an mistake in radiant?

Thankyou


(DerSaidin) #2

That looks alright, have you got a script thingy for the gamemanager in radient?


(]UBC[ McNite) #3

What is the exact error message and where exactly happens the problem? Does ET not start, or is it just your map?


(AAley) #4

Der’saidin -> No idea, wanna tell me how? :smiley:

]UBC[ McNite -> Server starts fine, and when i start the map i get this:

Enable spawning!
********************
ERROR: G_ScriptAction_ObjectiveImage: status parameter required

********************
----- Server Shutdown -----

(Shaderman) #5

Please search for “status parameter required”. There’s only one other thread but it should answer your question :wink:


(AAley) #6

Hmm i still don’t get it ?


(Shaderman) #7

Keyword: “status parameter required”, “Search for all terms” checked:

http://splashdamage.com/index.php?name=pnPHPbb2&file=viewtopic&t=4369


(AAley) #8

Yes, i found that threat, but what is that third parameter ?


(Shaderman) #9
wm_objective_status <objective_number> <team> <status(0:blank|1:tick|2:cross)>
    Sets the tick or cross status overlay on the objective panel in the limbo menu for the specific objective.

Taken from the LDR.


(AAley) #10

I did that, ty,
but now it’s complaining again:


ERROR: SV_SetBrushModel: NULL


----- Server Shutdown -----

I swear i have no hidden entities not linked to anything :S


(kamikazee) #11

Probably an entity which consists of nothing more then an origin brush.
Search around on the easy ways to fix this.


(codejockey13) #12

ERROR: SV_SetBrushModel: NULL

I’ve received this error when I applied a drawable texture to a non-drawable brush. (If that made sense) I applied a texture to a func_constructible and the game doesn’t seem to like that. Check your func brushes out to see if you have one with a texture that’s drawable.


(AAley) #13

Nope, no textures applied.

Maybe I didn’t did the job right on adding the objective in radiant, can someone give me a nice tut for that? (Moving, smthing, no matter what)

TY


(codejockey13) #14

http://webpages.charter.net/ettutorial/goldcrateobj.zip

This is just like the 2 gold crates in gold rush. Will probably need some adjusting for your map. If you have only one objective then change the count key to 1 and clean up the script.


(]UBC[ McNite) #15

Check out the video tutorial “Einfaches Objective”

http://www.level-designer.de/index.php?option=com_remository&Itemid=37&func=selectcat&cat=5

You need to register to download. And the voice from the off is in german, but its totally sufficient to watch him building the objective and stuff.


(AAley) #16

Strange, i moved the bars etc a lil’ and now when i load the map et crashes, what could be the problem?


(AAley) #17

nvm i fixed it