Apolyton Archive  |  Preserved copy of the Apolyton Civilization Site and its forums as they stood in September 2005. Read-only; nothing here can be posted to or replied to.  |  Forum index |  About this archive |  The 1998–2001 UBB forums
Today on Apolyton WARDELL INTERVIEW PROMO A.C.S. HISTORY CHAPTER 4 GET CIV4 /w FREE PLUS! A.C.S. PHOTO GALLERY GET A.O.M. V1.1
Apolyton Civilization Forums
main| civ2| civ3| civ4| smac| ctp2| ron| moo3| galciv| galciv2| alt| about|
ApolytonPLUS | register | search | faq | new posts | pm (-/-) | upload | members
hall of fame new! | civgroups | civgroups news | interviews | the column | radio | chat | directory | news | store | PLUS
Apolyton Civilization Forums : Powered by vBulletin version 2.0.3 Apolyton Civilization Forums > Civilization: Call To Power > CtP-General/Help/Strategy > How to fix the Cruise Missle bug?
Show a Printable Version | Email This Page to Someone! | Receive updates to this thread | Report this to Apolyton news!
12.Sep: `CTP CHALLENGE LADDER` - SEPTEMBER UPDATE
09.Sep: EARLY BUILD SPRITE EDITOR
02.Aug: `SUPERLEAGUE` SIGN-UP
CivGroups
Apolyton Storywriters' Guild (56): Not a Member - Join

bottom of page
  - CIVILIZATION: CALL TO POWER @ GAMESTOP $9.99 - CIVILIZATION: CALL TO POWER @ AMAZON $9.99
Author
Thread    < Last Thread     Next Thread > Post New Thread     Post A Reply
Dida is offline Dida
Prince

Jan 2000
time: 05:12
Post  Old Post 19-05-2000 18:57 Visit Dida's homepage!
Edit/Delete Message Reply w/Quote
#1 Report this post to a moderator
How to fix the Cruise Missle bug? Support Apolyton, buy Galactic Civilizations

I noticed that the Cruise Missle unit is not working right. Because if you have a City/Air Base/Cruiser near enough, you could actually use your Cruise Missle to 'bombard' the enemy and than refuel the missle to be reused the next turn. In real life, a Missle could never be used more than once.(like Nukes, they blows themself up went attacking) But somehow this unit doesn't work the same way as a nuke does.
So any idea about fixing it?

TheBirdMan is offline TheBirdMan
Emperor
A real Master of CTP-PBEM - together with all the others.....
Sep 1999
time: 05:12
Post  Old Post 22-05-2000 11:13
Edit/Delete Message Reply w/Quote
#2 Report this post to a moderator
Inflate your Upload Space

Have noticed the same (actually I'm using the little undocumented "feature" when the AIs are too aggressive).

Have not tried to make any solutions on that, but what about the settings for bombard_rounds? As far as I remember, default values are 30 (20?). What if value is changed to 1?

Dida is offline Dida
Prince

Jan 2000
time: 05:12
Post  Old Post 22-05-2000 20:54 Visit Dida's homepage!
Edit/Delete Message Reply w/Quote
#3 Report this post to a moderator
Full PM-box? Change here!

what does the value 'bombard_round' does?

MadWoodster is offline MadWoodster
Warlord
A wierd and mad place called Southampton
Jan 2000
time: 05:12
Post  Old Post 23-05-2000 09:41 Visit MadWoodster's homepage!
Edit/Delete Message Reply w/Quote
#4 Report this post to a moderator
Tired of ads?

It is probably how many rounds of combat are simulated by a bombard strike. Remember of course these are one sided rounds and aren't shown, I would imagine therefore reducing it would reduce the effectiveness of a bombardment.

Dida is offline Dida
Prince

Jan 2000
time: 05:12
Post  Old Post 23-05-2000 07:36 Visit Dida's homepage!
Edit/Delete Message Reply w/Quote
#5 Report this post to a moderator
Suffering from ads?

there is no way to make it works like a nuke just without pollution?

Atahualpa is offline Atahualpa
Emperor
Hawthrone
Mar 1999
time: 06:12
Post  Old Post 23-05-2000 20:26 Visit Atahualpa's homepage!
Edit/Delete Message Reply w/Quote
#6 Report this post to a moderator
Support Apolyton, buy Civilization: The Boardgame

Cant be that hard to do that with Slic! After Bombard is done, kill the unit. I am no SLIC expert but simply from the logic it should be possible.

However it gets more difficult when you attack normaly with a cruise missle. Or when you stack it with others and then attack. This way, cruise missles wont work anymore.
*wonders whats happening when you attack with a stacked nuke*

So, cruise missles may not be stacked but you can load them on subs or Missle-destroyers for example.

Ata

Dida is offline Dida
Prince

Jan 2000
time: 05:12
Post  Old Post 23-05-2000 20:59 Visit Dida's homepage!
Edit/Delete Message Reply w/Quote
#7 Report this post to a moderator
Support Apolyton, pre-order Civilization IV

I guess there are many SLIC expert here, they probably can help, is SLIC something like C++ ?

St Swithin is offline St Swithin
Chieftain
Santa Monica, CA USA
Apr 1999
time: 05:12
Lightbulb  Old Post 24-05-2000 02:03 Visit St Swithin's homepage!
Edit/Delete Message Reply w/Quote
#8 Report this post to a moderator
Support Apolyton buy from Amazon

SLIC is a C-like language. In CTP, there are a lot of kludges that make it work pretty well. The CTP2 version is also a C-like language, only more so than CTP's. For example, to create a function in CTP, you would put the script into an aborted message box:

messagebox 'Blah'
{
Abort();
Do {stuff}
}

In CTP2, it would look like this:

void_f Blah()
{
Do {stuff}
return;
}

SLIC has evolved into a much more powerful tool in CTP2. We are also trying to work out an interface that will allow non-programmer type people to create scripts for scenarios. More to come.

Locutus is offline Locutus
ACS CTP1/2 Manager & Civ4 Co-Manager
Hengelo, The Netherlands
Nov 1999
time: 06:12
Post  Old Post 26-05-2000 18:53 Visit Locutus<br><img src=/forums/images/staff-icon.gif>'s homepage!
Edit/Delete Message Reply w/Quote
#9 Report this post to a moderator
Increase the size of your Attachments

With all due respect, St Swithin, but I don't think that's what these people wanted to know (though I very much like the info about CtP2 being a SLIC guru ). I think these people just wanted a fix to the missile bug.

Well, Ata, you're absolutely right, it should be a piece of cake through SLIC! Now why didn't I think of that?
Anyway, here's the code that *should* do the trick. Mind that I'm at my university right now and can't try it out:

code:
trigger 'MissileBugFix' when (special.attacked) { if (unit.1 = UnitType("UNIT_CRUISE_MISSILE")) { KillUnit(unit.1); } }


To get this to work, open the script.slc file in the correct folder (if your mod is in a scenario folder it would be [ctp_folder]\scenarios\[scen_name]\ctp_data\gameda
ta or if the mod overwrote your original game files it's in [ctp_folder]\ctp_data\gamedata - mind that I could be slightly wrong about the names, I'm doing this from the top of my head) and past this code into the file (just in the top of the file would suffice, any other place as well, as long as you don't mix any of the existing triggers up). Well hope that helps/works ,

Locutus

PS Dida, you'd be surprised to see how little SLIC experts there are, even though it's IMHO not hard to learn (though I'm a programmer and hence biased).
[This message has been edited by Locutus (edited May 26, 2000).]

Locutus is offline Locutus
ACS CTP1/2 Manager & Civ4 Co-Manager
Hengelo, The Netherlands
Nov 1999
time: 06:12
  Old Post 27-05-2000 20:54 Visit Locutus<br><img src=/forums/images/staff-icon.gif>'s homepage!
Edit/Delete Message Reply w/Quote
#10 Report this post to a moderator
Increase the size of your Attachments

Stupid me, it seems that I can't make even the simplest trigger without making at least three mistakes (of which two are plain stupid). Well, here a working and tested version:

code:
TypeUnit missile; trigger 'MissileBugFix' when (special.bombarded) { if (unit.type == UnitType("UNIT_CRUISE_MISSILE")) { missile = unit; EnableTrigger('MissileBugFixTimer'); StartTimer(1, 1); } } trigger 'MissileBugFixTimer' when (timer.expired) { KillUnit(missile); DisableTrigger('MissileBugFixTimer'); }


Let me know if anyone has any problems,

Locutus

Flyercraft is offline Flyercraft
Chieftain
St-Luc , Qc , Canada
Apr 2000
time: 00:12
Post  Old Post 01-06-2000 15:20 Visit Flyercraft's homepage!
Edit/Delete Message Reply w/Quote
#11 Report this post to a moderator
Support Apolyton, buy GURPS/ Alpha Centauri

Hi, I copied and pasted your lines in my script.slc file at the very end but it doesn't work, my cruise missiles can still bombard and return. Right now, I don't have much time but when I get back I'll test it again while trying different stuff.

Cya

Paul is offline Paul
Emperor
Zwolle, The Netherlands
Mar 1999
time: 06:12
Post  Old Post 01-06-2000 18:08 Visit Paul's homepage!
Edit/Delete Message Reply w/Quote
#12 Report this post to a moderator
Put an end to popups!

The code worked for me. I opened cheat mode to give myself a cruise missile and when I bombarded with it it got killed as planned.

Locutus is offline Locutus
ACS CTP1/2 Manager & Civ4 Co-Manager
Hengelo, The Netherlands
Nov 1999
time: 06:12
Red face  Old Post 01-06-2000 23:24 Visit Locutus<br><img src=/forums/images/staff-icon.gif>'s homepage!
Edit/Delete Message Reply w/Quote
#13 Report this post to a moderator
Support Apolyton buy from Amazon

Very strange, Flyercraft, it should work, especially since it does work for both Paul and me It'd be great if you could try again and if it still doesn't work, could you tell me some details about the situation: what mods do you use, do you use them over the standard game-files or in a scenario folder, what unit did you try to attack and under what terrain, etc.? I don't know what to look for so anything could be important.
Have others tried it yet and if so, did it work?

Locutus

Paul is offline Paul
Emperor
Zwolle, The Netherlands
Mar 1999
time: 06:12
Post  Old Post 02-06-2000 00:49 Visit Paul's homepage!
Edit/Delete Message Reply w/Quote
#14 Report this post to a moderator
Get a bigger avatar today!

One thing that could cause this problem: did you start a new game after changing the slic code? As far as I know changing to the slic script only affects new games and not old saved games.

Flyercraft is offline Flyercraft
Chieftain
St-Luc , Qc , Canada
Apr 2000
time: 00:12
Lightbulb  Old Post 02-06-2000 01:59 Visit Flyercraft's homepage!
Edit/Delete Message Reply w/Quote
#15 Report this post to a moderator
Got spare money?

Heh, actually the problem was that I was using a saved game to conduct tests. I remembered reading something saying that the user needed to start a new game for each new mod because the saved stored info about the codes . But after being able to use new mods with old games I thought they made a mistake saying that it won't work.

But now I know that it's the scripts that are saved! Anyway, thanks for helping even thought I made a wring test

  < Last Thread     Next Thread > Post New Thread     Post A Reply
All times are GMT. The time now is 05:12.
Apolyton Time is 00:12.
    top of page
Rate This Thread:
Forum Jump:
Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is ON
vB code is ON
Smilies are ON
[IMG] code is ON
 




Contact Us - Apolyton Civilization Site - Support Us!

Building a better Apolyton through better information. Click here and take our poll!
Non-US visitors, click here!

Powered by: vBulletin Version 2.0.3
Copyright ©2000, 2001, Jelsoft Enterprises Limited.

Page generated in 0.0429 seconds (88.71% PHP - 11.29% MySQL) with 44 queries
Page Loading Time:

Support Apolyton: Amazon USA | Amazon UK | Amazon DE | Amazon FR |
Support Apolyton and get FREE PLUS, Buy from Chips&Bits: Galactic Civilizations | Galactic Civilizations: Deluxe Edition | Call to Power 2 | Civilization: The Boardgame | GURPS/ Alpha Centauri | Alpha Centauri | Civilization IV | Civilization III: Complete |


Front Page | Civilization IV | Civilization III | Civilization II | Call to Power II | Alpha Centauri | Master of Orion III
Rise of Nations | Galactic Civilizations | Galactic Civilizations II | Misc
Alt.Civs | Civ I | C:CtP I | About | News | Directory | Apolyton Store | Forums | Chat | Columns | Interviews | Newsletter
Scenario League | CSC | Clash of Civs | Spanish Site | CtP Maps | Cradle of Civ | WesW's Ctp1/2 Site | Civ3 Haven

apolyton.net | apolyton.com | civilization2.net | civilization3.net | civilization4.net | civilizationiv.info | calltopower.net | galciv.net | galciv2.net | moo3.net