[WIP] DirectEdit 0.5.0

Discussion in 'Work-In-Progress Mods' started by guest1, February 5, 2015.

  1. guest1

    guest1 Active Member

    Messages:
    113
    Likes Received:
    239
    [​IMG]

    Latest version: 0.5.0 (2015/08/01)

    DirectEdit is a UI mod that enhances the system editor with a simple interface for textual planet editing. This mod allows you to edit planets in the same way you would edit a .pas directly, but without the hassle of exporting and importing your system. DirectEdit also adds the capability to apply arbitrary rotations and reflections to brushes, among other operations, although some of these features are still incomplete.

    With DirectEdit, you can:
    • Change planet biome, radius and other parameters after editing CSG
    • Delete unselectable mirrored brushes
    • Obtain brush types not listed in the editor's palette
    • Change brush projection and operation types
    • View a planet's CSG, metal spots and landing zones in list form
    • Easily duplicate planets and brushes
    • Create radially symmetric maps
    • Resize planets, adjusting CSG, metal and landing zones to match
    • Set any planet to have asteroid-like spawn behavior
    DirectEdit uses the Floating Framework mod to create movable frames. Please install this mod before use.



    Place the com.pa.guest.DirectEdit folder from the zip file in your Planetary Annihilation/mods folder and launch PAMM to run the mod.

    Please let me know about any bugs, oddities, or points of confusion. Feature requests are also welcome so long as they are possible in the PA engine.

    Thanks to @cptconundrum for helping me get started with modding and to @cola_colin for UI help.

    [Mod Edit - Now available on PAMM / CMM]
    Last edited by a moderator: May 22, 2016
  2. nuketf

    nuketf Active Member

    Messages:
    702
    Likes Received:
    130
    so...can you like...add Lava and Water???
  3. guest1

    guest1 Active Member

    Messages:
    113
    Likes Received:
    239
    Nope! It's not possible to change the heightmap currently. Hopefully Uber will add tools for that soon.
    squishypon3 likes this.
  4. endurrr

    endurrr Active Member

    Messages:
    116
    Likes Received:
    156
    Can you add this directly to PAMM? I really want to try this out but I have no clue how to get to where I need to go in order to install it
    guest1 likes this.
  5. guest1

    guest1 Active Member

    Messages:
    113
    Likes Received:
    239
    Once I'm confident it's got all the features I want and is mostly bug-free, I'll put it on PAMM. In the mean time, just follow the instructions under the download link; the folder you want should be (if you're on Windows) C:\Users\%USERNAME%\AppData\Local\Uber Entertainment\Planetary Annihilation\mods.
    endurrr likes this.
  6. endurrr

    endurrr Active Member

    Messages:
    116
    Likes Received:
    156
    Thanks! That was a lot easier than I thought :)
    guest1 likes this.
  7. guest1

    guest1 Active Member

    Messages:
    113
    Likes Received:
    239
    Glad I could help. Hope you find it useful :)
  8. endurrr

    endurrr Active Member

    Messages:
    116
    Likes Received:
    156
    Me too, but I think I'm gonna need a whole bunch of tutorials if I want to get good at this stuff xD
    guest1 likes this.
  9. guest1

    guest1 Active Member

    Messages:
    113
    Likes Received:
    239
    I'm planning to put together some documentation eventually, both on the forum and as tooltips or something similar in-game. In the mean time you can just mess around and see what works. Let me know if you find any bugs!
    endurrr likes this.
  10. endurrr

    endurrr Active Member

    Messages:
    116
    Likes Received:
    156
    I will! And it would be a great idea to put together tutorials. Maybe until then though you could find time to either stream or something so people can learn what to do. Right now I don't even know how to use csg with it...
    guest1 likes this.
  11. sardaukar666

    sardaukar666 Well-Known Member

    Messages:
    128
    Likes Received:
    282
    This tool is amazing, with a little trial and error it really helps one understand how the .pas is structured
    guest1 likes this.
  12. eroticburrito

    eroticburrito Post Master General

    Messages:
    1,633
    Likes Received:
    1,836
    I think I'm really getting the hang of this!

    Screenshot (550).png
    tesseracta, cdrkf, sierra159 and 4 others like this.
  13. guest1

    guest1 Active Member

    Messages:
    113
    Likes Received:
    239
    My god.
    eroticburrito likes this.
  14. eroticburrito

    eroticburrito Post Master General

    Messages:
    1,633
    Likes Received:
    1,836
    wat i do

    Literally just crashed again ******* around lol.

    Trying to figure out what different figures do. Some guidance would be very much appreciated.
  15. eroticburrito

    eroticburrito Post Master General

    Messages:
    1,633
    Likes Received:
    1,836
    I just realised that scale is scale. I laughed.

    Edit: My dream home.. Screenshot (551).png
    tesseracta, DeathByDenim and guest1 like this.
  16. superouman

    superouman Post Master General

    Messages:
    1,007
    Likes Received:
    1,139
    Sometimes the planet is duplicated when i change the settings.
    PA 2015-02-08 14-35-11-00.jpg PA 2015-02-08 14-39-01-57.jpg

    You need to write the edited data two times to get it saved.

    You should also write
    Scale x
    Scale y
    Scale z

    Position x
    Position y
    Position z

    I figured it out because i'm used to the xyz order in options but it may not be obvious for a beginner.


    Also, when you change values in multiple lines, then switch to an other csg, sometimes some of them are not temporarily saved if you come back to the previous csg you edited.


    Not a mod bug but does anyone know why the top part of metal_structure_02 is not bant and seems to have articulated joints at the edges of its squares. You can see metal_structure_12 on the left which is properly bent.

    Attached Files:

    Last edited: February 8, 2015
    guest1 and eroticburrito like this.
  17. eroticburrito

    eroticburrito Post Master General

    Messages:
    1,633
    Likes Received:
    1,836
    It wasn't. I figured it out because I've heard of XYZ and fiddled about ^^
  18. superouman

    superouman Post Master General

    Messages:
    1,007
    Likes Received:
    1,139
    With the xyz manipulation you can do very large plateaus and not absurdly tall. Yesterday i wished for this option and i got it with this mod :p
    Last edited: February 8, 2015
    guest1 likes this.
  19. eroticburrito

    eroticburrito Post Master General

    Messages:
    1,633
    Likes Received:
    1,836
    I know ;) I'm currently stretching metal biomes to make a cityscape.

    Being able to group/label CSG in the DirectEdit list would be good, @guest1 :D
    guest1 and superouman like this.
  20. guest1

    guest1 Active Member

    Messages:
    113
    Likes Received:
    239
    @superouman Thanks for the report! This is useful information.

    My overwrite function doesn't seem to delete planets that haven't been fully visualized yet. Dunno why but I will fix this.

    KnockOut doesn't sync variables to input fields until you tab out or otherwise exit the field. I'll try to find a way to save variables whenever a field loses focus (e.g. at the start of a click event).

    Will do. Thanks!

    This is the same issue as before where you need to tab out of a field before it updates fully.

    You can see from the wireframe that metal_structure_02 is very low-poly compared to metal_structure_12. Although brushes may be deformed by their projection on the terrain, the edges of each poly will always be straight.

    Yeah, definitely. I had a really complicated plan for how I wanted to do this with groups you could nest inside one another, but I've scrapped that idea since it would make it difficult to recover the original order of brushes, which is important.

    I will be implementing the ability to select multiple brushes at a time with shift and control; selected brushes will also be highlighted in the list, so you know what you're working with.

    Regarding labels - how would people feel about being able to set a color patch that would appear to the left of a brush? The other option I'm considering is a text label for each brush, which would clutter the UI a bit more.
    Last edited: February 8, 2015
    superouman and eroticburrito like this.

Share This Page