Recent content by AJNoyes

  1. A

    I found a way to add custom requirements for an improvement (e.g., the combination of a feature and terrain). But I need help with the last step!

    Goal: I wanted to restrict farms to be on or next to wheat, rice, and maize. This is impossible with the hard coded requirements. Solution: In the database, I define and require a new terrain called "Farmland." I define the requirements I want in LUA, and when they are met, I set the terrain...
  2. A

    [SOLVED] WITH RECURSIVE breaking my mod...why?

    For posterity: I was looking at the log files in Documents (which are no longer updated). You need to look in the log files in AppData/Local/FiraxisGames/... With the right logs, I saw: [Gameplay] ERROR: no such function: POWER. This function does not exist in SQLite. sqliteonline.com...
  3. A

    [SOLVED] WITH RECURSIVE breaking my mod...why?

    Update: The Warrior statement succeeds after CREATE TABLE. So, it's the WITH RECURSIVE part that is breaking the mod.
  4. A

    [SOLVED] WITH RECURSIVE breaking my mod...why?

    I am trying to create an exponential increase in production based on population size. I tested the following code with https://sqliteonline.com/ and it produces the expected table with the expected values. However, the rest of the mod (that updates the database with this code) fails. My...
Top Bottom