Modding Help Sideways door (hatch)

Discussion in 'Starbound Modding' started by Silverforte, Jan 10, 2014.

  1. Silverforte

    Silverforte Spaceman Spiff

    I'm trying to make a hatch (door) that opens sideways. Basically, I took the files for the 'cool apex door' and changed some of the text around. I had it sort of working. I was able to get it to be placed between two blocks, one above and one below like a normal door. However, I can't get it to become placable between two walls like this:

    [​IMG]

    On the left there is where it's located in the image. I'm trying to make it so I can place this hatch between two blocks, left and right, and open it. When I managed to alter the file to let me place it between two top and bottom blocks like a normal door, the animation worked fine. My only problem is getting it to place between two left and right blocks.

    This is the code:

    {
    "objectName" : "silvhatch",
    "rarity" : "Common",
    "objectType" : "wire",

    "category" : "door",
    "price" : "2000",
    "description" : "A hatch useful for hidding things.",
    "shortdescription" : "Platinum enforced hatch",
    "race" : "apex",

    "apexDescription" : "This door looks strong enough to keep anything out... or everyone in.",
    "avianDescription" : "A strong door. Not even the breeze could slip through.",
    "floranDescription" : "Door of great ssstrength.",
    "glitchDescription" : "Jealousy. Such strong materials.",
    "humanDescription" : "A huge, heavy security door.",
    "hylotlDescription" : "This looks strong enough to hold back the ocean.",

    "inventoryIcon" : "silvhatchicon.png",
    "orientations" : [
    {
    "image" : "silvhatch.png:default",
    "flipImages" : true,
    "imagePosition" : [-25, 3.0],
    "spaceScan" : 5.0,
    "anchors" : [ "left", "right" ],
    "direction" : "left"
    },
    {
    "image" : "silvhatch.png:default",
    "imagePosition" : [-25, 3.0],
    "spaceScan" : 5.0,
    "anchors" : [ "left", "right" ],
    "direction" : "right"
    }
    ],

    "scripts" : [ "/objects/wired/door/door.lua" ],
    "scriptDelta" : 5,

    "animation" : "/objects/wired/door/door.animation",
    "animationParts" : {
    "door" : "silvhatch.png"
    },
    "animationPosition" : [-25, 3.0],

    "inboundNodes" : [ [0, 4] ],
    "outboundNodes" : [ [0, 0] ],

    "openSounds" : [ "/sfx/objects/apexcooldoor_open.wav" ],
    "closeSounds" : [ "/sfx/objects/apexcooldoor_close.wav" ]
    }



    Admittedly I'm not that good with JSON but I've managed to make some fun basic mods. This is the only thing I'm having issues with. Can anyone point out what I did wrong?
     
  2. FormalRiceFarmr

    FormalRiceFarmr Big Damn Hero

    I'm working on the same thing right now. Want to work together?
    I succeeded in making an alternate item but I'm trying to make one door with alternate orientations, but I'm stuck on the initial animation on placement always being vertical.
     
  3. -Soler

    -Soler Pangalactic Porcupine

    Dr. Toros likes this.
  4. FormalRiceFarmr

    FormalRiceFarmr Big Damn Hero

  5. -Soler

    -Soler Pangalactic Porcupine

    FormalRiceFarmr likes this.
  6. FormalRiceFarmr

    FormalRiceFarmr Big Damn Hero

Share This Page