Page 1 of 1

Need help getting 2 bombs to blow

Posted: Fri Jul 15, 2005 6:49 pm
by twdgp
The problem i have is the axis can not defuse the bombs when the allies have planted them, also when both bombs have exploded the map does not restart. I have looked through many script files & i'm not certain what i have done wrong. The problem is in-front of my eyes.

Any help or advise would be welcome thank you.
below is the script

// Initialize the exploder subsystem
thread global/exploder.scr::main
level waittill spawn
// Axis like the bombs unplanted
level.defusing_team = "axis
// Allies will try to plant the bombs
level.planting_team = "allies"
// Number of targets in this map
level.targets_to_destroy = 2
// Default damage of the bomb
level.bomb_damage = 200
// Default radius of bomb blast
level.bomb_explosion_radius = 2048
// Set the parameters for round based match
level.dmrespawning = 0 // 1 or 0 (0=no respawn)
level.dmroundlimit = 5 // round time limit in minutes
level.clockside = axis // axis, allies, kills, or draw
// Comment out this line to be able to set the bomb
// when alone on the map ( just for testing )
level waittill roundstart
$controlpanel_bomb thread global/obj_dm.scr::bomb_thinker
// "controlpanel_bomb" is the targetname of a bomb in Radiant
$coms_bomb thread global/obj_dm.scr::bomb_thinker
// "coms_bomb" is the targetname of a bomb in Radiant
thread allies_win_bom
// Start the win check thread for allies
// Start the win check thread for axis
$controlpanel_bomb thread axis_win_timer
$coms_bomb thread axis_win_timer

thread v2lift_mover
thread rocket_prep
thread ammohatch_mover
thread guardhatch_mover
thread phonehatch_mover

end // end of main

// Allied victory test
allies_win_bomb:
// While undestroyed objectives left
while(level.targets_destroyed < level.targets_to_destroy)
// chill out
waitframe
// No objectives left allies win
teamwin allies
end

// Axis victory test
axis_win_timer:
// At the end Axis win
level waittill axiswin
end

Re: Need help getting 2 bombs to blow

Posted: Fri Jul 15, 2005 7:21 pm
by Rookie One.pl
First, correct this typo:
twdgp wrote: // Axis like the bombs unplanted
level.defusing_team = "axis
You need another " after axis.
The rest appears to be correct. See if fixing this will help.

Post subject: Re: Need help getting 2 bombs to blow

Posted: Fri Jul 15, 2005 7:41 pm
by twdgp
Thank you I have corrected the line in the script file, I have not tested the map out yet but will be doing so later on. with the new script file in place.

Its crazy just a small thing like ( " ) this, I looked & looked but didnt see it.

Thanks again

Posted: Fri Jul 15, 2005 8:49 pm
by lizardkid
check your console for syntax errors too and see if you can figure it out ;)

Posted: Fri Jul 15, 2005 9:23 pm
by twdgp
Hi

i'm new to this mapping & scripting how do I check it out in the console

do I just open up console & type in restart & read the errors that come up.


I have just done the above in console & did not get any error's but had loads of cashe model things, with leaving the ( " ) from the line ( "axis ) would that have shown up as a error for me.

Posted: Fri Jul 15, 2005 10:13 pm
by lizardkid
yes, when you first load a map it has to cache and precache everything it needs, so restarting clears all that out and leaves only the basics.

most likely you'll see something liek this

BAD TOKEN:
TOKEN_DOLLAR
$
on line 12

and you can go to line 12 in your script and hopefully that sign will look out of place and you can go correct it.

Posted: Fri Jul 15, 2005 11:26 pm
by twdgp
Well all seems ok didnt get any Errors or tokens so I think the map is going to be fine. I have not run it yet in multiplayer mode but will be testing it out tomorrow with luck. The map runs fine in offline mode.

Just to let you know the map has 2 obj.

1 is to destroy / blow up the v2 control room
2 obj is to destroy the communications room

while all this is going on I have a V2 rocket moving below ground through gates & stuff into a silo ready for lift off.

after about a min or so the engines sound & the v2 takes to the sky. Its taken me sometime to work out how to add wave files & get the v2 movement correct or lets say i'm happy with it.

It all works at the moment & i have set the roundtime limit for 10 mins.

Just hope the map will be played lol.

thank you again

Posted: Sat Jul 16, 2005 6:23 am
by bdbodger
thread allies_win_bom
found another typo missing b on bomb

Posted: Sat Jul 16, 2005 7:52 am
by twdgp
I'm making real stupid errors here missing letters off, I must take more time & concentrate on what i'm typing or not typing.

Thank you

Posted: Sat Jul 16, 2005 8:58 am
by lizardkid
dont worry about it, everyone makes these mistakes.

since your script isnt very big i suggest jsut going through it word for word and checking that you spelled everything right, the human mind sometimes skims oevr things even if they're wrong... like i bet you didnt catch that one?

:lol: sorry, but it jsut goes to prove ;)

I'd do it now but i'm extremely tired. :P

thanks all

Posted: Sat Jul 16, 2005 5:57 pm
by twdgp
I just like to say thank you to all of you that have helped me with my script errors, easy & silly errors to make but it happens.

The map runs great with a few people on it, in a few days time I will upload it to our clan & give it a full testing.

Thanks very much again to you all.

When I have tested it out over the week would you like to see the map. I'm not brilliant at building but i have got the map to do what I want it to do & i have a V2 rocket flying.