aliens

Author Topic: [Answered] New ranks?  (Read 1813 times)

Offline Lingri

  • Squaddie
  • *
  • Posts: 3
    • View Profile
[Answered] New ranks?
« on: February 26, 2021, 08:07:12 pm »
Hello!
Is there any way to add new ranks for soldiers/change current ranks? In search i found mentions of ranks only in Language and .exe
« Last Edit: February 12, 2023, 10:55:05 am by Meridian »

Online Meridian

  • Global Moderator
  • Commander
  • *****
  • Posts: 8597
    • View Profile
Re: New ranks
« Reply #1 on: February 26, 2021, 08:10:35 pm »
You can change the names of current ranks.

You can also add new soldier types with their specific ranks.

Check bigger mods (xcomfiles, piratez, 40k, etc.) for inspiration.

Offline Lingri

  • Squaddie
  • *
  • Posts: 3
    • View Profile
Re: New ranks
« Reply #2 on: February 26, 2021, 09:15:38 pm »
I installed xcom-files for inspiration, but this dont have new ranks. Only different translations of old ranks in language file:

  STR_COMMANDER: "Chief Agent"
  STR_COLONEL: "Commissar"
  STR_SERGEANT: "Senior Agent"
  STR_SQUADDIE: "Agent"
  STR_ROOKIE: "Rookie"

Online Meridian

  • Global Moderator
  • Commander
  • *****
  • Posts: 8597
    • View Profile
Re: New ranks
« Reply #3 on: February 26, 2021, 10:37:08 pm »
Xcomfiles has new ranks for dogs for example.


If you want a better example, here's a couple from Piratez:

  - type: STR_SOLDIER_LOKNAR
    rankStrings:
      - STR_RANK_LOK_0
      - STR_RANK_LOK_1
      - STR_RANK_LOK_2
      - STR_RANK_LOK_3
      - STR_RANK_LOK_4
      - STR_RANK_LOK_5

  - type: STR_SOLDIER_HERO
    rankStrings:
      - STR_RANK_HERO_0
      - STR_RANK_HERO_1
      - STR_RANK_HERO_2
      - STR_RANK_HERO_3
      - STR_RANK_SS_4
      - STR_RANK_SS_5

  - type: STR_SOLDIER_PEASANT
    rankStrings:
      - STR_RANK_PEA_0
      - STR_RANK_PEA_1
      - STR_RANK_PEA_2
      - STR_RANK_PEA_3
      - STR_RANK_PEA_4
      - STR_RANK_PEA_5

Offline Lingri

  • Squaddie
  • *
  • Posts: 3
    • View Profile
Re: New ranks
« Reply #4 on: February 27, 2021, 05:50:01 am »
So, on this samples I see the pattern, that there ara no more than 6 (0-5) ranks for any type, or this is coincidence?

And how happens promotions for new soldier types with unique ranks? Can I set my own rule? In file searching I also fount there ranks only in rankstrings and languages.

Online Meridian

  • Global Moderator
  • Commander
  • *****
  • Posts: 8597
    • View Profile
Re: New ranks
« Reply #5 on: February 27, 2021, 08:53:21 am »
So, on this samples I see the pattern, that there ara no more than 6 (0-5) ranks for any type, or this is coincidence?

And how happens promotions for new soldier types with unique ranks? Can I set my own rule? In file searching I also fount there ranks only in rankstrings and languages.

Yes, 6 ranks or less.

Promotion rules depend on the total number of soldiers. You can set your own thresholds.