pop_growth "Bug"

General Stars in Shadow Discussion Forum
Post Reply
Serenitis
Posts: 84
Joined: Sat Jan 04, 2020 10:09 am

pop_growth "Bug"

Post by Serenitis »

Not sure if this is an actual bug or something I've inadvertently done.

Finally got around to porting over my trashmods to the new version (GoG 53321) and started playing a game.
Everything was going well until I met the Tinkers after they took over a Marauder world, and the turn after the game stopped with an error complaining about pop growth data being missing.

Sent a report as game_10665.
Spoiler: show

Code: Select all

Lua state\Galaxy\pop_growth.lua:895: growth_rate is missing required field: r -> teros_harmonized
Lua state\Galaxy\pop_growth.lua:895:growth_rates:
 Lua state\Galaxy\pop_growth.lua:967:
  Lua state\@@util\functional_tricks.lua:214:calc_growth:
   Lua state\Orders\planet.lua:87:Rasalgethi II:
    Lua state\Orders\planet.lua:98:
     Lua state\Orders\@resource_curves.lua:16:eval:
      Lua state\Orders\research_production.lua:38:
       Lua state\Orders\monster_economics.lua:41:total_planet_production:
        Lua state\Orders\raiders.lua:6:measure:
         Lua state\@@util\get_optima.lua:71:get_max_key:
          Lua state\Orders\raiders.lua:108:
           Lua state\@@util\functional_tricks.lua:214:
            Lua state\AI\threat_metrics.lua:106:Okanin's Irregulars:
             Lua state\@@util\functional_tricks.lua:214:calc_extended_threat:
              Lua state\AI\threat_metrics.lua:198:
               Lua state\@@util\functional_tricks.lua:214:calc_threatened_stats
SCOPE keys: _ELEMENT_ENV, calling AI, temp AI State | FLAG keys: ending_year, resolve_actions
Is this my fault, or is it something that is actually broken?
(I don't recall doing anything with pop_growth, but...)
User avatar
sven
Site Admin
Posts: 1647
Joined: Sat Jan 31, 2015 10:24 pm
Location: British Columbia, Canada
Contact:

Re: pop_growth "Bug"

Post by sven »

It's hard to say for certain, but I'd suspect the fault is with your mods -- simply because no one else on this build appears to be seeing the same bug.

My guess would be that you may somehow have ended up with an old version of RACES.lua file. Do any of your mods replace RACES.lua? If so, you may need to rewrite them against the modern version (or maybe just copy in the more modern remove_race_suffix definition).
Serenitis
Posts: 84
Joined: Sat Jan 04, 2020 10:09 am

Re: pop_growth "Bug"

Post by Serenitis »

Actually, this was an incredibly helpful reply!

This was my fault as I had changed RACES.lua, but I was looking in planet_types trying to see where the growth rates were being referenced and going from that direction.
And that file was ported over from the previous version, so wouldn't have any of the new harmonized pop stuff in it - hence the error.
It likely would have taken me quite some time to pick apart where things were linked and end up here.
So, thank you v. much.

For context, I have two mods that could potentially affect this - one for terraforming, and one that fills in planet names for some home systems / minor worlds and general fluff stuff.
I was looking in the terraforming mod because that would be the obvious place (to me), but the changed RACES was in the fluff mod.
So just that one comment was all it took.
Post Reply