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 > Slic So Compicated!!!!!
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
freestyler is offline freestyler
Chieftain
England
Sep 2001
time: 05:16
Angry  Old Post 21-11-2001 03:13
Edit/Delete Message Reply w/Quote
#1 Report this post to a moderator
Slic So Compicated!!!!! Get a bigger avatar today!

This kind of message would have probably come up long ago; and from time to time,

"I DON'T UNDERSTAND SLIC"

ive even tried the "getting started with SLIC" by Peter Triggs. but still no help. I have also looked through the god dam Activision help stuff in this Apolyton site.

I mean you see pure modders or should i say SLICers in here doing loads of new SLICs and Mods and its pretty much amazing what you can do with SLIC.

What i'm really loking for is a (any kind) file that edits the AI and makes them sign treaties with each other - you sign a military pact with someone and in no time they want you to attack their enemys (pretty much every civ)

And so far none of these 'Diplomods' have been able to do that

When im looking through SLIC files (trying to learn off them) i see all these 'short words' wich i dont understand.

Whats this abbreviation mean
'int_t'
(yes i dint even know what that is)

i dont know how everyone else find it SOOO easy

WHY IS SLIC SO DIFFICULT TO UN DERSTAND!!!!!!!

Immortal Wombat is offline Immortal Wombat
Prince
in perpetuity
Dec 2000
time: 05:16
  Old Post 21-11-2001 03:40 Visit Immortal Wombat's homepage!
Edit/Delete Message Reply w/Quote
#2 Report this post to a moderator
Re: Slic So Compicated!!!!! Inflate your Upload Space

quote:
Originally posted by freestyler
What i'm really loking for is a (any kind) file that edits the AI and makes them sign treaties with each other - you sign a military pact with someone and in no time they want you to attack their enemys (pretty much every civ)

And so far none of these 'Diplomods' have been able to do that

I thought the new version did to some extent? I'm sure Peter or Martin could tell you
Hate to say it, but SLIC can do this easily, if you just want the AI to like each other. To make it have any kind of discretion about who to sign with takes more time.
quote:

When im looking through SLIC files (trying to learn off them) i see all these 'short words' wich i dont understand.

Whats this abbreviation mean
'int_t'
(yes i dint even know what that is)

i dont know how everyone else find it SOOO easy

Its not easy by any means, and I had tremendous difficulty getting into it. (Search for the number of "SLIC help" threads I started a few months ago )
You're going to hate me for saying this, but it really is a matter of practise, and reading through SLIC coding to see what it does. Most of the MedMod stuff is heavily commented so Wes can understand it so it can be easy enough to look through it, and see things like:

PHP:

KillUnit
(tmpUnit)

and figure out it means that the game kills the unit that is defined as tmpUnit. (temporary unit)

Personally I think the way Wouter and Peter go about explaining it is a little wierd for complete non-programmers, but I haven't got time to do a different explaination.

Basically, I started by reading through the Activision docu, and then figuring the functions. ( I printed out the docu, then read it every time I took a dump. I got to understand the simpler bits of it quite fast that way )
quote:

'int_t'

int_t is a definer. Note it is always followed by another word, something like 'i' or 'tmpNum' This is how to define a variable.
code:
int_t tmpNum;

just means that whenever the word 'tmpNum' comes up in the code, the game will know to treat it as an integer.
Unit_t, location_t, army_t all work the same. (with units, locations, armies etc)

SLIC is complex to learn well, but if you can recognise what are the complex bits, and what are the simpler bits, then getting used to it from the bottom up is the way to go. For simple SLIC, avoid Locutus' stuff avoid AI functions (dale's mostly ), avoid Peter's SLIC, because its all cramped and has far too many 'time-saving' functions . Avoid the Alexander scenario.
My first SLIC that worked (just) was the wonderunits code in Cradle, that is entirely based on a few events, and a few simple functions. Martin's slics are fairly simple stuff too, based on one or two events, and a messagebox or so. The Big Mc has just done some simple stuff too, but the layout is a bit dodgy

Anyway, having insulted everyone here I'll close by saying I will do a quick-guide for newbies, based on event-based programming, rather than object-orientated rubbish as soon as I have a spare hour or so. (Maybe Friday/Saturday)

Good Luck, don't get mad.

Ben

kaan is offline kaan
Prince
Aarhus
Mar 2001
time: 05:16
  Old Post 21-11-2001 17:40
Edit/Delete Message Reply w/Quote
#3 Report this post to a moderator
Support Apolyton, buy Alpha Centauri

the main reason SLIC i so hard to learn is that it is a programming language, and as programming languages go its not very elegant eighter. this also explains why SLIC is so powerfull, you can program whole new things with it
i will recoment that you learn the basics of programming in some other language that is well documented and perhaps has a few good introduction texts on how to learn to program.
this might seem like a detour, but if you learn to program in another language first then its much easyer (like in, almost no effort) to learn SLIC.
i will recoment that you start out with Java because the syntax is almost the same as SLIC, the development tools are free to download and a comprehensive guide for complete newbies can be located at suns website

the guide
http://java.sun.com/docs/books/tuto...tpage-spotlight

now if someone just had a link to a site that has some info on event driven programming

i hope this helps
klaus

The Big Mc is offline The Big Mc
King
Of the universe / England
Oct 2001
time: 05:16
  Old Post 22-11-2001 15:53 Visit The Big Mc's homepage!
Edit/Delete Message Reply w/Quote
#4 Report this post to a moderator
Increase the size of your Attachments

I think I know your problem you have looked at the scenarios from Activision and the amount of text scares you. it's not like that. A bit of slic can be only 5 lines. Keep it simple make small amounts of slic to start with to billed up your confidence ( its how I started with only being able to program in vb) . if you still cant get it to work make a copy of the Activision ones and just alter the lines of code you get to see what line does to the relevant code. You can use this in your own scenario later by implementing the copied lines(the jigsaw and hammer approach).

just Keep it simple

Good luck

Immortal Wombat is offline Immortal Wombat
Prince
in perpetuity
Dec 2000
time: 05:16
  Old Post 24-11-2001 21:39 Visit Immortal Wombat's homepage!
Edit/Delete Message Reply w/Quote
#5 Report this post to a moderator
Put an end to popups!

http://apolyton.net/forums/showthre...&threadid=33181

The promised quick-guide

Not perfect, but probably not finished either.

Attachment: iw_slic guide v1.0.zip
This has been downloaded 16 time(s).

freestyler is offline freestyler
Chieftain
England
Sep 2001
time: 05:16
  Old Post 24-11-2001 23:46
Edit/Delete Message Reply w/Quote
#6 Report this post to a moderator
Support Apolyton, buy Civilization: The Boardgame

Wow!!! Theres quite alot of info here, i think i'll go and take a look at it all,

Thanks for the time & effort you put into it,

Cheers!!!

The Big Mc is offline The Big Mc
King
Of the universe / England
Oct 2001
time: 05:16
  Old Post 26-11-2001 21:07 Visit The Big Mc's homepage!
Edit/Delete Message Reply w/Quote
#7 Report this post to a moderator
Enter the AD-FREE zone

just down loaded the slic help file chance is I may find something useful I put this reply up because I don't like downloading stuff without telling the person I will let you know what I think later.

The Big Mc is offline The Big Mc
King
Of the universe / England
Oct 2001
time: 05:16
  Old Post 27-11-2001 18:06 Visit The Big Mc's homepage!
Edit/Delete Message Reply w/Quote
#8 Report this post to a moderator
Lose 30 kilos (of popups)

looked at it it looks interesting found out how to do while coding.

I will look at it when I am stuck but there is still stuff that I am a bit of with. like the mod I made so that the AI gets new armies at the side of there city but it did the other AI too.

Immortal Wombat is offline Immortal Wombat
Prince
in perpetuity
Dec 2000
time: 05:16
  Old Post 27-11-2001 19:38 Visit Immortal Wombat's homepage!
Edit/Delete Message Reply w/Quote
#9 Report this post to a moderator
Support Apolyton, buy Civilization III: Complete

quote:
Originally posted by The Big Mc
I will look at it when I am stuck but there is still stuff that I am a bit of with. like the mod I made so that the AI gets new armies at the side of there city but it did the other AI too.

Post the code (copy-paste it in) and we'll see. I suspect its triggering on every AI turn, you'll need to select which AI you want.

if(player[0] == 2) {

or similar.

The Big Mc is offline The Big Mc
King
Of the universe / England
Oct 2001
time: 05:16
  Old Post 27-11-2001 20:20 Visit The Big Mc's homepage!
Edit/Delete Message Reply w/Quote
#10 Report this post to a moderator
Browse Apolyton AD-FREE

thanks it's does small bits of codes you don't find in the Activision scenarios.

The Big Mc is offline The Big Mc
King
Of the universe / England
Oct 2001
time: 05:16
  Old Post 28-11-2001 16:35 Visit The Big Mc's homepage!
Edit/Delete Message Reply w/Quote
#11 Report this post to a moderator
Remove this text

I did slic, works good, got to test it like.

I have had a problem with an if to find if player 0 has over 6000. I tried to find the relevent code in the Activision stuff but it's mostly in the msg boxes can you help

Immortal Wombat is offline Immortal Wombat
Prince
in perpetuity
Dec 2000
time: 05:16
  Old Post 28-11-2001 20:57 Visit Immortal Wombat's homepage!
Edit/Delete Message Reply w/Quote
#12 Report this post to a moderator
Why not to give SLIC advice from school, and the joys of editing posts... Support Apolyton buy from Amazon

I assume you mean you mean player[0]...

There is no built-in variable for player gold, so you have to use a function:

code:
if(PlayerGold(player[0]) >= 6000){

Last edited by Immortal Wombat on 28-11-2001 at 22:24

The Big Mc is offline The Big Mc
King
Of the universe / England
Oct 2001
time: 05:16
Talking  Old Post 29-11-2001 15:33 Visit The Big Mc's homepage!
Edit/Delete Message Reply w/Quote
#13 Report this post to a moderator
Browse Apolyton AD-FREE

thanks again.

I normally look at the Activision stuff to see if there is a bit of code to do it I found a small bit but it was in an msg box.

The code is for bank robbery I posted the first go about a month a go and it's a bout time an improved it.

The Big Mc is offline The Big Mc
King
Of the universe / England
Oct 2001
time: 05:16
  Old Post 04-12-2001 17:04 Visit The Big Mc's homepage!
Edit/Delete Message Reply w/Quote
#14 Report this post to a moderator
Help yourself to an AD-FREE life

I made a new bit of slic for barbarians to sell cites see exchange cites and I added a file were I explained what the slic did to all the people who are just starting with slic

The Big Mc is offline The Big Mc
King
Of the universe / England
Oct 2001
time: 05:16
  Old Post 04-12-2001 19:30 Visit The Big Mc's homepage!
Edit/Delete Message Reply w/Quote
#15 Report this post to a moderator
Support Apolyton, buy Civilization III: Complete

I am looking for how to add slaves to a city there most be some code to do it some where.

  < Last Thread     Next Thread > Post New Thread     Post A Reply
All times are GMT. The time now is 05:16.
Apolyton Time is 00:16.
    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.0430 seconds (90.38% PHP - 9.62% 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