Thread Tools
Old September 15, 2003, 13:41   #1
ahenobarb
Prince
 
ahenobarb's Avatar
 
Local Time: 08:47
Local Date: November 2, 2010
Join Date: Nov 2001
Posts: 437
SLIC Kung Fu: The Complete Guide to SLIC
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?&i...s=4311&cat=240

Last edited by ahenobarb; September 29, 2003 at 14:30.
ahenobarb is offline  
Old September 15, 2003, 14:19   #2
Peter Triggs
CTP2 Source Code ProjectCivilization IV Creators
King
 
Local Time: 08:47
Local Date: November 2, 2010
Join Date: Jan 2000
Location: Gone Fishin, Canada
Posts: 1,059
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.
Peter Triggs is offline  
Old September 15, 2003, 15:01   #3
ahenobarb
Prince
 
ahenobarb's Avatar
 
Local Time: 08:47
Local Date: November 2, 2010
Join Date: Nov 2001
Posts: 437
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; September 17, 2003 at 18:05.
ahenobarb is offline  
Old September 16, 2003, 08:53   #4
Tamerlin
Call to Power II Democracy GameCTP2 Source Code Project
King
 
Tamerlin's Avatar
 
Local Time: 10:47
Local Date: November 2, 2010
Join Date: Apr 2002
Location: Toulouse (South-western France)
Posts: 2,051
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.

__________________
"Democracy is the worst form of government there is, except for all the others that have been tried." Sir Winston Churchill

Last edited by Tamerlin; September 20, 2003 at 14:12.
Tamerlin is offline  
Old September 16, 2003, 12:47   #5
ahenobarb
Prince
 
ahenobarb's Avatar
 
Local Time: 08:47
Local Date: November 2, 2010
Join Date: Nov 2001
Posts: 437
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?
ahenobarb is offline  
Old September 16, 2003, 13:21   #6
Keygen
staff
Call to Power PBEMCivilization IV: MultiplayerCTP2 Source Code ProjectCall To Power SuperLeaguePolyCast TeamCivilization IV PBEMBtS Tri-LeagueC4WDG Delian League
ACS Staff Member / Hosted Site Admin
 
Local Time: 11:47
Local Date: November 2, 2010
Join Date: Jan 2000
Posts: 7,524
Good work ahenobarb
Keygen is offline  
Old September 16, 2003, 13:27   #7
Peter Triggs
CTP2 Source Code ProjectCivilization IV Creators
King
 
Local Time: 08:47
Local Date: November 2, 2010
Join Date: Jan 2000
Location: Gone Fishin, Canada
Posts: 1,059
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.
Peter Triggs is offline  
Old September 16, 2003, 13:31   #8
Locutus
Apolytoners Hall of FameCiv4 SP Democracy GameCiv4 InterSite DG: Apolyton TeamBtS Tri-LeagueC4BtSDG TemplarsC4WDG Team ApolytonCivilization IV CreatorsCTP2 Source Code ProjectPolyCast Team
Deity
 
Locutus's Avatar
 
Local Time: 10:47
Local Date: November 2, 2010
Join Date: Nov 1999
Location: De Hel van Enschede
Posts: 11,702
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
__________________
Administrator of WePlayCiv -- Civ5 Info Centre | Forum | Gallery
Locutus is offline  
Old September 16, 2003, 13:40   #9
Locutus
Apolytoners Hall of FameCiv4 SP Democracy GameCiv4 InterSite DG: Apolyton TeamBtS Tri-LeagueC4BtSDG TemplarsC4WDG Team ApolytonCivilization IV CreatorsCTP2 Source Code ProjectPolyCast Team
Deity
 
Locutus's Avatar
 
Local Time: 10:47
Local Date: November 2, 2010
Join Date: Nov 1999
Location: De Hel van Enschede
Posts: 11,702
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...
__________________
Administrator of WePlayCiv -- Civ5 Info Centre | Forum | Gallery
Locutus is offline  
Old September 16, 2003, 14:05   #10
ahenobarb
Prince
 
ahenobarb's Avatar
 
Local Time: 08:47
Local Date: November 2, 2010
Join Date: Nov 2001
Posts: 437
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.
ahenobarb is offline  
Old September 16, 2003, 20:06   #11
Tamerlin
Call to Power II Democracy GameCTP2 Source Code Project
King
 
Tamerlin's Avatar
 
Local Time: 10:47
Local Date: November 2, 2010
Join Date: Apr 2002
Location: Toulouse (South-western France)
Posts: 2,051
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...


__________________
"Democracy is the worst form of government there is, except for all the others that have been tried." Sir Winston Churchill
Tamerlin is offline  
Old September 16, 2003, 23:42   #12
ahenobarb
Prince
 
ahenobarb's Avatar
 
Local Time: 08:47
Local Date: November 2, 2010
Join Date: Nov 2001
Posts: 437
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.
ahenobarb is offline  
Old September 17, 2003, 00:02   #13
Tamerlin
Call to Power II Democracy GameCTP2 Source Code Project
King
 
Tamerlin's Avatar
 
Local Time: 10:47
Local Date: November 2, 2010
Join Date: Apr 2002
Location: Toulouse (South-western France)
Posts: 2,051
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.
__________________
"Democracy is the worst form of government there is, except for all the others that have been tried." Sir Winston Churchill
Tamerlin is offline  
Old September 17, 2003, 00:15   #14
ahenobarb
Prince
 
ahenobarb's Avatar
 
Local Time: 08:47
Local Date: November 2, 2010
Join Date: Nov 2001
Posts: 437
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?
ahenobarb is offline  
Old September 17, 2003, 03:51   #15
Locutus
Apolytoners Hall of FameCiv4 SP Democracy GameCiv4 InterSite DG: Apolyton TeamBtS Tri-LeagueC4BtSDG TemplarsC4WDG Team ApolytonCivilization IV CreatorsCTP2 Source Code ProjectPolyCast Team
Deity
 
Locutus's Avatar
 
Local Time: 10:47
Local Date: November 2, 2010
Join Date: Nov 1999
Location: De Hel van Enschede
Posts: 11,702
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...
__________________
Administrator of WePlayCiv -- Civ5 Info Centre | Forum | Gallery
Locutus is offline  
Old September 17, 2003, 08:32   #16
Tamerlin
Call to Power II Democracy GameCTP2 Source Code Project
King
 
Tamerlin's Avatar
 
Local Time: 10:47
Local Date: November 2, 2010
Join Date: Apr 2002
Location: Toulouse (South-western France)
Posts: 2,051
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...
__________________
"Democracy is the worst form of government there is, except for all the others that have been tried." Sir Winston Churchill
Tamerlin is offline  
Old September 17, 2003, 11:23   #17
ahenobarb
Prince
 
ahenobarb's Avatar
 
Local Time: 08:47
Local Date: November 2, 2010
Join Date: Nov 2001
Posts: 437
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.
ahenobarb is offline  
Old September 17, 2003, 12:10   #18
Locutus
Apolytoners Hall of FameCiv4 SP Democracy GameCiv4 InterSite DG: Apolyton TeamBtS Tri-LeagueC4BtSDG TemplarsC4WDG Team ApolytonCivilization IV CreatorsCTP2 Source Code ProjectPolyCast Team
Deity
 
Locutus's Avatar
 
Local Time: 10:47
Local Date: November 2, 2010
Join Date: Nov 1999
Location: De Hel van Enschede
Posts: 11,702
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).
__________________
Administrator of WePlayCiv -- Civ5 Info Centre | Forum | Gallery
Locutus is offline  
Old September 17, 2003, 18:12   #19
ahenobarb
Prince
 
ahenobarb's Avatar
 
Local Time: 08:47
Local Date: November 2, 2010
Join Date: Nov 2001
Posts: 437
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.
ahenobarb is offline  
Old September 17, 2003, 19:57   #20
Tamerlin
Call to Power II Democracy GameCTP2 Source Code Project
King
 
Tamerlin's Avatar
 
Local Time: 10:47
Local Date: November 2, 2010
Join Date: Apr 2002
Location: Toulouse (South-western France)
Posts: 2,051
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.
__________________
"Democracy is the worst form of government there is, except for all the others that have been tried." Sir Winston Churchill
Tamerlin is offline  
Old September 20, 2003, 13:45   #21
Martin Gühmann
staff
Call to Power II Democracy GameCall to Power Democracy GameCTP2 Source Code Project
Super Moderator
 
Martin Gühmann's Avatar
 
Local Time: 10:47
Local Date: November 2, 2010
Join Date: Mar 2001
Location: Tübingen, Germany
Posts: 6,206
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
__________________
Civ2 military advisor: "No complaints, Sir!"
Martin Gühmann is offline  
Old September 20, 2003, 14:19   #22
Tamerlin
Call to Power II Democracy GameCTP2 Source Code Project
King
 
Tamerlin's Avatar
 
Local Time: 10:47
Local Date: November 2, 2010
Join Date: Apr 2002
Location: Toulouse (South-western France)
Posts: 2,051
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.
__________________
"Democracy is the worst form of government there is, except for all the others that have been tried." Sir Winston Churchill
Tamerlin is offline  
Old September 20, 2003, 14:39   #23
ahenobarb
Prince
 
ahenobarb's Avatar
 
Local Time: 08:47
Local Date: November 2, 2010
Join Date: Nov 2001
Posts: 437
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  
Old September 30, 2003, 12:43   #24
ahenobarb
Prince
 
ahenobarb's Avatar
 
Local Time: 08:47
Local Date: November 2, 2010
Join Date: Nov 2001
Posts: 437
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.
ahenobarb is offline  
Old September 30, 2003, 13:54   #25
Immortal Wombat
Apolytoners Hall of Fame
Prince
 
Immortal Wombat's Avatar
 
Local Time: 09:47
Local Date: November 2, 2010
Join Date: Dec 2000
Location: in perpetuity
Posts: 4,962
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.
__________________
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 30, 2003, 19:35   #26
Martin Gühmann
staff
Call to Power II Democracy GameCall to Power Democracy GameCTP2 Source Code Project
Super Moderator
 
Martin Gühmann's Avatar
 
Local Time: 10:47
Local Date: November 2, 2010
Join Date: Mar 2001
Location: Tübingen, Germany
Posts: 6,206
I agree with Ben, the terrain and tilimprovement graphics are not stored in sprites but they are stored in the gtset565.til file.

-Martin
__________________
Civ2 military advisor: "No complaints, Sir!"
Martin Gühmann is offline  
Old October 4, 2003, 12:29   #27
FRITZ
Settler
 
Local Time: 08:47
Local Date: November 2, 2010
Join Date: Nov 2001
Location: Berlin-Germany
Posts: 24
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
FRITZ is offline  
Old December 10, 2003, 18:43   #28
ahenobarb
Prince
 
ahenobarb's Avatar
 
Local Time: 08:47
Local Date: November 2, 2010
Join Date: Nov 2001
Posts: 437
Just curious to see if this has been helpful to anyone out there.

Oh, and B-U-M-P!
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:47.


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