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…
Hi, thank you for your reply. However, I have another equation which uses 5 operators works just fine, so I think number of operators may not be the problem.
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
I think @cliffski should know better regarding this matter. He might have told modders not to use 4th operator to avoid occasional errors under specific conditions which are hard to explain.
tldr; operator3 comes before operator1 even if op1 is * or / and op3 is + or -. [target],[value1][operator1]([value2][operator2][values3])[operator3][value4],[inertia]