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 > Miscellaneous > Archive > CtP2-Creation/AI/Mods/Scenarios-Archive > Complete Guide to SLIC
Show a Printable Version | Email This Page to Someone! | Receive updates to this thread | Report this to Apolyton news!

bottom of page
  
Author
Thread    < Last Thread     Next Thread > Post New Thread     Post A Reply
ahenobarb is offline ahenobarb
Prince

Nov 2001
time: 05:30
  Old Post 15-09-2003 22:41
Edit/Delete Message Reply w/Quote
#1 Report this post to a moderator
SLIC Kung Fu: The Complete Guide to SLIC Full PM-box? Change here!

After several months of work, the Complete Guide to SLIC is finished. It runs to about 250 pages and is divided into three sections. The first section covers how to write SLIC code, the second section provides a walk through of writing SLIC code (in this case it is a demo script to return cattle to the game, with some changes that prevent the original problems), section 3 contains the appendices for SLIC commands etc. The document is in .pdf format, but it is about 3.75MB, so it is too large to post in the forum. It will need to be posted in the modification section, if someone just tells me where to send it.

I first conceived the idea when I was trying to learn how to write script codes with SLIC. There was not a comprehensive guide and it was difficult to sort through the bits and pieces out there to understand how everything worked. This guide hopefully will cut through the confusion.

The Guide can be found Here: http://apolyton.net/dir/index.php?&...ts=4311&cat=240

Last edited by ahenobarb on 29-09-2003 at 23:30

Peter Triggs is offline Peter Triggs
Prince
Gone Fishin, Canada
Jan 2000
time: 05:30
  Old Post 15-09-2003 23:19
Edit/Delete Message Reply w/Quote
#2 Report this post to a moderator
Inflate your Upload Space

Sounds good Ahenobarb, but the attachment's not working.

You should be able to put it into the Directory, but you'll have to PM Locutus to get the mechanics sorted.

Actually, he'll undoubtedly PM you as soon as he sees this thread.

ahenobarb is offline ahenobarb
Prince

Nov 2001
time: 05:30
  Old Post 16-09-2003 00:01
Edit/Delete Message Reply w/Quote
#3 Report this post to a moderator
Support Apolyton, buy Galactic Civilizations

I had the same problem with the attachment, but if you right-click and "save target as... " you can get the attachment. I'll wait for Locutus to get in touch with me.

Last edited by ahenobarb on 18-09-2003 at 03:05

Tamerlin is offline Tamerlin
King
Toulouse (South-western France)
Apr 2002
time: 06:30
  Old Post 16-09-2003 17:53
Edit/Delete Message Reply w/Quote
#4 Report this post to a moderator
Enter the AD-FREE zone

The process is very simple ahenobarb, go to the CTP2 directory and to the CtP2 web page where you would download your file, click on the Add Link link and fill the little form.

Last edited by Tamerlin on 20-09-2003 at 23:12

ahenobarb is offline ahenobarb
Prince

Nov 2001
time: 05:30
  Old Post 16-09-2003 21:47
Edit/Delete Message Reply w/Quote
#5 Report this post to a moderator
Increase Your PM Length

The full SLIC guide is ready for downloading with the link above.

I added a link in the files forum, but it is not there. Do I need to await approval, or did I do something wrong?

Keygen is offline Keygen
Emperor
Athens, Hellas
Jan 2000
time: 07:30
  Old Post 16-09-2003 22:21 Visit Keygen's homepage!
Edit/Delete Message Reply w/Quote
#6 Report this post to a moderator
Support Apolyton, buy Call to Power 2

Good work ahenobarb

Peter Triggs is offline Peter Triggs
Prince
Gone Fishin, Canada
Jan 2000
time: 05:30
  Old Post 16-09-2003 22:27
Edit/Delete Message Reply w/Quote
#7 Report this post to a moderator
Support Apolyton

Wow! Been wondering what you've been doing for the past three months. Great job that I'm sure will be much appreciated by beginning SLICers.

Locutus is offline Locutus
ACS CTP1/2 Manager & Civ4 Co-Manager
Hengelo, The Netherlands
Nov 1999
time: 06:30
  Old Post 16-09-2003 22:31 Visit Locutus<br><img src=/forums/images/staff-icon.gif>'s homepage!
Edit/Delete Message Reply w/Quote
#8 Report this post to a moderator
Got spare money?

quote:
I added a link in the files forum, but it is not there. Do I need to await approval, or did I do something wrong?


Yup, you need my approval, which I'm in the process of giving (it's been a while so I have to get used to it all over again )

In the meantime, did you read my (unfinished) SLIC manual as well? Parts of our guides are very, very similar, which proves either of two things: (1) you used my guide as basis for yours or (2) great minds think alike. Probably the latter

Locutus is offline Locutus
ACS CTP1/2 Manager & Civ4 Co-Manager
Hengelo, The Netherlands
Nov 1999
time: 06:30
  Old Post 16-09-2003 22:40 Visit Locutus<br><img src=/forums/images/staff-icon.gif>'s homepage!
Edit/Delete Message Reply w/Quote
#9 Report this post to a moderator
Support Apolyton, pre-order Civilization IV

Oh, I did move the file to the Reference folder (as opposed to Modification/Text & Slic), as that is the place where all manuals and stuff go (Text & Slic is for actual SLIC/txt files).

Edit: Why does it say that the author is Tamerlin? The database thinks very highly of Tam, it would seem It may take some time to fix that, but I'll make sure it will...

ahenobarb is offline ahenobarb
Prince

Nov 2001
time: 05:30
  Old Post 16-09-2003 23:05
Edit/Delete Message Reply w/Quote
#10 Report this post to a moderator
Lose 30 kilos (of popups)

quote:
Originally posted by Locutus

Yup, you need my approval, which I'm in the process of giving (it's been a while so I have to get used to it all over again )

In the meantime, did you read my (unfinished) SLIC manual as well? Parts of our guides are very, very similar, which proves either of two things: (1) you used my guide as basis for yours or (2) great minds think alike. Probably the latter


Your guide is where I got my start with SLIC.

To produce the outline for the first part of the guide, I used your guide and SAM's learn C for Linux in 21 days -- that told me an acceptible order for basic programming stuff so beginners can learn. The other chapters in section I (sort of) follow the order of the documents activision produced: messages, alerts, etc.

The outline of the second part is in the order that I wrote the demo code.

I had hoped to list only functions and commands that actually work in the appendices (that's why I asked about the Duration command), but this proved too time consuming. PErhaps with the source code, commands that don't work can be made to function again.

Tamerlin is offline Tamerlin
King
Toulouse (South-western France)
Apr 2002
time: 06:30
  Old Post 17-09-2003 05:06
Edit/Delete Message Reply w/Quote
#11 Report this post to a moderator
Support Apolyton buy from Amazon

quote:
Originally posted by Locutus
Edit: Why does it say that the author is Tamerlin? The database thinks very highly of Tam, it would seem




It's time to tell the truth, ahenobarb is my DL...


ahenobarb is offline ahenobarb
Prince

Nov 2001
time: 05:30
  Old Post 17-09-2003 08:42
Edit/Delete Message Reply w/Quote
#12 Report this post to a moderator
Put an end to popups!

So it's true! Inside every European, there's an American waiting to be born.

Actually I followed the link Tamerlain provided, so I think the board thought I was him.

Tamerlin is offline Tamerlin
King
Toulouse (South-western France)
Apr 2002
time: 06:30
  Old Post 17-09-2003 09:02
Edit/Delete Message Reply w/Quote
#13 Report this post to a moderator
Support Apolyton buy from Amazon

quote:
Originally posted by ahenobarb
So it's true! Inside every European, there's an American waiting to be born.


I would have bet the contrary if we consider the origins of the american people.

quote:
Actually I followed the link Tamerlin provided, so I think the board thought I was him.


True, I am the guilty party.

ahenobarb is offline ahenobarb
Prince

Nov 2001
time: 05:30
  Old Post 17-09-2003 09:15
Edit/Delete Message Reply w/Quote
#14 Report this post to a moderator
Inflate your Upload Space

quote:
Originally posted by Tamerlin


I would have bet the contrary if we consider the origins of the american people.


What Frenchman is still awake at 5am Euro-time? You're not California French are you?

Locutus is offline Locutus
ACS CTP1/2 Manager & Civ4 Co-Manager
Hengelo, The Netherlands
Nov 1999
time: 06:30
  Old Post 17-09-2003 12:51 Visit Locutus<br><img src=/forums/images/staff-icon.gif>'s homepage!
Edit/Delete Message Reply w/Quote
#15 Report this post to a moderator
Avatar Enlargement: We've got the solution

quote:
Originally posted by ahenobarb
Actually I followed the link Tamerlain provided, so I think the board thought I was him.


Ah yes, Tamerlin didn't remove the session ID (sid) part of the link, so the Dir did indeed think you were him. One should always remove the 'sid=xxxx&' part from the URL when linking to parts of the Directory...

Tamerlin is offline Tamerlin
King
Toulouse (South-western France)
Apr 2002
time: 06:30
  Old Post 17-09-2003 17:32
Edit/Delete Message Reply w/Quote
#16 Report this post to a moderator
Support Apolyton, buy GURPS/ Alpha Centauri

quote:
Originally posted by ahenobarb
What Frenchman is still awake at 5am Euro-time?




quote:
You're not California French are you?


No, I am not, I am living in Toulouse in South-Western France, an area where people talk with a singing accent, play Rugby and are consequently happier than in northern France.

quote:
Originally posted by Locutus
Ah yes, Tamerlin didn't remove the session ID (sid) part of the link, so the Dir did indeed think you were him. One should always remove the 'sid=xxxx&' part from the URL when linking to parts of the Directory...


Sorry, for the mistake, I will take care about this in the links I will post on Apolyton...

ahenobarb is offline ahenobarb
Prince

Nov 2001
time: 05:30
  Old Post 17-09-2003 20:23
Edit/Delete Message Reply w/Quote
#17 Report this post to a moderator
Avatar Enlargement: We've got the solution

Quick question Locutus. Is it possible to use the picture on the cover of the guide instead of the default CTP II photo in the files forum? I can provide a .jpg of the picture if you let me know where to send it.

Locutus is offline Locutus
ACS CTP1/2 Manager & Civ4 Co-Manager
Hengelo, The Netherlands
Nov 1999
time: 06:30
  Old Post 17-09-2003 21:10 Visit Locutus<br><img src=/forums/images/staff-icon.gif>'s homepage!
Edit/Delete Message Reply w/Quote
#18 Report this post to a moderator
Inflate your Upload Space

Yes, please, by all means. I strongly prefer pictures over the default logo. If you provide me with an image file (any format will do) of 200 x 120-150, I'll gladly post it.

I don't really care how you get it to me: email, PM, ICQ, posting a link here, anything will do (contact info is in my sig).

ahenobarb is offline ahenobarb
Prince

Nov 2001
time: 05:30
  Old Post 18-09-2003 03:12
Edit/Delete Message Reply w/Quote
#19 Report this post to a moderator
Inflate your Upload Space

quote:
Originally posted by Tamerlin
No, I am not, I am living in Toulouse in South-Western France, an area where people talk with a singing accent, play Rugby and are consequently happier than in northern France.


OT: Never been to SW France, but the Northern part many times. Haven't found a place in France I don't like and I hear it only gets better the further South you go.

Tamerlin is offline Tamerlin
King
Toulouse (South-western France)
Apr 2002
time: 06:30
  Old Post 18-09-2003 04:57
Edit/Delete Message Reply w/Quote
#20 Report this post to a moderator
Suffering from ads?

quote:
Originally posted by ahenobarb
OT: Never been to SW France, but the Northern part many times. Haven't found a place in France I don't like and I hear it only gets better the further South you go.


I can't deny it.

The Midi-Pyrénées region where I am living is a beautiful area as many places in southern France. If you can arrange a visit in the Lot or the Aveyron don't hesitate a second.

Toulouse is a beautiful town with a very rich culture and history as it was once the capital of the south and a rival to Paris until the end of the 13th century (my usual avatar, which will come back as soon as the Rugby World Cup ends is the occitanian cross, symbol of both Toulouse and the region Midi-Pyrénées).

Southern France had its own language called the Oc tongue as opposed to the Oil tongue spoken in the North. Until the 13th century, the South had different culture and laws, both inspired from the romans, far more evolved than those of their northern counterpart. The troubadours (the bards of the middle ages) are thus coming from the South.

Martin Gühmann is offline Martin Gühmann
Emperor
Berlin, Germany
Mar 2001
time: 06:30
Post  Old Post 20-09-2003 22:45 Visit Martin Gühmann's homepage!
Edit/Delete Message Reply w/Quote
#21 Report this post to a moderator
Full PM-box? Change here!

quote:
Originally posted by Locutus
Ah yes, Tamerlin didn't remove the session ID (sid) part of the link, so the Dir did indeed think you were him. One should always remove the 'sid=xxxx&' part from the URL when linking to parts of the Directory...


Well Tamerlin you should edit your post, it looks the session ID is still there. Well I don't know whether there is a timeout for directory sessions, too. But in the case of doubt it is better to do it.

Now lets go to the errata, well I found just two of them but just because I didn't bothered to search for them.

quote:

You can add an infinite number of city types to CTP2 and no one has yet run into a limitation on the number of city sprites that can be used in the game -- that does not mean that there is not a limit, just that no one has reached it yet.


Well the infinite number of city types might not be right but it is probably a very high number, but actual 64 are enough (for each civ one).

But that noone reached the limit of city sprites is wrong I tried it and I found the same limit for units, otherwise CityMod2 would contain some more city sprites, like 8 sprites for each set of modern city sprites and I would have added all the CTP1 Genetic and Diamond sprites.

quote:

No one has yet reached the limit of Good sprites, City sprites, or Tile sprites. If a guess could be ventured, based on what has been seen in the unit sprites, they are probably limited to 200 as well.


For city sprites I just confirmed the limit for Good sprites I am not shure if I tries it, but it wasn't so importent to test it, but I am shure the limit is the same like for City sprites and probably the 200 limit is also valid for effect sprites even if I never tried it.

-Martin

Tamerlin is offline Tamerlin
King
Toulouse (South-western France)
Apr 2002
time: 06:30
  Old Post 20-09-2003 23:19
Edit/Delete Message Reply w/Quote
#22 Report this post to a moderator
Tired of ads?

quote:
Originally posted by Martin Gühmann
Well Tamerlin you should edit your post, it looks the session ID is still there. Well I don't know whether there is a timeout for directory sessions, too. But in the case of doubt it is better to do it.


Done! Sorry, I didn't thought it was useful to correct it as the mistake had already been done...

I will print the guide next week and will start to study what seems to be a very good tool.

ahenobarb is offline ahenobarb
Prince

Nov 2001
time: 05:30
  Old Post 20-09-2003 23:39
Edit/Delete Message Reply w/Quote
#23 Report this post to a moderator
Support Apolyton buy from Amazon

quote:
Originally posted by Martin Gühmann

Now lets go to the errata, well I found just two of them but just because I didn't bothered to search for them.

Well the infinite number of city types might not be right but it is probably a very high number, but actual 64 are enough (for each civ one).

But that noone reached the limit of city sprites is wrong I tried it and I found the same limit for units, otherwise CityMod2 would contain some more city sprites, like 8 sprites for each set of modern city sprites and I would have added all the CTP1 Genetic and Diamond sprites.

For city sprites I just confirmed the limit for Good sprites I am not shure if I tries it, but it wasn't so importent to test it, but I am shure the limit is the same like for City sprites and probably the 200 limit is also valid for effect sprites even if I never tried it.

-Martin


That's the kind of stuff I need to know so I can update the book. There are a few places where it wasn't clear what the answers were or what certain flags did (or sometimes from sheer exhaution/boredom, I didn't bother to fill in the information), if anyone knows the answers or can correct anything in the guide let me know and I'll update the information.

of course, it would have been best to release the guide without any errors, but with only 1 pair of eyes on it, it would never have been released.

I'll be in and out for the next 3 weeks, mostly out, but I'll check back and make sure any corrections are incorporated and up date the guide.

ahenobarb is offline ahenobarb
Prince

Nov 2001
time: 05:30
  Old Post 30-09-2003 21:43
Edit/Delete Message Reply w/Quote
#24 Report this post to a moderator
Support Apolyton, buy Galactic Civilizations

Martin, would this be more accurate?

Cities You can add a large but finite number of city types to CTP2. There is a limit of 200 city sprites that can be used in the game.


Sprites CTP2 only supports 200 different unit sprites and city sprites. This means that if you have more than 200 units, you will have to reuse some of the sprites and two or more units will look exactly the same in the game. No one has yet reached the limit of Good sprites or Terrain Tile sprites -- that does not mean that there is not a limit, just that no one has reached it yet. If a guess could be ventured, based on what has been seen in the unit and city sprites, they are both probably limited to 200 as well.

Immortal Wombat is offline Immortal Wombat
Prince
in perpetuity
Dec 2000
time: 05:30
  Old Post 30-09-2003 22:54 Visit Immortal Wombat's homepage!
Edit/Delete Message Reply w/Quote
#25 Report this post to a moderator
Support Apolyton buy from Amazon

quote:

Cities You can add a large but finite number of city types to CTP2. There is a limit of 200 city sprites that can be used in the game.


Sprites CTP2 only supports 200 different unit sprites and city sprites. This means that if you have more than 200 units, you will have to reuse some of the sprites and two or more units will look exactly the same in the game. No one has yet reached the limit of Good sprites or Terrain Tile Special Effect sprites -- that does not mean that there is not a limit, just that no one has reached it yet. If a guess could be ventured, based on what has been seen in the unit and city sprites, they are both probably limited to 200 as well.

Yes.

Martin Gühmann is offline Martin Gühmann
Emperor
Berlin, Germany
Mar 2001
time: 06:30
Post  Old Post 01-10-2003 04:35 Visit Martin Gühmann's homepage!
Edit/Delete Message Reply w/Quote
#26 Report this post to a moderator
Support Apolyton buy from Amazon

I agree with Ben, the terrain and tilimprovement graphics are not stored in sprites but they are stored in the gtset565.til file.

-Martin

FRITZ is offline FRITZ
Settler
Berlin-Germany
Nov 2001
time: 05:30
  Old Post 04-10-2003 21:29 Visit FRITZ's homepage!
Edit/Delete Message Reply w/Quote
#27 Report this post to a moderator
Support Apolyton, buy Alpha Centauri

Hi Ahenobarb,

Fritz (the former king, not me) has had his castle "Sanssouci" (French words and this means: out of sorrow) and Slicers have now the script from Ahenobarb and I hope slic-programming will be out of sorrow too (sans souci).
This script is great!!
Thanks a lot in the name of present or future Slic-makers.

No study of a computer language is necessary to understand the stuff.

Locutus has made also a great job with his introduction in Slic.

Most people need examples to understand a complicated stuff. It is also very useful to look to the exsisting scenarios about to understand what is going on.

I don´t have any experience in the work with the diplomacy or diplomod. Maybe earlier in the Forum there was a discussion about diplomacy in ctp2 ? I didn´t followed all the news. There are some hints in the game but I am not able to understand these hints.

I hope your script will encourage a lot of other people all over the world to make a new mode or a scenario for ctp2. Somtimes it makes the similar fun to create something new as to play the known game. Is there any other computer game which allows outstanding people to develop something new ?

Once more fine script and I hope CTP2 will never forgotten.

Best wishes

Fritz

ahenobarb is offline ahenobarb
Prince

Nov 2001
time: 05:30
  Old Post 11-12-2003 03:43
Edit/Delete Message Reply w/Quote
#28 Report this post to a moderator
Put an end to popups!

Just curious to see if this has been helpful to anyone out there.

Oh, and B-U-M-P!

  < Last Thread     Next Thread > Post New Thread     Post A Reply
All times are GMT. The time now is 05:30.
Apolyton Time is 00:30.
    top of page
Rate This Thread:
archivepost
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.0598 seconds (92.94% PHP - 7.06% MySQL) with 31 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