@PlutonianEmpire I'm not trying to speak for TheNamelessOne by any means, but I can shed a little more light on at least one of your issues.
Regarding the tech paradigm, there are actually
two instances of this, stored in separate memory locations (or as separate fields). In the Lua interface that TheNamelessOne provided via TOTPP, the one found in the @ COSMIC section of Rules.txt is read into memory and stored as
civ.cosmic.techParadigm. If you go into the "Cheat" menu and choose "Scenario Parameters", the second option on the list is also "Tech Paradigm". This is read into memory and stored in Lua as
civ.scen.params.techParadigm. The game is written so that scenarios
and mods reference this second value, rather than the first. In other words, it's not that the tech paradigm in Rules.txt isn't being read -- it's that mods look at a different field, namely the one used by scenarios.
If your mod uses Lua events, it's really easy to add one line into Events.lua that will set the tech paradigm to whatever value you want: for example,
civ.scen.params.techParadigm = 25
But if your mod
doesn't use Lua events, then unfortunately there isn't a great solution at present. The following steps will work, though, as of TOTPP 0.18.4:
- Begin a new game as you typically would using your mod
- Before taking any actions at all on your first turn, save the game
- Activate Cheat Mode
- Open the Lua console by pressing [Ctrl]-[Shift]-[F3]
- Without exiting back to the main menu, reload the saved game you just created. This will leave the Lua console open (you may have to drag window borders to find it) but now Cheat Mode is turned off.
- In the white box at the bottom, type the line I listed above, substituting the tech paradigm you want to use instead of 25, and press Enter
Now your game will proceed with the tech paradigm you want, and it should be stored in each saved game going forward. You won't have to repeat these steps each time you load a saved game -- only the first time after you begin a new game using a mod.
It would be great if the tech paradigm could be added as a supported field to the @ MOD section that appears at the top of Rules.txt. That's the typical way in which other scenario parameters and flags are provided to a mod, and hopefully
@TheNamelessOne can add that feature at some point.
Are there other entries in @ COSMIC that you don't think are being read correctly, or referenced as you expect, by your mod?
Regarding the issue with pollution, I don't have a good answer. If this is being turned off by adding
flags=0x40 to the @ MOD section in Rules.txt, I don't know why this wouldn't remain in effect for the whole game -- that certainly sounds to me like a possible bug. Unfortunately I can't do much to troubleshoot it, that will have to wait for TNO.