Democracy 4

Democracy 4

The Think Tank
Have a bright new policy idea? or want to add your country? or include new political/economic events into the game? Welcome to the politics think tank
AturUwU 2 13 Oct, 2021 @ 10:28am
How would this simple line crash the game?
#,Example,ECONOMY,0,0,1.0,UNKNOWN,icons_racialtension,#,#,_global_liberalism,0-(0.1*x)",,,,,,,,,,,,,,,,,,,
Its at the bottom of simulation Spreadsheet and it also has a text in the english translation file going like this
#,Example,WiP,"Text."
Am I missing something?
< >
Showing 1-4 of 4 comments
Asla_Lord_Beerus 1 14 Oct, 2021 @ 12:00pm 
To be honest I am not sure.
I created both simulation.csv files and used what you suggested - the policy obviously doesn't do anything right now because the output is equal to 0 based on the lack of inputs and a default situation value of 0.

https://i.imgur.com/Zc6FRyD.jpg

I assume your paths/files are as follows?
My Games\Democracy4\mods\example_mod\config.txt
My Games\Democracy4\mods\example_mod\example.jpg
My Games\Democracy4\mods\example_mod\data\simulation\simulation.csv
My Games\Democracy4\mods\example_mod\translations\English\simulation.csv

If not perhaps you can try this this.
If the issue persists happy to jump on a Discord call and screen-share to see if I can spot anything that is wrong with your mod.
Cheers.
cliffski  [developer] 2 23 Oct, 2021 @ 3:14pm 
Just by looking at it I'm thinking that rogue " at the end of the effect might be causing problems. You only need double quotes if there is a bunch of different comma-separated values that should exist in a single cell.
Asla_Lord_Beerus 1 24 Oct, 2021 @ 10:11am 
Originally posted by cliffski:
Just by looking at it I'm thinking that rogue " at the end of the effect might be causing problems. You only need double quotes if there is a bunch of different comma-separated values that should exist in a single cell.

So in terms of the actual file if you looked at it in notepad it would have double quotes like "_global_liberalism, 0-(0.1*x)" in order to ignore the delimiter (in this case ',') so the file he gives above actually does nothing at all because it will read one effect column _global_liberalism and second effect column 0-(0.1*x).

Eitherway I tried it with extra quotations and such and it doesn't really care about the double quotes... it seems to cause issues with some of the overrides from my memory though.

No idea what this guys issue is :)

edit: I spent too much time testing what makes this game break xD
Last edited by Asla_Lord_Beerus; 24 Oct, 2021 @ 10:18am
AturUwU 2 24 Oct, 2021 @ 10:41am 
Eh it ended up being nothing on my part, just rebooted my PC and I could continue modding normally
Last edited by AturUwU; 24 Oct, 2021 @ 10:42am
< >
Showing 1-4 of 4 comments
Per page: 1530 50