aliens

Author Topic: Flags  (Read 4052 times)

Offline new_civilian

  • Commander
  • *****
  • Posts: 725
    • View Profile
Flags
« on: August 06, 2018, 01:14:37 pm »
I tested the flag stuff a bit and realized that only RANDOMSOLDIERS (the one at the start of a game) get completely random flags, the ones that are generated in-game by hiring get flags according to the nationality RNG number e.g 00 is american and uses american names etc.

However, to make this work properly you have to connect the flag to the(alphabetically ordered) soldier-name -files properly which isn't the case in X-Files. 

Anyway, to make it work properly, here the corrected entries to show what i mean. As there is no generic ARABIC flag, i used egypt as an example etc. Polynesia seems to be missing as wel, but you get the picture...

  - type: Flag0
    singleImage: true
    files:
      0: Resources/Flags/00-USA.png
  - type: Flag1
    singleImage: true
    files:
      0: Resources/Flags/01-Egypt.png ####### for ARABIC.LNG
  - type: Flag2
    singleImage: true
    files:
      0: Resources/Flags/02-Belgium.png
  - type: Flag3
    singleImage: true
    files:
      0: Resources/Flags/03-UK.png
  - type: Flag4
    singleImage: true
    files:
      0: Resources/Flags/04-Bulgaria.png
  - type: Flag5
    singleImage: true
    files:
      0: Resources/Flags/05-China.png
  - type: Flag6
    singleImage: true
    files:
      0: Resources/Flags/06-Congo.png
  - type: Flag7
    singleImage: true
    files:
      0: Resources/Flags/07-Czechia.png
  - type: Flag8
    singleImage: true
    files:
      0: Resources/Flags/08-Denmark.png
  - type: Flag9
    singleImage: true
    files:
      0: Resources/Flags/09-Netherlands.png
  - type: Flag10
    singleImage: true
    files:
      0: Resources/Flags/10-Ethiopia.png
  - type: Flag11
    singleImage: true
    files:
      0: Resources/Flags/11-Finland.png
  - type: Flag12
    singleImage: true
    files:
      0: Resources/Flags/12-France.png
  - type: Flag13
    singleImage: true
    files:
      0: Resources/Flags/13-Germany.png
  - type: Flag14
    singleImage: true
    files:
      0: Resources/Flags/14-Greece.png
  - type: Flag15
    singleImage: true
    files:
      0: Resources/Flags/15-India.png
  - type: Flag16
    singleImage: true
    files:
      0: Resources/Flags/16-Hungary.png
  - type: Flag17
    singleImage: true
    files:
      0: Resources/Flags/17-Ireland.png
  - type: Flag18
    singleImage: true
    files:
      0: Resources/Flags/18-Italy.png
  - type: Flag19
    singleImage: true
    files:
      0: Resources/Flags/19-Japan.png
  - type: Flag20
    singleImage: true
    files:
      0: Resources/Flags/20-Kenya.png
  - type: Flag21
    singleImage: true
    files:
      0: Resources/Flags/21-SouthKorea.png
  - type: Flag22
    singleImage: true
    files:
      0: Resources/Flags/22-Nigeria.png
  - type: Flag23
    singleImage: true
    files:
      0: Resources/Flags/23-Norway.png
  - type: Flag24
    singleImage: true
    files:
      0: Resources/Flags/24-Poland.png
  - type: Flag25
    singleImage: true
    files:
      0: Resources/Flags/25-Polynesia.png
  - type: Flag26
    singleImage: true
    files:
      0: Resources/Flags/26-Portugal.png
  - type: Flag27
    singleImage: true
    files:
      0: Resources/Flags/27-Romania.png
  - type: Flag28
    singleImage: true
    files:
      0: Resources/Flags/28-Russia.png
  - type: Flag29
    singleImage: true
    files:
      0: Resources/Flags/29-Slovakia.png
  - type: Flag30
    singleImage: true
    files:
      0: Resources/Flags/30-Spain.png
  - type: Flag31
    singleImage: true
    files:
      0: Resources/Flags/31-Sweden.png
  - type: Flag32
    singleImage: true
    files:
      0: Resources/Flags/32-Turkey.png


hope this is understandable, it's monday, you know  ;D

tldr: Flag 00 is connected to Soldiername-file 00, flag 01 to soldiername file 01 etc. the soldiername files seem to be aplphabetically ordered. RANDOMSOLDIERS are random, though.

Offline new_civilian

  • Commander
  • *****
  • Posts: 725
    • View Profile
Re: Flags
« Reply #1 on: August 15, 2018, 03:15:31 pm »
Small update of "flagology" knowledge base:

Soldiertransformations also randomize the flag/nationality entry.  :)



Offline Solarius Scorch

  • Global Moderator
  • Commander
  • ***
  • Posts: 11408
  • WE MUST DISSENT
    • View Profile
    • Nocturmal Productions modding studio website
Re: Flags
« Reply #2 on: August 15, 2018, 04:27:58 pm »
Hmm, that's no good...

Offline legionof1

  • Commander
  • *****
  • Posts: 1899
  • Bullets go that way. Money comes this way.
    • View Profile
Re: Flags
« Reply #3 on: August 15, 2018, 10:27:18 pm »
Body upgrades, now with a free change of nationality. sounds like a shopping channel gimmick.

Offline Yankes

  • Commander
  • *****
  • Posts: 3192
    • View Profile
Re: Flags
« Reply #4 on: August 15, 2018, 11:40:16 pm »
This is portably because each solder have by default assigned random look and transform do not copied this values from old solder.

Offline Meridian

  • Global Moderator
  • Commander
  • *****
  • Posts: 8595
    • View Profile
Re: Flags
« Reply #5 on: August 18, 2018, 07:28:52 pm »
Small update of "flagology" knowledge base:
Soldiertransformations also randomize the flag/nationality entry.  :)

If the soldier is not being cloned, nationality is preserved.

If the soldier is cloned, nationality is preserved only if the clone is of the same type as the original.
This is because different soldier types can have different number of nationalities (and flags) (e.g. humans 30+ nationalities, dogs 1 nationality)... so next time you're reborn as a dog, no swiss passport for you.

This is portably because each solder have by default assigned random look and transform do not copied this values from old solder.

Nope. Look is copied over.
« Last Edit: August 18, 2018, 07:30:54 pm by Meridian »

Offline Sarissofoi

  • Sergeant
  • **
  • Posts: 12
    • View Profile
Re: Flags
« Reply #6 on: August 19, 2018, 02:14:05 am »
Hey guys.
Small question.
Is there a file that govern chance of specific nationalities appear?
I try to RP as a Russia formed and backed organization(as USA have their own MiB) but if I simply remove some other nationalities the one I get had mixed flags.
Do I need rename flag names(the numbers) so they mirror number of name list that left?