Apolyton Archive  |  Preserved copy of the Apolyton Civilization Site and its forums as they stood in September 2005. Read-only; nothing here can be posted to or replied to.  |  Forum index |  About this archive |  The 1998–2001 UBB forums
Today on Apolyton WARDELL INTERVIEW PROMO A.C.S. HISTORY CHAPTER 4 GET CIV4 /w FREE PLUS! A.C.S. PHOTO GALLERY GET A.O.M. V1.1
Apolyton Civilization Forums
main| civ2| civ3| civ4| smac| ctp2| ron| moo3| galciv| galciv2| alt| about|
ApolytonPLUS | register | search | faq | new posts | pm (-/-) | upload | members
hall of fame new! | civgroups | civgroups news | interviews | the column | radio | chat | directory | news | store | PLUS
Apolyton Civilization Forums : Powered by vBulletin version 2.0.3 Apolyton Civilization Forums > Civilization: Call To Power > CtP-Creation > Need some help with slic!!!!!!!!
Show a Printable Version | Email This Page to Someone! | Receive updates to this thread | Report this to Apolyton news!
12.Sep: `CTP CHALLENGE LADDER` - SEPTEMBER UPDATE
09.Sep: EARLY BUILD SPRITE EDITOR
02.Aug: `SUPERLEAGUE` SIGN-UP

bottom of page
  - CIVILIZATION: CALL TO POWER @ GAMESTOP $9.99 - CIVILIZATION: CALL TO POWER @ AMAZON $9.99
Author
Thread    < Last Thread     Next Thread > Post New Thread     Post A Reply
gemini is offline gemini
Settler

Jan 1970
time: 05:13
Question  Old Post 18-01-2000 12:27
Edit/Delete Message Reply w/Quote
#1 Report this post to a moderator
Need some help with slic!!!!!!!! Support Apolyton, buy Civilization III: Complete

Hi guys, I have a question about slic. Please bear with me and forgive me because I have limited programming experience and slic seems to be somewhat confusing for me. My question is about message boxes. For example

text(ID_this_is_whack);

would this point to a flag in info_str.txt called this_is_whack? Is that the file you call the text from. Also I noticed in tp powerslic he has a file called ps_info.txt where all his text for his message boxes is kept. He also has for example: Title_bla_bla and then below it would say for example: text_bla_bla. Is the Title_bla_bla for adding titles for to a message box or am I getting off base. It doesn't say anything about that in the slic documentation. Also since TP used his own filename for his text can I just use something like Gemini_info.txt. Would that work or do I have to somehow define in the slic script which filename I am using for all the message text. Can someone point me in the right direction. Again please forgive me but I'm trying to remember how to program again. And I hope I haven't confused anyone too much. ;-)

------------------
Gemini

Paul is offline Paul
Emperor
Zwolle, The Netherlands
Mar 1999
time: 06:13
Post  Old Post 18-01-2000 15:07 Visit Paul's homepage!
Edit/Delete Message Reply w/Quote
#2 Report this post to a moderator
Enter the AD-FREE zone

In your ctp_data\english\gamedata directory there is a file called strings.txt. In this file all strings files are imported. You can add your own strings file by adding a line to strings.txt that would say import myfile.txt (replace with your filename). In your slic scripts you can call strings that are in any of the files that are imported in strings.txt.

skorpion59 is offline skorpion59
Prince
Tulsa, Oklahoma, USA
May 1999
time: 23:13
Post  Old Post 18-01-2000 15:47 Visit skorpion59's homepage!
Edit/Delete Message Reply w/Quote
#3 Report this post to a moderator
Increase Your PM Length

Gemini,

It is best to put your code in your own files. For the SLIC code, use gemini.slc and put in (CTP)\ctp_data\default\gamedata. Then edit script.slc (in same directory) and put #include "gemini.slc" at the bottom of the file.

For your strings, make gemini_str.txt and put in (CTP)\ctp_data\english\gamedata. Then edit strings.txt (in same directory) and put import "gemini_str.txt" at the top of the file.

You are correct. Text(ID_This_Is_Text_A) is the text for the messagebox and Title(ID_This_Is_Text_B) is the title for the messagebox. Both of these display the text pointed to by the string ID, This_Is_Text_A or This_Is_Text_B. String IDs are always preceeded by ID_. All you have to know is to put ID_ before the name of the message you used in your gemini_str.txt file when you make the call. Buttons are string IDs also. For example:

Gemini.slc: code would look like,
Text(ID_This_Is_Text_A);
Title(ID_This_Is_Text_B);
Button(ID_Name_On_Button);

Gemini_str.txt: message would look like,
This_Is_Text_A "This is what displays in the text area."
This_Is_Text_B "This is what displays in the title area."
Name_On_Button "This is what displays on the button."

To show values in a message, use the built-in variable (ie, city.name) or the user defined global variable (ie, gv_population) with .value attached to it. For example:

Shows_Variable_Data "The population of [city.name] is [gv_population.value]."

Hope this helps and you can understand it. If not, let me know.

BTW, the SLIC docs is still being worked on. I ran into some problems which caused me to push back the release. Should be soon though.



------------------
Don, Apolyton Junkie

gemini is offline gemini
Settler

Jan 1970
time: 05:13
Talking  Old Post 19-01-2000 03:28
Edit/Delete Message Reply w/Quote
#4 Report this post to a moderator
Suffering from ads?

Thank you so much Paul and Skorpion59. I completely understand now. Thank you also for the quick response!!!!!

------------------
Gemini

  < Last Thread     Next Thread > Post New Thread     Post A Reply
All times are GMT. The time now is 05:13.
Apolyton Time is 00:13.
    top of page
Rate This Thread:
Forum Jump:
Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is ON
vB code is ON
Smilies are ON
[IMG] code is ON
 




Contact Us - Apolyton Civilization Site - Support Us!

Building a better Apolyton through better information. Click here and take our poll!
Non-US visitors, click here!

Powered by: vBulletin Version 2.0.3
Copyright ©2000, 2001, Jelsoft Enterprises Limited.

Page generated in 0.0276 seconds (85.69% PHP - 14.31% MySQL) with 30 queries
Page Loading Time:

Support Apolyton: Amazon USA | Amazon UK | Amazon DE | Amazon FR |
Support Apolyton and get FREE PLUS, Buy from Chips&Bits: Galactic Civilizations | Galactic Civilizations: Deluxe Edition | Call to Power 2 | Civilization: The Boardgame | GURPS/ Alpha Centauri | Alpha Centauri | Civilization IV | Civilization III: Complete |


Front Page | Civilization IV | Civilization III | Civilization II | Call to Power II | Alpha Centauri | Master of Orion III
Rise of Nations | Galactic Civilizations | Galactic Civilizations II | Misc
Alt.Civs | Civ I | C:CtP I | About | News | Directory | Apolyton Store | Forums | Chat | Columns | Interviews | Newsletter
Scenario League | CSC | Clash of Civs | Spanish Site | CtP Maps | Cradle of Civ | WesW's Ctp1/2 Site | Civ3 Haven

apolyton.net | apolyton.com | civilization2.net | civilization3.net | civilization4.net | civilizationiv.info | calltopower.net | galciv.net | galciv2.net | moo3.net