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

LoR SDK ModMod - Dynamic Difficulty, Better AI and More!

Discussion in 'Civ4 - Legends of Revolution' started by Dave_uk, Mar 23, 2014.

  1. nfw

    nfw King

    Joined:
    Aug 31, 2010
    Messages:
    733
    Like when the defender withdraws, my attacker would fight against the next top defender it seems, so I ended up losing a lot more 99% fights. IMHO if the defender withdraws, the attacker should as well.
    I think he had destroyers and machine guns too, but I didn't count those.

    The problem I see is AA is too good compared to fighters, since you can pile an unlimited amount per city as opposed to 8 fighters, and fighters take damage and can be shot down, AAs take no damage from interception and defends against ground units too.

    P.S. another thing I noticed is I can build both ironclad cruiser and destroyer escort at the same time. Previously the latter obsoletes the former
     
  2. Dave_uk

    Dave_uk Chieftain

    Joined:
    Oct 6, 2009
    Messages:
    31
    Location:
    Oxford, UK
    Looks like they had the same discussion on the thread for the original Mod-comp, the creator said it was realistic as these sort of tactics would have been used by armies at the time. I do like the way at works at the moment, I don't mind losing a few 99% odds fights due to the defender withdrawing I think it adds more of an element of risk. But if I make it optional then at least you can turn it off.

    Ah ok, all ground and sea units with a chance to intercept have their chances stack.

    Fighters do still have the advantage of covering a wide area and being able to intercept many times, and of course they can be used on the offensive too. AAs are better now, but can only defend a small area, even if a city is well defended you could still attack units outside the city, or you can bomb their improvements to remove their access to oil for example or try and sink their ships. Plus AA units are generally weaker than other ground units if they do have to fight them.

    Overall I don't think AA units are now too strong. It never made sense to me that a whole stack of AA units still only had a 40% chance to intercept, no matter how many of them there were, for me the AA stacking code just makes sense. I had thought about making it so they could take damage when intercepting too to balance things out a bit, but I don't think air units should be able to kill ground units (unless they have an AirCombatLimit of 100% like the UCAV), and without being able to kill I don't think it would make that much of a difference for them to just be damaged anyway.

    This is an intentional change, I describe it in the original post:

    I made the change because I often wanted the option of building some obsolete units alongside the more advanced ones, and the more advanced ones generally require advanced buildings like drydocks, industrial parks, universities or labs. The XML could still be changed to force ironclad cruiser to become obsolete when the destroyer escort becomes available using the ForceObsoleteUnitClasses tag, so there is some flexibility for future modding. I may release a modified UnitInfos xml file in a later release. But I don't see the option of being able to build those particular two units together as a problem.
     
  3. lfgr

    lfgr King

    Joined:
    Feb 6, 2010
    Messages:
    768
    Report from my last game:
    Dynamic difficulty seemed to prevent me to become dominant too early, however, the game was over in the early medieval (marathon on a tiny or small map).
    I noticed the adjacent tile control feature once, and it felt very fitting.
    I also got some compiler warnings, most noticable

    1>CvPlayer.cpp(12945): warning C4551: function call missing argument list
    (You forgot the parenthesis after a function call) and
    1>cvteamai.cpp(2844): warning C4715: 'CvTeamAI::AI_anyMemberNukeReady' : not all control paths return a value

    You'll get the others when recompiling.

    Thanks for your work.
     
  4. Dave_uk

    Dave_uk Chieftain

    Joined:
    Oct 6, 2009
    Messages:
    31
    Location:
    Oxford, UK
    OK, I was worried of the opposite that the effect might be too strong. Perhaps I should make it configurable somehow. It's harder to get the balance right on smaller maps I think since the situation can change quicker. I'm also going to add a few more AI improvements, so hopefully this will help keep things challenging.

    Yeah I'll sort those out for the next version. There were already some warnings I think but I can at least get rid of the ones I have introduced.
     
  5. keldath

    keldath LivE LonG AnD PrOsPeR

    Joined:
    Dec 20, 2005
    Messages:
    6,579
    Location:
    israel
    hi friend,

    is this modmod and mod multi player?
     
  6. Conqueror Worm

    Conqueror Worm Warlord

    Joined:
    Jan 22, 2006
    Messages:
    244
    I hope Dave UK continues to make the final improvements or stabilization or whatever on this. It is my favorite Civ IV mod. Thanks!
     
  7. AbsintheRed

    AbsintheRed Deity

    Joined:
    Jul 27, 2009
    Messages:
    8,247
    Location:
    Szeged, Hungary
    @Dave_uk
    Sry for the necro.
    I just have to say, this is a fantastic modmod, congrats :king:
    Which is a huge accomplishement, considering LoR is already awesome :)
    Can't believe I didn't find it earlier!
     
    devolution likes this.
  8. Spirictum

    Spirictum Immortal

    Joined:
    Oct 19, 2007
    Messages:
    3,105
    Location:
    Brazil
    LoR is for me the best base mod to develop on because not only it is a great mod, but also because it has a great Multiplayer. I played LoR MP for years (roughly from 2010 to 2014), and had many great Multiplayer games (with Simultaneous Turns) with a few OOSs (mind I liked to play on the biggest map setting and on Marathon speed, which are prone to more OOSs then other configurations).

    I've never tried this modmod, but after playing C2C I'm much more inclined to make that mod playable in MP, then trying to upgrade LoR.
     
  9. Imp. Knoedel

    Imp. Knoedel Properly Paranoid Proletarian

    Joined:
    Nov 11, 2011
    Messages:
    8,684
    Location:
    The cooler Germany
    Soooo is this for 0.9.9b or the 1.0 version that allegedly is around somewhere?
     
  10. Dave_uk

    Dave_uk Chieftain

    Joined:
    Oct 6, 2009
    Messages:
    31
    Location:
    Oxford, UK
    This is for 0.9.9b, I don't think a version 1.0 of LoR was ever released. Pleased to see this forum is active and people still use this ModMod, I still play it and make improvements every now and then so I hope to release a new version soon.
     
  11. Imp. Knoedel

    Imp. Knoedel Properly Paranoid Proletarian

    Joined:
    Nov 11, 2011
    Messages:
    8,684
    Location:
    The cooler Germany
    Have you considered merging the Balance Tweaks Mod that's also in this forum? I tried my hand at it but SDK modding is hard and confusing. :(
     
  12. Dave_uk

    Dave_uk Chieftain

    Joined:
    Oct 6, 2009
    Messages:
    31
    Location:
    Oxford, UK
    Hey new version is up, it should be considered in BETA (needs testing), so I've left the old version up too.

    Regarding the Balance Tweaks Mod, the XML and Python changes should be compatible with my SDK changes if you want them to use them together. As for the SDK changes, which do you think I should incorporate? The only change that really interested me was the culture not disappearing when a civ was eliminated, but I seem to remember testing it and finding it didn't have the effect I thought it would - it didn't actually make revolutions more likely as they only changed a few functions and there were still cases were the culture of dead civilizations was being ignored.
     
    Last edited: Oct 3, 2016
  13. Conqueror Worm

    Conqueror Worm Warlord

    Joined:
    Jan 22, 2006
    Messages:
    244
    Excellent, Dave uk! I really appreciate all of your work. I will give you some feedback soon!
     
  14. Kits68

    Kits68 Chieftain

    Joined:
    Aug 9, 2015
    Messages:
    7
    Gender:
    Male
    Location:
    Vancouver, BC
    Can someone give me advice or instruction on installing this mod? I have the latest version of LOR and would love to enhance it with the LOR SDK ModMod. Thanks!
     
  15. devolution

    devolution Prince

    Joined:
    Oct 7, 2016
    Messages:
    368
    Gender:
    Male
    Location:
    Stavanger, Norway
    Hey Dave!

    Thanks for reviving this little gem :goodjob:
    It seems that I'm late to the party, I 'm having a hard time grasping why I didn't discover LoR earlier :cry: I

    Now, let's get down to business:

    I am in the process of making yet another submod based on K-Mod, but I now realize that there's so much content in LoR that I simply cannot resist an attempt at basing my mod on LoR instead.
    As of now, it's mostly XML balance stuff, but also some new SDK features. I was wondering if you could make your latest code available somehow (github etc) so that we could maybe share some of the code or even collaborate. I am primarily an AI guy, so that would be my focus since I am planning to make some pretty significant changes to the combat system (I'd rather cut features that the AI cannot use rather than introduce features that it uses poorly). I'm also strongly considering importing features from AdvancedCiv (another K-mod submod) since it has many improvements, in particular to the diplomatic AI, and it seems to continue where K-Mod ended (Although Karadoc recently released a preview of K-Mod 1.46)
     
    Last edited: Dec 1, 2017
    AbsintheRed likes this.

Share This Page