CIVILIZATION IV:iNoc

Weird help text problem:

Code:
<TEXT>
		<Tag>TXT_KEY_TRAIT_SEPCIALIST_COMMERCE_CHANGE</Tag>
		<English>[NEWLINE][SPACE][SPACE][ICON_BULLET]%D1 %F1 from %s1</English>
		<French>[Other Languages]</Finnish>
	</TEXT>
	<TEXT>
		<Tag>TXT_KEY_TRAIT_IMPROVEMENT_FREE_SPECIALIST</Tag>
		<English>[NEWLINE][SPACE][SPACE][ICON_BULLET]%D1 free %s1 per worked %s2</English>
		<French>[Other Languages]</Finnish>
	</TEXT>

and (in CvGameTextMgr::parseTraits

Code:
//Specialist Extra Commerce
		for (iI = 0; iI < GC.getNumSpecialistInfos(); iI++)
		{
			for (int iJ = 0; iJ < NUM_COMMERCE_TYPES; iJ++)
			{
				if (GC.getTraitInfo(eTrait).getSpecialistCommerceChange(iI, iJ))
				{
					szHelpString.append(gDLL->getText("TXT_KEY_TRAIT_SEPCIALIST_COMMERCE_CHANGE", GC.getTraitInfo(eTrait).getSpecialistCommerceChange(iI, iJ), GC.getCommerceInfo((CommerceTypes)iJ).getChar(), GC.getSpecialistInfo((SpecialistTypes)iI).getDescription()));
				}
			}
		}

		//Improvement Free Specialists
		for (iI = 0; iI < GC.getNumImprovementInfos(); iI++)
		{
			for (int iJ = 0; iJ < GC.getNumSpecialistInfos(); iJ++)
			{
				if (GC.getTraitInfo(eTrait).getImprovementFreeSpecialist(iI, iJ) != 0)
				{
					int iNumSpecialists = GC.getTraitInfo(eTrait).getImprovementFreeSpecialist(iI, iJ);
					szHelpString.append(gDLL->getText("TXT_KEY_TRAIT_IMPROVEMENT_FREE_SPECIALIST", iNumSpecialists, GC.getSpecialistInfo((SpecialistTypes)iJ).getDescription(), GC.getImprovementInfo((ImprovementTypes)iI).getDescription()));
				}
			}
		}

but what comes out is:

  • %D1 %F1 from ???
  • %D1 ??? per worked Priest
I am not getting any errors. And ideas on what's wrong?
 
The numbers in the formats are all 1. They can't all be the first one.
You need the numbers to match the order they arguments are in. So you should be using %D1, %F2, and %s3 for the first one, and similar for the second one.
 
Oh. I thought it was more like:

%D1 %D2 %S1 %F1 %D3 %S2.

I see now.
 
Official unveiling of complete Civilization pedia screen for the Britons, including CIVILIZATION TRAIT!
 
Second post. Sorry I didn't make that clear.
 
No-one asked for an encore, but I delivered anyway! I have just added a screenshot of the pedia screen for the Americans including their unique trait, the American Dream.

Note: I lied when I said they were complete. I still have yet to add heroes.
 
If I may offer a topic for discussion. Personally, I don't understand the point of heroes in a normal civ game. In FFH they make sense as they have either strength or abilities that stay useful for the whole duration of the game. But in a normal game of civ. What am I to do with my level 20 super swordman hero when everyone else is rolling out tanks? I mean sure, it sounds neat and nifty to have a super UU or what ever. But once its age has passed you can't update it and it just remains a sad reminder of wasted opportunities.
 
In LoR the legendary units are upgradeable to the first thing in the line (or lines) of the most similar unit type that is actually distinctly better. This means they will normally skip a tier, or two, before the upgrade is possible but once better units of the same general type are available you can upgrade them. Since they often start with a free promotion or two, in addition to various other benefits, and have usually gained some more they are still pretty good to have. The super-swordsman of your example might be upgradeable to a maceman or pikeman depending on it's capabilities, but probably not - it would most likely upgrade to a gunpowder unit because there is probably no melee unit that is distinctly better than it, although if it was something like a swordsman unit that rode horses to get to the battle (giving it a speed of 2) it might also be possible to upgrade it to a mounted unit.
 
Thing is, that always felt confused (at best) to me. A hero unit is not supposed to be slightly better than other units while being a tier behind. It's supposed to be a freaking hero.
 
I've spent the last few days working on small things such as Unique Units and Unique Traits. I coded most of the Arabian trait, 'People of the Desert' and added the second UU for the Holy Romans, the Missi Dominisi.
 
For the next two weeks I will be VERY busy, and will not have any time for modding. Missi Dominisi were messenger civil servants sent out by various medieval monarchs, most notably Charlemagne. Charlemagne sent his Missi Dominisi in pairs, one clergyman and one normal person.
 
I'm back!
 
Right now I'm working on the Aztec civ power, Sacrifice. +1 food on lakes and the Sacrifice ability from Mesoamerica.
 
Created, among other things, the Urban Farm.

Spoiler :
attachment.php
attachment.php
 

Attachments

  • (7-30-12)_IngameUrbanFarm.JPG
    (7-30-12)_IngameUrbanFarm.JPG
    192.1 KB · Views: 781
  • (7-30-12)_PediaUrbanFarm.JPG
    (7-30-12)_PediaUrbanFarm.JPG
    158.1 KB · Views: 792
Back
Top Bottom