Posted: Tue Jul 23, 2024 7:22 am Post subject:
Getting the description to show in RA building menu.
I'm trying to get the description to show for modded/added units on the left, I've tried changing the layout multiple times in the XML files without luck. Does anyone know the correct layout to get the description to show like the original Destroyer on the right? I'm trying to get it to say "Destroyer With Nuclear Capabilities". I attached the 3 MOD XML files used to see the layout as well as paste it below. Any guidance would be appreciated, ty.
The layout works for my TD units, but RA seems to be a whole different story.
MODTEXT.CSV
"TEXT_VESSEL_NUCLEAR_DESTROYER",,,"Nuclear Destroyer",,,,,,,,,,,,,,,,,,,
"TEXT_VESSEL_NUCLEAR_DESTROYER_DESC",,,"Destroyer With Nuclear Capabilities",,,,,,,,,,,,,,,,,,,
So after looking into why nothing was transferred into the game I finally made a little bit of progress. If you correctly label the ObjectTypeClass in ModBuildables.xml you don't need to add anything to RABUILDABLES.XML or go anywhere near that file at all unless you want to edit the name of a building or unit in the game (punctuation/capitalization matters). If thats the case here is an example below :
WITH NAME CHANGE:
<ObjectTypeClass Name="RA_TSLA" Classification="CNCBuildableObject" CanInstantiate="False">
<CNCEncyclopediaComponent>
<ObjectNameTextID>Zapper</ObjectNameTextID>
<ObjectDescriptionTextID>TEXT_STRUCTURE_RA_TSLA_DESC</ObjectDescriptionTextID>
<BuildIcon>BuildIcon_RA_TeslaCoil</BuildIcon>
</CNCEncyclopediaComponent>
</ObjectTypeClass>
Anyway, here is my progress so far:
MODTEXT.CSV
"TEXT_UNIT_RA_NSPC",,,"NuclearSpecialist",,,,,,,,,,,,,,,,,,,
"TEXT_UNIT_RA_NSPC_DESC",,,"Mechanical Unit With A 50cal AP FMJ Sniper Rifle",,,,,,,,,,,,,,,,,,,
MODBUILDABLES.XML
<ObjectTypeClass Name="RA_NSPC" Classification="CNCBuildableObject" CanInstantiate="False">
<CNCEncyclopediaComponent>
<ObjectNameTextID>NuclearSpecialist</ObjectNameTextID>
<ObjectDescriptionTextID>Mechanical Unit With A 50cal AP FMJ Sniper Rifle</ObjectDescriptionTextID>
<BuildIcon>BuildIcon_RA_NSPC</BuildIcon>
<RequiredTypes>
<entry>RA_BIO</entry>
</RequiredTypes>
<CategoryTypesWeakAgainst>
<entry>Category_Tanks</entry>
</CategoryTypesWeakAgainst>
<CategoryTypesStrongAgainst>
<entry>Category_Infantry</entry>
</CategoryTypesStrongAgainst>
</CNCEncyclopediaComponent>
</ObjectTypeClass>
RABUILDABLES.XML
Nothing in this file needs to be edited as long as the object type class is correct in the ModBuildables.xml file.
Still if anyone knows how to get the information into the game to show "CategoryTypesWeakAgainst", "CategoryTypesStrongAgainst", and "ObjectDescriptionTextID". Please let me know. This post will stay active until the final result is completed and posted here.
You can post new topics in this forum You can reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You cannot attach files in this forum You can download files in this forum