zulu9812
The Newbie Nightmare
Mmm... I've tried merging the code myself, but to no avail. I had no problems compiling the SDK, no problems loading the game with it either. I've created a new units schema and tried to make Warriors require Copper in the city vicinity but it just didn't work - at all. The civilopedia shows no reference to it, and I can build warriors willy-nilly. I must be missing something. It'd be great to see this updated to 3.17
EDIT: OK, I think I've got it to work. I've been able to restrict a unit to be built only if Fish is in the vicinity and part of the trade network. The only problem is that the TXT_KEY isn't showing up correctly in the civiliopedia or the unit mouse-over, i.e. instead of saying "Requires Fish in City Vicinity" it just says "TXT_KEY_REQUIRES_VICINITY_BONUS". I'm really not sure if this is an XML problem or an issue with CvGameTextMgr in the SDK. Anyone have any ideas?
Here is my GameText xml file that deals with this:
EDIT: OK, I think I've got it to work. I've been able to restrict a unit to be built only if Fish is in the vicinity and part of the trade network. The only problem is that the TXT_KEY isn't showing up correctly in the civiliopedia or the unit mouse-over, i.e. instead of saying "Requires Fish in City Vicinity" it just says "TXT_KEY_REQUIRES_VICINITY_BONUS". I'm really not sure if this is an XML problem or an issue with CvGameTextMgr in the SDK. Anyone have any ideas?
Here is my GameText xml file that deals with this:
Code:
<TEXT>
<Tag>TXT_KEY_REQUIRES_VICINITY_BONUS</Tag>
<English>[COLOR_WARNING_TEXT]Requires %s1_Text in City Vicinity[COLOR_REVERT]</English>
<French>[COLOR_WARNING_TEXT]Requiert : %s1_Text in City Vicinity[COLOR_REVERT]</French>
<German>[COLOR_WARNING_TEXT]Erfordert: %s1_Text in City Vicinity[COLOR_REVERT]</German>
<Italian>[COLOR_WARNING_TEXT]Richiede %s1_Text in City Vicinity[COLOR_REVERT]</Italian>
<Spanish>[COLOR_WARNING_TEXT]Requiere %s1_Text in City Vicinity[COLOR_REVERT]</Spanish>
</TEXT>
<TEXT>
<Tag>TXT_KEY_REQUIRES_IN_CITY_VICINITY</Tag>
<English>[COLOR_WARNING_TEXT]Requires in City Vicinity:[SPACE]</English>
<French>[COLOR_WARNING_TEXT]Nécessite in City Vicinity:[SPACE]:[SPACE]</French>
<German>[COLOR_WARNING_TEXT]Erfordert: in City Vicinity:[SPACE]</German>
<Italian>[COLOR_WARNING_TEXT]Richiede in City Vicinity:[SPACE]</Italian>
<Spanish>[COLOR_WARNING_TEXT]Requiere in City Vicinity:[SPACE]</Spanish>
</TEXT>