[R&F] Boost problem

Cordell

Chieftain
Joined
Mar 21, 2018
Messages
22
Still working on my mod, i am again getting stuck with the boost
I tryed few thing
like: (the number is for testing purpose)
Spoiler :

Code:
<GameInfo>
<Boosts>
       <Update>
           <Where CivicType="CIVIC_MERCENARIES"/>
           <Set  CivicType="CIVIC_MERCENARIES" Boost="50" TriggerDescription="LOC_BOOST_TRIGGER_MERCENARIES" TriggerLongDescription="LOC_BOOST_TRIGGER_LONGDESC_MERCENARIES" BoostClass="BOOST_TRIGGER_HAVE_X_LAND_UNITS" NumItems="2"/>
       </Update>
</Boosts>
</GameInfo>
Code:
<GameInfo>
<Boosts>
<Delete  CivicType="CIVIC_MERCENARIES"/>
<Row CivicType="CIVIC_MERCENARIES" Boost="50" TriggerDescription="LOC_BOOST_TRIGGER_MERCENARIES" TriggerLongDescription="LOC_BOOST_TRIGGER_LONGDESC_MERCENARIES" BoostClass="BOOST_TRIGGER_HAVE_X_LAND_UNITS" NumItems="2"/>
</Boosts>
</GameInfo>


If somebody can explain me what i miss, i ll be gratefull (probably something very basic but still...:)
 
Last edited:
If both of those chunks of posted code are direct copies of what you have tried, then your problem is fatal syntax errors in both cases.

In the first you have </GameInfo> above </Boosts>

In the second you have: CivicType= " "CIVIC_MERCENARIES"
 
Well, thank you,
i correct it (wasn't a direct copy)
Edit. The second one work finally... i should be better organized and stop trying to mod during the evening. :)

Somebody knew how to create new Boostclass (i would like to make the eurekas less no brainer like for steel for exemple who requiert coal mine and ironclad.
For example
BOOST_TRIGGER_HAVE_X_DISTRICTS_AND_X_BUILDINGS
 
Last edited:
Ok this task is done (i change almost all the boosts) and it works fine in game

The problem i have now, is to display the correct text in game

exemple:
Spoiler :

Code:
<GameData>
   <LocalizedText>
       <Replace Tag="LOC_BOOST_TRIGGER_MACHINERY" Language="en_US">
           <Text>own 1 workshop.</Text>
       </Replace>
   </LocalizedText>
</GameData>

But it does not work
Or maybe it s someting i did not get in the modinfo?
Spoiler :
Code:
<?xml version="1.0" encoding="utf-8"?>
<Mod id="79a96bee-c555-45b4-ae34-5221c1154f78">
   <Properties>
       <Name>Civ 6 CordellTech</Name>
       <Stability>Beta</Stability>
       <Teaser>CordellTech</Teaser>
       <Description>CordellTech</Description>
       <Authors>Cordell</Authors>
       <SpecialThanks></SpecialThanks>
   </Properties>
   <Files>
       <File>Ctech.xml</File>
       <File>era.xml</File>
       <File>SlowerTechRules.sql</File>
       <File>unit.sql</File>
       <File>Prophet.xml</File>
       <File>BoostT.xml</File>
   </Files>
   <Settings>
       <Custom id="CordellTech">
           <Items>
               <Component>CordellTech</Component>
           </Items>
       </Custom>
   </Settings>
   <Components>
       <UpdateDatabase id="CordellTech">
           <Properties>
               <Name>Civ 6 CordellTech</Name>
           </Properties>
           <Items>
               <File>Ctech.xml</File>
               <File>era.xml</File>
               <File>SlowerTechRules.sql</File>
               <File>unit.sql</File>
               <File>Prophet.xml</File>
               <File>BoostT.xml</File>
           </Items>  
       </UpdateDatabase>
       <LocalizedText>
           <UpdateText id="BoosT">
               <File>BoostT.xml</File>
           </UpdateText/>
           <Properties>
               <Ruleset>RULESET_STANDARD</Ruleset>
           </Properties>
           <Items>  
               <File>BoostT.xml</File>
           </Items>
       </LocalizedText>
   </Components>

</Mod>

All help still welcomed. :)
 
Looking at old mods I made before the SDK was released I am pretty sure your modinfo file is structured incorrectly. You need it like this I believe:
Code:
	<Components>
		<LocalizedText id="Something_Text">
			<Items>
				<File>TextFileName.mxl</File>
			</Items>
		</LocalizedText>
	</Components>
<UpdateText id="BoosT"> syntax would only be valid when using the newer <InGameActions> "table" instead of the <Components> "table", so far as I remember.
 
Top Bottom