[Vanilla] Help with easy MOD

NyxCiv

Chieftain
Joined
Feb 11, 2025
Messages
5
Hi all,

Can someone please help me fix a minor UI thing that's really been bothering me please ! :)

I'd like to fix the extra space between ( Requires **tech**) when hovering on a tile that requires a unavailable tech. The UI is really neat and that kinda hurts the attention to detail there.
I tried messing with the civ folder with all the text, I found the command line but didn't see any problems.

Only happens when hovering over the whole tile though, as seen in the screenshots.

I'd be very grateful thanks a lot !
 

Attachments

  • Screenshot 2025-02-12 at 03.41.30.png
    Screenshot 2025-02-12 at 03.41.30.png
    864.1 KB · Views: 14
  • Screenshot 2025-02-12 at 03.43.14.png
    Screenshot 2025-02-12 at 03.43.14.png
    473.9 KB · Views: 11
Last edited:
I don't get it. Do you want
{Open Parenthesis}{space}Requires{space}{tech}{Close Parenthesis} as first screenshot, or
{Open Parenthesis}Requires{space}{tech}{Close Parenthesis} as second screenshot.

For readabillity better would be
{Open Parenthesis}{space}Requires{space}{tech}{space}{Close Parenthesis}

What is the command line you found and how did you test changing it?
 
I guess the game usually uses {Open Parenthesis}Value{Close Parenthesis} so in this case I would prefer {Open Parenthesis}Requires{space}{tech}{Close Parenthesis} as shown in the second screenshot. It's the only instance I could find where a space is put after a parenthesis.

So i dug into the files at :\SteamLibrary\steamapps\common\Sid Meier's Civilization VI\Base\Assets\Text\en_US

and I found these lines that I think would refer to that box on the screenshot:

</Row>
<Row Tag="LOC_OPERATION_HARVEST_REQUIRES_TECH">
<Text>Requires Technology: {1_Tech}</Text>

</Row>
<Row Tag="LOC_DISTRICT_REPAIR_MISSING_PREREQ_TECH">
<Text>Cannot repair, requires Technology: {1_TechName}.</Text>

I tried adding or removing space between : and {1_TechName}. but it didn't change anything in game.

Thanks !
 
Did you try adding space before LOC_OPERATION_HARVEST_REQUIRES_TECH? Screen shot does not include text "cannot repair"
 
Shouldn't I be looking to remove space from somewhere?

</Row>
<Row Tag="LOC_OPERATION_HARVEST_REQUIRES_TECH">
<Text>Requires Technology: {1_Tech}</Text>

That must be the one
 
Yes, remove space. Remember xml files are only read once at game launch. So test by exiting any active game and reloading. For white space issues, spaces, tabs, etc. I like to add a unique string of characters that are easy to search for as temp test. So I would use XXX or YYY or ZZZ to see if my changes are read into the program or not. After verifying, then can change back to desired text.
 
So only what's between </Text> and </Text> affects what is written in game right? As I said in the first post I tried changing anything I could here: Text>Requires Technology: {1_Tech}</Text>.
I'm also pretty sure there's extra space between Bananas and the first parenthesis.
I tried changing the text to <Text>RequireXXXs Technology: {1_Tech}</Text> but it didn't change anything in game.

I appreciate the help by the way. Can't seem to find what's causing it but I really don't know how to navigate the files, should be something obvious and easy.

Cheers
 
Last edited:
Interesting. Yes, for xml syntax it's name="..value.." so name TEXT is the string between <text element start> and </text element end>.

Usually when I make a change, exit civ and relaunch and reload a saved game the changes will be shown. I have heard that for a few items, a new game has to be started. Have you tried a new game? Does the date stamp on the file show the time of your latest update. Beyond that, it's not changeable because in the ..\dlc\binaries\win64\gamecore_xp2_finalrelease.dll line 40701.

This is a compiled file we can't change.
 
Back
Top Bottom