Modding Help I'm trying to make an animated object, but it's invisible when placed

Discussion in 'Starbound Modding' started by BitHorizon, Jun 16, 2014.

  1. BitHorizon

    BitHorizon Ketchup Robot

    What the title says. Here are the 3 files:
    Image: [​IMG]
    hwprinter.frames:
    Code:
    {
    
      "frameGrid" : {
        "size" : [24, 24],
        "dimensions" : [17, 1],
        "names" : [
          [ "default.0", "default.1", "default.2", "default.3", "default.4", "default.5", "default.6", "default.7", "default.8", "default.9", "default.10", "default.11", "default.12", "default.14", "default.15", "default.16" ]
        ]
      },
      "aliases" : {
        "default.default" : "default.0"
      }
    
    }
    
    hwprinter.object:
    Code:
    {
      "objectName" : "hwprinter",
      "rarity" : "Rare",
      "objectType" : "interactable",
      "interactAction" : "OpenCraftingInterface",
      "interactData" : {
        "config" : "/interface/hwprinterinterface/hwprinter.config",
        "filter" : [ "hw" ]
      },
      "printable" : true,
      "description" : "A 3D printer that can print with any material with precision that human hands cannot come close to.",
      "shortdescription" : "AOMS 3D Printer",
      "race" : "generic",
      "category" : "crafting",
      "price" : 4500,
      "apexDescription" : "Placeholder",
      "avianDescription" : "Placeholder",
      "floranDescription" : "Placeholder",
      "glitchDescription" : "Placeholder",
      "humanDescription" : "Placeholder",
      "hylotlDescription" : "Placeholder",
     
      "lightColor" : [255, 255, 255],
    
      "inventoryIcon" : "icon.png",
      "orientations" : [
        {
          "dualImage" : "hwprinter.png:<color>",
    
          "imagePosition" : [0, 0],
          "frames" : 17,
          "animationCycle" : 1.0,
    
          "spaceScan" : 0.1,
          "anchors" : [ "background" ]
    
        }
      ]
    }
    
    Other than being invisible, it works fine. However, it's not very useful if you can't see what you need to hover over to press E.
     
  2. prodamn

    prodamn Spaceman Spiff

    i had this issue before too, argh can't remember, i think my issue was i set the dimension in the frame file wrong. your's however seems fine.

    oh.... try:
    Code:
    "dualImage" : "hwprinter.png.png:<color>.<frame>",
     
    instead of
    Code:
    "dualImage" : "hwprinter.png.png:<color>",
     
    in your object file.
     
    BitHorizon likes this.
  3. BitHorizon

    BitHorizon Ketchup Robot

    That worked somewhat. Now every frame works except for the 12th frame in that image. It flashes out of existence for a split second.
     
  4. BitHorizon

    BitHorizon Ketchup Robot

    Nevermind, I just realized that I skipped the 13th frame in the .frames file.
     
  5. prodamn

    prodamn Spaceman Spiff

    haha, glad it works now :up:
     
  6. BitHorizon

    BitHorizon Ketchup Robot

    Thanks for your help! Here's a picture of the fixed workstation!
    [​IMG]
     

Share This Page