[REL] Custom Planet Types Framework (For Modders) [52512]

Discussion in 'Mod Discussions' started by Raevn, August 31, 2013.

  1. Raevn

    Raevn Moderator Alumni

    Messages:
    4,226
    Likes Received:
    4,324
    This mod adds a framework for easily adding custom planet types to the System Editor, without the need to overwrite files, and with all files staying within the mods folder. It also includes an example of an "Ice" planet type.

    An example using the Ice Planet:
    Ice.PNG

    Installation
    Current build: 52512 (version 1)

    Step 1:
    Download the rPlanetTypesFramework_v1.zip attachment, and extract it to <PA Install directory>/PA/media/ui/mods/

    Step 2:
    Install the PA UI Mod Manager: https://forums.uberent.com/threads/rel-ui-mod-manager-v1-2.50726/
    Tick the box for "Custom Planet Types Framework" to enable to mod.

    Usage
    Set "Requires=rPlanetTypesFramework" in your mod's ini file. The framework has a priority of 50, so it will load before other mods by default.

    You can then create a new planet type mode and add it to the game with a single line:
    model.addPlanetType('<Planet Type Name>','<Path to Planet Type .json file, relative to mods folder>');

    For example, the ice planet mod is simply:
    model.addPlanetType('ice','rPlanetTypesFramework/ice');

    Attached Files:

    Last edited: September 7, 2013
  2. infuscoletum

    infuscoletum Active Member

    Messages:
    606
    Likes Received:
    37
    Are some of them playable?
  3. Raevn

    Raevn Moderator Alumni

    Messages:
    4,226
    Likes Received:
    4,324
    Without server access, we can't make them playable as the server needs the planet type json file installed. However, any planet types that work in the system editor will work in the game once we have access to the server, so this can be used to experiment and build.
    infuscoletum likes this.
  4. tatsujb

    tatsujb Post Master General

    Messages:
    12,902
    Likes Received:
    5,385
    wow good work!

Share This Page