Modding Help drones hud problems

Discussion in 'Starbound Modding' started by drones, Jan 4, 2017.

  1. drones

    drones Space Hobo

    im almost finishing my first mod. but the hud of the crafting table has problems, i cant charge the image of the hud. so i need someone than can check the next script and tell me what is wrong with it.

    {
    "filter" : [],
    "titleFromEntity" : true,
    "requiresBlueprint" : true,
    "craftingSound" : "/sfx/interface/crafting_tech1.ogg",
    "paneLayout" : {
    "background" : {
    "type" : "background",
    "fileHeader" : "/interface/crafting/craftingheader.png",
    "fileBody" : "/interface/crafting/droneshud",
    "fileFooter" : "/interface/crafting/craftingfooter.png"
    },
    "close" : {
    "type" : "button",
    "base" : "/interface/x.png",
    "hover" : "/interface/xhover.png",
    "pressed" : "/interface/xpress.png",
    "pressedOffset" : [0, 0],
    "position" : [321, 261]
    },
    "windowtitle" : {
    "type" : "title",
    "title" : "drones Station",
    "subtitle" : "to make drones (not controlable)",
    "position" : [-5, 252],
    "icon" : {
    "type" : "image",
    "file" : "/interface/crafting/spinningwheel.png",
    "position" : [0, -20],
    "zlevel" : -1
    }
    },
    "bgShine" : {
    "type" : "image",
    "file" : "/interface/crafting/shine.png",
    "position" : [-15, 0],
    "zlevel" : -10
    },
    "lblSchematics" : {
    "type" : "label",
    "position" : [88, 244],
    "hAnchor" : "mid",
    "value" : "^#b9b5b2;BLUEPRINTS"
    },
    "lblProducttitle" : {
    "type" : "label",
    "position" : [265, 244],
    "hAnchor" : "mid",
    "value" : "^#b9b5b2;PRODUCT"
    },
    "spinCount" : {
    "type" : "spinner",
    "position" : [220, 46],
    "upOffset" : 36
    },
    "tbSpinCount" : {
    "type" : "textbox",
    "position" : [232, 46],
    "textAlign" : "center",
    "maxWidth" : 16,
    "regex" : "x?\\d{0,4}",
    "hint" : ""
    },
    "imgAmountInput" : {
    "type" : "image",
    "file" : "/interface/crafting/amount.png",
    "position" : [226, 45],
    "zlevel" : -3
    },
    "btnCraft" : {
    "type" : "button",
    "base" : "/interface/button.png",
    "hover" : "/interface/buttonhover.png",
    "position" : [271, 43],
    "caption" : "Craft"
    },
    "btnStopCraft" : {
    "type" : "button",
    "base" : "/interface/buttonactive.png",
    "hover" : "/interface/buttonactivehover.png",
    "position" : [271, 43],
    "caption" : "Stop"
    },
    "imgCraftBg" : {
    "type" : "image",
    "file" : "/interface/crafting/craftbg.png",
    "position" : [196, 40],
    "zlevel" : -5
    },
    "currentRecipeIcon" : {
    "type" : "itemslot",
    "callback" : "null",
    "position" : [197, 41]
    },
    "btnFilterHaveMaterials" : {
    "type" : "button",
    "base" : "/interface/crafting/checkboxnocheck.png",
    "baseImageChecked" : "/interface/crafting/checkboxcheck.png",
    "checkable" : true,
    "checked" : false,
    "position" : [40, 59]
    },
    "lblProduct" : {
    "type" : "label",
    "position" : [51, 58],
    "hAnchor" : "left",
    "value" : "MATERIALS AVAILABLE"
    },

    "description" : {
    "type" : "widget",
    "position" : [190, 41],
    "size" : [140, 220]
    },
    "filter" : {
    "type" : "textbox",
    "position" : [56, 43],
    "hint" : "Search",
    "maxWidth" : 70,
    "escapeKey" : "close",
    "enterKey" : "filter",
    "focus" : false
    },

    "scrollArea" : {
    "type" : "scrollArea",
    "rect" : [5, 69, 174, 221],
    "children" : {
    "itemList" : {
    "type" : "list",
    "schema" : {
    "selectedBG" : "/interface/crafting/craftableselected2.png",
    "unselectedBG" : "/interface/crafting/craftablebackground.png",
    "spacing" : [0, 1],
    "memberSize" : [159, 20],
    "listTemplate" : {
    "background" : {
    "type" : "image",
    "file" : "/interface/crafting/craftablebackground.png",
    "position" : [2, 0],
    "zlevel" : -1
    },
    "itemName" : {
    "type" : "label",
    "position" : [25, 5],
    "hAnchor" : "left",
    "wrapWidth" : 116,
    "value" : "Replace Me"
    },
    "itemIcon" : {
    "type" : "itemslot",
    "position" : [3, 1],
    "callback" : "null"
    },
    "newIcon" : {
    "type" : "image",
    "position" : [119, 5],
    "file" : "/interface/crafting/new.png",
    "zlevel" : 2
    },
    "moneyIcon" : {
    "type" : "image",
    "position" : [122, 1],
    "file" : "/interface/money.png"
    },
    "priceLabel" : {
    "type" : "label",
    "position" : [134, 1],
    "hAnchor" : "left",
    "value" : "0"
    },
    "notcraftableoverlay" : {
    "type" : "image",
    "file" : "/interface/crafting/notcraftableoverlay.png",
    "position" : [2, 0],
    "zlevel" : 1
    }
    }
    }
    }
    }
    },
    "lblSensorsTab" : {
    "type" : "image",
    "file" : "/interface/crafting/tabicon_flying.png",
    "position" : [25, 223],
    "zlevel" : 3
    },
    "lblLogicTab" : {
    "type" : "image",
    "file" : "/interface/crafting/tabicon_land.png",
    "position" : [52, 223],
    "zlevel" : 3
    },
    "categories" : {
    "type" : "radioGroup",
    "toggleMode" : false,
    "buttons" : [
    {
    "selected" : true,
    "position" : [18, 221],
    "baseImage" : "/interface/crafting/unselectedTab.png",
    "baseImageChecked" : "/interface/crafting/selectedTab.png",
    "data" : {
    "filter" : [ "flying" ]
    }
    },
    {
    "position" : [45, 221],
    "baseImage" : "/interface/crafting/unselectedTab.png",
    "baseImageChecked" : "/interface/crafting/selectedTab.png",
    "data" : {
    "filter" : [ "land" ]
    }
    }
    ]
    },
    "rarities" : {
    "type" : "radioGroup",
    "toggleMode" : true,
    "buttons" : [
    ]
    }
    }
    }

    please, help, im almost finishing this mod. i just need to fix this, if you need the enterie mod...
    https://mega.nz/#!nBEg2YIT!MbqE0B0RB_ty7GSod_MoAxU0URQ5rAHzaiGkwyqY3w4
     
    Last edited: Jan 5, 2017
  2. lazarus78

    lazarus78 The Waste of Time

    Nothing 8s wrong with the code. What exactly is the problem?
     
  3. drones

    drones Space Hobo

    the problem is than the image of the hud, and the buttons does not appear when i use the drone station.
     
  4. lazarus78

    lazarus78 The Waste of Time

    Code:
    "fileBody" : "/interface/crafting/droneshud",
    
    You forgot the file extension...
     
  5. drones

    drones Space Hobo

    how is the extension?
     
  6. lazarus78

    lazarus78 The Waste of Time

    Umm... look at the line above it and below it. They are using png images, just as yours should be too... This is modding 101 here.
     
  7. drones

    drones Space Hobo

    soo, instead
    "fileBody" : "/interface/crafting/droneshud"

    it should be
    "fileBody" : "/interface/crafting/droneshud.png" ?
     
  8. lazarus78

    lazarus78 The Waste of Time

    Yes.... you are trying to use an image file, correct? So you need to include the extension, otherwise what is "droneshud"? An image? A text file? a pdf? How would the game know?
     
  9. drones

    drones Space Hobo

    it still dont work. this appears in the strabound log.

    [16:33:07.530] [Error] Could not load image asset '/interface/crafting/droneshud.png', using placeholder default.
    (AssetException) No such asset '/interface/crafting/droneshud.png'
    [16:33:08.013] [Error] Could not load image asset '/interface/crafting/tabicon_land.png', using placeholder default.
    (AssetException) No such asset '/interface/crafting/tabicon_land.png'
    [16:33:08.070] [Error] Could not load image asset '/interface/crafting/tabicon_flying.png', using placeholder default.
    (AssetException) No such asset '/interface/crafting/tabicon_flying.png'
     
  10. lazarus78

    lazarus78 The Waste of Time

    Do those images even exist?

    You really need to post your whole mod. Can't tell squat by just a single config.
     
  11. drones

    drones Space Hobo


    there is a link for my mod at te last of the post
     
  12. lazarus78

    lazarus78 The Waste of Time

    A lot of Duplicate projectiles... might want to resolve those errors.


    Further, your issue is still related to file extensions mission in the config. You NEED to include file extensions when referencing ANY file.
     
  13. drones

    drones Space Hobo

    but. if i already ad those extensions, why it still with out showing the crafing table hud?
     
  14. lazarus78

    lazarus78 The Waste of Time

    Did you spawn in a new table? Ive found that reusing an already existing item in my inventory from a previous test will sometimes retain old information. Other than that, it worked fine for me once the extensions were added.
     

    Attached Files:

  15. drones

    drones Space Hobo

    did you modific the mod? or only the config?
     
    Last edited: Jan 5, 2017
  16. lazarus78

    lazarus78 The Waste of Time

    Only the config.
     
    drones likes this.
  17. drones

    drones Space Hobo

    ... i download it and test it. tell me your steam acount username
     
  18. lazarus78

    lazarus78 The Waste of Time

    What for?
     

Share This Page