Hi, I’m trying to create a mod that would complicates some of the in-game mechanisms. I used an equation that has two power operators ("^"), then I got an error that says “unknown operator in equation”.
When I delete one of power operators, the error is gone. I would like to ask that, is there something wrong with my equation, or the game cannot process multiple power operators within one equation?
Looking at the policies file, you will see a whole bunch of columns in there that load in various bits of data, but towards the end of the list of columns you will see the ‘effects’ for that policy. For clarity, the effects are denoted as any column to the right of the ‘#effects’ column, and there can be as many there as you like. Some policies have a few effects, some have many, but each effect entry takes up one ‘cell’ and has the same format which is…
My apologizes, I double checked the equation I mentioned above and it actually has 4 operators. Yet still one more than the modding guide. the equation is 0.2-(0.7071*x-0.56568)^2, and game processes it correctly, please see the attached screenshot.
By the way, I may have just found another bug.
I added one more operator to the equation, turned the equation into 0.2-(0.7071*x-0.56568)^2+0.2, but seems like the game processed the last operator as minus instead of plus, because the curve displayed in the game moved down