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 > Problem Adding Improvements
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
Cube is offline Cube
Warlord
El Paso, Tx
Nov 2000
time: 22:14
  Old Post 03-05-2001 02:11
Edit/Delete Message Reply w/Quote
#1 Report this post to a moderator
Problem Adding Improvements Enter the AD-FREE zone

REcently I tried to add The Library and the city clock from CTP using Martin G's TGAs, and I got a error at the beginning of the game. I added to the buildings, the unit Icon and the history, but it didn't want to work.

Martin Gühmann is offline Martin Gühmann
Emperor
Berlin, Germany
Mar 2001
time: 06:14
Post  Old Post 04-05-2001 09:15 Visit Martin Gühmann's homepage!
Edit/Delete Message Reply w/Quote
#2 Report this post to a moderator
Browse Apolyton AD-FREE

Cube it would be helpful if you give here the code of you extra buildings and the exact error message. I have to guess that the error lies in the uniticon.txt. Now here is an example of a building from the uniticon.txt: The incubation center. By the way you can add a lot of stuff to the uniticon.txt and the Great_Library.txt without any effect. To make CTP2 recordnize the stuff you need according entries in the advance.txt, wonder.txt et cetera. Here is it the building.txt.

buildings.txt:

##################################################
##########

IMPROVE_INCUBATION_CENTER {
DefaultIcon ICON_IMPROVE_INCUBATION_CENTER
Description DESCRIPTION_IMPROVE_INCUBATION_CENTER
EnableAdvance ADVANCE_HUMAN_CLONING

PrerequisiteBuilding IMPROVE_DRUG_STORE
PrerequisiteBuilding IMPROVE_HOSPITAL

ProductionCost 5500
Upkeep 15
RaiseOvercrowdingLevel 12
}

##################################################
##########

ICON_IMPROVE_INCUBATION_CENTER links to the uniticon.txt:

ICON_IMPROVE_INCUBATION_CENTER { FirstFrame "UPIP033L.TGA" Movie "NULL" Gameplay "IMPROVE_INCUBATION_CENTER_GAMEPLAY" Historical "IMPROVE_INCUBATION_CENTER_HISTORICAL" Prereq "IMPROVE_INCUBATION_CENTER_PREREQ" Vari "IMPROVE_INCUBATION_CENTER_STATISTICS" Icon "UPIP033L.TGA" LargeIcon "NULL" SmallIcon "NULL" StatText "IMPROVE_INCUBATION_CENTER_STATISTICS" }

For the images you have to define FirstFrame for the Great Library and Icon for the city build screen. Gameplay, Historical, Prereq and Vari are text entries used in the Great Library. StatText is text entry used in the city build screen. IMPROVE_INCUBATION_CENTER_GAMEPLAY, IMPROVE_INCUBATION_CENTER_HISTORICAL, IMPROVE_INCUBATION_CENTER_PREREQ, IMPROVE_INCUBATION_CENTER_STATISTICS can be found in the Great_Library.txt.

I hope tese pieces of information will help.

-Martin



[This message has been edited by Martin Gühmann (edited May 03, 2001).]

Cube is offline Cube
Warlord
El Paso, Tx
Nov 2000
time: 22:14
Post  Old Post 05-05-2001 06:58
Edit/Delete Message Reply w/Quote
#3 Report this post to a moderator
Increase the size of your Attachments

This is what i added to Buildings.txt
IMPROVE_CITY_CLOCK {
DefaultIcon ICON_IMPROVE_CITY_CLOCK
Description DESCRIPTION_IMPROVE_CITY_CLOCK
EnableAdvance ADVANCE_AGE_OF_REASON
ProductionCost 800
Upkeep 8
ProductionPercent 0.05
CommercePercent 0.05
}

IMPROVE_LIBRARY {
DefaultIcon ICON_IMPROVE_LIBRARY
Description DESCRIPTION_IMPROVE_LIBRARY
EnableAdvance ADVANCE_WRITING
ProductionCost 300
Upkeep 3
SciencePercent 0.05
}
And this what I added to Uniticon.txt
ICON_IMPROVE_LIBRARY { FirstFrame "CM012F.TGA" Movie "NULL" Gameplay "IMPROVE_LIBRARY_GAMEPLAY" Historical "IMPROVE_LIBRARY_HISTORICAL"Prereq "IMPROVE_LIBRARY_PREREQ" Vari "IMPROVE_LIBRARY_STATISTICS" Icon "CM012F.TGA" LargeIcon "NULL" SmallIcon "NULL" StatText "IMPROVE_LIBRARY_STATISTICS" }

ICON_IMPROVE_CITY_CLOCK { FirstFrame "CM022F.TGA" Movie"NULL" Gameplay "IMPROVE_CITY_CLOCK_GAMEPLAY" Historical "IMPROVE_CITY_CLOCK_HISTORICAL" Prereq "IMPROVE_CITY_CLOCK_PREREQ" Vari "IMPROVE_CITY_CLOCK_STATISTICS" Icon"CM022F.TGA" LargeIcon "NULL" SmallICon "NULL" StatText "IMPROVE_CITY_CLOCK_STATISTICS" }
It says expected string Id and required field productioncost missing and upkeep missing

Chris B is offline Chris B
Warlord
Canton, CT
Oct 2000
time: 00:14
Talking  Old Post 05-05-2001 07:15 Visit Chris B's homepage!
Edit/Delete Message Reply w/Quote
#4 Report this post to a moderator
Inflate your Upload Space

The code itself seems fine.
ADVICE>>>
I humbly admit I've never had any luck wahtsoever adding anything to the game by simply hacking into the text files. Instead, I use a freeware program called Editplus, which makes modification much easier and has made it work for me (finally). I think you can get it through Locutus's website.
If you use it already sometimes it helps to change something, change it back, then save the document again. This is especially prone to happen with numbers and values, which fits your case perfectly.

Hope this helps.
-CB
[This message has been edited by Chris B (edited May 04, 2001).]

hexagonian is offline hexagonian
King
Gnawing on your mind...
Jun 1999
time: 23:14
Post  Old Post 05-05-2001 16:23 Visit hexagonian's homepage!
Edit/Delete Message Reply w/Quote
#5 Report this post to a moderator
Support Apolyton, buy Civilization 2

quote:

Originally posted by Cube on 05-04-2001 09:58 PM
This is what i added to Buildings.txt
IMPROVE_CITY_CLOCK {
DefaultIcon ICON_IMPROVE_CITY_CLOCK
Description DESCRIPTION_IMPROVE_CITY_CLOCK
EnableAdvance ADVANCE_AGE_OF_REASON
ProductionCost 800
Upkeep 8
ProductionPercent 0.05
CommercePercent 0.05
}

IMPROVE_LIBRARY {
DefaultIcon ICON_IMPROVE_LIBRARY
Description DESCRIPTION_IMPROVE_LIBRARY
EnableAdvance ADVANCE_WRITING
ProductionCost 300
Upkeep 3
SciencePercent 0.05
}




Change
Description DESCRIPTION_IMPROVE_CITY_CLOCK
Description DESCRIPTION_IMPROVE_LIBRARY

on your entries to

Description DESCRIPTION_IMPROVE_ARENA

and this will solve your problem

I think these description lines are carryovers from CTP1 - they are part of the CTP2 code but they need to be left alone. They do not affect gameplay.

Martin Gühmann is offline Martin Gühmann
Emperor
Berlin, Germany
Mar 2001
time: 06:14
Post  Old Post 05-05-2001 19:18 Visit Martin Gühmann's homepage!
Edit/Delete Message Reply w/Quote
#6 Report this post to a moderator
Tired of ads?

I also tried to add a building to CTP2. Here is my code:

code:
################################################## ########## IMPROVE_MIND_CONTROL_EMITTER { DefaultIcon ICON_IMPROVE_MIND_CONTROL_EMITTER Description DESCRIPTION_IMPROVE_MIND_CONTROL_EMITTER EnableAdvance ADVANCE_MIND_CONTROL ProductionCost 10000 Upkeep 50 NoUnhappyPeople PreventConversion 50 PreventSlavery 100 } ################################################## ##########


There were no problems with the Description entry.

Now here is the statement of the Apolyton Modification Section:

quote:



Description - This string is not used within the game but must reference a valid String ID from one of the string files.




The string file is called: junk_str.txt

Here is my addition to this file:

DESCRIPTION_IMPROVE_MIND_CONTROL_EMITTER " junkstring_DESCRIPTION_IMPROVE_IMPROVE_MIND_CONTRO
L_EMITTER"

That's the reason why my add-building works. But Hexagonian is absoluty right, you can use any valid Description from junk_str.txt.

-Martin

Cube is offline Cube
Warlord
El Paso, Tx
Nov 2000
time: 22:14
Talking  Old Post 06-05-2001 05:18
Edit/Delete Message Reply w/Quote
#7 Report this post to a moderator
Support Apolyton, buy Call to Power 2

Thanks I'll try that. Does any one know If Theres such a thing as a default Improvement Icon, becuase I want to add a blacksmith building and I don't have an icon or know if there's one available for download.

Martin Gühmann is offline Martin Gühmann
Emperor
Berlin, Germany
Mar 2001
time: 06:14
Post  Old Post 06-05-2001 19:51 Visit Martin Gühmann's homepage!
Edit/Delete Message Reply w/Quote
#8 Report this post to a moderator
Support Apolyton, buy Call to Power 2

Take a look into the uniticon.txt and you will find this:

ICON_IMPROVE_DEFAULT { FirstFrame "UPLG001.TGA" Movie "NULL" Gameplay "NULL" Historical "NULL" Prereq "NULL" Vari "NULL" Icon "UPIP001L.tga" LargeIcon "NULL" SmallIcon "NULL" StatText "NULL" }

I never took a look on these *.tga files but you can do it. Just replace one of the FirstFrame andIcon entries for one of the other buildings to UPIP001L.tga and than it is available, but do not ask me what you will see. It can be a blanc or something different or another building.

-Martin


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