Need help getting 2 bombs to blow

Post your scripting questions / solutions here

Moderator: Moderators

Post Reply
twdgp
Private
Posts: 6
Joined: Fri Jul 15, 2005 6:36 pm

Need help getting 2 bombs to blow

Post 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
Rookie One.pl
Site Admin
Posts: 2752
Joined: Fri Jan 31, 2003 7:49 pm
Location: Nowa Wies Tworoska, Poland
Contact:

Re: Need help getting 2 bombs to blow

Post 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.
Admin
Image
Image
Honour guide me.

here's my stuff - inequation.org | here's where I work - thefarm51.com
twdgp
Private
Posts: 6
Joined: Fri Jul 15, 2005 6:36 pm

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

Post 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
lizardkid
Windows Zealot
Posts: 3672
Joined: Fri Mar 19, 2004 7:16 pm
Location: Helena MT

Post by lizardkid »

check your console for syntax errors too and see if you can figure it out ;)
Moderator

۞
Abyssus pro sapientia
Olympus pro Ignarus
۞

AND STUFF™ © 2006
twdgp
Private
Posts: 6
Joined: Fri Jul 15, 2005 6:36 pm

Post 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.
lizardkid
Windows Zealot
Posts: 3672
Joined: Fri Mar 19, 2004 7:16 pm
Location: Helena MT

Post 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.
Moderator

۞
Abyssus pro sapientia
Olympus pro Ignarus
۞

AND STUFF™ © 2006
twdgp
Private
Posts: 6
Joined: Fri Jul 15, 2005 6:36 pm

Post 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
User avatar
bdbodger
Moderator
Posts: 2596
Joined: Tue Feb 25, 2003 7:34 am
Location: canada
Contact:

Post by bdbodger »

thread allies_win_bom
found another typo missing b on bomb
Image
twdgp
Private
Posts: 6
Joined: Fri Jul 15, 2005 6:36 pm

Post 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
lizardkid
Windows Zealot
Posts: 3672
Joined: Fri Mar 19, 2004 7:16 pm
Location: Helena MT

Post 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
Moderator

۞
Abyssus pro sapientia
Olympus pro Ignarus
۞

AND STUFF™ © 2006
twdgp
Private
Posts: 6
Joined: Fri Jul 15, 2005 6:36 pm

thanks all

Post 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.
Post Reply