I am trying to make modifications with SLIC files but can't get them to be activated. I have added the slic files I wrote in the main.slc file of /gamedata but nothing is activated during the course of the game.
Must the main slic file be declared somewhere? I haven't found any reference to this in the guide.
if you put the code in the file marked scenario then it should work
__________________
"Every time I learn something new it pushes some old stuff out of my brain" Homer Jay Simpson
The BIG MC making ctp2 a much unsafer place. Visit the big mc’s website
Originally posted by ekktor
Must the main slic file be declared somewhere? I haven't found any reference to this in the guide.
Yes, in a SLIC file that's already been loaded. Usually this means in either the bottom of script.slc or scenario.slc (the two that are loaded by the default game) you must have the line:
Code:
#include "main.slc"
Obviously, replacing main.slc with whatever file name you've given your file.
__________________ Concrete, Abstract, or Squoingy? "I don't believe in giving scripting languages because the only additional power they give users is the power to create bugs." - Mike Breitkreutz, Firaxis
Originally posted by ekktor
I am trying to make modifications with SLIC files but can't get them to be activated. I have added the slic files I wrote in the main.slc file of /gamedata but nothing is activated during the course of the game.
Of course, you could have included the .slc files properly but the SLIC code itself does not do what you intend it to do. And therefore does not seem to be active in the game. This used to happen to me all the time.