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 > How can I create a city with a granary ?
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
slamp is offline slamp
King
Cannes, France
Sep 1999
time: 06:13
Question  Old Post 03-12-1999 18:20 Visit slamp's homepage!
Edit/Delete Message Reply w/Quote
#1 Report this post to a moderator
How can I create a city with a granary ? Support Apolyton, buy Civilization III: Complete

Hi,

I have a trigger which adds 4 pops to a city
and creates 2 pikemens when the city is create. I want to add a granary to this city.
How do you do that ?
The trigger is like below:

trigger 'MakeCities' when (city.built && (g.year <= 3) && (player.cities <= 10)) {
AddPops(city.1,4);
CreateUnit(player, UnitType("UNIT_PIKEMEN"), city.1.location, 0);
CreateUnit(player, UnitType("UNIT_PIKEMEN"), city.1.location, 0);
AddBuildingToBuildList(city.1, BuildingType("IMPROVE_SILO"));
}
[This message has been edited by slamp (edited December 03, 1999).]

wheathin is offline wheathin
Prince
home
Apr 1999
time: 05:13
Post  Old Post 08-12-1999 21:15
Edit/Delete Message Reply w/Quote
#2 Report this post to a moderator
Tired of ads?

Slamp is not the only one who wants to know. Can anyone help?

And, btw, does AddBuildingToBuildList actually create the building, or just put in the queue? I couldn't tell.

I am trying to resurrect my "Packages" idea from June - but I need a SLIC function that lets me add buildings to the city.

Wheathin

wheathin is offline wheathin
Prince
home
Apr 1999
time: 05:13
Question  Old Post 11-12-1999 00:34
Edit/Delete Message Reply w/Quote
#3 Report this post to a moderator
Tired of ads?

.... *ahem*

Still waiting to find out if you can use slic to add a building to city... anyone?

wheathin

TP is offline TP
Warlord

Jun 1999
time: 05:13
Post  Old Post 11-12-1999 05:26
Edit/Delete Message Reply w/Quote
#4 Report this post to a moderator
Support Apolyton, pre-order Civilization IV

Slamp,

I did not try the trigger you have outlined here as I think that you already have tried it without being lucky. Well, I do not see any way to do that, I am afraid. The "AddBuildingToBuildList" function does actually what it is saying - it adds a building to the build list (=build queue) of a given city. Unfortunately there is no "RushBuy" function in SLIC which would have enabled you to force a rush-buy (together with incremental gold) to build a building within one round as a work-around. Seems like this is a dead-end.

By the way, I have just visited your homepage. As I can not speak French, I might be wrong, but do you live in Toulouse ? If yes, we might meet next year as I will be in the area of Langeudoc Roussillon for a couple of days. Due to reading about Sierra's "Gabriel Knight 3" (and playing right now), I stumbled over the history of the Cathars, Rhennes-Le-Chateaux and have literally fallen in love with the lovely landscape and that mystery.


WesW,

You have asked in a seperate mail whether "I could write triggers so that any sea or space city starts with a pop of 3 and machine gunners.".

Now I won't go into SLIC coding anymore as PowerSLICs is finished and my vacation ends on Sunday. Also I have to admit ashamingly, I am now into another great game I already mentioned which puts CTP at least for the time being off my desk: "Gabriel Knight 3 - Blood of the Damned, Blood of the Sacred", a supérbe adventure game (GK1 and GK2 both have been 100% crap, but GK3 is simply stunning - mostly because of the detailed and mysterious story taking place in a beautiful area in France).

Still the below code which is based on Slamp's code should do what you need (Slamp, I assume you are fine that I have modified your above code a bit - if not, please shout):

trigger 'Slamp_TP_SupportSeaCities' when (city.built && IsUnderseaCity(city)) {
AddPops(city.1,2);
CreateUnit(player, UnitType("UNIT_MACHINE_GUNNER"), city.1.location, 0);
CreateUnit(player, UnitType("UNIT_MACHINE_GUNNER"), city.1.location, 0);
}

This code should give you a pop of 3 per sea city and 2 machine gunners in them as soon as the city is founded. I have tested this code and it works.

That's the good news. Now to the bad news...

Unfortunately, the corresponding "IsSpaceCity" function (to detect whether a city is located in space) is broken in CTP 1.2 (at least in my setup here) and thus can not be called from within SLIC. This means that no SLIC code can be applied to cities which have just been founded in space (there may be a solution, but I am 99% sure that I have not overlooked something).


Hope this helps - if not, go and purchase GK3 (http://www.sierrastudios.com/games/gk3) for the search of an ancient well-known item...


TP
[This message has been edited by TP (edited December 10, 1999).]

slamp is offline slamp
King
Cannes, France
Sep 1999
time: 06:13
Post  Old Post 11-12-1999 17:26 Visit slamp's homepage!
Edit/Delete Message Reply w/Quote
#5 Report this post to a moderator
Got spare money?

TP,

I lived in Toulouse (6 years), now I'm between Brussels (BE), Paris (FR) and The Hague (NL) for my job.
But I spend from times to times my holiday in Toulouse, so don't hesitate to e-mail me if you need some informations. I have a lot of good friend in Toulouse; And you where do you come from ?

Olivier aka Slamp
PS: when I'll have time, I'll translate my home page
[This message has been edited by slamp (edited December 11, 1999).]

Locutus is offline Locutus
ACS CTP1/2 Manager & Civ4 Co-Manager
Hengelo, The Netherlands
Nov 1999
time: 06:13
Lightbulb  Old Post 11-12-1999 17:29 Visit Locutus<br><img src=/forums/images/staff-icon.gif>'s homepage!
Edit/Delete Message Reply w/Quote
#6 Report this post to a moderator
Support Apolyton buy from Amazon

I didn't have much time to dive into SLIC yet (although I've been planning to for a long time) but in dutcheeses functions.txt I found a function called 'FinishBuilding'. Can't this be used to complete a building in the build queue? I haven't tried it yet so it might do something completely different.

Another function I found here is 'TerrainType'. Can't you somehow investigate the type of terrain under a city to find out if it's a space city?

These might have been stupid suggestions but as I said: I still know very little about SLIC and I'm just trying to help (and learn).
[This message has been edited by Locutus (edited December 11, 1999).]

wheathin is offline wheathin
Prince
home
Apr 1999
time: 05:13
Unhappy  Old Post 11-12-1999 20:28
Edit/Delete Message Reply w/Quote
#7 Report this post to a moderator
Put an end to popups!

the "FinishBuilding" function just orders a city to finish building a settler if that is what it is doing (or something like that). It only works for settlers.

quite useless.

wheathin

TP is offline TP
Warlord

Jun 1999
time: 05:13
Post  Old Post 11-12-1999 21:48
Edit/Delete Message Reply w/Quote
#8 Report this post to a moderator
Support Apolyton, buy Civilization III: Complete

Slamp,

Thanks a lot for talking a bit about you ! I may take your offer and send you a mail in a couple of weeks when I am going to start next year's vacation planning. Merci beaucoup ! My name is Thomas (age 28) and I am originally from the southern part of Germany (Black Forest) but moved to the Frankfurt area about 2.5 years ago due to job reasons. I might relocate to Switzerland though in 2000/2001 within the company where I am working right now.


Locutus,

Copied from SLIC readme which you can find at Apolyton too (I think in the modification section of CTP):

INT TerrainType(location)
Return the terrain type of the location.


TP

Locutus is offline Locutus
ACS CTP1/2 Manager & Civ4 Co-Manager
Hengelo, The Netherlands
Nov 1999
time: 06:13
Arrow  Old Post 12-12-1999 20:54 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
Avatar Enlargement: We've got the solution

TP:
I know what TerrainType does, but what I meant to say is: Can't it be used as a work-around for the not functioning "IsSpaceCity"?
Something like this:

trigger 'SpaceCities' when (city.built && TerrainType(city.location)==space) {
stuff you want to do when space city is built
}

I'm not sure though if "space" can be used like that.

BTW I'm not sure what readme-file you're talking about. Could you mail that to me?

slamp is offline slamp
King
Cannes, France
Sep 1999
time: 06:13
Post  Old Post 12-12-1999 21:28 Visit slamp's homepage!
Edit/Delete Message Reply w/Quote
#10 Report this post to a moderator
Got spare money?

TP means: http://www.activision.com/games/civ...n/slicfunc.html
and http://www.activision.com/games/civilization/slic.html
and http://www.activision.com/games/civ...licbuiltin.html

Hope this help

Locutus is offline Locutus
ACS CTP1/2 Manager & Civ4 Co-Manager
Hengelo, The Netherlands
Nov 1999
time: 06:13
  Old Post 12-12-1999 21:59 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
Lose 30 kilos (of popups)

thanx, don't know how it's possible but somehow I missed two of those. This is actually useful stuff.

Locutus is offline Locutus
ACS CTP1/2 Manager & Civ4 Co-Manager
Hengelo, The Netherlands
Nov 1999
time: 06:13
  Old Post 13-12-1999 00:55 Visit Locutus<br><img src=/forums/images/staff-icon.gif>'s homepage!
Edit/Delete Message Reply w/Quote
#12 Report this post to a moderator
Support Apolyton, buy Civilization: The Boardgame

This I posted a few days ago:

quote:
...IMHO the amount and quality of SLIC-documentation could be better...


I guess I owe Joe Rumsey (whoever that may be) an apology, his document wasn't so bad after all (I just missed a few hyperlinks). Sorry Joe.

Paul is offline Paul
Emperor
Zwolle, The Netherlands
Mar 1999
time: 06:13
Post  Old Post 13-12-1999 01:10 Visit Paul's homepage!
Edit/Delete Message Reply w/Quote
#13 Report this post to a moderator
Support Apolyton, buy Galactic Civilizations

Unfortunately this was never updated with the new functions of the 1.2 patch.

WesW is offline WesW
CTP1/2 Modification Site Admin
Florence, Al., USA
Jan 1970
time: 23:13
Post  Old Post 13-12-1999 13:21 Visit WesW's homepage!
Edit/Delete Message Reply w/Quote
#14 Report this post to a moderator
Browse Apolyton AD-FREE

Are there pages like this for the FLIs, or any of the texts files?

I went to the CTP main site, and I couldn't find any links to those slic pages above.

Locutus is offline Locutus
ACS CTP1/2 Manager & Civ4 Co-Manager
Hengelo, The Netherlands
Nov 1999
time: 06:13
Post  Old Post 13-12-1999 18:35 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
Increase Your PM Length

WesW:
All docs on modifying files (SLIC, FLI or AIP) I know I found on Apolyton's Modification-section.
There you will find a link "SLIC documentation" which refers to the main document of the above links. The other links can be accessed from there with hyperlinks.
I haven't looked into the FLI or AIP docs yet, so I can't tell you if there any good.
[This message has been edited by Locutus (edited December 13, 1999).]

TP is offline TP
Warlord

Jun 1999
time: 05:13
Post  Old Post 14-12-1999 03:34
Edit/Delete Message Reply w/Quote
#16 Report this post to a moderator
Got spare money?

Locutus,

GREAT idea to use the TerrainType function as a workaround to check whether a city is actually a space city.

I haven't tried it (too less time these days), but I know that as soon as a city is built (which you can trigger via city.built) the city's location is saved in city.location.

So the trigger for space cities would most likely look like:

trigger 'Slamp_TP_SupportSpaceCities' when (city.built && TerrainType(city.location) == 20) {
AddPops(city.1,2);
CreateUnit(player, UnitType("UNIT_MACHINE_GUNNER"), city.1.location, 0);
CreateUnit(player, UnitType("UNIT_MACHINE_GUNNER"), city.1.location, 0);
}

Hope this works (I am especially not sure whether space is linked to the number 20, but it is the 20th entry in terrain.txt, so I suppose it is correct.

Can someone test please ?


TP

TP is offline TP
Warlord

Jun 1999
time: 05:13
Post  Old Post 14-12-1999 04:15
Edit/Delete Message Reply w/Quote
#17 Report this post to a moderator
Browse Apolyton AD-FREE

Sorry guys,


3 issues after my testing (I just had to do it, at least until now past midnight:

1. Not so bad:
The terrain number lies between 10 and 17 based on my testing, you have to find the final right number. Please use the following code:
trigger 'Slamp_TP_SupportSpaceCities' when (city.built) {
if (TerrainType(city.location) == XX) {
AddPops(city.1,2);
CreateUnit(player, UnitType("UNIT_MACHINE_GUNNER"), city.location, 0);
CreateUnit(player, UnitType("UNIT_MACHINE_GUNNER"), city.location, 0);
}
}

2. Slightly bad:
After building the "star ladder", the first space city you automatically get with this wonder, will NOT be affected by the SLIC code, i.e. it will stay a city with 1 pop and no gunmen.

3. Severly bad:
The gunmen which get created, are not created in space but on Earth just down the space tile where the new space city is. I do not see a way to find a solution for that currently.


TP

WesW is offline WesW
CTP1/2 Modification Site Admin
Florence, Al., USA
Jan 1970
time: 23:13
Post  Old Post 14-12-1999 05:43 Visit WesW's homepage!
Edit/Delete Message Reply w/Quote
#18 Report this post to a moderator
Get a bigger avatar today!

Keep plugging away, TP!
Btw, see the Awesome Aips thread for TheBirdMan's comments about Ectopia.

Locutus is offline Locutus
ACS CTP1/2 Manager & Civ4 Co-Manager
Hengelo, The Netherlands
Nov 1999
time: 06:13
Smile  Old Post 14-12-1999 13:59 Visit Locutus<br><img src=/forums/images/staff-icon.gif>'s homepage!
Edit/Delete Message Reply w/Quote
#19 Report this post to a moderator
Support Apolyton, buy Civilization III: Complete

Glad I could help (for what it's worth anyway, if you can't even get your units actually in the city).
I'll try and do some testing tonight and see if I can get this thing to work properly. (I doubt it, because I've only been experimenting with SLIC for a few days, but maybe I'm lucky )

I also tried to get SLIC to create buildings in a city, but without results so far (not that I expected them). That really s*cks, I hadn't anticipated that would ever be a problem. Has anyone ever complained about this with Activision? Maybe they'll put it in a future patch.

Locutus

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

Hi all,
I've encountered some problems which prefented me from testing, but I had a few idea's that I thought I'd let you all know:

Firstly, I don't think it's necessary to know the number for the space-terrain (if someone messes with the terrain.txt file, this number may even change). It should be possible to replace the XX in the 'Slamp_TP_SupportSpaceCities'-trigger with TerrainType("TERRAIN_SPACE"). Correct me if I'm wrong, though.

Secondly, if you have your Machine Gunners underneath your city instead of into them, can't you use the SetOrder and AddOrder functions (with ORDER_LAUNCH from order.txt) to launch them into space? Or can this only be ordered to units who can normally be launched into space?

Well, that's it for now

Locutus

  < 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.0458 seconds (92.02% PHP - 7.98% 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