Search results

  1. D

    Tech Tree grows way out to the right

    Hi folks, Sorry if this has been answered before, I tried some searches but came up empty, pretty sure I don't know what terms I need to be searching for, unfortunately. I'm updating my old (currently non-functional) Epochs mod for BNW and I'm running into a problem where the tech tree is...
  2. D

    Error log spam that I can't account for

    I'm having a lot of spam in database.log that I can't account for. Everything seems to be working (there are one or two small errors in here), but I get this error over and over: [322026.093] While executing - 'INSERT INTO Defines(Name, Value) VALUES(?, ?)' [322026.093] constraint failed Full...
  3. D

    City-State Investments

    City-State Investments Download it here: http://forums.civfanatics.com/downloads.php?do=file&id=20678 IF YOU ENCOUNTER BUGS OR ODDITIES, PLEASE REPORT THEM WITH AS MUCH DETAIL AS POSSIBLE AND A SAVED GAME IF POSSIBLE This is a mod component being developed as a piece of a larger City-State...
  4. D

    Debugging practices

    I've run into an apparently random crash bug - it's completely inconsistent when it happens, sometimes it takes 20 turns, sometimes it takes 1. It always happens, eventually. I don't know how to debug it. It's *probably* happening in my C++ code. I've been over it extensively and...
  5. D

    DLL objects and saved games

    I've created a new class in the DLL - "CvInvestments". An investment is an agreement between a CvPlayer and a CvMinorCivAI which performs certain logic (increasing your per-turn expenses, for example, and giving the Minor Civ bonuses each turn, and increasing your influence every turn). There's...
  6. D

    NOTIFICATION_(type)

    Is it possible to add notification types in the DLL? I'm looking around and I can't find where the notification types are defined - looking like I'll have to define it in Lua, which seems odd.
  7. D

    Optimization

    Are there optimization concerns for Lua function calls into the DLL? E.g. is it more expensive for Lua plot:GetX() to find the X coordinate of the plot than it would be for CvPlayer has to call into CvPlot to find X within the DLL itself? If it is more expensive to go through that interface...
  8. D

    Any gotchas in adding a new class in the DLL?

    I'm defining a new class in the DLL. Nothing too tricky about the functionality - some data, basic get/set functions, and a few slightly more involved functions, with a few protected variables. I've got my .h and .cpp files set up and I'm filling them out. Are there any gotchas that I should...
  9. D

    [C++] What is gDLL?

    I see it everywhere, and I've even done some work with it, but I don't really understand it. When I've tried to find the methods that it's being used for - for example: gDLL->sendMinorGiftGold(eMinor, iNumGold); nothing appears. I'm not really a programmer - a competent scripter who...
  10. D

    [DLL] How are Events defined in the DLL?

    So, the available events exposed to Lua are woefully limited - e.g. no OnBuildingCreated() or similar event. Has anyone looked into exactly how those events are defined in the DLL, if at all? What would it take to define a new one?
  11. D

    Are there any gotchas in creating a new City-State in a game?

    I am planning to implement a feature that will allow players to 'liberate' their own cities as a new city-state. Don't ask why, it's complicated. Has anyone attempted this before? If so, are there any gotchas in adding a new City-State player to a game in progress through lua or the dll? I'm...
  12. D

    Improvements don't show art assets

    I'm doing a mod with a number of custom improvements, including a "Research Station". None of my custom improvements display art assets on the in-game map and I can't figure out why. They are functioning - my workers can build them at the appropriate tech, their yields work, etc. - but they...
  13. D

    [LUA] Global context...?

    So, I'm a reasonably proficient scripter but new to Lua and new to using it in Civ 5 modding. When are scripts in the global context executed? Is it just at game start and on loading the saved game? Less often? More often? I put this as the first line in a .lua file: print...
  14. D

    [LUA] Best way to execute some Lua when a particular Wonder is built?

    I'm implementing a building that needs to execute a particular bit of Lua when first constructed. I'm reasonably familiar with but not an expert on Lua and scripting in general. Is there a generally accepted best way to do this? I did find this...
  15. D

    [LUA] Granting a Free Tech to every player

    I'm trying to set up a wonder that gives a free tech to every civilization when built. I'm very comfortable with the XML portions of modding. This is a Free Tech similar to the Great Library free tech - you get a popup that lets you choose one tech. I've started by trying to set it up through...
  16. D

    Civilization Epochs

    Civilization Epochs Epochs is a comprehensive Civ 5 overhaul featuring a greatly expanded technology tree with many new units, wonders, and buildings. Epochs is being developed as an advanced version of Civilization 5 - a version of the game with a more detailed tech tree, an economic system...
  17. D

    With the DLL coming out, is anyone planning to update the AI?

    I'm not a programmer, so I wouldn't be able to do it on my own, but if anyone is planning to do this work and needs game design help (I am a professional game designer) or planning/organizational work done, I would be interested. I would like to see a Deity level AI that doesn't need three free...
  18. D

    Is there a way to have a building increase production speed of Settlers?

    Is there a way to have a building increase production speed of Settlers? I saw that it can increase production speed of domains and of combat classes. Would it be possible to add a UNITCOMBAT entry for Settlers (and other noncombats that I want to have affected) and give an increase on that...
  19. D

    Would there be interest in a large-scale combat redesign mod...

    Basically, I think I can train the AI to use its military better. To do this, I will need to greatly simplify combat and unit designs, with far fewer counter units and fewer units that need to be protected. The obvious con is that combat will be simpler, with less depth, and less clever plays...
  20. D

    Submarines can pick the promotion for bonus bombarding vs land units...

    ...and can't actually bombard land units. Just thought I'd share.
Top Bottom