Modding Help Clubdecks keeps shaking and jiggling

Discussion in 'Starbound Modding' started by xdBeau, Mar 14, 2021.

Tags:
  1. xdBeau

    xdBeau Space Hobo

    Hi, this is my first ever post to the forums

    I recently decided to try and edit the hylotl clubdeck, it was going fine until it started shaking from left to right in-game that i cant get rid off. i have 0 knowledge in modding or coding, everything i did was via tutorials, so any reply here helps really.

    video of the problem:


    the codes of the .animation file and .object file.

    {
    "objectName" : "testdeck",
    "colonyTags" : ["hylotl","hylotloceancity","electronic","musical"],
    "rarity" : "Common",
    "category" : "decorative",
    "price" : 160,
    "lightColor" : [0, 53, 64],
    "flickerPeriod" : 0,
    "flickerMinIntensity" : 0,
    "flickerMaxIntensity" : 0,
    "flickerPeriodVariance" : 0,
    "flickerIntensityVariance" : 0,

    "description" : "The huge speakers pump out loud dance music.",
    "shortdescription" : "Club Decks",
    "race" : "hylotl",

    "apexDescription" : "This music makes me want to dance!",
    "avianDescription" : "What is that terrible noise?",
    "floranDescription" : "This music make Floran want to move hipsss!",
    "glitchDescription" : "Negative. This music is not pleasant.",
    "humanDescription" : "Just your typical club music, not unlike the kind I've heard in clubs on Earth.",
    "hylotlDescription" : "This is a really popular club song.",
    "novakidDescription" : "Ain't heard anythin' like this before. Not sure it's my kinda tune.",

    "inventoryIcon" : "testdeckicon.png",
    "orientations" : [
    {
    "image" : "testdeck.png:<color>.<frame>",
    "imagePosition" : [-16, 0],
    "direction" : "left",
    "flipImages" : true,

    "spaceScan" : 0.1,
    "anchors" : [ "bottom" ]
    },
    {
    "image" : "testdeck.png:<color>.<frame>",
    "imagePosition" : [-16, 0],
    "direction" : "right",

    "spaceScan" : 0.1,
    "anchors" : [ "bottom" ]
    }
    ],

    "animation" : "testdeck.animation",
    "animationParts" : {
    "bg" : "testdeck.png",
    "fg" : "testdecklit.png"
    },
    "animationCustom" : {
    "sounds" : {
    "on" : [ "/sfx/objects/recordscratch2.ogg" ],
    "off" : [ "/sfx/objects/recordscratch1.ogg" ]
    }
    },
    "animationPosition" : [-16, 0],

    "scripts" : [
    "/objects/wired/light/light.lua",
    "/scripts/npcToyObject.lua"
    ],

    "scriptDelta" : 60,

    "inputNodes" : [ [0, 0] ],

    "npcToy" : {
    "influence" : [
    "music",
    "music",
    "music",
    "musicFinished"
    ],
    "defaultReactions" : {
    "musicFinished" : [
    [1.0, "smile"],
    [1.0, "laugh"]
    ]
    },
    "randomStandXRange" : [-8, 0]
    },

    "soundEffect" : "/sfx/objects/sodacityfunk.ogg"
    }


    _____________________________________________


    {
    "animatedParts" : {
    "stateTypes" : {
    "light" : {
    "default" : "off",
    "states" : {
    "off" : {
    "properties" : {
    "particleEmittersOff" : [ "music" ]
    }
    },
    "on" : {
    "frames" : 6,
    "cycle" : 0.4,
    "mode" : "loop",
    "properties" : {
    "particleEmittersOn" : [ "music" ]
    }
    }
    }
    }
    },

    "parts" : {
    "bg" : {
    "properties" : {
    "centered" : false
    },

    "partStates" : {
    "light" : {
    "off" : {
    "properties" : {
    "image" : "<partImage>:<color>.off"
    }
    },

    "on" : {
    "properties" : {
    "image" : "<partImage>:<color>.<frame>",
    "fullbright" : true
    }
    }
    }
    }
    },
    "fg" : {
    "properties" : {
    "centered" : false,
    "zLevel" : 1
    },

    "partStates" : {
    "light" : {
    "off" : {
    "properties" : {
    "image" : "<partImage>:<color>.off"
    }
    },

    "on" : {
    "properties" : {
    "image" : "<partImage>:<color>.<frame>"
    }
    }
    }
    }
    }
    }
    },

    "particleEmitters" : {
    "music" : {
    "emissionRate" : 1.5,
    "emissionRateVariance" : 0.0,
    "active" : true,

    "particles" : [
    {
    "particle" : {
    "type" : "textured",
    "image" : "/particles/music/note.png",
    "flippable" : false,
    "position" : [4.5, 1.5],
    "size" : 0.5,
    "color" : [255, 255, 255, 255],
    "light" : [0, 0, 0],
    "fade" : 0,
    "destructionAction" : "shrink",
    "destructionTime" : 5,
    "initialVelocity" : [2.0, -3.0],
    "finalVelocity" : [0.0, 5.0],
    "approach" : [0, 20],
    "timeToLive" : 0.5,
    "layer" : "middle",
    "collidesForeground" : false,
    "variance" : {
    "initialVelocity" : [0.5, 0.5]
    }
    }
    }
    ]
    }
    }
    }
     
    Last edited: Mar 14, 2021

Share This Page