Thread Tools
Old September 16, 2003, 14:10   #1
ekktor
Settler
 
Local Time: 08:51
Local Date: November 2, 2010
Join Date: Jun 2002
Location: TOULOUSE, France
Posts: 6
How to activate SLIC files?
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.
ekktor is offline  
Old September 16, 2003, 15:32   #2
The Big Mc
CTP2 Source Code Project
King
 
The Big Mc's Avatar
 
Local Time: 08:51
Local Date: November 2, 2010
Join Date: Oct 2001
Location: Of the universe / England
Posts: 2,061
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
The Big Mc is offline  
Old September 16, 2003, 17:38   #3
Immortal Wombat
Apolytoners Hall of Fame
Prince
 
Immortal Wombat's Avatar
 
Local Time: 09:51
Local Date: November 2, 2010
Join Date: Dec 2000
Location: in perpetuity
Posts: 4,962
Re: How to activate SLIC files?
Quote:
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
Immortal Wombat is offline  
Old September 16, 2003, 17:53   #4
ahenobarb
Prince
 
ahenobarb's Avatar
 
Local Time: 08:51
Local Date: November 2, 2010
Join Date: Nov 2001
Posts: 437
Re: How to activate SLIC files?
Quote:
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.

You could always check: http://apolyton.net/dir/index.php?&i...s=4304&cat=240

A Shameless plug!

Last edited by ahenobarb; September 17, 2003 at 18:08.
ahenobarb is offline  
 

Bookmarks

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On

Forum Jump


All times are GMT -4. The time now is 04:51.


Design by Vjacheslav Trushkin, color scheme by ColorizeIt!.
Powered by vBulletin® Version 3.8.2
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Apolyton Civilization Site | Copyright © The Apolyton Team