Project Perfect Mod Forums
:: Home :: Get Hosted :: PPM FAQ :: Forum FAQ :: Privacy Policy :: Search :: Memberlist :: Usergroups :: Register :: Profile :: Log in to check your private messages :: Log in ::


The time now is Wed Jan 29, 2025 7:33 pm
All times are UTC + 0
Getting the description to show in RA building menu.
Moderators: Global Moderators
Post new topic   Reply to topic Page 1 of 1 [2 Posts] Mark the topic unread ::  View previous topic :: View next topic
Author Message
NightFalcon101
Civilian


Also Known As: Falcon
Joined: 30 May 2024

PostPosted: Tue Jul 23, 2024 7:22 am    Post subject:  Getting the description to show in RA building menu. Reply with quote  Mark this post and the followings unread

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",,,,,,,,,,,,,,,,,,,


MODBUILDABLES.XML


<ObjectDescriptionTextID>TEXT_VESSEL_NUCLEAR_DESTROYER_DESC</ObjectDescriptionTextID>
<BuildIcon>BuildIcon_RA_Destroyer</BuildIcon>
<RequiredTypes>
<entry>RA_SYRD</entry>
</RequiredTypes>
<CategoryTypesWeakAgainst>
<entry>Category_Vessels</entry>
</CategoryTypesWeakAgainst>
<CategoryTypesStrongAgainst>
<entry>Category_Infantry</entry>
</CategoryTypesStrongAgainst>
</CNCEncyclopediaComponent>
</ObjectTypeClass>


RABUILDABLES.XML


<ObjectTypeClass Name="RA_NKDD" Classification="CNCBuildableObject" CanInstantiate="False">
<CNCEncyclopediaComponent>
<ObjectNameTextID>Nuclear Destroyer</ObjectNameTextID>
<ObjectDescriptionTextID>TEXT_VESSEL_NUCLEAR_DESTROYER_DESC</ObjectDescriptionTextID>
<BuildIcon>BuildIcon_RA_Destroyer</BuildIcon>
</CNCEncyclopediaComponent>
</ObjectTypeClass>



UnitDescriptionNotShowings.jpg
 Description:
 Filesize:  265.63 KB
 Viewed:  1203 Time(s)

UnitDescriptionNotShowings.jpg



Last edited by NightFalcon101 on Wed Dec 11, 2024 12:23 pm; edited 2 times in total

Back to top
View user's profile Send private message
NightFalcon101
Civilian


Also Known As: Falcon
Joined: 30 May 2024

PostPosted: Wed Dec 11, 2024 12:15 pm    Post subject: Reply with quote  Mark this post and the followings unread

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 :

EXAMPLE:
<ObjectTypeClass Name="RA_TSLA" Classification="CNCBuildableObject" CanInstantiate="False">
<CNCEncyclopediaComponent>
<ObjectNameTextID>TEXT_STRUCTURE_RA_TSLA</ObjectNameTextID>
<ObjectDescriptionTextID>TEXT_STRUCTURE_RA_TSLA_DESC</ObjectDescriptionTextID>
<BuildIcon>BuildIcon_RA_TeslaCoil</BuildIcon>
</CNCEncyclopediaComponent>
</ObjectTypeClass>

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.



Strong_Weak_Missing.jpg
 Description:
 Filesize:  566.85 KB
 Viewed:  356 Time(s)

Strong_Weak_Missing.jpg



ModText.zip
 Description:

Download
 Filename:  ModText.zip
 Filesize:  1.09 KB
 Downloaded:  0 Time(s)


Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic Page 1 of 1 [2 Posts] Mark the topic unread ::  View previous topic :: View next topic
 
Share on TwitterShare on FacebookShare on Google+Share on DiggShare on RedditShare on PInterestShare on Del.icio.usShare on Stumble Upon
Quick Reply
Username:


If you are visually impaired or cannot otherwise answer the challenges below please contact the Administrator for help.


Write only two of the following words separated by a sharp: Brotherhood, unity, peace! 

 
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


Powered by phpBB © phpBB Group

[ Time: 0.2086s ][ Queries: 15 (0.0120s) ][ Debug on ]