c++

  1. FlammieJerynZ

    [BNW] Is this custom function for the DLL okay?

    Hi everyone! How're you? I hope you all be okay. I was having the idea to create a custom function for CvCity in the DLL, to check if a City has a Secondary Pantheon Belief (gained by the Religious Tolerance Social Policy in Piety Social Policy Tree). But I was wondering if is well writed here...
  2. S

    [BTS] Help with Project Structure and Enums

    I am just starting to mod Civ4 in order to implement a Reinforcement Learning agent from a 2009 paper and try to improve upon it as a project for an exam. The code for the paper was written in C++ and embedded in the SDK instead of using the Python API so for now I am mostly working with the C++...
  3. FlammieJerynZ

    [BNW] How we can make Trade Routes use Routes (Roads and Railroads) like normal Units via the DLL?

    Good day or night everyone! I hope you all be okay. I was thinking if can be possible to allow Trade Routes (Internal or International) to use Roads and/or Railroads (just like the other Units) benefiting from their Movement bonuses via modifying the BNW DLL. This can be possible? Thank you in...
  4. FlammieJerynZ

    How we can make an event when a City adopts a Religion via the DLL?

    Hi everyone, good day or night to all! I'm here today to ask you if is possible to make a event via the DLL that fires when a City adopts a Religion by any traditional method (natural pressure spread, by Missionaries, etc), but not when their Followers count change, only when a City adopt thar...
  5. billw2015

    A short guide to debugging the exe

    This is something I quickly wrote after a couple of recent successes tracking down and fixing crashes that happen in the Civ4 BtS exe (due to our changes), using the disassembly window: https://github.com/caveman2cosmos/Caveman2Cosmos/wiki/Debugging-the-Disassembly I will add more later as I...
  6. billw2015

    DLL optimizations I'm considering.

    Its just a quick grab bag of stuff I noticed that piqued my interest (and can remember off the top of my head right now), that I want to investigate with an eye to improving performance: Sparse bool arrays - these seem to be used a lot, and in every case I so far looked at they are forcing the...
  7. T

    [BNW] Unable to debug a minidump?

    I have a minidump of a crash that happened with my compiled DLL (which i don't know why is happening as it happens randomly after i click next turn), but if i try running the debugger, but why should it be needed? Does this mean the problem is not in my DLL? Before this it had a crash which just...
  8. fertiliser

    [BNW] [Bugfixes] [Optimisation] Has it been done before?

    I have a reasonable amount of experience with modding Civ5, but have always avoided the DLL due to compatibility issues. This time around. there's an ambitious project on the horizon. It involves bugfixes and QoL, that may or may not have been done in the past. I'd like to make sure before I...
  9. Jaey

    Help Please! Runtime Error with Specific Mod: City State Creation

    Good Afternoon modding community. I just found both the free time and the courage to try and create a new city state, and every time I load a test scenario with the city state in question, I get this heart-wrenching error: "Runtime Error! Program: C:\Program Files (x86)\Steam\steamap... This...
Back
Top Bottom