OpenXcom Forum

Modding => OpenXcom Extended => OXCE Suggestions DONE => Topic started by: khade on September 05, 2019, 03:22:50 am

Title: [DONE] [Suggestion] Base Name Generator
Post by: khade 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?
Title: Re: Base Name Generator
Post by: wolfreal on September 05, 2019, 03:46:47 am
https://www.fantasynamegenerators.com/pirate-cove-names.php
Title: Re: Base Name Generator
Post by: khade on September 05, 2019, 05:41:35 am
I meant in game, but that certainly works  :P
Title: Re: Base Name Generator
Post by: Solarius Scorch 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.
Title: Re: Base Name Generator
Post by: khade on September 05, 2019, 11:39:18 pm
I remember seeing it, wanted to check if it had been done.
Title: Re: [DONE] [Suggestion] Base Name Generator
Post by: Meridian 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
Title: Re: [DONE] [Suggestion] Base Name Generator
Post by: Solarius Scorch 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.
Title: Re: [DONE] [Suggestion] Base Name Generator
Post by: Dioxine 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.
Title: Re: [DONE] [Suggestion] Base Name Generator
Post by: Solarius Scorch on September 17, 2019, 02:42:44 am
Exactly, that's the idea.
Title: Re: [DONE] [Suggestion] Base Name Generator
Post by: Meridian 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
Title: Re: [DONE] [Suggestion] Base Name Generator
Post by: Solarius Scorch 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.
Title: Re: [DONE] [Suggestion] Base Name Generator
Post by: Meridian on September 17, 2019, 05:37:49 pm
Code: [Select]
  - ""
Title: Re: [DONE] [Suggestion] Base Name Generator
Post by: Solarius Scorch 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.
Title: Re: [DONE] [Suggestion] Base Name Generator
Post by: Meridian 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.
Title: Re: [DONE] [Suggestion] Base Name Generator
Post by: Solarius Scorch on September 17, 2019, 06:03:49 pm
Yeah, just examining the constraints for now.