Author Topic: [DONE] [Suggestion] Base Name Generator  (Read 4554 times)

Offline khade

  • Commander
  • *****
  • Posts: 509
    • View Profile
[DONE] [Suggestion] Base Name Generator
« on: September 05, 2019, 03:22:50 am »
I don't know about anyone else, but I'm really bad at naming bases.

Anyone know of a mod that would allow you to have a random thematically appropriate base name?  Ability to reroll would be useful but ultimately optional.

Or if that's not a thing, anyone interested in trying to set it up?
« Last Edit: September 16, 2019, 07:34:30 pm by Meridian »

Offline wolfreal

  • Colonel
  • ****
  • Posts: 298
    • View Profile

Offline khade

  • Commander
  • *****
  • Posts: 509
    • View Profile
Re: Base Name Generator
« Reply #2 on: September 05, 2019, 05:41:35 am »
I meant in game, but that certainly works  :P

Offline Solarius Scorch

  • Global Moderator
  • Commander
  • *****
  • Posts: 11408
  • WE MUST DISSENT
    • View Profile
    • Nocturmal Productions modding studio website
Re: Base Name Generator
« Reply #3 on: September 05, 2019, 10:40:53 am »
This has been suggested a long time ago already (be me), and I think it's still on Meridian's to-do list.

Offline khade

  • Commander
  • *****
  • Posts: 509
    • View Profile
Re: Base Name Generator
« Reply #4 on: September 05, 2019, 11:39:18 pm »
I remember seeing it, wanted to check if it had been done.

Offline Meridian

  • Global Moderator
  • Commander
  • *****
  • Posts: 8597
    • View Profile
Re: [DONE] [Suggestion] Base Name Generator
« Reply #5 on: September 16, 2019, 07:36:20 pm »
Meridian, would you be interested in adding a feature of random X-Com base names? I don't like coming up with names that much, plus it would be kinda fun to write the generator.

The only difference, game-wise, is that at building a new base, when you are prompted for name, there would be a string already - you can delete it or just press Enter. (Of course you can also rename the base late, like always.)

Done.
Global variable.

Edit: this is obsolete, look for new syntax below.

Code: [Select]
baseNames:
  - STR_PIRATE_BAY
  - STR_PIRATE_COVE
  - STR_PIRATE_REEF
  - STR_PIRATE_PORT
  - STR_PIRATE_HAVEN
  - STR_PIRATE_WATERS
  - STR_PIRATE_REFUGE
  - STR_PIRATE_ISLAND
« Last Edit: September 17, 2019, 12:56:23 pm by Meridian »

Offline Solarius Scorch

  • Global Moderator
  • Commander
  • *****
  • Posts: 11408
  • WE MUST DISSENT
    • View Profile
    • Nocturmal Productions modding studio website
Re: [DONE] [Suggestion] Base Name Generator
« Reply #6 on: September 17, 2019, 12:51:16 am »
Thank you! That's going to be handy.
But still I must ask, would it be possible to roll for two name parts separately? That's the "name generator" part, after all.

Offline Dioxine

  • Commander
  • *****
  • Posts: 5412
  • punk not dead
    • View Profile
    • Nocturnal Productions
Re: [DONE] [Suggestion] Base Name Generator
« Reply #7 on: September 17, 2019, 01:09:48 am »
The best would be a name composed of a definiable number of parts and each part chosen randomly from multiple lists, like with soldier names.

So eg. if I had a list:
BASENAME_PART_1
Big
Stinky
BASENAME_PART_2
Pirate
Rat
BASENAME_PART_3
Port
Tavern
#BASENAME_PART_4 #unused, uses only as many lists as defined

And the generator could randomly choose, like Big Pirate Port or Stinky Rat Tavern or anything in between. If the modder wants to use a mysterious language he could define multiple lists and fill each with made-up alien syllables.

Offline Solarius Scorch

  • Global Moderator
  • Commander
  • *****
  • Posts: 11408
  • WE MUST DISSENT
    • View Profile
    • Nocturmal Productions modding studio website
Re: [DONE] [Suggestion] Base Name Generator
« Reply #8 on: September 17, 2019, 02:42:44 am »
Exactly, that's the idea.

Offline Meridian

  • Global Moderator
  • Commander
  • *****
  • Posts: 8597
    • View Profile
Re: [DONE] [Suggestion] Base Name Generator
« Reply #9 on: September 17, 2019, 12:55:35 pm »
Done.

baseNamesMiddle and baseNamesLast are optional.

Code: [Select]
baseNamesFirst:
  - Big
  - Huge
  - Large
  - Stinky
baseNamesMiddle:
  - Rat
  - Pirate
baseNamesLast:
  - Bay
  - Port
  - Haven
  - Tavern

Btw. normal maximum base name size is 13-15 letters, giving you only 4 letters per word on average with 3 word names...

You can go over the limit, but the base name will be displayed in small letters instead of big ones... and it will also not fit into most of the tables.

Test build: https://lxnt.wtf/oxem/builds//Extended/Extended-5.6.4-d7af7b9fb-2019-09-17-win32.7z
« Last Edit: September 17, 2019, 02:17:01 pm by Meridian »

Offline Solarius Scorch

  • Global Moderator
  • Commander
  • *****
  • Posts: 11408
  • WE MUST DISSENT
    • View Profile
    • Nocturmal Productions modding studio website
Re: [DONE] [Suggestion] Base Name Generator
« Reply #10 on: September 17, 2019, 05:33:56 pm »
Thank you. You're the best.
(that's from Dioxine too)

EDIT: What is a good format to use for adding empty lines? I want to make some parts only show up sometimes.

Offline Meridian

  • Global Moderator
  • Commander
  • *****
  • Posts: 8597
    • View Profile
Re: [DONE] [Suggestion] Base Name Generator
« Reply #11 on: September 17, 2019, 05:37:49 pm »
Code: [Select]
  - ""

Offline Solarius Scorch

  • Global Moderator
  • Commander
  • *****
  • Posts: 11408
  • WE MUST DISSENT
    • View Profile
    • Nocturmal Productions modding studio website
Re: [DONE] [Suggestion] Base Name Generator
« Reply #12 on: September 17, 2019, 05:49:55 pm »
Thanks! :)

Attaching some experimental results for the XCF (the base name = a fictional company used as cover). I think they're pretty good, though the last one is a bit straightforward.

Offline Meridian

  • Global Moderator
  • Commander
  • *****
  • Posts: 8597
    • View Profile
Re: [DONE] [Suggestion] Base Name Generator
« Reply #13 on: September 17, 2019, 06:03:10 pm »
Honestly... I think they are all bad, because they are too long.
It will look awful everywhere, where the base names are displayed.
« Last Edit: September 17, 2019, 06:05:17 pm by Meridian »

Offline Solarius Scorch

  • Global Moderator
  • Commander
  • *****
  • Posts: 11408
  • WE MUST DISSENT
    • View Profile
    • Nocturmal Productions modding studio website
Re: [DONE] [Suggestion] Base Name Generator
« Reply #14 on: September 17, 2019, 06:03:49 pm »
Yeah, just examining the constraints for now.