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 > Call To Power II > CtP2-Source Code Project > PROJECT: New SLIC & DB-Constants
Show a Printable Version | Email This Page to Someone! | Receive updates to this thread | Report this to Apolyton news!
CivGroups
CTP2 Source Code Project (59): Not a Member - Join

bottom of page
  
Author
Thread    < Last Thread     Next Thread > Post New Thread     Post A Reply
BureauBert is offline BureauBert
Chieftain
Vienna, Europe
Apr 2003
time: 06:36
  Old Post 09-07-2004 02:34 Visit BureauBert's homepage!
Edit/Delete Message Reply w/Quote
#1 Report this post to a moderator
PROJECT: New SLIC & DB-Constants Full PM-box? Change here!

I think it is a good idea to open a new thread collecting the new SLIC- and database-items added to the Apolyton Edition to keep some overview and to help modders and SLICers willing to test these new possibilities.
I will start by adding some of the new SLIC-/DB-items I could find in the Altered Source Files thread until now below. This means that I will also have to edit this first couple of "entries" if needed.
The idea is, that source coders adding/significantly modifying SLIC-functions, variables, DB-constants etc. would continue this thread by posting similar "entries" containing a short description (e.g. how to use a new function/variable, arguments, valid values etc.) - this way the creators of new modding tools would be able to edit their entries themselves, which I would prefer .

Last edited by BureauBert on 09-07-2004 at 03:02

BureauBert is offline BureauBert
Chieftain
Vienna, Europe
Apr 2003
time: 06:36
  Old Post 09-07-2004 02:35 Visit BureauBert's homepage!
Edit/Delete Message Reply w/Quote
#2 Report this post to a moderator
Const.txt: MAX_MATCH_LIST_CYCLES Full PM-box? Change here!

New DB-constant

Determines how often the AI's MatchLists are processed to task their units.
The default setting is 6 (the previous hard-coded setting)
Description here .

by: Fromafar

Last edited by BureauBert on 09-07-2004 at 02:43

BureauBert is offline BureauBert
Chieftain
Vienna, Europe
Apr 2003
time: 06:36
  Old Post 09-07-2004 02:36 Visit BureauBert's homepage!
Edit/Delete Message Reply w/Quote
#3 Report this post to a moderator
Const.txt: CAPTURE_CITY_ADVANCE_CHANCE Increase Your PM Length

Reimplementation, this constant is already in Const. txt, it now takes effect.

Percent chance of stealing an advance when capturing a city.
The current default value is 0.5
Valid values: 0.0 - 1.0
Description here

by: Martin Gühmann

Last edited by BureauBert on 09-07-2004 at 02:43

BureauBert is offline BureauBert
Chieftain
Vienna, Europe
Apr 2003
time: 06:36
  Old Post 09-07-2004 02:38 Visit BureauBert's homepage!
Edit/Delete Message Reply w/Quote
#4 Report this post to a moderator
DB-access without /reloadslic Increase the size of your Attachments

Games that use slic database access can now be reloaded without the need to /reloadslic to prevent a crash, unfortunatly this applies only to games that are saved with the new version of the slic database access, games saved with Activision's patch v.1.1 and with slic code that uses database access may not be continued without a /reloadslic.
Description here

by: Martin Gühmann

Last edited by BureauBert on 09-07-2004 at 02:44

BureauBert is offline BureauBert
Chieftain
Vienna, Europe
Apr 2003
time: 06:36
  Old Post 09-07-2004 02:42 Visit BureauBert's homepage!
Edit/Delete Message Reply w/Quote
#5 Report this post to a moderator
Terrain.txt: Freight costs Increase Your PM Length

DB-modifications due to modifications in the source code

Due to the new computation of freight costs based on terrain type the number of caravans needed to establish a trade route has increased so much to be practically prohibitive.
Flinx suggests these modifications in Terrain.txt to readjust freight costs.

Last edited by BureauBert on 09-07-2004 at 04:02

BureauBert is offline BureauBert
Chieftain
Vienna, Europe
Apr 2003
time: 06:36
  Old Post 09-07-2004 02:51 Visit BureauBert's homepage!
Edit/Delete Message Reply w/Quote
#6 Report this post to a moderator
player.government Support Apolyton buy from Amazon

New SLIC-variable

Contains the player's government type (index from GovernmentDB).

Description here .

by: Peter Triggs

BureauBert is offline BureauBert
Chieftain
Vienna, Europe
Apr 2003
time: 06:36
  Old Post 09-07-2004 02:54 Visit BureauBert's homepage!
Edit/Delete Message Reply w/Quote
#7 Report this post to a moderator
g.num_of_players Remove this text

New SLIC-variable

Gets the number of players in the current game.

Description here .

by: Martin Gühmann

BureauBert is offline BureauBert
Chieftain
Vienna, Europe
Apr 2003
time: 06:36
  Old Post 09-07-2004 02:56 Visit BureauBert's homepage!
Edit/Delete Message Reply w/Quote
#8 Report this post to a moderator
g.last_player Support Apolyton, buy GURPS/ Alpha Centauri

New SLIC-variable

Gets the last player, the player with the highest index in the game

Description here .

by: Martin Gühmann

BureauBert is offline BureauBert
Chieftain
Vienna, Europe
Apr 2003
time: 06:36
  Old Post 09-07-2004 02:57 Visit BureauBert's homepage!
Edit/Delete Message Reply w/Quote
#9 Report this post to a moderator
g.max_players Support Apolyton, buy Call to Power 2

New SLIC-variable

Gets the maximum number of players allowed by ctp2.exe in it's current version, currently it is 32 including the Barbarians

Description here .

by: Martin Gühmann

Edit: the function has been renamed from g.max_player to g.max_players

Last edited by BureauBert on 25-07-2004 at 02:29

BureauBert is offline BureauBert
Chieftain
Vienna, Europe
Apr 2003
time: 06:36
  Old Post 09-07-2004 03:07 Visit BureauBert's homepage!
Edit/Delete Message Reply w/Quote
#10 Report this post to a moderator
CargoCapacity(unit_t) Support Apolyton, buy Call to Power 2

New SLIC-function

Gets the number of additional units unit_t can carry

Description here .

by: Martin Gühmann

BureauBert is offline BureauBert
Chieftain
Vienna, Europe
Apr 2003
time: 06:36
  Old Post 09-07-2004 03:08 Visit BureauBert's homepage!
Edit/Delete Message Reply w/Quote
#11 Report this post to a moderator
MaxCargoSize(unit_t) Support Apolyton

New SLIC-function

Gets the maximum number of units unit_t can carry

Description here .

by: Martin Gühmann

BureauBert is offline BureauBert
Chieftain
Vienna, Europe
Apr 2003
time: 06:36
  Old Post 09-07-2004 03:10 Visit BureauBert's homepage!
Edit/Delete Message Reply w/Quote
#12 Report this post to a moderator
CargoSize(unit_t) Support Apolyton, buy Alpha Centauri

New SLIC-function

Gets the current number of units unit_t is carrying

Description here .

by: Martin Gühmann

BureauBert is offline BureauBert
Chieftain
Vienna, Europe
Apr 2003
time: 06:36
  Old Post 09-07-2004 03:15 Visit BureauBert's homepage!
Edit/Delete Message Reply w/Quote
#13 Report this post to a moderator
GetUnitFromCargo(unit1?, int?, unit2?) Support Apolyton buy from Amazon

New SLIC-function

Gets the int'th unit unit1 is carrying and stores it into unit2?

Description here .

by: Martin Gühmann

BureauBert is offline BureauBert
Chieftain
Vienna, Europe
Apr 2003
time: 06:36
  Old Post 09-07-2004 03:17 Visit BureauBert's homepage!
Edit/Delete Message Reply w/Quote
#14 Report this post to a moderator
GetContinent(location_t) Get a bigger avatar today!

New SLIC-function

Gets the continent ID of location_t

Description here .

by: Martin Gühmann

BureauBert is offline BureauBert
Chieftain
Vienna, Europe
Apr 2003
time: 06:36
  Old Post 09-07-2004 03:18 Visit BureauBert's homepage!
Edit/Delete Message Reply w/Quote
#15 Report this post to a moderator
IsWater(location_t) Support Apolyton buy from Amazon

New SLIC-function

Returns true if location_t is water

Description here .

by: Martin Gühmann

  < Last Thread     Next Thread > Post New Thread     Post A Reply
All times are GMT. The time now is 05:36.
Apolyton Time is 00:36.
    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.0433 seconds (87.37% PHP - 12.63% MySQL) with 36 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