[REL] Planet Name Themes

Discussion in 'Mod Discussions' started by cptconundrum, January 25, 2014.

  1. cptconundrum

    cptconundrum Post Master General

    Messages:
    4,186
    Likes Received:
    4,900
    This mod replaces the Star Wars Planet Names mod. I originally started the project with just Star Wars in mind, but it became clear right away that the mod could be used for any theme people want. The Planet Name Themes mod comes with themes for Star Wars, Stargate, and Star Trek. A drop-down list has been added to the settings page to let you easily change between themes.

    Each theme's name list is split into Earth, Ice, Desert, Tropical, Moon, Lava, and Metal biomes. Now you can fight an epic battle on the ice planet Hoth or use Yavin IV to destroy the Death Star!

    You can edit the theme files yourself to add to the lists that I made, but if you're making an improvement then you should post the changes here so that I can include it in the mod. To make a new theme, all you need to do is put a new theme file in the /themes folder, and then add the new file to each scene in modinfo.json. If anyone knows of a way that I can have my mod automatically load anything in the themes folder, please let me know.

    I've never used Git before. Could someone help get this in PAMM?

    V1.1.0
    Added a new theme called "Legacy" with names from Total Annihilation and Supreme Commander.

    V1.1.1
    Updated to v1.1.1 with raevn's changes. I also did a couple other little things and threw in a ton of comments. People won't see any difference unless they were getting settings manager bugs.

    V1.1.2
    Very small bugfix (more of a hack, really) on the new game screen. Now you can see the planet names even after you generate a new system.

    Attached Files:

    Last edited: February 2, 2014
    mishtakashi and LavaSnake like this.
  2. LavaSnake

    LavaSnake Post Master General

    Messages:
    1,620
    Likes Received:
    691
    Just added it to PAMM for you. I'll be checking out those Stargate planet names soon!
  3. cptconundrum

    cptconundrum Post Master General

    Messages:
    4,186
    Likes Received:
    4,900
    The current release contains 119 planet names.

    Star Wars
    Stargate
    Star Trek
    Last edited: January 26, 2014
    LavaSnake likes this.
  4. LavaSnake

    LavaSnake Post Master General

    Messages:
    1,620
    Likes Received:
    691
    I love the planets you chose for the Stargate list.
  5. cptconundrum

    cptconundrum Post Master General

    Messages:
    4,186
    Likes Received:
    4,900
    Great! I'm definitely looking for suggestions on improvements though. I don't know SG1 that well and I wanted to avoid Atlantis because they're different galaxies. I mostly just spent some time on the stargate wiki trying to find planets with a description of the environment that I could match to PA biomes.
  6. cptconundrum

    cptconundrum Post Master General

    Messages:
    4,186
    Likes Received:
    4,900
    Also, if they ever add death star lasers to the metal planets, I'm definitely going to destroy Alderaan first.
    LavaSnake likes this.
  7. LavaSnake

    LavaSnake Post Master General

    Messages:
    1,620
    Likes Received:
    691
    If I think of some I'll tell you. A couple of them aren't as well known so you may want to replace them.
  8. cptconundrum

    cptconundrum Post Master General

    Messages:
    4,186
    Likes Received:
    4,900
    LavaSnake likes this.
  9. LavaSnake

    LavaSnake Post Master General

    Messages:
    1,620
    Likes Received:
    691
  10. cptconundrum

    cptconundrum Post Master General

    Messages:
    4,186
    Likes Received:
    4,900
    Updated to v1.1.0 with the new Legacy theme.

    Could someone show me how to update PAMM so that I don't have to keep asking for help?
    Last edited: January 26, 2014
  11. cola_colin

    cola_colin Moderator Alumni

    Messages:
    12,074
    Likes Received:
    16,221
    fork the io repository on github, add your zip, run the generator and push us the changes.
  12. cptconundrum

    cptconundrum Post Master General

    Messages:
    4,186
    Likes Received:
    4,900
    Do I upload to /mods or /user_mods?
  13. cola_colin

    cola_colin Moderator Alumni

    Messages:
    12,074
    Likes Received:
    16,221
    user mods. mods was pamm 2
    Also you can ignore the ini file that is created, only the json file is important, the ini file again is for pamm v2
  14. cptconundrum

    cptconundrum Post Master General

    Messages:
    4,186
    Likes Received:
    4,900
    I forgot to post the Legacy name list.

    Legacy
  15. Raevn

    Raevn Moderator Alumni

    Messages:
    4,226
    Likes Received:
    4,324
    Regarding the use of the settings manager, you should add in a requires section to the modinfo.json file so that PAMM knows it needs it:

    Code:
        "requires": [
            "rSettingsManager"
        ],
    You also need to call initialSettingValue before you decode the local storage:

    Code:
        cPlanetNameThemes.getTheme = function() {
            var settings = decode(localStorage.settings);
            var theme = settings.cPlanetNameThemes_theme;
            initialSettingValue("cPlanetNameThemes_theme", "Star Wars");
            return this.themes[theme];
        }
    should be

    Code:
        cPlanetNameThemes.getTheme = function() {
            initialSettingValue("cPlanetNameThemes_theme", "Star Wars");
            var settings = decode(localStorage.settings);
            var theme = settings.cPlanetNameThemes_theme;
            return this.themes[theme];
        }
    :)
    cptconundrum likes this.
  16. cptconundrum

    cptconundrum Post Master General

    Messages:
    4,186
    Likes Received:
    4,900
    Updated to v1.1.1 with raevn's changes. I also did a couple other little things and threw in a ton of comments. People won't see any difference unless they were getting settings manager bugs.
  17. iceDrop

    iceDrop Active Member

    Messages:
    143
    Likes Received:
    99
    No. We're a peaceful planet. We have no weapons....

    Adm Tarkin: Look at all that MEX. And with so many orbital defenses.... [turns] You may fire, when ready.
    LavaSnake and cptconundrum like this.
  18. LavaSnake

    LavaSnake Post Master General

    Messages:
    1,620
    Likes Received:
    691
    I think I found an error. When you first make a new game the auto generated system will use themed names but when you click generate new system the names will be blank.
  19. cptconundrum

    cptconundrum Post Master General

    Messages:
    4,186
    Likes Received:
    4,900
    I'm aware of that, but it isn't really an issue. Those new planets still do use the new names. Actually, if you generate a new system and then go back to the main menu, the names will show up once you go back to new game.

    Uber's new game screen actually has a bug anyway, since the planet names never show up there in their version of the planet generator. I'll get around to fixing this so the names always show up when a get a chance, but I'm currently working on a way to save systems to PA Stats. :cool:

    share-systems.jpg
    cola_colin likes this.
  20. LavaSnake

    LavaSnake Post Master General

    Messages:
    1,620
    Likes Received:
    691
    ok, cool!

Share This Page