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

Show Hidden Attitude Mod

Discussion in 'Civ4 - Mod Components' started by DaveMcW, Sep 20, 2009.

  1. DaveMcW

    DaveMcW Deity

    Joined:
    Oct 8, 2002
    Messages:
    6,489
    There are five hidden AI attitude factors that can affect your relations. This mod reveals all of them.
    No more wondering why your "+5" neighbor is only cautious with you!

    • First Impression: A combination of iBaseAttitude, iBasePeaceWeight, iPeaceWeightRand, iWarmongerRespect, and iAttitudeChange.
    • Team Size: The AIs don't like permanent alliances or unbalanced teams. Unless they are on the best team!
    • High Score: Several AIs care about who has the better score.
    • Low Score: AIs are more willing to cooperate if you are both on the bottom half of the scoreboard.
    • Losing War: Losing a war makes AIs mad.

    >> Download Here <<


    Spoiler Screenshots :


    A note to modders about altered gameplay.
    Spoiler :
    In order to provide 100% accuracy, the modcomp introduces some minor spoilers. If you don't want spoilers, you can comment out this line in CvPlayerAI.h
    Code:
    #define HIDDEN_ATTITUDE_SPOILER 1
    Commenting out that line restores a few hidden modifers:

    First Impression: For AI to AI relations, this number may be off by 1 (44% chance) or 2 (22% chance).
    High/Low Score: Hidden until you have most or all contacts.
    Losing War: Hidden for wars you are not involved in.

    You can always see the full list of modifiers in debug mode.
     

    Attached Files:

    • sham.jpg
      sham.jpg
      File size:
      467 KB
      Views:
      5,180
  2. mechaerik

    mechaerik Tuturuu!

    Joined:
    Oct 28, 2008
    Messages:
    7,064
    Location:
    Los Angeles
    Awesome!!!

    You should totally upload this to the database!
     
  3. The_J

    The_J Say No 2 Net Validations Super Moderator Supporter

    Joined:
    Oct 22, 2008
    Messages:
    33,360
    Location:
    DE/NL/FR
    Nice idea :goodjob:.

    I wonder, if that could also be done only in python.
     
  4. DMOC

    DMOC Mathematician

    Joined:
    Aug 23, 2007
    Messages:
    5,594
    Excellent. :goodjob:
     
  5. cybrxkhan

    cybrxkhan Asian Xwedodah

    Joined:
    Aug 10, 2006
    Messages:
    9,687
    Location:
    The Universe
    This is a pretty nicely small modcomp that should be merged with a lot of SDK mods!
     
  6. Cybah

    Cybah Emperor

    Joined:
    Jun 22, 2007
    Messages:
    1,481
    the source is invalid/incomplete:


    edit: must be "AI_getBetterRankDifferenceAttitude" imo.
     
  7. Cybah

    Cybah Emperor

    Joined:
    Jun 22, 2007
    Messages:
    1,481
    there are more errors, how could u compile a dll with those invalid files?

    same here as above.
     
  8. Cybah

    Cybah Emperor

    Joined:
    Jun 22, 2007
    Messages:
    1,481
    And one question to the text:

    the modifier's name is LOST war... and you are talking of "losing" the war? must the war still be active or not?

    edit: hides when the war is over. that answers my question. ;)
     
  9. DaveMcW

    DaveMcW Deity

    Joined:
    Oct 8, 2002
    Messages:
    6,489
    Oops. I'll replace CvPlayerAI.h with the correct version.


    In CIV4LeaderHeadInfos.xml the number is called iLostWarAttitudeChange, so I just copied that name.
     
  10. Tecibbar

    Tecibbar unliving

    Joined:
    Sep 6, 2007
    Messages:
    340
    Location:
    Ur Sorry Ass
    I load the mod and the game crash,

    is it because I use 3.13?
     
  11. mechaerik

    mechaerik Tuturuu!

    Joined:
    Oct 28, 2008
    Messages:
    7,064
    Location:
    Los Angeles
    Yes, it is.
     
  12. glider1

    glider1 Deity

    Joined:
    May 29, 2006
    Messages:
    2,897
    Location:
    Where animals hop not run
    Thanks for this little mod Dave. I've added it to the RevolutionDCM svn and changed the code to make it controllable in GlobalAltDefines or in the bug interface. Thanks for your effort and will acknowledge you in our mod when version 2.6 gets released (see below).
    Cheers
     
  13. PieceOfMind

    PieceOfMind Drill IV Defender Retired Moderator

    Joined:
    Jan 15, 2006
    Messages:
    9,319
    Location:
    Australia
    Am I the only one who was initially a little alarmed when I clicked the download link and the file "sham.zip" started downloading straight away? :lol:

    I'll be merging this into PIG Mod when I get the chance. Nice work, by the way!:goodjob:
     
  14. phungus420

    phungus420 Deity

    Joined:
    Mar 1, 2003
    Messages:
    6,296
    Thanks DaveMcW, it's nice to see this going into RevDCM. Alot of mods use a RevDCM core, including the one I work on LoR, so will be putting this to good use.

    Along the same vein I'd like to add a has met check to the diplo penalty for trading with a civ's worst enemy. It just bothers me that when you first meet a civ they hate you and consider you their worst enemy because a couple hundred years ago you traded metal casting with a neighbor. It's not fun, and it doesn't make much sense. Since you've been looking at and exposing the AI's attitude effects I'm hoping you'd have a good idea of how to implement such a check. I have a thread started on it in the Python and SDK forum, but I don't see an easy if statement to add in any of the code to do this simple check, and was hoping you had some ideas, or just a solution. The thread can be found here if you're interested:
    http://forums.civfanatics.com/showthread.php?t=338780

    Edit:
    Sephi posted working code in the linked thread above, tested it and it works perfectly :)
     
  15. Maniac

    Maniac Apolyton Sage

    Joined:
    Nov 27, 2004
    Messages:
    5,588
    Location:
    Gent, Belgium
    You should split up AI_getRankDifferenceAttitude into two seperate functions. If not the wrong text often shows as Pfeffersack explains here.

    Thanks for the modcomp by the way!
     
  16. DaveMcW

    DaveMcW Deity

    Joined:
    Oct 8, 2002
    Messages:
    6,489
    Willem van Oranje does have reversed RankDifferenceAttitudeChange tags. I wonder if that's a bug.

    I updated the sdk to handle them.
     
  17. Antilogic

    Antilogic --

    Joined:
    Sep 2, 2006
    Messages:
    15,602
    Yeah, but I thought that was a tongue-in-cheek comment about the hidden AI diplomacy modifiers. ;)

    I have a few suggestions for the text lines for the general mod. These are the ones that I will be modding in:

    • First Impression: Unchanged, I think the original is fine.
    • Team Size: We feel threatened by your diplomatic efforts.
    • Better Rank: Your civilization is not too impressive.
    • Low Rank: We are afraid of your civilization's might.
    • Low Score: Unchanged as well.
    • Losing War: The war is not going well for us.
     
  18. glider1

    glider1 Deity

    Joined:
    May 29, 2006
    Messages:
    2,897
    Location:
    Where animals hop not run
    Thanks Antilogic. Nice suggestions and I too have modded them in.
    Cheers.
     
  19. DaveMcW

    DaveMcW Deity

    Joined:
    Oct 8, 2002
    Messages:
    6,489
    Thanks, I added these with slight changes.

    I don't like the team message though.
     
  20. glider1

    glider1 Deity

    Joined:
    May 29, 2006
    Messages:
    2,897
    Location:
    Where animals hop not run
    How about?:

    Team size:
    "We feel threatened by your diplomatic success."

    Better rank:
    "Your civilization is less impressive than ours."

    I take this to mean "we think you are cute but inferior to us" but can't find the right word for it....

    Cheers
     

Share This Page