 |
|  |
 |
|
hexagonian
|
 |
Gnawing on your mind...
Jun 1999 time: 23:17
|
|
I need to update the Modder's Guide, so I will be updating the info in the near future, as time permits.
Here is the step-by-step process for adding a Wonder.
1. To add new Wonders, or to simply modify existing ones, go to
ctp2_data/default/gamedata/CRA_wonder.txt.
or similar named file, based on the Mod you are using. Please note that the CRA_ prefix is for all Cradle files. The default gamefiles do not have those prefixes, so if you are changing the default gamefiles, look for the files without the prefix
That file is a list of all the wonders and their characteristics. You can copy any one of them, paste it back in as a template, and modify it to your heart's content. Below is an entry that I had made for Cradle.
##################################################
##########
WONDER_MECCA {
DefaultIcon ICON_WONDER_MECCA
Description DESCRIPTION_WONDER_GUTTENBERGS_BIBLE
Movie MOVIE_WONDER_MECCA
EnableAdvance ADVANCE_ISLAM
ObsoleteAdvance ADVANCE_MASS_MEDIA
ProductionCost 5500
IncKnowledgePercent 10
IncreaseScientists 2
}
Changes can be made to the following entries
DefaultIcon
Movie
EnableAdvance
ObsoleteAdvance
ProductionCost
Do not change the Description entry. It is a carryover from CTP1 and changing this line will cause file crashes. It does not have a bearing on your Wonder.
Scroll through the list of Wonders to see the flags that you can use for your Wonder?s effect, and use those flags in your entry. You can change the numbers, which will change the effect.
2. Next, go into the
ctp2_data/default/gamedata/CRA_uniticon.txt file
and create an entry for your Wonder. It will look like this
ICON_WONDER_MECCA { FirstFrame "UPWP113L.TGA" Movie "NULL" Gameplay "WONDER_MECCA_GAMEPLAY" Historical "WONDER_MECCA_HISTORICAL" Prereq "WONDER_MECCA_PREREQ" Vari "WONDER_MECCA_STATISTICS" Icon "UPWP113L.TGA" LargeIcon "NULL" SmallIcon "NULL" StatText "WONDER_MECCA_STATISTICS" }
This entry will also link up your Wonder with the graphic elements of the game, so you need to be concerned with the following text in this entry, which will look similar to this
UPWP113L.TGA
You can use an graphic from an existing Wonder, but if you want your own graphic, do the following
If you have access to Photoshop or a similar program, create a image file with the following parameters
160x120 pixels in size
RGB format
Targa
This file will be the icon that will appear in the Great Library and in the game when you pick that Wonder to build. Place that file into the
CtP/data/default/graphics/pictures folder.
Name the file to the format below
UPWPxxxL.TGA
(where xxx will be a number - your choice)
You can also use the existing Movie. For Mecca, I used the entry NULL since there wasn't any Movie that fit the theme of Mecca.
3. Go to the file
ctp2_data/default/gamedata/CRA_wondermovie.txt and make an entry
MOVIE_WONDER_MECCA "NULL"
4. Go to the
ctp2_data/english/gamedata/CRA_gl_str file
and add titles for each of the new Wonders. Entries will look like below
WONDER_MECCA "Mecca"
There is also an entry for all of the Wonders regarding placing the word ''The'' in front of all descriptive entries in the game. Make an entry in the corresponding list that will look like below.
WONDER_MECCA_ARTICLE ""
5. To make an entry in the Great Library go to the
ctp2_data/english/gamedata/CRA_Great_Library.txt file and cut and paste an existing entry with your own info
6. Finally, go into ctp2_data/default/aidata/CRA_WonderBuildLists.txt and add your new Wonder into the proper lists so the AI players will research them.
Please note that if you have to be exact in using the correct characters when typing in entries - a missed character will cause file crashes. I recommend cutting and pasting existing entries to use, and if the entry is in caps, then typing your entry in caps too.
|
|
|  |
 |
|
The Raptor
|
|
Lincoln, NE
Jan 2002 time: 23:17
|
|
I followed your instructions, and the wonder appears, but the Great Library description still used the Olympics' description (which it's effects are similar to).
So then I changed the Description line, just you said not to, and it crashes. Where should I look to get the Great Library description right?
|
|
|  |
 |
|
hexagonian
|
 |
Gnawing on your mind...
Jun 1999 time: 23:17
|
|
Could you cut and paste your Great Library entry?
I had the same problem in December with an attempt to add a couple of Wonders.
This much I know - everything worked except the Great Library entry. I ended up combining the entries for my Wonders into 1 entry in the Great Library, since they were variations of the same effect. (As a sidenote, this addition is not a part of the official 'Cradle' package as of yet).
Still, I did not have the problem with the addition of Wonders when I set up the file last March, so I am a little stumped as to why it occured this time.
I suggest the following, and please make a backup of the files you are changing before proceeding, so you will still be able to go back to where you are now.
There is a file within the english/gamedata folder that contains the all the obsolete and ctp1 carryover strings I think it also includes the DESCRIPTION_ strings. Offhand, I do not know what the name of that file is, (I think it is junk_str.txt) but if you open the files, you should be able to locate it.
Locate that file (junk_str.txt) open it and take a look at the entries in there. Look for the list of DESCRIPTION_ entries and make one for your new wonder.
Rename that file CRA_junk_str.txt.
Go into the CRA_Strings.txt file and look for the line of text
import "junk_str.txt"
and change it to
import "CRA_junk_str.txt"
There is also a CRAI_Strings.txt file - depending on what file you want to use for your setup, make the change in that file also.
Go to CRA_wonders.txt and alter the
DESCRIPTION_
line that will be in your Wonder, to the name you created in the CRA_junk_str.txt file.
Make the same change to the DESCRIPTION_ entry in the Great Library File.
Let me know if this works - I do not know if it will, but it is worth a shot.
|
|
|  |
 |
|
The Raptor
|
|
Lincoln, NE
Jan 2002 time: 23:17
|
|
[WONDER_DARBY_QUEEN_PREREQ]
Requires:
ATABASE_ADVANCES,ADVANCE_DEMOCRACY>Democracy
Costs:
{WonderDB(Wonder[0]).ProductionCost}
ATABASE_CONCEPTS,CONCEPT_PRODUCTION>Production
[END]
[WONDER_DARBY_QUEEN_STATISTICS]
Gives:
+20% health for all units.
Obsolete:
ATABASE_ADVANCES,ADVANCE_CHAOS_THEORY>Chaos Theory
[END]
[WONDER_DARBY_QUEEN_GAMEPLAY]
The Darby Queen is the obstacle course at the end of the Ranger Indoctrination Program.
[END]
[WONDER_DARBY_QUEEN_HISTORICAL]
[END]
Last edited by The Raptor on 16-01-2002 at 00:57
|
|
|  |
 |
|
The Raptor
|
|
Lincoln, NE
Jan 2002 time: 23:17
|
|
I'm not sure what you mean with "Make the same change to the DESCRIPTION_ entry in the Great Library File. " My entry in the Great Library file is above.
*Note: The symbols "" on several lines doesn't show in the above entry, but they are there in the .txt file.*
|
|
|  |
 |
|
The Raptor
|
|
Lincoln, NE
Jan 2002 time: 23:17
|
|
OK, long post upcoming:
I still get the description for Olympics (including the upper section: prerequisite, cost, etc) in the Great Library. So here's what I have done, following your steps (as I understand them):
CRA_Wonder.txt
WONDER_DARBY_QUEEN {
DefaultIcon ICON_WONDER_OLYMPICS
Description DESCRIPTION_WONDER_ARISTOTLES_LYCEUM
Movie MOVIE_WONDER_OLYMPICS
EnableAdvance ADVANCE_DEMOCRACY
ObsoleteAdvance ADVANCE_CHAOS_THEORY
ProductionCost 15000
IncreaseHp 2
}
((Note: I just changed the description line to Aristotles Lyceum on this last try.))
CRA_uniticon.txt:
ICON_WONDER_DARBY_QUEEN { FirstFrame "UPWP101L.TGA" Movie "NULL" Gameplay "WONDER_DARBY_QUEEN_GAMEPLAY" Historical "WONDER_DARBY_QUEEN_HISTORICAL" Prereq "WONDER_DARBY_QUEEN_PREREQ" Vari "WONDER_DARBY_QUEEN_STATISTICS" Icon "UPWP101L.TGA" LargeIcon "NULL" SmallIcon "NULL" StatText "WONDER_DARBY_QUEEN_STATISTICS" }
And the Great Library file is displayed above.
|
|
|  |
 |
|
The Raptor
|
|
Lincoln, NE
Jan 2002 time: 23:17
|
|
I changed CRA-Wonder.txt to read:
WONDER_DARBY_QUEEN {
DefaultIcon ICON_WONDER_DARBY_QUEEN
Description DESCRIPTION_WONDER_ARISTOTLES_LYCEUM
Movie MOVIE_WONDER_DARBY_QUEEN
EnableAdvance ADVANCE_DEMOCRACY
ObsoleteAdvance ADVANCE_CHAOS_THEORY
ProductionCost 15000
IncreaseHp 2
}
When Description reads "...DARBY_QUEEN," she crashes to the desktop. When it reads anything else, it works except no icon (but I'm working on that).
ie, Everything works OK now. I just forgot to finish updating the CRA_uniticon.txt file. It still called for the Olympics specs. Thanx for your help.
Last edited by The Raptor on 16-01-2002 at 03:24
|
|
|  |
 |
|  |
 |
|
hexagonian
|
 |
Gnawing on your mind...
Jun 1999 time: 23:17
|
|
So using the ARISTOTLES_LYCEUM for the DESCRIPTION_ entry still ties you into the OLYMPICS Great Library entry?
Boy, I'm stumped on this one - this does not make any sense as to why this is happening.
Last edited by hexagonian on 16-01-2002 at 19:51
|
|
|  |
 |
|
The Raptor
|
|
Lincoln, NE
Jan 2002 time: 23:17
|
|
quote: Originally posted by hexagonian
So using the ARISTOTLES_LYCEUM for the DESCRIPTION_ entry still ties you into the OLYMPICS Great Library entry?
Boy, I'm stumped on this one - this does not make any sense as to why this is happening. |
No, I had forgotten to update teh CRA_uniticon.txt to pull the new description. It was C&P from Olympics.
Everything is OK now. It works. Thanx.
|
|
|  |
All times are GMT. The time now is 05:17. Apolyton Time is 00:17. |
top of page
|
| archivepost |
|
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
|
|
|
|
|
|