#[solved] object rendering issues /w wiring

4 messages · Page 1 of 1 (latest)

tardy saddle
#

When making an object adding wiring changes its rendering position and i cant work out why. the lighting works with the wiring (not shown in video) but the positioning dosent.

new to modding as this is the first idea i had that i considered "beginner friendly"

all code files included below if that helps :)

OBJECT FILE

{
  "objectName" : "S3XYxxx",
  "colonyTags" : ["light"],
  "rarity" : "Uncommon",
  "category" : "light",
  "price" : 100,
  "description" : "A Pink Neon sign, usually found in... never mind.",
  "shortdescription" : "Neon XXX Sign",
  "race" : "generic",

  "apexDescription" : "A business banned by Big Ape.",
  "avianDescription" : "It's an honest business.",
  "floranDescription" : "Much pink lightsss.",
  "glitchDescription" : "Shock. This sign how lewd.",
  "humanDescription" : "Oh...",
  "hylotlDescription" : "A neon sign. three x's. How odd.",
  "novakidDescription" : "Bunch'a sparklin' li'l lights all strung up.",

  "lightColor" : [255, 16, 240],

  "inventoryIcon" : "S3XYxxxon.png",
  "orientations" : [
    {
      "image" : "S3XYxxx.png:<color>.<frame>",
      "imagePosition" : [-19, -8],
      "direction" : "right",
      "spaceScan" : 0.1,
      "anchors" : [ "background" ]
    }
  ],

  "animation" : "S3XYxxx.animation",
  "animationParts" : {
    "bg" : "S3XYxxx.png"
  },
  "animationPosition" : [0,0],

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

  "interactive" : false,

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

ANIMATION FILE

{
  "animatedParts" : {
    "stateTypes" : {
      "light" : {
        "default" : "off",
        "states" : {
          "off" : {
          },
          "on" : {
            "frames" : 1,
            "cycle" : 1.5,
            "mode" : "loop"
          }
        }
      }
    },

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

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

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

FRAMES FILE

{

  "frameGrid" : {
    "size" : [38, 16],
    "dimensions" : [2, 1],
    "names" : [
      [ "default.1" , "default.off"]
    ]
  },

  "aliases" : {
    "default.default" : "default.off"
  }
}
fair swallow
#

likely has something to do with "imagePosition" in object file

valid nimbus
#

You need to set animationPosition to the same value as imagePosition

tardy saddle
#

thanks it works now :)