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 > Miscellaneous > Archive > CtP2-Creation/AI/Mods/Scenarios-Archive > How to make "BombardRange" work?
Show a Printable Version | Email This Page to Someone! | Receive updates to this thread | Report this to Apolyton news!

bottom of page
  
Author
Thread    < Last Thread     Next Thread > Post New Thread     Post A Reply
FrenzyHuman is offline FrenzyHuman
Settler
Sydney
Mar 2002
time: 15:18
  Old Post 09-04-2002 10:26
Edit/Delete Message Reply w/Quote
#1 Report this post to a moderator
How to make &quot;BombardRange&quot; work? Support Apolyton buy from Amazon

I am thinking of set "BombardRange" from 1 to 2 or even more, so, for example, my Artillery can bombard enemy troops without moving beside the target troop. Can this be done? I tried modify units.txt, no luck. Pls help.

DDowell is offline DDowell
Chieftain
Västerås, Sweden
Nov 2001
time: 06:18
  Old Post 09-04-2002 10:58
Edit/Delete Message Reply w/Quote
#2 Report this post to a moderator
Inflate your Upload Space

Sorry FrenzyHuman, no can do.

Tried it myself a while ago and I also went here in hope of finding some info but they all said the same as I'm telling you now:

The bombardment range is fixed to 1 no matter what you enter in the .txt files. Maybe you could do something in SLIC (just guessing) like:
-create an artillery unit on a square next to target.
-use it to bombard nearby square.
-kill the newly created unit.

I don't know how that will work in general (AI?) but let
me know if you try it.

Martin Gühmann is offline Martin Gühmann
Emperor
Berlin, Germany
Mar 2001
time: 06:18
Post  Old Post 09-04-2002 15:49 Visit Martin Gühmann's homepage!
Edit/Delete Message Reply w/Quote
#3 Report this post to a moderator
Enter the AD-FREE zone

I would modify these entries in the unit.txt:

BombardRange 1

And it might help if you would modify this order especially the range entry in the order.txt:

PHP:

ORDER_BOMBARD {
  
Gold 0
  Move 100
  EventName
"BombardOrder"

  
LocalizedName str_ldl_order_bombard
  StatusText str_ldl_order_bombard

  TargetPretest
:EnemyCity
  UnitPretest_CanBombard  

  Range 1

  CPIcon
"upsi01.tga"
  
ButtonLocation 8
  DefaultIcon ICON_ORDER_BOMBARD
  
# FIXME - these are the default special action cursors
  
Cursor 7
  InvalidCursor 8
}



-Martin

FrenzyHuman is offline FrenzyHuman
Settler
Sydney
Mar 2002
time: 15:18
  Old Post 09-04-2002 17:50
Edit/Delete Message Reply w/Quote
#4 Report this post to a moderator
Support Apolyton buy from Amazon

Thank you DDowell, I understand what you said.

Thanks to Martin too, while I don't quite understand that block of PHP code, to be frank

Immortal Wombat is offline Immortal Wombat
Prince
in perpetuity
Dec 2000
time: 05:18
  Old Post 09-04-2002 18:38 Visit Immortal Wombat's homepage!
Edit/Delete Message Reply w/Quote
#5 Report this post to a moderator
Put an end to popups!

quote:
Originally posted by FrenzyHuman
Thanks to Martin too, while I don't quite understand that block of PHP code, to be frank

Its an extract from orders.txt

Martin was pointing out that you might want to find that extract, and chaneg the line:

code:
Range 1

To perhaps Range 2 in order for it to work.

Martin Gühmann is offline Martin Gühmann
Emperor
Berlin, Germany
Mar 2001
time: 06:18
Post  Old Post 09-04-2002 18:50 Visit Martin Gühmann's homepage!
Edit/Delete Message Reply w/Quote
#6 Report this post to a moderator
Browse Apolyton AD-FREE

quote:
Originally posted by FrenzyHuman
Thanks to Martin too, while I don't quite understand that block of PHP code, to be frank


Actual it isn't PHP code, I just used the PHP syntax highlighting feature of this feature, I could also use the simplw Quote or Code tag. You can find this piece of code in a file called Orders.txt (this time spelled correctly) in your ..\ctp2_data\defaut\gamedata\ folder, the same directory where you find the unit.txt. So what I actual suggested was to open the orders.txt with any editor e.g. notepad (if you want to modify the file for the original game, if you want to modify a file of Cradle, MedPack2, ApolytonPack or GoodMod you need to look for a file with a CRA_, MM2_, APOL_ or GM1_ prefix). Once you opend this file go to the ORDER_BOMBARD entry that I quoted above and modify the Range entry, I just would increase the number there and look what happens. Note maybe you have to modify every BombardRange entry in your unit.txt, too.
-Martin

FrenzyHuman is offline FrenzyHuman
Settler
Sydney
Mar 2002
time: 15:18
  Old Post 10-04-2002 05:43
Edit/Delete Message Reply w/Quote
#7 Report this post to a moderator
Support Apolyton buy from Amazon

Thank you all, now it's clear, I will try and see what happens.

Locutus is offline Locutus
ACS CTP1/2 Manager & Civ4 Co-Manager
Hengelo, The Netherlands
Nov 1999
time: 06:18
  Old Post 16-04-2002 17:17 Visit Locutus<br><img src=/forums/images/staff-icon.gif>'s homepage!
Edit/Delete Message Reply w/Quote
#8 Report this post to a moderator
Got spare money?

So? What happened?

Leonidas is offline Leonidas
King

May 2000
time: 05:18
  Old Post 17-04-2002 03:13
Edit/Delete Message Reply w/Quote
#9 Report this post to a moderator
Support Apolyton, buy Call to Power 2

quote:
Originally posted by Locutus
So? What happened?



lol

TheArsenal is offline TheArsenal
Prince
Sunny Southern California
Mar 2002
time: 21:18
  Old Post 17-04-2002 03:49
Edit/Delete Message Reply w/Quote
#10 Report this post to a moderator
Inflate your Upload Space

Yes, I'm curious how this comes out as well. It always struck me as strange that the artillery had such limited range.

Peter Triggs is offline Peter Triggs
Prince
Gone Fishin, Canada
Jan 2000
time: 05:18
  Old Post 17-04-2002 05:07
Edit/Delete Message Reply w/Quote
#11 Report this post to a moderator
Enter the AD-FREE zone

What puzzles me about that order that Martin posted above is "TargetPretest:EnemyCity". It doesn't seem to stop you from bombarding enemy units in the field.

Martin Gühmann is offline Martin Gühmann
Emperor
Berlin, Germany
Mar 2001
time: 06:18
Post  Old Post 17-04-2002 19:03 Visit Martin Gühmann's homepage!
Edit/Delete Message Reply w/Quote
#12 Report this post to a moderator
Browse Apolyton AD-FREE

I think this would only a problem if you only made a bombard goal for bombarding cities but Wes already fixed this by adding a bombard goal for units. By the way has someone a shure idea what these distance to Home/Enemy Boni lines could mean in addation to the short discription here on Apolyton?

-Martin


PHP:

GOAL_BOMBARD {
  
SquadClass:CanDefend
  SquadClass
:CanAttack
  SquadClass
:CanBombard

  TargetType
:City
  TargetOwner
:HotEnemy

  Execute    ORDER_BOMBARD

  ThreatBonus        
-100
  EnemyValueBonus        
-100 //WW from 100
  
AlliedValueBonus            0 //WW from 1000
  
PowerBonus                0 //WW from 150
  
DistanceToHomeBonus        15
  DistanceToEnemyBonus        15
  ChokePointBonus          100
  UnexploredBonus         
-999999
  ObsoleteArmyBonus            0
  TreaspassingArmyBonus        0

  ThreatenType
<img src="http://67.15.24.227/forums/images/smilies/biggrin.gif" border="0" alt="">estroyCity
  ThreatenBonus 5000

  ForceMatch
:Bombard

  TargetProtectionWonder WONDER_THE_FORBIDDEN_CITY
}

GOAL_BOMBARD_UNIT {        //WW this goal is used for bombarding enemy units
  
SquadClass:CanDefend
  SquadClass
:CanAttack
  SquadClass
:CanBombard

  TargetType
:AttackUnit    //WW added
  
TargetType:SpecialUnit    //WW added
  
TargetOwner:HotEnemy

  Execute    ORDER_BOMBARD

  ThreatBonus        
-100
  EnemyValueBonus        
-100 //WW from 100
  
AlliedValueBonus            0 //WW from 1000
  
PowerBonus                0 //WW from 150
  
DistanceToHomeBonus        15
  DistanceToEnemyBonus        15
  ChokePointBonus          100
  UnexploredBonus         
-999999
  ObsoleteArmyBonus            0
  TreaspassingArmyBonus        0

  ThreatenType
:None
  ThreatenBonus 0

  ForceMatch
:Bombard

  TargetProtectionWonder WONDER_THE_FORBIDDEN_CITY
}

Peter Triggs is offline Peter Triggs
Prince
Gone Fishin, Canada
Jan 2000
time: 05:18
  Old Post 18-04-2002 03:38
Edit/Delete Message Reply w/Quote
#13 Report this post to a moderator
Support Apolyton buy from Amazon

Both of those goals refer to "Execute ORDER_BOMBARD", which is where the pretest is. It's still puzzling.

"the short discription here on Apolyton? "

Do you mean the documentation or the discussion between WesW and Richard Myers?

Locutus is offline Locutus
ACS CTP1/2 Manager & Civ4 Co-Manager
Hengelo, The Netherlands
Nov 1999
time: 06:18
  Old Post 18-04-2002 05:29 Visit Locutus<br><img src=/forums/images/staff-icon.gif>'s homepage!
Edit/Delete Message Reply w/Quote
#14 Report this post to a moderator
Browse Apolyton AD-FREE

That *is* odd, Peter... maybe TargetPretest is defunct? I think I've seen the AI bombard units so it doesn't seem to be stopping it...

FrenzyHuman is offline FrenzyHuman
Settler
Sydney
Mar 2002
time: 15:18
  Old Post 18-04-2002 05:38
Edit/Delete Message Reply w/Quote
#15 Report this post to a moderator
Remove this text

Hi Guys,

I think the topic here was "if bombard range can be extended from 1 to 2",
not "if AI can bombard unit/city or not".

Am I right about this?

While there was no problem for AI to bombard unit or city in the original CTPII game,
as far as I experienced.

Back to bombard range, I still haven't got any luck to make it further than 1.

The solution to create a temporary unit close to target and bombard the target,
then kill the temporary unit is very complicated. Because of the terrain, for example,
you have a battle ship with bombard range 2 to bombard an inland city which is located
one square to the ocean, then how can you do that?
change the terrain as well while bombarding?

Martin Gühmann is offline Martin Gühmann
Emperor
Berlin, Germany
Mar 2001
time: 06:18
Post  Old Post 21-04-2002 00:51 Visit Martin Gühmann's homepage!
Edit/Delete Message Reply w/Quote
#16 Report this post to a moderator
Support Apolyton or Terrorists Win

quote:
Originally posted by Peter Triggs
"the short discription here on Apolyton? "

Do you mean the documentation or the discussion between WesW and Richard Myers?


I mean the documentation I don't know wheather it is in the discussion thread between WesW and Richard Myers, I will check this out later.

OK let's go back to the original topic in the order entries there is also a entry Move 100. I guess that determines how much this order in move points cost. 100 move points are the costs to move one quare like grassland no rivers and no roads. But this could also mean that you only can pay 100 move points to the order maybe to increase this number could help.

-Martin

Peter Triggs is offline Peter Triggs
Prince
Gone Fishin, Canada
Jan 2000
time: 05:18
  Old Post 21-04-2002 14:50
Edit/Delete Message Reply w/Quote
#17 Report this post to a moderator
Lose 30 kilos (of popups)

quote:
Originally posted by DDowell
Sorry FrenzyHuman, no can do.

Tried it myself a while ago and I also went here in hope of finding some info but they all said the same as I'm telling you now:

The bombardment range is fixed to 1 no matter what you enter in the .txt files.


DDowell,

I don't remember this coming up before and can't find a link. Could you expand on this?

Thanks,

Peter

DDowell is offline DDowell
Chieftain
Västerås, Sweden
Nov 2001
time: 06:18
Post  Old Post 22-04-2002 00:37
Edit/Delete Message Reply w/Quote
#18 Report this post to a moderator
Support Apolyton, buy GURPS/ Alpha Centauri

quote:
Originally posted by Peter Triggs
I don't remember this coming up before and can't find a link. Could you expand on this?

I've searched for those old threads but came up empty handed.
Although I can tell you that what I was writing was the truth. How can I be so sure:
1. This is the only forum I knew of at the time that was concerned with CTP2.
2. I joined the forum at that point.

This is all the info I can give you, sorry.

Anyway, this thread exists now so maybe the issue will be resolved once and for all.

BTW, I have problems finding older threads (>1 year). I doesn't matter what search words I use or time period (are they removed?).

Locutus is offline Locutus
ACS CTP1/2 Manager & Civ4 Co-Manager
Hengelo, The Netherlands
Nov 1999
time: 06:18
  Old Post 22-04-2002 03:19 Visit Locutus<br><img src=/forums/images/staff-icon.gif>'s homepage!
Edit/Delete Message Reply w/Quote
#19 Report this post to a moderator
Support Apolyton, buy GURPS/ Alpha Centauri

quote:
Originally posted by DDowell
BTW, I have problems finding older threads (>1 year). I doesn't matter what search words I use or time period (are they removed?).


This was before the server move of earlier today, right? That problem should be solved now.

Immortal Wombat is offline Immortal Wombat
Prince
in perpetuity
Dec 2000
time: 05:18
  Old Post 22-04-2002 03:24 Visit Immortal Wombat's homepage!
Edit/Delete Message Reply w/Quote
#20 Report this post to a moderator
Lose 30 kilos (of popups)

We have all(?) the archives back?

Locutus is offline Locutus
ACS CTP1/2 Manager & Civ4 Co-Manager
Hengelo, The Netherlands
Nov 1999
time: 06:18
  Old Post 22-04-2002 03:27 Visit Locutus<br><img src=/forums/images/staff-icon.gif>'s homepage!
Edit/Delete Message Reply w/Quote
#21 Report this post to a moderator
Support Apolyton, buy Civilization: The Boardgame

Most of them are, AFAIK only Apolyton and Off-Topic are still (and probably permanently) absent. And of course everything that was already in an archive at the time we switched from UBB to vBB (which Dan and Markos were never able to convert to vBB) but that's the *really* old stuff...

J Bytheway is offline J Bytheway
Emperor
England
Jul 2001
time: 05:18
  Old Post 22-04-2002 21:01 Visit J Bytheway's homepage!
Edit/Delete Message Reply w/Quote
#22 Report this post to a moderator
Increase the size of your Attachments

quote:
Originally posted by FrenzyHuman
The solution to create a temporary unit close to target and bombard the target,
then kill the temporary unit is very complicated. Because of the terrain, for example,
you have a battle ship with bombard range 2 to bombard an inland city which is located
one square to the ocean, then how can you do that?
change the terrain as well while bombarding?


The easiest solution would be to make a new unit (which cannot normally be built) with the appropriate bombard strength and land & sea movement ability. I don't know how you'd actually activate the ability on the original unit to trigger the SLIC code though.

Peter Triggs is offline Peter Triggs
Prince
Gone Fishin, Canada
Jan 2000
time: 05:18
  Old Post 25-04-2002 03:57
Edit/Delete Message Reply w/Quote
#23 Report this post to a moderator
Put an end to popups!

quote:
Although I can tell you that what I was writing was the truth.


I believe you, I believe you. I tried playing with this last week when Poly was down and got absolutely nowhere with it.

It seems though that someone's been down this road before and I was hoping to find out what they said. But I've had no luck with searches either.

Locutus is offline Locutus
ACS CTP1/2 Manager & Civ4 Co-Manager
Hengelo, The Netherlands
Nov 1999
time: 06:18
  Old Post 25-04-2002 04:47 Visit Locutus<br><img src=/forums/images/staff-icon.gif>'s homepage!
Edit/Delete Message Reply w/Quote
#24 Report this post to a moderator
Full PM-box? Change here!

There appears to be some sort of bug with the search feature... see this thread.

  < Last Thread     Next Thread > Post New Thread     Post A Reply
All times are GMT. The time now is 05:18.
Apolyton Time is 00:18.
    top of page
Rate This Thread:
archivepost
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.0614 seconds (92.93% PHP - 7.07% MySQL) with 31 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