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 > New modder
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
odisseus is offline odisseus
Settler
Rome - Italy
Aug 2001
time: 05:17
Post  Old Post 07-01-2002 16:22
Edit/Delete Message Reply w/Quote
#1 Report this post to a moderator
New modder Support Apolyton, buy Civilization III: Complete

Hi.

I've just bought CTP2. I'm studying the SLIC language. Wonderful!

I was a modder of Unreal and UT (very different games, indeed).

I enjoy coding very much. As soon as possible i'll try to give my contributions to the modder community.

Long life to CTP2!

The Big Mc is offline The Big Mc
King
Of the universe / England
Oct 2001
time: 05:17
  Old Post 07-01-2002 17:35 Visit The Big Mc's homepage!
Edit/Delete Message Reply w/Quote
#2 Report this post to a moderator
Support Apolyton, buy Alpha Centauri

it's good to have a new modder

it's the big mc here if you need any help just call I will try to help I remember when I first started, not long ago it was a struggle

Pedrunn is offline Pedrunn
King
of Natal, Brazil
Jul 2001
time: 02:17
  Old Post 07-01-2002 19:55
Edit/Delete Message Reply w/Quote
#3 Report this post to a moderator
Increase Your PM Length

Long Life to CTP2!!!!!
Welcome, Odisseus

Martin Gühmann is offline Martin Gühmann
Emperor
Berlin, Germany
Mar 2001
time: 06:17
Post  Old Post 07-01-2002 23:15 Visit Martin Gühmann's homepage!
Edit/Delete Message Reply w/Quote
#4 Report this post to a moderator
Support Apolyton, buy Galactic Civilizations

Year, we need more of us, welcome odisseus and long life to CTP2 the real Civ4.

-Martin

odisseus is offline odisseus
Settler
Rome - Italy
Aug 2001
time: 05:17
  Old Post 08-01-2002 03:32
Edit/Delete Message Reply w/Quote
#5 Report this post to a moderator
Enter the AD-FREE zone

Thanx all!

So ... this is my first questions

First (group of) questions.

How can I manage strings in SLIC? Are there operators like concatenation? All constant screen must be in txt files (in the \gamedata directory)? Are there string variables?

Second group

I want to create an alert window with two choices: OK and Cancel . The alert is activated when I trigger an event (I use the 'pre' option). If I press OK, the event must be processed by CTP code as usual. If I press Cancel the event must not be processed.

What statement I have to use in the 'Cancel' button code?

Bye, and thanx again.

Immortal Wombat is offline Immortal Wombat
Prince
in perpetuity
Dec 2000
time: 05:17
  Old Post 08-01-2002 03:41 Visit Immortal Wombat's homepage!
Edit/Delete Message Reply w/Quote
#6 Report this post to a moderator
Support Apolyton, buy Civilization 2

Welcome odisseus

quote:
Originally posted by odisseus
I want to create an alert window with two choices: OK and Cancel . The alert is activated when I trigger an event (I use the 'pre' option). If I press OK, the event must be processed by CTP code as usual. If I press Cancel the event must not be processed.

What statement I have to use in the 'Cancel' button code?

code:
Kill();


That'll get rid of the message box for you.

Peter Triggs is offline Peter Triggs
Prince
Gone Fishin, Canada
Jan 2000
time: 05:17
  Old Post 08-01-2002 06:46
Edit/Delete Message Reply w/Quote
#7 Report this post to a moderator
Support Apolyton, buy Call to Power 2

Ciao, Odessius

quote:

How can I manage strings in SLIC?


With difficulty. There are no operators for concatenation and neither are there string variables.

quote:

The alert is activated when I trigger an event (I use the 'pre' option). If I press OK, the event must be processed by CTP code as usual. If I press Cancel the event must not be processed.


As well as the "Kill()" that Immortal Wombat mentioned, if I understand you correctly, I think you need to use the "DisableTrigger" command. But I've never tried disabling an event handler immediately before it was supposed to trigger so I don't know whether that will work or not. How about posting the code here so we can see what you're trying to do?

odisseus is offline odisseus
Settler
Rome - Italy
Aug 2001
time: 05:17
  Old Post 08-01-2002 13:37
Edit/Delete Message Reply w/Quote
#8 Report this post to a moderator
Support Apolyton, buy Galactic Civilizations: Deluxe Edition

As my very first exercise, i'm trying to implement the following feature.

When I select an opposite unit/army, an alert window must inform me displaying the list of units I'm attempting to attack. Then I have the choice to continue the attack (OK) or not (Cancel).

So, I need to prepare the list of unit in the attacked cell (string concatenation?) and two buttons for the choice (OK and Cancel).

I think that DisableTrigger is the right choice for the Cancel button, but I have to understand when and where enable the trigger again

Looking at all the text/SLIC files, I noticed the presence of lots of strings about PBEM!!!!! Is there a way to enable this kind of MP game?

Bye

The Big Mc is offline The Big Mc
King
Of the universe / England
Oct 2001
time: 05:17
  Old Post 08-01-2002 16:41 Visit The Big Mc's homepage!
Edit/Delete Message Reply w/Quote
#9 Report this post to a moderator
Increase the size of your Attachments

hi I got something for the msg box its an example of how to use it, it's the first draft of one of my slic just lock it into the scenario bit and load

hope it helps

Attachment: give city.zip
This has been downloaded 3 time(s).

Peter Triggs is offline Peter Triggs
Prince
Gone Fishin, Canada
Jan 2000
time: 05:17
  Old Post 10-01-2002 01:06
Edit/Delete Message Reply w/Quote
#10 Report this post to a moderator
Support Apolyton, buy Alpha Centauri

Hmm, as I recall skorpion59, Locutus, and dreamer came up with something quite similar to this in CTP1. Maybe Locutus still has it around. You could check his website. It would be SLIC1 and you'd have to convert it, but it would at least give you something to look at.

Locutus is offline Locutus
ACS CTP1/2 Manager & Civ4 Co-Manager
Hengelo, The Netherlands
Nov 1999
time: 06:17
  Old Post 10-01-2002 02:07 Visit Locutus<br><img src=/forums/images/staff-icon.gif>'s homepage!
Edit/Delete Message Reply w/Quote
#11 Report this post to a moderator
Browse Apolyton AD-FREE

Wow! You've got one hell of a memory, Peter! That was just about the entire 'SLIC group' or whatever we called ourselves in those days (even I had almost forgotten about it's existance). There were 2 other members (MarkH and FinF, I had to dig *really* deep to come up with their names again) but quite frankly, they didn't contribute nearly as much in terms of lines of code (and I don't think they posted in the forums at all, just in email)...

Unfortunately, almost all records of our little group and our SUM mod (SLIC Utility Mod, for those who don't have as good a memory or simply weren't there) were lost in a chain of computer crashes I had a couple of months ago (together with pretty much any other records I had on the 'CtP1 era')

The reason why this same code doesn't exist for CtP2 though, is because as far as I could see, it was not possible to convert this particular feature to CtP2. A few of SLIC1's functions were not transfered to SLIC2 (even though Mr Ogre had promised otherwise - can't really blame him though, he was probably too busy adding new stuff to even notice ). As far as I know, there is no way to detect when a player clicks on an enemy unit or city in CtP2, there is no event that triggers when this happens (CtP1 had a 'clicked' container with variables that acted as events - sounds more complicated than it was ). Odisseus, how were you planning to do this? Maybe I overlooked something, I would very much like to be wrong but I don't think it can be done. Displaying the actual message and buttons and stuff is quite simple, I could easily rewrite that part (or help you write it). But how useful would that be if it's never gonna work anyway?

Peter Triggs is offline Peter Triggs
Prince
Gone Fishin, Canada
Jan 2000
time: 05:17
  Old Post 10-01-2002 02:38
Edit/Delete Message Reply w/Quote
#12 Report this post to a moderator
Support Apolyton or Terrorists Win

It was one of the first pieces of SLIC I'd seen. I was REALLY impressed.

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