Thread Tools
Old November 25, 2001, 14:31   #1
kaan
CTP2 Source Code Project
Prince
 
Local Time: 17:28
Local Date: October 31, 2010
Join Date: Mar 2001
Location: Aarhus
Posts: 333
advanceicon.txt
hi folks

does anyone know if advanceicon.txt has any other use than to translate the Icon field in Advance.txt to an actual filename.
for what i can can see the rest of the file is leftovers from ctp1.
please prove me wrong if i am wrong because it will affect the program im making very much. thanks in advance.

klaus
kaan is offline  
Old November 26, 2001, 14:06   #2
Martin Gühmann
staff
Call to Power II Democracy GameCall to Power Democracy GameCTP2 Source Code Project
Super Moderator
 
Martin Gühmann's Avatar
 
Local Time: 19:28
Local Date: October 31, 2010
Join Date: Mar 2001
Location: Tübingen, Germany
Posts: 6,206
Actual all the *icon.txt files except the uniticon.txt are leftover from CTP1. All the icon information from advances, concepts, wonders, buildings, tile improvements and terrains were moved to the uniticon.txt.

The only use for that file (I think) is to be there for the game engine.

Quote:
Originally posted by kaan
it will affect the program im making very much.
I guess that is something like Easy Mod for CTP1 or something like I would call Fast Mod a program that edits the text file automaticly by adding the according icons to the uniticon.txt for instance.

Good to see you back Klaus.

-Martin
__________________
Civ2 military advisor: "No complaints, Sir!"
Martin Gühmann is offline  
Old November 29, 2001, 07:59   #3
kaan
CTP2 Source Code Project
Prince
 
Local Time: 17:28
Local Date: October 31, 2010
Join Date: Mar 2001
Location: Aarhus
Posts: 333
Hi again Martin

Why am i not really surpriced that it was you that answered my question
Good to see you again too

Well the program im making is no less that an emulation of the ctp2.exe itself, this sound like a very big job and it is. Therefore im starting out just parsing all the text files from the game dir and getting them representet in a object oriented fasion. The next step after this will be to make a working Great Library based on the parsed information and based on parsed .ldl files for the window layout. For all this im using Java and its really turning out good until now. Status on the project is that advance.txt is getting parsed into Advance objects that reside in a container class with 100% succes. I'm working on unit.txt right now and its coming along quite nice

If anyone is interested in seeing the source for parsing the advance.txt ill be happy to post it

klaus
kaan is offline  
Old November 29, 2001, 14:16   #4
Martin Gühmann
staff
Call to Power II Democracy GameCall to Power Democracy GameCTP2 Source Code Project
Super Moderator
 
Martin Gühmann's Avatar
 
Local Time: 19:28
Local Date: October 31, 2010
Join Date: Mar 2001
Location: Tübingen, Germany
Posts: 6,206
Wow,

that's really a huge project, a rewrite of the ctp.exe.

You will need to know a lot of more stuff finally for instance the *.rim *.til and *spr. file format. And all the slic stuff.....

But this is amazing when it's finished.

-Martin
__________________
Civ2 military advisor: "No complaints, Sir!"
Martin Gühmann is offline  
Old November 29, 2001, 14:48   #5
kaan
CTP2 Source Code Project
Prince
 
Local Time: 17:28
Local Date: October 31, 2010
Join Date: Mar 2001
Location: Aarhus
Posts: 333
yes it will be a major challenge to get all the graphics displayed correctly, thats why im starting with the great library but it will eventually be done, other than that i dont think it will be too hard to write a compiler for SLIC or to make multiplayer work, hehehe who am i kidding this will be hard indeed but i am counting on getting some help from you guys when i have a plan laid out for it all

klaus
kaan is offline  
Old November 30, 2001, 12:59   #6
Martin Gühmann
staff
Call to Power II Democracy GameCall to Power Democracy GameCTP2 Source Code Project
Super Moderator
 
Martin Gühmann's Avatar
 
Local Time: 19:28
Local Date: October 31, 2010
Join Date: Mar 2001
Location: Tübingen, Germany
Posts: 6,206
I am afraid Klaus that you have to start with slic earlier as you whish if you want to get the Great Library entirely to work.

Here is an example from the government section:

Code:
[GOVERNMENT_TECHNOCRACY_PREREQ]
Requires:
Technocracy
Max Cities: {GovernmentDB(Government[0]).TooManyCitiesThreshold}
Martial Law: {GovernmentDB(Government[0]).MaxMartialLawUnits}
Unit Upkeep: {GovernmentDB(Government[0]).SupportCoef}%
Max Science: {GovernmentDB(Government[0]).MaxScienceRate}%
Sci. Output: {GovernmentDB(Government[0]).KnowledgeCoef}%
[END]

[GOVERNMENT_TECHNOCRACY_STATISTICS]
Rations: {GovernmentDB(Government[0]).RationsExpectation*3+12}
Food Output: {GovernmentDB(Government[0]).FoodCoef}%
Workday: {GovernmentDB(Government[0]).WorkdayExpectation*-2+8}
Prod Output: {GovernmentDB(Government[0]).ProductionCoef}%
Wages: {GovernmentDB(Government[0]).WagesExpectation*2+5}
Gold Output: {GovernmentDB(Government[0]).GoldCoef}%
Crime Rate: {GovernmentDB(Government[0]).CrimeCoef}%
[END]
All the text in the brackets is direct data base access via slic code. So you have now to start to write the slic interpreter. Yes a CTP2 without slic would be something very below than Civ3.

So first you should finish all the data bases on that the Great Library take access.

But that is not a so easy job either. Because there is a lot of stuff that can be used in theese files and aren't used.

Maybe a string list of the ctp2.exe could help you. I allready used a string grabber on the ctp2.exe. Here is the whole list for everyone.

-Martin
Attached Files:
File Type: zip ctp2.zip (117.5 KB, 6 views)
__________________
Civ2 military advisor: "No complaints, Sir!"
Martin Gühmann is offline  
Old December 1, 2001, 18:59   #7
kaan
CTP2 Source Code Project
Prince
 
Local Time: 17:28
Local Date: October 31, 2010
Join Date: Mar 2001
Location: Aarhus
Posts: 333
thanks Martin for bringing that part of the great library file to my attention, looks like ill have to make the SLIC compiler before i planned it, of at least the framework of the SLIC compiler with som functions enabled. now if someone could get me the complete list of build in functions and events that can be called from SLIC i will be gratefull (hint hint)
I know that there is one on the homepage here but it doesnt show the mod functions and there is an html error preventing me from seeing some of those that are there.

im posting a .zip file with the sourcecode used to parse the advance.txt file
inside there are some *.java files, these can be read in any text editor like notepad or editplus. if you wish to compile and run the sourcecode you will need to obtain the latest jdk on java.sun.com if you have any questions about this file, just ask

klaus

Edit: attachment deleted since its obsolete

Last edited by kaan; December 18, 2001 at 09:41.
kaan is offline  
Old December 1, 2001, 19:20   #8
Immortal Wombat
Apolytoners Hall of Fame
Prince
 
Immortal Wombat's Avatar
 
Local Time: 18:28
Local Date: October 31, 2010
Join Date: Dec 2000
Location: in perpetuity
Posts: 4,962
Quote:
Originally posted by kaan
now if someone could get me the complete list of build in functions and events that can be called from SLIC i will be gratefull (hint hint)
On Locutus' website is the list of functions and variables as an EditPlus addon file so that you can see in colour.
Immortal Wombat is offline  
Old December 1, 2001, 19:32   #9
kaan
CTP2 Source Code Project
Prince
 
Local Time: 17:28
Local Date: October 31, 2010
Join Date: Mar 2001
Location: Aarhus
Posts: 333
hi there IW
since i havent been around locutus homepage for ages, do you happen to have an URL?

BTW what do you think of the source?
kaan is offline  
Old December 2, 2001, 17:42   #10
Martin Gühmann
staff
Call to Power II Democracy GameCall to Power Democracy GameCTP2 Source Code Project
Super Moderator
 
Martin Gühmann's Avatar
 
Local Time: 19:28
Local Date: October 31, 2010
Join Date: Mar 2001
Location: Tübingen, Germany
Posts: 6,206
Here is the whole slic documentation that I have. It contains *.shtml files from Apolyton *.htm files from Locutus homepage and his slic.xls and finally my flag list. It is an improved version of the one that is available on Hexagonian's homepage, but not really finished.

To get edit plus 2 slic syntax files for edit plus and a link to Locutus home page and some other stuff about slic visit this thread:

http://apolyton.net/forums/showthrea...threadid=33181

-Martin
Attached Files:
File Type: zip slic.zip (149.2 KB, 8 views)
__________________
Civ2 military advisor: "No complaints, Sir!"
Martin Gühmann is offline  
Old December 2, 2001, 18:50   #11
Immortal Wombat
Apolytoners Hall of Fame
Prince
 
Immortal Wombat's Avatar
 
Local Time: 18:28
Local Date: October 31, 2010
Join Date: Dec 2000
Location: in perpetuity
Posts: 4,962
Quote:
Originally posted by kaan
hi there IW
since i havent been around locutus homepage for ages, do you happen to have an URL?
Nah, sorry, but there is a link above every post he makes if it is still important. Following Martin's post it probably isn't...
Immortal Wombat is offline  
Old December 5, 2001, 17:01   #12
kaan
CTP2 Source Code Project
Prince
 
Local Time: 17:28
Local Date: October 31, 2010
Join Date: Mar 2001
Location: Aarhus
Posts: 333
Units.txt
The parser for Units.txt is now functional, the last bugs were hard to find but easy to correct
now i need only to write comments in the source code for easy reference later, and then ill publish them here.

IW you are absolutely right! martin has really outdone himself this time and provided more info about slic than ill probably need Thanks Martin

I havent done a decent roadmap yet but heres the start of it.

write core parsers:
Advance.txt Done
Units.txt Done
Buildings.txt
Wonder.txt
Terrain.txt
Goods.txt
Tileimp.txt
Govern.txt
Orders.txt
Concept.txt

I try not to think about that this is only the very small beginning

klaus

Last edited by kaan; December 5, 2001 at 17:37.
kaan is offline  
Old December 5, 2001, 17:40   #13
kaan
CTP2 Source Code Project
Prince
 
Local Time: 17:28
Local Date: October 31, 2010
Join Date: Mar 2001
Location: Aarhus
Posts: 333
heres the file containing all of my sourcecode until now.
from the next post i will only post updated and new files.

klaus
Attached Files:
File Type: zip ctp2.zip (19.4 KB, 7 views)
kaan is offline  
Old December 6, 2001, 19:03   #14
kaan
CTP2 Source Code Project
Prince
 
Local Time: 17:28
Local Date: October 31, 2010
Join Date: Mar 2001
Location: Aarhus
Posts: 333
buildings.txt
buildings.txt done

this one was easy and fast

klaus
Attached Files:
File Type: zip building.zip (7.0 KB, 6 views)
kaan is offline  
Old December 10, 2001, 10:45   #15
kaan
CTP2 Source Code Project
Prince
 
Local Time: 17:28
Local Date: October 31, 2010
Join Date: Mar 2001
Location: Aarhus
Posts: 333
Wonder.txt
parsing of Wonder.txt Done

klaus
Attached Files:
File Type: zip wonder.zip (6.4 KB, 7 views)
kaan is offline  
Old December 19, 2001, 13:27   #16
kaan
CTP2 Source Code Project
Prince
 
Local Time: 17:28
Local Date: October 31, 2010
Join Date: Mar 2001
Location: Aarhus
Posts: 333
Terrain.txt
terrain.txt was a tough one to get nailed and i may have to change it at a later time, but here it is

i have exams coming in the next 3 weeks so dont expect too much, just remember that it doesnt mean that i have given up on this

klaus
Attached Files:
File Type: zip terrain.zip (6.8 KB, 6 views)
kaan is offline  
Old December 19, 2001, 18:11   #17
kaan
CTP2 Source Code Project
Prince
 
Local Time: 17:28
Local Date: October 31, 2010
Join Date: Mar 2001
Location: Aarhus
Posts: 333
Goods.txt
i must be in a productive mood today
goods.txt was real simple so here it is.

klaus
Attached Files:
File Type: zip goods.zip (4.6 KB, 7 views)
kaan is offline  
 

Bookmarks

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On

Forum Jump


All times are GMT -4. The time now is 13:28.


Design by Vjacheslav Trushkin, color scheme by ColorizeIt!.
Powered by vBulletin® Version 3.8.2
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Apolyton Civilization Site | Copyright © The Apolyton Team