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

[MOD] More Naval AI

Discussion in 'More Naval AI Modmod' started by Tholal, Mar 18, 2010.

  1. Tholal

    Tholal Emperor

    Joined:
    May 19, 2009
    Messages:
    1,676
    Yep. That's it. Now that I have it set up as a patch installer, it should be mostly automatic. Let me know if you run into problems again.
     
  2. Tholal

    Tholal Emperor

    Joined:
    May 19, 2009
    Messages:
    1,676
    Source files for the 0.9 DLL have been uploaded. They can be found as an attachment at the end of the first post in this thread.

    As part of my experiment in seeing if the DLL production function could handle production choice, I ran into a number of issues stemming from new FFH2 functionality. Mainly, the AI didn't seem to recognize the importance of Mages and Priests. I made a couple of new, simple functions to hopefully help with this in future tweaks.

    In CvUnit I created the following functions.

    isChanneler() - returns true if the unit has any of the Channeling promotions
    isDivine() - returns true if the unit has the Divine promotion
    getChannelingLevel() - returns an int from 0-3

    In CvCity, I also added a new function, getAltarLevel(), that will return the level of the Altar of the Lunnotar in the current city. Returns an int from 0-6
     
  3. Vavdichal

    Vavdichal Chieftain

    Joined:
    Apr 6, 2010
    Messages:
    57
    Location:
    SF, CA
    Shouldn't it check for level 7 as well, as one can build it with Altar Victory condition off as well.
     
  4. Tholal

    Tholal Emperor

    Joined:
    May 19, 2009
    Messages:
    1,676
    Fair enough. I'll add that in the next revision.
     
  5. Tholal

    Tholal Emperor

    Joined:
    May 19, 2009
    Messages:
    1,676
    Updated to version 0.91.

    Made a few updates and tweaks and the AI seemed to take a noticeable step forward so I decided to release a new version.

    Installer download - http://forums.civfanatics.com/downloads.php?do=file&id=14499

    Latest DLL source code is attached to the first post.

    Version 0.91



     
  6. Tholal

    Tholal Emperor

    Joined:
    May 19, 2009
    Messages:
    1,676
    Anyone tried playing this mod? I would love to hear some feedback! Maybe if I moved it out of beta status...
     
  7. [to_xp]Gekko

    [to_xp]Gekko QCT junkie

    Joined:
    Dec 16, 2005
    Messages:
    7,942
    Location:
    Seyda Neen, Vvardenfell
    I'm afraid everyone's too busy playing wild mana, orbis or rife... myself I haven't had time to play ffh at all lately... my advice is still to join the wild mana team :D ;)
     
  8. Doug Piranha

    Doug Piranha Warlord

    Joined:
    Dec 19, 2008
    Messages:
    261
    Location:
    USA
    I've played to about 150 turns at normal speed, but I'm not far enough to see whether the AI is significantly better than normal FfH. I've seen lots of barbarian Lightbringers, which is a little strange.
     
  9. Tholal

    Tholal Emperor

    Joined:
    May 19, 2009
    Messages:
    1,676
    Yeah. Random spawning barbarians in the wilderness will sometimes be Freaks or Lightbringers. Not sure why. I'll add it to the known issues list. Thanks for the feedback!
     
  10. Doug Piranha

    Doug Piranha Warlord

    Joined:
    Dec 19, 2008
    Messages:
    261
    Location:
    USA
    One other curious thing: the AC is going up a lot faster than I'm used to. At turn 170, it's up to 14%. No one has AV, so my only guess is that the AIs are razing lots of barb cities (or the barbs are razing lots of AI cities).
     
  11. Tholal

    Tholal Emperor

    Joined:
    May 19, 2009
    Messages:
    1,676
    The AI is much more prone to razing cities in this version. I can tone it down if it seems too excessive.
     
  12. Tholal

    Tholal Emperor

    Joined:
    May 19, 2009
    Messages:
    1,676
    Updated to version 0.95.

    This patch includes updates from Better AI 1.01f, which also includes the Unofficial Patch 1.6 fixes. Along with this are numerous tweaks of mine to city production AI.

    The main focus of this update was the inclusion of the Victory System from Better AI. This works alongside the Altar and Tower of Mastery functions that were set up by Sephi, but in future updates, I hope to merge everything into one system.

    Best AI victory I've seen happened just a couple of nights ago when both the Amurites and the Khazad were building the Final Altar of the Lunnotar (the Khazad won)!

    Installer download - http://forums.civfanatics.com/downloads.php?do=file&id=14499


    Version 0.95



    • More Tweaks to city production AI
    • Updates from latest version of Better AI (1.01f)
    • First inclusion of jdog's Victory System from Better AI
     
  13. lemonjelly

    lemonjelly Modding For Ethne

    Joined:
    Jan 5, 2008
    Messages:
    864
    Location:
    UK
    I really like what your doing!
    Never played with it, but it sounds great!
    How hard would it be to, say, merge it into RifE?
     
  14. Valkrionn

    Valkrionn The Hamster King

    Joined:
    May 23, 2008
    Messages:
    14,450
    Location:
    Crestview FL
    Quite difficult, seeing as we have none of the code merged from WM into FfH.
     
  15. Tholal

    Tholal Emperor

    Joined:
    May 19, 2009
    Messages:
    1,676
    Some of it could probably be done with minimal effort. All of the Naval movement code for example (which includes some cool things such as escorting transport ships and picking up stranded land units). Though it would make more sense to merge that stuff directly from Better AI.
     
  16. Valkrionn

    Valkrionn The Hamster King

    Joined:
    May 23, 2008
    Messages:
    14,450
    Location:
    Crestview FL
    Or to allow Snarko to write it for RifE. ;)

    Just waiting for our unit revisions first.
     
  17. morchuflex

    morchuflex Emperor

    Joined:
    Feb 19, 2004
    Messages:
    1,385
    Location:
    Paris
    I'm very excited about this ModMod! I love naval exploration and warfare. As soon as I finish my ongoing game, I'll install your patch and try it. Can't wait! :)

    EDIT: Just installed... and I have two questions:

    1. How can I tell it is installed and running?
    2. Does it only work with vanilla FFH2, or does it also work if I play Wild Mana or another modmod? I do hope it is the latter, because I only play FFH modmods that include the BUG mode...

    META-EDIT: I just found it doesn't... Too bad, because I've been waiting for something like what you created for years. But playing FFH2 (without the BUG interface enhancements) is way too much of a chore (especially when, like me, you do binary science). I'll have to wait until your patch is incorporated in Wild Mana... Thanks anyway for your efforts!
     
  18. Tholal

    Tholal Emperor

    Joined:
    May 19, 2009
    Messages:
    1,676
    If you mouseover the flag in the upper left corner, it should show you what version you're running.

    Yes, this is just a mod of regular FFH. Unfortunately, to make it compatible with Rife or Wild Mana, I would have to basically redo all the work I've already done. Though from what I understand, both of those mods are doing some major AI work of their own that will hopefully include improvements to the AI navies.


    And since I'm here, I'll go ahead and mention that I hope to release version 1.0 of this mod this weekend. I'll provide more details when I do so.
     
  19. morchuflex

    morchuflex Emperor

    Joined:
    Feb 19, 2004
    Messages:
    1,385
    Location:
    Paris
    Thanks for the clarifications, Tholal.
     
  20. Tholal

    Tholal Emperor

    Joined:
    May 19, 2009
    Messages:
    1,676
    Version 1.0 has been released. Link and source code available in the first post.

    Version 1.0

    (not compatible with previous save games)
    • Tech choices now handled in the DLL
    • Religious, Altar and Tower victories incorporated into the Better AI Victory Strategy system
    • More tweaks to City Production AI
    • Stooges now take an active part in wars and conquest
    • Hyborem's Whisper updates from Denev's mod (better selection of cities; AI can use the spell properly)

    Still a lot of work I want to do, and some hack code that I hope to eventually remove once I figure out a proper way to do things, but with the installation of the base system for including other victory options into the Victory Strategy system, and the moving of AI tech choices to the DLL, I felt it was time to take this mod out of beta status.

    As usual, any and all feedback is encouraged. Testing changes to player AI is a tedious and never-ending task!
     

Share This Page