Merkava's Mods

Discussion in 'Civ4 - Mod Components' started by Merkava120, Apr 2, 2020.

  1. Merkava120

    Merkava120 Oberleutnant

    Joined:
    Feb 2, 2013
    Messages:
    403
    Gender:
    Male
    Location:
    Socially distant
    Disasters!

    Current version: 0.4

    This mod will be built up gradually in several updates over the next few weeks. Right now it has 6 disasters, configurable through XML, which do damage and then disappear after a few turns. They can also spread other disasters (storms can spread fire) or themselves (fire spreads fire, disease spreads disease via trade routes). They can also move toward certain targets - storms just move toward land or randomly; locusts move toward a nearby farm.

    Now includes warnings based on techs; if a player gets the tech "astronomy" for example, they will be warned in advance about meteor strikes. Does not affect the AI whatsoever.

    Disasters Mod - currently under development

    Version 0.4 additions:
    Spoiler :

    • Changed the way art is read into the XML so that you can add as many art effects to a disaster as you want.
    • Added messaging for damage and spawning of disasters and made sure it works.
    • Somehow, the hurricane artwork broke and won't display now. Yippee
    • Added "warnings" that can require anything the player has (tech/civic/trait) before displaying a warning a couple turns before a disaster occurs. I intend to expand this to things on specific tiles but haven't quite finished that yet


    Previous versions
    Spoiler :

    Version 0.3 additions:
    Spoiler :

    • Disasters now have the ability to move toward XML-defined targets, or just toward land, or just randomly.
    • Disasters can now spread copies of themselves, or entirely different disasters.
    • Added "Locusts" (they move from farm to farm, destroying them) and "Disease" (spreads via trade routes and kills population).
    • Updated other disasters to include movement and relevant spreads.
    • Fixed a bug where the lifetime of a disaster could be zero even if iMinLifeTime was set to something greater.


    Version 0.2 additions:
    Spoiler :

    • Disasters now have a lifetime, after which they will be removed.
    • Disasters can now cause damages, as many as you want.
    • A "damage" has a chance of occurring each turn the disaster is alive.
    • Damage done to buildings will destroy the building, but production will be replaced in the city to bring the hammers for the building close to the original. For example, doing 25% damage to a building would destroy it, but you'd get 75% of the production cost added back to the city. So it's like repairing buildings.
    • Otherwise, damage done to improvements is a random chance of pillaging it, and for population and units damage is just straight % damage.
    • Added a disaster "Meteor" with an effect from Himan.
    • Changed tornado to one by Himan.


    Version 0.1:
    Spoiler :

    • Natural disasters are set up through an XML file called DisasterInfos.xml
    • Each turn there is a 10% chance of spawning any disaster
    • Each type of disaster has a weight, set in the XML, that determines how likely a spawned disaster will be that type of disaster
    • Disasters can have up to two art effects, set through the XML
    • Adds a unit called "God" which can be used to test any disasters added through the XML. If you want to add your own disaster and test it, make sure to add the disaster as "EVENT_<tag you used in the xml>" in the EventInfos file, and then add that event to the god trigger in EventTriggerInfos file. The mod will take care of the rest.
    • Includes: Fire, Storm, Hurricane, Tornado


    Credits
    Spoiler :

    Thanks to Hrochland for the rain and the beautiful tornado, Walter Hawkwood for the hurricane (stripped from a storm drake crag from Fantasy Pack 2: Lairs & Ruins), Lord Tirian for the locusts (found here, thanks Himan), FFH for the cloud part of the storm, Gods of Old for half of the disease effect (the other half is the stock city-is-sick effect), and Civ4 for the fire.

     
    Last edited: May 22, 2021
  2. Merkava120

    Merkava120 Oberleutnant

    Joined:
    Feb 2, 2013
    Messages:
    403
    Gender:
    Male
    Location:
    Socially distant
    I haven't added any yet, haha :mischief: right now I'm working on getting my core python mods all figured out - Disasters, Seasons + Snowfall, animal spawning/hunting (I think) - and putting together a list of mods I would ideally add to your mod once I am ready to go. Conqueror's Delight is at the top of the list, and most of the classic "dynamic" mods (dynamic civics, civic linked leaders, dynamic civ names) are on the list.

    also planning out a dynamic tech tree, which is surprisingly difficult. I want to keep uniqueness of civs, but also have different paths that they could unlock, but also give the player a chance to decide which paths to follow, but also base it on available circumstances...haha. :crazyeye:
     
  3. keldath

    keldath LivE LonG AnD PrOsPeR

    Joined:
    Dec 20, 2005
    Messages:
    6,943
    Location:
    israel
    wonderful.
    keep going dear israeli tank friend.

    Conqueror's Delight had some good stuff in it.
    dynamic techs was done in some way years ago, worth to scout the records.

    anyway, im here if you need to consult and some help.
     
  4. hrochland

    hrochland Prince

    Joined:
    Apr 9, 2006
    Messages:
    2,268
    Location:
    Czech Kingdom
    Downloaded. I was looking at the picture. It's been a long time since I've been a hurricane. I see that he needs a few adjustments.
     
  5. Zeta Nexus

    Zeta Nexus Deity

    Joined:
    Jan 23, 2014
    Messages:
    4,459
    Gender:
    Male
    Location:
    In a constant brainstorm...
    :eek:
    So your super powers are not limited to Civ4 graphic modifications?! :lol:
     
  6. hrochland

    hrochland Prince

    Joined:
    Apr 9, 2006
    Messages:
    2,268
    Location:
    Czech Kingdom
    :) you haven't seen me eat yet
     
    tantanmen, Merkava120 and Zeta Nexus like this.
  7. hrochland

    hrochland Prince

    Joined:
    Apr 9, 2006
    Messages:
    2,268
    Location:
    Czech Kingdom
    Try this one. It should be a little better
     

    Attached Files:

  8. Merkava120

    Merkava120 Oberleutnant

    Joined:
    Feb 2, 2013
    Messages:
    403
    Gender:
    Male
    Location:
    Socially distant
    That is seriously beautiful. Uploaded a new version using it :worship:
     
  9. Merkava120

    Merkava120 Oberleutnant

    Joined:
    Feb 2, 2013
    Messages:
    403
    Gender:
    Male
    Location:
    Socially distant
    Updated disasters to have warnings based on certain techs. I'm planning on working on this mod and others a lot more over the next few weeks...
     
    raystuttgart, hrochland and keldath like this.
  10. raystuttgart

    raystuttgart Civ4Col Modder Supporter

    Joined:
    Jan 24, 2011
    Messages:
    7,513
    Gender:
    Male
    Location:
    Stuttgart, Germany
    @Merkava120
    Maybe this thread is also interesting to you.

    WTP already has stuff like Storms / Winds / Tornados / Volcanos / ... as well.
    (And if you want to check and use our graphics, you of course can.)

    Storms / Winds are constantly generated / reforming on the Ocean (controled by TerrainFeatures XML).
    Tornados / Volcanos spawn and de-spawn on Land (controlled by Python Events).

    Now however I am experimenting with a new System to do stuff like this.
    (Adding Sandstorms and Fog.)

    It is however still a "prototype".


     
    Last edited: Jun 18, 2021
  11. Merkava120

    Merkava120 Oberleutnant

    Joined:
    Feb 2, 2013
    Messages:
    403
    Gender:
    Male
    Location:
    Socially distant
    Sorry for taking so long to reply - that is a seriously cool mod! Especially the sandstorms and fog.
     
  12. Merkava120

    Merkava120 Oberleutnant

    Joined:
    Feb 2, 2013
    Messages:
    403
    Gender:
    Male
    Location:
    Socially distant
    Dynamica progress update - I ran into some seriously annoying mystery crashes with the disasters mod and basically abandoned it a couple months ago. Meanwhile I've been focusing on learning SDK for the tactical mod, which is going quite well now.

    I've decided I want to focus entirely on the Dynamic Techs part of Dynamica for now - since a mod like that has never been seen in any version of civ (as far as I know). I am currently trying to develop a tech tree that is a) realistic and b) dynamic with multiple paths. Once I get that figured out and tweak the Dynamic Techs python mod, I'll be uploading a fully dynamic version of Civ4 as soon as I can.

    From there I plan to move on to the more complicated things like nomadic start/disasters/factions/etc., possibly using SDK. But for now, Dynamic Techs is the main focus.

    (if anyone reading this is super good at designing tech trees and wants to lend a hand please message me :lol:)
     

Share This Page