Jump to content

Try to mod soldier rank title, rank icon disappear. Solution ?


DeGorro82

Recommended Posts

I already use search function, but after search many pages, unable to find any similar trouble like me.

In short, I want to change my rank soldier name. Also create my own rank soldier icons.

this is default script in strings.xml

<Row ss:AutoFitHeight="0">

<Cell><Data ss:Type="String">rank.private</Data><NamedCell

ss:Name="_FilterDatabase"/></Cell>

<Cell><Data ss:Type="String">Private</Data><NamedCell ss:Name="_FilterDatabase"/></Cell>

</Row>

<Row ss:AutoFitHeight="0">

<Cell><Data ss:Type="String">rank.private.short</Data><NamedCell

ss:Name="_FilterDatabase"/></Cell>

<Cell><Data ss:Type="String">Pvt.</Data><NamedCell ss:Name="_FilterDatabase"/></Cell>

</Row>

I change Private text to Guardsman. And also to the other ranks. When launch the game, everything works fine, but I notice, the soldier rank are changed, but no more Rank Icons in their picture. I don't know where to go after this. When I changed back the strings.xml to default, my rank Icons are shown on the soldier picture, and re-edit the rank name, the rank icon disappear. So, What the problem ? and how to solve this ?

Add note : My self-created new Icon use the same default files name and same pixel scale. I even copy-paste the file and rename one with default rank.private.png and rank.guardsman.png in the ...\Xenonauts\assets\rankimages and ...\Xenonauts\assets\gui\rankimages

Edited by DeGorro82
Link to comment
Share on other sites

I think the game possibly uses the string for the ranks as a way of identifying the correct rank icons, therefore you need to name the new rank icons after the new rank names you've created. Might be wrong, but I seem to remember seeing this before and this being the problem.

Link to comment
Share on other sites

Txs for the reply, but I learn it by doing it and it's fruitful.

So I just share what I found, when you want to change the rank title and had your own picture with it, this what you have to do.

<Row ss:AutoFitHeight="0">

<Cell><Data ss:Type="String">rank.private</Data><NamedCell

ss:Name="_FilterDatabase"/></Cell>

<Cell><Data ss:Type="String">Private</Data><NamedCell ss:Name="_FilterDatabase"/></Cell>

</Row>

<Row ss:AutoFitHeight="0">

<Cell><Data ss:Type="String">rank.private.short</Data><NamedCell

ss:Name="_FilterDatabase"/></Cell>

<Cell><Data ss:Type="String">Pvt.</Data><NamedCell ss:Name="_FilterDatabase"/></Cell>

</Row>

Eg. You want to change "Private" - "Pvt." with "Rookie" - "Rok.".

So your new picture files of Rank Icon in both

...\Xenonauts\assets\rankimages

and

...\Xenonauts\assets\gui\rankimages

had to be written the same name as the same with the scripts.

In this example, you have to naming your Rank Icon files spell ...

rank.Rookie.png in the ...\Xenonauts\assets\rankimages

and

Rookie.png in the

...\Xenonauts\assets\gui\rankimages

...\Xenonauts\assets\gui\rankimages\large

...\Xenonauts\assets\gui\rankimages\small

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...