aliens

Author Topic: [Documentation] Moddable Callsigns  (Read 3378 times)

Offline memmaker

  • Captain
  • ***
  • Posts: 96
    • View Profile
[Documentation] Moddable Callsigns
« on: January 26, 2020, 07:55:26 pm »
Hi folks,

another recent feature that has been added to OXCE are callsigns (soldier nicknames).

They are implemented as an extension to the *.NAM files used for soldier naming.

It will now be possible to specify a list of callsigns for males and females from which the game randomly assigns to the soldiers.

An American.nam file could look like this:

Code: [Select]
lookWeights: (...)
maleFirst: (...)
femaleFirst: (...)
maleLast: (...)

maleCallsign:
  - "Odin"
  - "Papa Bear"
  - "Yeti"
  - "Moose"
  - "Kong"

femaleCallsign:
  - "Athena"
  - "Mama Bear"
  - "Goose"
  - "Peach"

Callsigns can additionally be specified by nationality, just like names.

There are however two fallback mechanisms:
  • If no female callsigns are defined, male ones are used for both genders.
  • If no callsigns are found for a given nationality, the first defined nationality is used. Depends on load order.

The fallbacks make it possible to define one set of callsigns to be used for all soldiers, regardless of gender or nationality or specify them based on these criterias.

The current implementation displays the callsign in the battlescape if they are enabled. To enable them, they just have to be defined in the *.NAM file.

You can switch between the classic name + statstring display and the callsign by right-clicking the soldier stat area in the bottom.

I have attached a small sample mod, that adds some callsigns for testing purposes.

Online Meridian

  • Global Moderator
  • Commander
  • *****
  • Posts: 9144
    • View Profile
Re: [Documentation] Moddable Callsigns
« Reply #1 on: January 27, 2020, 11:21:06 pm »
The zip file contains some funny __MACOSX directory,
also contains a full .git folder
also contains tons of .DS_Store files
and probably more junk...

for a total of 118 files and 70 directories :)

Maybe you can clean it up to only contain what's necessary?

Online Solarius Scorch

  • Global Moderator
  • Commander
  • *****
  • Posts: 11783
  • WE MUST DISSENT
    • View Profile
    • Nocturmal Productions modding studio website
Re: [Documentation] Moddable Callsigns
« Reply #2 on: January 28, 2020, 01:07:42 am »
The zip file contains some funny __MACOSX directory,
also contains a full .git folder
also contains tons of .DS_Store files
and probably more junk...

for a total of 118 files and 70 directories :)

Maybe you can clean it up to only contain what's necessary?

Back in the day, OXC mods often contained __MACOSX... Pepperidge Farm remembers. :)

(And I have yet to see a Rimworld mod without a .git folder. I don't really get this.)

Offline memmaker

  • Captain
  • ***
  • Posts: 96
    • View Profile
Re: [Documentation] Moddable Callsigns
« Reply #3 on: January 28, 2020, 01:33:10 am »
Sorry for that. And thanks for the feedback.

Cleaned up version is attached.