Attention modders: 00_defines.lua changed to 00_defines.txt

  • We have updated our Community Code of Conduct. Please read through the new rules for the forum that are an integral part of Paradox Interactive’s User Agreement.

Frostwood

Corporal
33 Badges
Mar 19, 2016
30
62
  • Crusader Kings II: Charlemagne
  • Crusader Kings II: Legacy of Rome
  • Crusader Kings II: The Old Gods
  • Crusader Kings II: Rajas of India
  • Crusader Kings II: The Republic
  • Crusader Kings II: Sons of Abraham
  • Crusader Kings II: Sunset Invasion
  • Crusader Kings II: Sword of Islam
  • Crusader Kings II
  • Stellaris: Synthetic Dawn
  • Stellaris: Galaxy Edition
  • Stellaris - Path to Destruction bundle
  • Crusader Kings III
  • BATTLETECH
  • Stellaris: Humanoids Species Pack
  • Stellaris: Apocalypse
  • Stellaris: Distant Stars
  • Stellaris: Megacorp
  • Stellaris: Ancient Relics
  • Stellaris: Lithoids
  • Stellaris: Federations
  • Stellaris: Leviathans Story Pack
  • Stellaris: Digital Anniversary Edition
  • Crusader Kings II: Reapers Due
  • Stellaris Sign-up
  • Stellaris: Galaxy Edition
  • Stellaris: Galaxy Edition
  • Stellaris
  • Crusader Kings II: Conclave
  • Crusader Kings II: Horse Lords
  • Crusader Kings II: Way of Life
  • Cities: Skylines
  • Cities: Skylines Deluxe Edition
After three hours of attempting to get my mod to work, I finally figured out that 00_defines is no longer a lua file, so any mod that relies on this is broken, so I'm posting this thread to save a fellow modder why his/her mod is no longer working.(It's also one of the first tutorials to get into modding Stellaris.)

Basically anything that relies on something like this: NDefines.NGameplay.ANOMALY_SPAWN_CHANCE = 1.0 no longer works. Which pretty much broke my Anomaly spawn chance mods.

Changing the 00_defines file to a lua file sadly crashes the game.

I looked a few buried bug threads, and there seems to be no solution for now.
 

Seomis

Major
49 Badges
Jun 27, 2016
562
418
  • Crusader Kings II: Charlemagne
  • Stellaris - Path to Destruction bundle
  • Cities: Skylines - After Dark
  • Victoria 2: Heart of Darkness
  • Victoria 2: A House Divided
  • Crusader Kings II
  • Victoria: Revolutions
  • Europa Universalis IV: Res Publica
  • Europa Universalis IV: Call to arms event
  • Europa Universalis IV: Wealth of Nations
  • Europa Universalis IV: Conquest of Paradise
  • Europa Universalis IV
  • Crusader Kings II: Sword of Islam
  • Crusader Kings II: Sunset Invasion
  • Crusader Kings II: Sons of Abraham
  • Crusader Kings II: The Republic
  • Crusader Kings II: Rajas of India
  • Crusader Kings II: The Old Gods
  • Europa Universalis IV: Art of War
  • Crusader Kings II: Legacy of Rome
  • Stellaris: Digital Anniversary Edition
  • Stellaris: Leviathans Story Pack
  • Cities: Skylines - Natural Disasters
  • Hearts of Iron IV: Together for Victory
  • Surviving Mars: First Colony Edition
  • Cities: Skylines - Mass Transit
  • Surviving Mars
  • Surviving Mars: Digital Deluxe Edition
  • Shadowrun Returns
  • Shadowrun: Dragonfall
  • Surviving Mars: First Colony Edition
  • Stellaris: Megacorp
  • Prison Architect
  • Europa Universalis IV: Rights of Man
  • Crusader Kings II: Reapers Due
  • Hearts of Iron IV: Colonel
  • Hearts of Iron IV: Cadet
  • Stellaris: Galaxy Edition
  • Cities: Skylines - Snowfall
  • Crusader Kings II: Conclave
  • Crusader Kings II: Horse Lords
  • Europa Universalis IV: Common Sense
  • Pillars of Eternity
  • Crusader Kings II: Way of Life
  • Europa Universalis IV: Pre-order
  • Cities: Skylines
  • Victoria 2
  • Stellaris
  • Age of Wonders III
They yanked out the Lua parser entirely and implemented their own. It's a pretty stark omission from the change log for something that permanently breaks a huge percentage of mods. I wonder if Divine or wiz or anyone else in the know could speak on it.
 

ShadowDragon868

Captain
34 Badges
Jun 11, 2012
395
431
  • Crusader Kings II
  • A Game of Dwarves
  • Stellaris - Path to Destruction bundle
  • BATTLETECH: Heavy Metal
  • Steel Division: Normandy 44
  • BATTLETECH
  • Surviving Mars
  • Stellaris: Synthetic Dawn
  • Age of Wonders III
  • Surviving Mars: Digital Deluxe Edition
  • BATTLETECH - Digital Deluxe Edition
  • BATTLETECH - Beta Backer
  • BATTLETECH - Backer
  • Shadowrun Returns
  • Shadowrun: Dragonfall
  • Shadowrun: Hong Kong
  • BATTLETECH: Flashpoint
  • BATTLETECH: Season pass
  • Stellaris: Leviathans Story Pack
  • Hearts of Iron IV: Cadet
  • Stellaris
  • Knights of Pen and Paper 2
  • Magicka: Wizard Wars Founder Wizard
  • 500k Club
  • Knights of Pen and Paper +1 Edition
  • Magicka 2
  • Pillars of Eternity
  • Magicka
  • Heir to the Throne
  • Divine Wind
  • Europa Universalis III: Chronicles
  • Europa Universalis III
  • Crusader Kings II: The Old Gods
  • Crusader Kings II: Legacy of Rome
I was just about to come ask if they stuffed an update by having an intern accidentally headcap the file.

It's a text file, but still formatted exactly the same as the lua file it was. What the epic hell is going on here? Do you have to do a full file replacer now?
 

RandomZach

Captain
49 Badges
Nov 11, 2013
359
201
  • Stellaris: Synthetic Dawn
  • Europa Universalis IV: Art of War
  • Europa Universalis IV: Conquest of Paradise
  • Europa Universalis IV: Wealth of Nations
  • Europa Universalis IV: Call to arms event
  • Magicka
  • Europa Universalis IV: Res Publica
  • Europa Universalis IV: Third Rome
  • Stellaris - Path to Destruction bundle
  • Cities: Skylines - Parklife
  • Imperator: Rome Deluxe Edition
  • Europa Universalis IV: Rule Britannia
  • Stellaris: Apocalypse
  • Stellaris: Humanoids Species Pack
  • Hearts of Iron IV: Expansion Pass
  • Europa Universalis IV: Cradle of Civilization
  • Age of Wonders III
  • Stellaris: Distant Stars
  • Europa Universalis IV: Dharma
  • Europa Universalis IV: Golden Century
  • Stellaris: Nemesis
  • Imperator: Rome Sign Up
  • Stellaris: Ancient Relics
  • PDXCon 2019 "Baron"
  • Stellaris: Lithoids
  • Stellaris: Federations
  • Europa Universalis 4: Emperor
  • Stellaris: Necroids
  • BATTLETECH
  • Europa Universalis IV
  • Cities: Skylines
  • Europa Universalis IV: El Dorado
  • Europa Universalis IV: Pre-order
  • Magicka 2
  • Europa Universalis IV: Common Sense
  • Europa Universalis IV: Cossacks
  • Europa Universalis IV: Mare Nostrum
  • Stellaris
  • Hearts of Iron IV Sign-up
  • Hearts of Iron IV: Cadet
  • Europa Universalis IV: Rights of Man
  • Stellaris: Digital Anniversary Edition
  • Stellaris: Leviathans Story Pack
  • Hearts of Iron IV: Together for Victory
  • Europa Universalis IV: Mandate of Heaven
  • Hearts of Iron IV: Death or Dishonor
  • Stellaris: Megacorp
  • Imperator: Rome
  • Crusader Kings II
It's a text file, but still formatted exactly the same as the lua file it was. What the epic hell is going on here? Do you have to do a full file replacer now?

It's not formatted the same way. It is no longer valid Lua. The commas have been removed and the comments have been converted.

This is the exact opposite of the direction they should be heading. They should be exposing more code via Lua, not removing it in favor of their very limited, inconsistent, and proprietary scripting language.

If, indeed, there's no way to modify it without just replacing the whole file then it's also a huge step backwards for mod compatibility.
 
Last edited:

Frostwood

Corporal
33 Badges
Mar 19, 2016
30
62
  • Crusader Kings II: Charlemagne
  • Crusader Kings II: Legacy of Rome
  • Crusader Kings II: The Old Gods
  • Crusader Kings II: Rajas of India
  • Crusader Kings II: The Republic
  • Crusader Kings II: Sons of Abraham
  • Crusader Kings II: Sunset Invasion
  • Crusader Kings II: Sword of Islam
  • Crusader Kings II
  • Stellaris: Synthetic Dawn
  • Stellaris: Galaxy Edition
  • Stellaris - Path to Destruction bundle
  • Crusader Kings III
  • BATTLETECH
  • Stellaris: Humanoids Species Pack
  • Stellaris: Apocalypse
  • Stellaris: Distant Stars
  • Stellaris: Megacorp
  • Stellaris: Ancient Relics
  • Stellaris: Lithoids
  • Stellaris: Federations
  • Stellaris: Leviathans Story Pack
  • Stellaris: Digital Anniversary Edition
  • Crusader Kings II: Reapers Due
  • Stellaris Sign-up
  • Stellaris: Galaxy Edition
  • Stellaris: Galaxy Edition
  • Stellaris
  • Crusader Kings II: Conclave
  • Crusader Kings II: Horse Lords
  • Crusader Kings II: Way of Life
  • Cities: Skylines
  • Cities: Skylines Deluxe Edition
Yes, if you want your mod to work, you will have to 'overwrite' the 00_defines file, so two mods that touch that file will be incompatible. It's not listed in the patch notes, so I assume it's a bug without an official word from paradox.

UI/total conversion mods are probably a no go until this is fixed. You also won't be able to use a mod that say alters tech penalties for research due to pop and one that eliminates military station maintenance together.

It took me a while to figure this out, and my mod is literally one line, so I'm hoping this helps modders.
 

AlphaAsh

Miserable Git
52 Badges
Mar 16, 2015
1.272
1.176
www.alphastrikegames.com
  • Victoria 2: A House Divided
  • Stellaris: Nemesis
  • Stellaris: Necroids
  • Stellaris: Federations
  • Age of Wonders: Planetfall - Revelations
  • Age of Wonders: Planetfall Season pass
  • Age of Wonders: Planetfall Premium edition
  • Age of Wonders: Planetfall Deluxe edition
  • Age of Wonders: Planetfall
  • Victoria 2
  • Victoria 2: Heart of Darkness
  • Stellaris
  • Stellaris: Galaxy Edition
  • Stellaris: Galaxy Edition
  • Stellaris: Megacorp
  • Stellaris: Leviathans Story Pack
  • Stellaris: Ancient Relics
  • Stellaris - Path to Destruction bundle
  • Stellaris: Lithoids
  • Stellaris: Distant Stars
  • Stellaris: Humanoids Species Pack
  • Stellaris: Synthetic Dawn
  • Stellaris: Digital Anniversary Edition
  • Stellaris: Apocalypse
  • Shadowrun Returns
  • Shadowrun: Hong Kong
  • Shadowrun: Dragonfall
  • BATTLETECH
  • BATTLETECH - Beta Backer
  • BATTLETECH - Backer
  • BATTLETECH: Season pass
  • BATTLETECH: Flashpoint
  • Surviving Mars
  • Surviving Mars: First Colony Edition
  • Cities: Skylines Deluxe Edition
  • Cities: Skylines
  • Cities: Skylines - Parklife Pre-Order
  • Cities: Skylines - Parklife
  • Cities: Skylines - Green Cities
  • Cities: Skylines - Campus
  • Cities: Skylines - After Dark
  • Cities: Skylines - Snowfall
  • Cities: Skylines - Natural Disasters
  • Cities: Skylines - Mass Transit
  • Cities: Skylines Industries
  • Pillars of Eternity
  • Tyranny: Archon Edition
Yes, if you want your mod to work, you will have to 'overwrite' the 00_defines file, so two mods that touch that file will be incompatible. It's not listed in the patch notes, so I assume it's a bug without an official word from paradox.

It's not a bug. Removing such functionality is a conscious decision. Not warning the modding community is a conscious decision. It's a big fat middle digit at modders and will set many of them at each others throats, competing for subs.
 

MrSoulbinder

Sergeant
35 Badges
Apr 4, 2012
62
15
  • Magicka
  • Sword of the Stars II
  • Cities in Motion 2
  • Surviving Mars: First Colony Edition
  • Stellaris: Nemesis
  • BATTLETECH: Flashpoint
  • Stellaris: Megacorp
  • Surviving Mars: First Colony Edition
  • BATTLETECH: Season pass
  • Age of Wonders: Planetfall
  • Age of Wonders: Planetfall Sign Up
  • Stellaris: Lithoids
  • BATTLETECH: Heavy Metal
  • Age of Wonders: Planetfall - Revelations
  • Stellaris: Federations
  • Crusader Kings III
  • Crusader Kings III: Royal Edition
  • Stellaris: Necroids
  • Stellaris: Distant Stars
  • 500k Club
  • Pillars of Eternity
  • Stellaris
  • Stellaris: Digital Anniversary Edition
  • Stellaris: Leviathans Story Pack
  • Stellaris - Path to Destruction bundle
  • BATTLETECH
  • Surviving Mars
  • Age of Wonders III
  • Stellaris: Humanoids Species Pack
  • Stellaris: Apocalypse
  • Surviving Mars: Digital Deluxe Edition
  • BATTLETECH - Digital Deluxe Edition
  • Shadowrun Returns
  • Stellaris: Synthetic Dawn
  • Stellaris: Ancient Relics
It's not a bug. Removing such functionality is a conscious decision. Not warning the modding community is a conscious decision. It's a big fat middle digit at modders and will set many of them at each others throats, competing for subs.

I really hope this is not the case. It would make no sense to deliberately undermine the modding community in this way. Maybe they tried to add some new functionality to the script parser... whatever. Anyway, I hope we get a clarification soon.

Edit: There it is, check here. Not working as intended :D
 
Last edited:

AlphaAsh

Miserable Git
52 Badges
Mar 16, 2015
1.272
1.176
www.alphastrikegames.com
  • Victoria 2: A House Divided
  • Stellaris: Nemesis
  • Stellaris: Necroids
  • Stellaris: Federations
  • Age of Wonders: Planetfall - Revelations
  • Age of Wonders: Planetfall Season pass
  • Age of Wonders: Planetfall Premium edition
  • Age of Wonders: Planetfall Deluxe edition
  • Age of Wonders: Planetfall
  • Victoria 2
  • Victoria 2: Heart of Darkness
  • Stellaris
  • Stellaris: Galaxy Edition
  • Stellaris: Galaxy Edition
  • Stellaris: Megacorp
  • Stellaris: Leviathans Story Pack
  • Stellaris: Ancient Relics
  • Stellaris - Path to Destruction bundle
  • Stellaris: Lithoids
  • Stellaris: Distant Stars
  • Stellaris: Humanoids Species Pack
  • Stellaris: Synthetic Dawn
  • Stellaris: Digital Anniversary Edition
  • Stellaris: Apocalypse
  • Shadowrun Returns
  • Shadowrun: Hong Kong
  • Shadowrun: Dragonfall
  • BATTLETECH
  • BATTLETECH - Beta Backer
  • BATTLETECH - Backer
  • BATTLETECH: Season pass
  • BATTLETECH: Flashpoint
  • Surviving Mars
  • Surviving Mars: First Colony Edition
  • Cities: Skylines Deluxe Edition
  • Cities: Skylines
  • Cities: Skylines - Parklife Pre-Order
  • Cities: Skylines - Parklife
  • Cities: Skylines - Green Cities
  • Cities: Skylines - Campus
  • Cities: Skylines - After Dark
  • Cities: Skylines - Snowfall
  • Cities: Skylines - Natural Disasters
  • Cities: Skylines - Mass Transit
  • Cities: Skylines Industries
  • Pillars of Eternity
  • Tyranny: Archon Edition
Pulling out a lua parser and changing a file extension from .lua to .txt still isn't a bug. At best, it's a massive cock-up.
 

GotLag

Private
21 Badges
Jan 22, 2017
18
0
  • Stellaris: Synthetic Dawn
  • Stellaris: Galaxy Edition
  • BATTLETECH
  • Surviving Mars: First Colony Edition
  • Surviving Mars: First Colony Edition
  • Cities: Skylines - Parklife
  • Cities: Skylines - Parklife Pre-Order
  • BATTLETECH - Digital Deluxe Edition
  • Surviving Mars: Digital Deluxe Edition
  • Stellaris: Apocalypse
  • Stellaris: Humanoids Species Pack
  • Surviving Mars
  • Stellaris - Path to Destruction bundle
  • Stellaris: Leviathans Story Pack
  • Stellaris: Digital Anniversary Edition
  • Stellaris: Galaxy Edition
  • Stellaris: Galaxy Edition
  • Stellaris
  • Cities: Skylines
  • Europa Universalis IV
  • Crusader Kings II
It's not a bug. Removing such functionality is a conscious decision. Not warning the modding community is a conscious decision. It's a big fat middle digit at modders and will set many of them at each others throats, competing for subs.
Might want to ease up on the paranoia there, champ
 

LordInsane

Lt. General
91 Badges
Nov 1, 2007
1.282
108
  • Victoria 2: A House Divided
  • Victoria: Revolutions
  • Crusader Kings II
  • Arsenal of Democracy
  • Darkest Hour
  • Deus Vult
  • For The Glory
  • Stellaris: Apocalypse
  • Crusader Kings II: Monks and Mystics
  • Stellaris: Humanoids Species Pack
  • Hearts of Iron IV: Expansion Pass
  • Age of Wonders III
  • Tyranny - Bastards Wound
  • Hearts of Iron IV: Death or Dishonor
  • Surviving Mars
  • Europa Universalis IV: Mandate of Heaven
  • Imperator: Rome Sign Up
  • Crusader Kings II: Holy Fury
  • Europa Universalis IV: Rule Britannia
  • Surviving Mars: Digital Deluxe Edition
  • Stellaris: Ancient Relics
  • Imperator: Rome Deluxe Edition
  • Europa Universalis IV: Dharma Pre-order
  • Stellaris: Distant Stars
  • Europa Universalis IV: Dharma
  • Shadowrun Returns
  • Shadowrun: Dragonfall
  • Shadowrun: Hong Kong
  • Europa Universalis IV: Golden Century
  • Europa Universalis IV: Common Sense
  • Hearts of Iron IV: No Step Back
  • Europa Universalis IV
  • VtM - Bloodlines 2 Blood Moon Edition
  • Europa Universalis III Complete
  • Europa Universalis III Complete
  • Victoria 2
  • 500k Club
  • Europa Universalis IV: El Dorado
  • Crusader Kings II: Way of Life
  • Pillars of Eternity
  • Hearts of Iron IV: Together for Victory
  • Crusader Kings II: Horse Lords
  • Europa Universalis IV: Cossacks
  • Crusader Kings II: Conclave
  • Stellaris
  • Hearts of Iron IV: Cadet
  • Crusader Kings II: Reapers Due
  • Europa Universalis IV: Rights of Man
  • Tyranny: Archon Edition
  • Stellaris: Digital Anniversary Edition
u just have to take the vanilla defines, adjust it for ur mod and use it. i have no idea why disagree when i sharing this knowledge....
The disagreement would have been because people making mods changing something in defines would have been aware of that method. The problem that it does not addresses - but Paradox' comment that it is a bug does - is that it means that every mod changing something in it, no matter how minuscule, will have to override every other mod changing in it.