Contents Back Forward |
Introduction to CSPL |
Civilization Scenario Programming Library One of the things i always envyed to "Civilization: Call to Power" game is the great SLIC language, using a C-like syntax SLIC is able to change nearly all parameters of CTP and, no doubt, it is the stronger point of CTP. Test of Time doesn't have SLIC, it inherits from Civ2 a macro-language which is not very powerful (you have few commands, and you must use them in a "rigid" way) and a lot of scenario designer have "fighted" for years with this inexpressive macro language trying to get over its constraints. CSPL is an attempt to build a "SLIC Language clone" for Test of Time, it access Test of Time memory and continuosly reads and writes data following a pre-defined program written by the CSPL user. CSPL is not a new language, it is simply a C library, which contains functions to access in a easy and structured way to Tot internal data structures (units, cities, etc); this means two things:
WARNING: Before releasing any program developed using CSPL please read Chapter 13 | Credits Here i would like to thank Allard Höfelt, Jorrit Vermeiren, Carl Fritz and Andrew Livings, without whose "excavations" CSPL could not have been written. If I have hacked deeper than them, it is because I stand in their trenches. (And, if you've noticed it, i would like to thank also Graham Nelson...) Thanks goes to William Keenan and Harlan Thompson for support they gave me testing the first "CSPL program" i've made (it was intended as a DOS stand-alone program called WorldLink and now you can find its CSPL version as example in this manual). And obviously thanks to everyone who helped me testing my work, particulary Shadowstrike, St.Leo and DarthVeda. |
Future extension I plan to enhance CSPL functionality in several points:
|