1. We have added a Gift Upgrades feature that allows you to gift an account upgrade to another member, just in time for the holiday season. You can see the gift option when going to the Account Upgrades screen, or on any user profile screen.
    Dismiss Notice

C2C Combat Mod Option: Hide and Seek

Discussion in 'Civ4 - Caveman 2 Cosmos' started by Thunderbrd, Nov 15, 2015.

  1. Toffer90

    Toffer90 C2C Modder

    Joined:
    Oct 16, 2011
    Messages:
    7,385
    Location:
    Norway
    This one will be completely resolved when this is made possible:
    It's a planned unitcombat that certain units will have.
     
  2. Thunderbrd

    Thunderbrd C2C War Dog

    Joined:
    Jan 2, 2010
    Messages:
    28,428
    Gender:
    Male
    Location:
    Las Vegas
    By saying 'Neanderthal trackers' are you saying Neanderthals or Barbarian Trackers? I'm not aware of a Neanderthal tracker.

    That said, it's a scenario I'll certainly look into and do the math to see what's up and further evaluate in the code.

    If the guardian is set to standout and still didn't defend, something is definitely not right there that may have nothing to do with visibility. However, if it didn't then Toffer is right that it needs to be addressed... more below.

    Don't think it ever did cause them to appear and defend the city, only after... and I've never seen it happen until much later in the game so that's an interesting effect I'm not aware of in the first place.

    An automatic unitcombat for that is certainly an interesting proposal. I know I have an item on the list here to add ai to take standout if defending a city though I did not suspect that the problem would be so severe that tribal guardians aren't visible to nearly all attacking units. I'm not sure how they would be unless its a size invisibility but I figured the quality of any units used for attacking would be good enough to see any medium unit of any group size unless the TG is actually a solo, which I don't THINK it is. I'm wondering if its on a hill and thus (was) camouflaged... or something else.

    Frustrating.

    I'll be looking into all of this as soon as I can.
     
  3. WimpyTheWarrior

    WimpyTheWarrior Warlord

    Joined:
    Dec 31, 2003
    Messages:
    294
    Location:
    Sydney, Australia
    The city was the capital of the Neanderthal civilisation available in the game. Atapuerca is the capital and Wrub is the leader when playing with fixed leaders. (I use Unrestricted Leaders at start-up so Mao Zedung was assigned as the leader.)

    I've noticed with Hide and Seek the AI seems to place two trackers in their capital with maximum Build Up (Concealment); Bangkok also has two Trackers.

    Thanks! This is a very interesting addition.
     
  4. Thunderbrd

    Thunderbrd C2C War Dog

    Joined:
    Jan 2, 2010
    Messages:
    28,428
    Gender:
    Male
    Location:
    Las Vegas
    Ah... trackers of the Neanderthal civ... that makes sense now. Those in the capital are likely awaiting their ordered escorts. Those hunkered down are also likely hiding out awaiting an escort.
     
  5. Thunderbrd

    Thunderbrd C2C War Dog

    Joined:
    Jan 2, 2010
    Messages:
    28,428
    Gender:
    Male
    Location:
    Las Vegas
    Looks like I didn't save the unitcombat file after adjusting invisibility on hills and peaks so it didn't go in on the last adjustment. This MAY account for the non-defending tribal guardian except that 1 pt of camouflage shouldn't have made it completely invisible to any combatant and most non-combatants cannot invade cities so... not sure if that's the solution or not to that.
     
  6. Thunderbrd

    Thunderbrd C2C War Dog

    Joined:
    Jan 2, 2010
    Messages:
    28,428
    Gender:
    Male
    Location:
    Las Vegas
    @Toffer: <InvisibilityIntensityTypes> was bugged for unitinfos.xml. That's been resolved. However, I found this bug in the process of testing same tile visibility and after a thorough review, that is confirmed to be working properly. Keep in mind, however, that same tile visibility modifiers are not given to promos or units, just unitcombats alone. If we need it for either of the other two, not a problem to add it.
     
  7. Toffer90

    Toffer90 C2C Modder

    Joined:
    Oct 16, 2011
    Messages:
    7,385
    Location:
    Norway
    OK, good to know.
    I see no need to add that just yet.
     
  8. Nevets_

    Nevets_ Warlord

    Joined:
    Jan 20, 2011
    Messages:
    281
    I've been noticing alot more city-razing by the AI's, at first I thought it might be a new strategy, or maybe the bug fixed in SVN 8926 resurfaced, but now I'm wondering what happens if a camouflaged unit captures a city? I haven't seen it on my city captures, but my high strength attackers are all merged up into x3 or x9 size units and have stand out on so maybe I wouldn't.
     
  9. Thunderbrd

    Thunderbrd C2C War Dog

    Joined:
    Jan 2, 2010
    Messages:
    28,428
    Gender:
    Male
    Location:
    Las Vegas
    Well... interestingly enough it's been shown that units that cannot be seen by the player that owns the city that is entered will not capture the city at all, thus the option for razing would not exist there.

    What MIGHT be an influencing factor could be some manipulations to NumCitiesUpkeep or distance to city upkeep but from what I gather those have been reduced rather than enhanced so it may not be suspect at all. Might just be that the game you're playing is finding the AI making this determination more than they were in other previous games. Not much has been done that would pull at that string I don't think.

    I'm currently working on some AI for status promos that will at least clear up a lot of potential problems for AI working with this option.
     
  10. Thunderbrd

    Thunderbrd C2C War Dog

    Joined:
    Jan 2, 2010
    Messages:
    28,428
    Gender:
    Male
    Location:
    Las Vegas
    Note: Status AI has been implemented. Please take note of any poor decision-making from the AI regarding Standout usage or failure to use when they should. There's a few I've noted already that seem like poor decisions but may not actually be as bad as it may seem. Example: They tend to like setting their wanderers to standout - but then again, those wanderers are set to exploration AI and this would mean they would benefit more from being visible and soaking up as many animal attacks as they can.
     
  11. JosEPh_II

    JosEPh_II TBS WarLord

    Joined:
    Jun 20, 2007
    Messages:
    16,371
    Gender:
    Male
    Location:
    Western IL. cornfields
    SVN 8958 is broken. See Bug thread. Instant CtD at EoT.

    JosEPh
     
  12. Toffer90

    Toffer90 C2C Modder

    Joined:
    Oct 16, 2011
    Messages:
    7,385
    Location:
    Norway
    Something is still not quite right, might be connected to when visibility/invisibility values goes above 10 or/and below 0; scenario:
    Unit with -9 size visibility cannot see much of what's around them (tested, world seems desolate to this unit) but for some odd reason he can see units with 17 (and 14, and other values at 10 or above.) size invisibility, but nothing else (except for units on standout).

    I'm guessing negative visibility values makes some weird stuff happen at the mathematical level and that this could be fixed if the code considered visibility below 0 to really be 0 visibility before any math take place.
     
  13. Thunderbrd

    Thunderbrd C2C War Dog

    Joined:
    Jan 2, 2010
    Messages:
    28,428
    Gender:
    Male
    Location:
    Las Vegas
    I'll take a look. Negatives need to be tracked so that when removed they don't become positives left behind. But this is really an odd bug I can't theorize a reason for at the moment. Will take some code investigation.

    EDIT: It looks like visibility was never intended to be able to go beneath 0 - will mess up some caching if it does. Maybe. I'll have to continue to evaluate the logic of the caching I'm seeing here - I set it up but it's been a little bit since then now. I might be able to come up with an alternative method. And it may not even be the issue. I'm not sure I'm seeing anything that would explain that effect.
     
  14. cammcken

    cammcken Warlord

    Joined:
    Jul 25, 2012
    Messages:
    294
    Location:
    Massachusetts, USA
    Technically this is a question for the Without Warning mod, but I can't seem to find the thread.

    In your descriptions, the Stealth Modifier only applies to stealth combat. Does "stealth combat" refer to the stealth strikes that occur before regular combat, or the entire engagement, from stealth strikes to defeat or withdrawal?

    Also, is there a list of all the invisibility types with their icons?
     
  15. Thunderbrd

    Thunderbrd C2C War Dog

    Joined:
    Jan 2, 2010
    Messages:
    28,428
    Gender:
    Male
    Location:
    Las Vegas
    There isn't one since Without Warning was more a mod I made for the core then later decided should be optioned out for players that still prefer more vanilla settings.

    Great question! Stealth Combat modifiers apply to the entire engagement, and do not replace any other modifiers that may apply to the battle. Once a combat is determined to be a stealth combat, the stealth combat modifier applies the whole way through.

    Stealth Strikes do replace all first strikes on both sides once the battle is determined to be a Stealth Combat.

    You bet: https://forums.civfanatics.com/threads/player-how-to-documentation.455542/page-4#post-14144882 This post is linked to on the first page of the Player's documentation thread.
     
  16. Chaotic Paladin

    Chaotic Paladin Chieftain

    Joined:
    Oct 21, 2014
    Messages:
    49
    What does Stand Out do?

    I find the promotions hard to understand.
     
  17. Toffer90

    Toffer90 C2C Modder

    Joined:
    Oct 16, 2011
    Messages:
    7,385
    Location:
    Norway
    It removes all invisibility from the unit.
     
  18. Thunderbrd

    Thunderbrd C2C War Dog

    Joined:
    Jan 2, 2010
    Messages:
    28,428
    Gender:
    Male
    Location:
    Las Vegas
    Which allows you to defend units that may come under attack on that plot.

    Example: You have a rogue trying to protect a worker. The rogue is not visible to most units. As a result, enemy units, seeing the worker, may move onto the tile to capture the worker and if they don't see the rogue, the worker is going to be captured. Since you want the rogue to protect the worker, you could set him to using Stand Out so that he is no longer hiding and must be killed before the worker can be captured.
     
  19. Raledon

    Raledon Warlord

    Joined:
    Aug 15, 2008
    Messages:
    236
    Shouldn't the rogue attempt to ambush the incoming unit, defending with his stealth bonuses? (In the normal case, without stand out)
     
  20. Thunderbrd

    Thunderbrd C2C War Dog

    Joined:
    Jan 2, 2010
    Messages:
    28,428
    Gender:
    Male
    Location:
    Las Vegas
    If Without Warning is on, and they are set to ambush, then yes. But its not in time to deny the capture or death of the bait powerless units on the tile.
     

Share This Page