Results 1 to 24 of 24

Thread: How to make "BombardRange" work?

  1. #1
    FrenzyHuman
    Settler
    Join Date
    24 Mar 2002
    Location
    Sydney
    Posts
    18
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Local Date
    May 24, 2013
    Local Time
    21:29

    How to make "BombardRange" work?

    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.

  2. #2
    DDowell
    Chieftain
    Join Date
    29 Nov 2001
    Location
    Västerås, Sweden
    Posts
    42
    Country
    This is DDowell's Country Flag
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Local Date
    May 24, 2013
    Local Time
    12:29
    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.
    So much to do in so little time...

  3. #3
    Martin Gühmann
    Administrator Martin Gühmann's Avatar
    Join Date
    02 Mar 2001
    Location
    Tübingen, Germany
    Posts
    7,248
    Country
    This is Martin Gühmann's Country Flag
    Thanks
    2
    Thanked 4 Times in 4 Posts
    Local Date
    May 24, 2013
    Local Time
    13:29

    Post

    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 Code:
    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
    Civ2 military advisor: "No complaints, Sir!"

  4. #4
    FrenzyHuman
    Settler
    Join Date
    24 Mar 2002
    Location
    Sydney
    Posts
    18
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Local Date
    May 24, 2013
    Local Time
    21:29
    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

  5. #5
    Immortal Wombat
    Prince Immortal Wombat's Avatar
    Join Date
    30 Dec 2000
    Location
    in perpetuity
    Posts
    4,965
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Local Date
    May 24, 2013
    Local Time
    11:29
    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.
    Concrete, Abstract, or Squoingy?
    "I don't believe in giving scripting languages because the only additional power they give users is the power to create bugs." - Mike Breitkreutz, Firaxis

  6. #6
    Martin Gühmann
    Administrator Martin Gühmann's Avatar
    Join Date
    02 Mar 2001
    Location
    Tübingen, Germany
    Posts
    7,248
    Country
    This is Martin Gühmann's Country Flag
    Thanks
    2
    Thanked 4 Times in 4 Posts
    Local Date
    May 24, 2013
    Local Time
    13:29

    Post

    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
    Civ2 military advisor: "No complaints, Sir!"

  7. #7
    FrenzyHuman
    Settler
    Join Date
    24 Mar 2002
    Location
    Sydney
    Posts
    18
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Local Date
    May 24, 2013
    Local Time
    21:29
    Thank you all, now it's clear, I will try and see what happens.

  8. #8
    Locutus
    Deity Locutus's Avatar
    Join Date
    23 Nov 1999
    Location
    De Hel van Enschede
    Posts
    11,706
    Country
    This is Locutus's Country Flag
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Local Date
    May 24, 2013
    Local Time
    13:29
    So? What happened?
    Administrator of WePlayCiv -- Civ5 Info Centre | Forum | Gallery

  9. #9
    Leonidas
    King Leonidas's Avatar
    Join Date
    20 May 2000
    Posts
    1,003
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Local Date
    May 24, 2013
    Local Time
    11:29
    Originally posted by Locutus
    So? What happened?

    lol

  10. #10
    TheArsenal
    Prince TheArsenal's Avatar
    Join Date
    08 Mar 2002
    Location
    Sunny Southern California
    Posts
    900
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Local Date
    May 24, 2013
    Local Time
    04:29
    Yes, I'm curious how this comes out as well. It always struck me as strange that the artillery had such limited range.
    "Guess what? I got a fever! And the only prescription is ... more cow bell!"

  11. #11
    Peter Triggs
    King
    Join Date
    25 Jan 2000
    Location
    Gone Fishin, Canada
    Posts
    1,059
    Country
    This is Peter Triggs's Country Flag
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Local Date
    May 24, 2013
    Local Time
    11:29
    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.

  12. #12
    Martin Gühmann
    Administrator Martin Gühmann's Avatar
    Join Date
    02 Mar 2001
    Location
    Tübingen, Germany
    Posts
    7,248
    Country
    This is Martin Gühmann's Country Flag
    Thanks
    2
    Thanked 4 Times in 4 Posts
    Local Date
    May 24, 2013
    Local Time
    13:29

    Post

    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 Code:
    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
    :DestroyCity
      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

    Civ2 military advisor: "No complaints, Sir!"

  13. #13
    Peter Triggs
    King
    Join Date
    25 Jan 2000
    Location
    Gone Fishin, Canada
    Posts
    1,059
    Country
    This is Peter Triggs's Country Flag
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Local Date
    May 24, 2013
    Local Time
    11:29
    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?

  14. #14
    Locutus
    Deity Locutus's Avatar
    Join Date
    23 Nov 1999
    Location
    De Hel van Enschede
    Posts
    11,706
    Country
    This is Locutus's Country Flag
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Local Date
    May 24, 2013
    Local Time
    13:29
    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...
    Administrator of WePlayCiv -- Civ5 Info Centre | Forum | Gallery

  15. #15
    FrenzyHuman
    Settler
    Join Date
    24 Mar 2002
    Location
    Sydney
    Posts
    18
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Local Date
    May 24, 2013
    Local Time
    21:29
    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?

  16. #16
    Martin Gühmann
    Administrator Martin Gühmann's Avatar
    Join Date
    02 Mar 2001
    Location
    Tübingen, Germany
    Posts
    7,248
    Country
    This is Martin Gühmann's Country Flag
    Thanks
    2
    Thanked 4 Times in 4 Posts
    Local Date
    May 24, 2013
    Local Time
    13:29

    Post

    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
    Civ2 military advisor: "No complaints, Sir!"

  17. #17
    Peter Triggs
    King
    Join Date
    25 Jan 2000
    Location
    Gone Fishin, Canada
    Posts
    1,059
    Country
    This is Peter Triggs's Country Flag
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Local Date
    May 24, 2013
    Local Time
    11:29
    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

  18. #18
    DDowell
    Chieftain
    Join Date
    29 Nov 2001
    Location
    Västerås, Sweden
    Posts
    42
    Country
    This is DDowell's Country Flag
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Local Date
    May 24, 2013
    Local Time
    12:29

    Post

    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?).
    So much to do in so little time...

  19. #19
    Locutus
    Deity Locutus's Avatar
    Join Date
    23 Nov 1999
    Location
    De Hel van Enschede
    Posts
    11,706
    Country
    This is Locutus's Country Flag
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Local Date
    May 24, 2013
    Local Time
    13:29
    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.
    Administrator of WePlayCiv -- Civ5 Info Centre | Forum | Gallery

  20. #20
    Immortal Wombat
    Prince Immortal Wombat's Avatar
    Join Date
    30 Dec 2000
    Location
    in perpetuity
    Posts
    4,965
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Local Date
    May 24, 2013
    Local Time
    11:29
    We have all(?) the archives back?
    Concrete, Abstract, or Squoingy?
    "I don't believe in giving scripting languages because the only additional power they give users is the power to create bugs." - Mike Breitkreutz, Firaxis

  21. #21
    Locutus
    Deity Locutus's Avatar
    Join Date
    23 Nov 1999
    Location
    De Hel van Enschede
    Posts
    11,706
    Country
    This is Locutus's Country Flag
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Local Date
    May 24, 2013
    Local Time
    13:29
    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...
    Administrator of WePlayCiv -- Civ5 Info Centre | Forum | Gallery

  22. #22
    J Bytheway
    Emperor J Bytheway's Avatar
    Join Date
    02 Jul 2001
    Location
    England
    Posts
    3,826
    Country
    This is J Bytheway's Country Flag
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Local Date
    May 24, 2013
    Local Time
    12:29
    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.

  23. #23
    Peter Triggs
    King
    Join Date
    25 Jan 2000
    Location
    Gone Fishin, Canada
    Posts
    1,059
    Country
    This is Peter Triggs's Country Flag
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Local Date
    May 24, 2013
    Local Time
    11:29
    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.

  24. #24
    Locutus
    Deity Locutus's Avatar
    Join Date
    23 Nov 1999
    Location
    De Hel van Enschede
    Posts
    11,706
    Country
    This is Locutus's Country Flag
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Local Date
    May 24, 2013
    Local Time
    13:29
    There appears to be some sort of bug with the search feature... see this thread.
    Administrator of WePlayCiv -- Civ5 Info Centre | Forum | Gallery

Similar Threads

  1. Great person.. "Discover Technology" doesn't work!!!!!!
    By blisk in forum Civilization IV General
    Replies: 9
    Last Post: April 16, 2006, 17:44
  2. HELP!! Still can't make SMAC work on P4 even with "FOVA=1" in ini file and XP patch
    By AustralianJeremy in forum AC-General/Help/Strategy-Archive
    Replies: 6
    Last Post: February 9, 2004, 14:01
  3. BBC report on "new" computer games that let players make moral choices
    By shawnmmcc in forum AC-General/Help/Strategy-Archive
    Replies: 10
    Last Post: November 8, 2003, 03:33
  4. can i make "clear jungle" give resource like "clear forest"?
    By Minmaster in forum Civilization III
    Replies: 1
    Last Post: November 9, 2002, 09:34
  5. Option "Show pop window for unti completion" doesn't work
    By PavementIstRad! in forum Civilization III
    Replies: 2
    Last Post: February 26, 2002, 20:52

Visitors found this page by searching for:

Nobody landed on this page from a search engine, yet!

Bookmarks

Posting Permissions