[MOD] Speed Mod

Discussion in 'Civ4 - Modpacks' started by Kael, Apr 19, 2007.

  1. Kael

    Kael Deity

    Joined:
    May 6, 2002
    Messages:
    17,401
    Location:
    Ohio
    Download here: http://forums.civfanatics.com/downloads.php?do=file&id=4636 (updated 04/29/2007)

    [TAB]Speed Mod is a Warlords mod for Civilization IV. It requires Warlords patch 2.08 to run.

    [TAB]Speed Mod doesn't change any of the functionality of Civilization IV, everything is exactly the same as in the core game. But it has been optomized for speed. Although it improves the games performance in all areas the biggest difference players will notice is in the delay between turns, which can drop to a fraction of the normal time. If you are tired of waiting between turns, try Speed Mod.

    How does it work?

    [TAB]A significant percentage of Civ4's time is spent running python checks. C++ is very fast, python is pretty slow in comparison. Firaxis added all of these python checks so that we can mod in all of our own changes. There is a python call whenever combat ends, whenever a unit moves, whenever a plot is revealed, etc etc etc. But in the unmodded game none of these checks do anything.

    [TAB]In Speed Mod I took out all of the python checks. Now we remain in C++ and everything flies. As a consequence you cant do any python modding with the Speed Mod dll, but if you want to play the normal game, only faster, Speed Mod is your best bet.


    Whats coming up for Speed Mod?

    [TAB]Right now I want to get some test results from you guys. Personally I can run on huge maps full of AI civs at the same speed I used to do standard maps (my comptuer isnt that great so I was never able to do anything much beyond the standard size map). But I need to hear about how it effects your games.

    [TAB]I tried to make sure all of the python functions I removed didnt do anything, and my own games are working fine, but I also need to know about anything I broke.

    [TAB]If everyone likes Speed Mod I will probably develop a version for the vanilla game.

    Source Code: Speed Mod Source Code
     
  2. Kael

    Kael Deity

    Joined:
    May 6, 2002
    Messages:
    17,401
    Location:
    Ohio
    Reserved for future use.
     
  3. ClassicThunder

    ClassicThunder Prince

    Joined:
    Sep 15, 2006
    Messages:
    511
    Sweet Kael. Have you considered doing it to stock civ4?

    I've done some serious number crunching with C++ and it always surprised me how long the turns took. And to make sure this only prevents the calls found in the CvEventManager.py right. It doesn't do anything to any python callable functions?
     
  4. Kael

    Kael Deity

    Joined:
    May 6, 2002
    Messages:
    17,401
    Location:
    Ohio
    Yeap .
     
  5. ClassicThunder

    ClassicThunder Prince

    Joined:
    Sep 15, 2006
    Messages:
    511
    Excellent, I must begin to port my little bit of Python coding to C++ now. Are you going to set up FFH2 to use the Speed Mod?
     
  6. Kael

    Kael Deity

    Joined:
    May 6, 2002
    Messages:
    17,401
    Location:
    Ohio
    Pretty much, just like you say I've been moving python functions into the SDK one by one. I doubt I will have it 100% in the SDK, but I will move the ones that make sense in and shut off the python function Im not using so they aren't wasting processor time.
     
  7. Andrew_Jay

    Andrew_Jay Prince

    Joined:
    Aug 4, 2002
    Messages:
    438
    How does this affect any custom scenarios (such as the Warlords scenarios) that used their own python processes?
     
  8. Kael

    Kael Deity

    Joined:
    May 6, 2002
    Messages:
    17,401
    Location:
    Ohio
    It will break them. Speed Mod is a mod (even if it doesnt do anything but speed up the game), it can't be used with other mods without some customizing.
     
  9. seZereth

    seZereth FfH´s art monk(ey)

    Joined:
    Feb 3, 2006
    Messages:
    3,900
    Location:
    Bayreuth
    FfH II and WHFB need this :)
     
  10. keldath

    keldath LivE LonG AnD PrOsPeR

    Joined:
    Dec 20, 2005
    Messages:
    7,084
    Location:
    israel
    wow kael,

    this can be our salvation to visa modpack....our game gets sometimes laggy in late game....

    we will try to merge it into ourown...

    impressive work.
     
  11. strategyonly

    strategyonly C2C Supreme Commander

    Joined:
    Mar 13, 2006
    Messages:
    20,864
    Gender:
    Male
    Location:
    MN
    Sounds great to me!!! Warlords spelled wrong on first post (info)
    EDIT:
    Now is this intended for a normal game only or can you put it in any Warlord MOD?
     
  12. Potatish

    Potatish Chieftain

    Joined:
    May 2, 2004
    Messages:
    99
    Holy ****balls.

    Are you going to release any instructions to show us hopefuls how to integrate this into our own mods?
     
  13. Kael

    Kael Deity

    Joined:
    May 6, 2002
    Messages:
    17,401
    Location:
    Ohio
    Yeah, the source will be up tomorrow.
     
  14. Potatish

    Potatish Chieftain

    Joined:
    May 2, 2004
    Messages:
    99
    Thank you much. Moderate frame rates are no problem for me... It's the unbelievably long waiting times I have to endure after I finish a turn that pain me, and give me nightmares for weeks.

    Okay, maybe I was exaggerating a bit at the end there, but you must admit, the waiting times after turns almost kill the game.
     
  15. Zebra 9

    Zebra 9 Emperor

    Joined:
    May 17, 2006
    Messages:
    1,554
    Location:
    Middle of Cyberspace
    Cool, I still play unMODed civ, but now I'll never play another unMODed.
     
  16. Kael

    Kael Deity

    Joined:
    May 6, 2002
    Messages:
    17,401
    Location:
    Ohio
    I agree 100%, thats exactly why I made this.
     
  17. Kael

    Kael Deity

    Joined:
    May 6, 2002
    Messages:
    17,401
    Location:
    Ohio
    It will only work with the Warlords epic game ("epic" meaning the normal game not the game speed). I will put up the source code tomorrow so modmakers can integrate parts they want in their own mods but it will not work out of the box with other mods.
     
  18. Kael

    Kael Deity

    Joined:
    May 6, 2002
    Messages:
    17,401
    Location:
    Ohio
    It kills any python call which isnt used in the epic game for warlords. Thats a lot of calls in cveventmanager but also includes a lot in cvgameinterface (and through to gameutils) as well. The only ones i left in were some python calls that pulled up certain screens.
     
  19. Dom Pedro II

    Dom Pedro II Modder For Life

    Joined:
    Apr 3, 2002
    Messages:
    6,811
    Location:
    Exit 16, New Jersey
    This is a great idea since I think a lot of us can use ways of reducing turn times because of all the added shhhhh-stuff we've put into our mods :)
     
  20. rapiduser

    rapiduser Chieftain

    Joined:
    Oct 15, 2006
    Messages:
    72

Share This Page