DayZ-SA-Tomato icon indicating copy to clipboard operation
DayZ-SA-Tomato copied to clipboard

Can't compile "World" script module - Multiple declaration of function 'CTRL'

Open matellis opened this issue 6 years ago • 0 comments

Dayz is throwing an error on startup with this mod. The dialog says:

Can't compile 'World' script module!
   
JM/COT/Scripts/4_World/staticfunctions.c(366): Multiple declaration of function 'CTRL'`

In addons/DayZ-SA-Tomato/scripts/4_World/COMCam.c the CTRL function is repeated, with a comment "static functions arent scope global?"

Even when I comment this function out I get the error. A grep shows the PBO file contains the word "CTRL" so (knowing very little about PBO files) I suspect the duplicate function is also in there and my edits do very little.

tl;dr> Looks like static functions are now scope global and one version of CTRL has to go!

matellis avatar Dec 28 '18 21:12 matellis