Modding Help Quick modding question about .recipe files

Discussion in 'Starbound Modding' started by Mr Xecuter, Jul 23, 2016.

  1. Mr Xecuter

    Mr Xecuter Space Spelunker

    Can anyone tell me if there is a way to edit the "input" : [], section of a .recipe file so that when you go to the crafting menu the ingredients window does not show up at all? Thanks for the help.
     
  2. The | Suit

    The | Suit Agent S. Forum Moderator

    If you are trying to make "hidden" ingredients that is not possible through the default means.
    The only way to do that is to create your own Lua based crafting table.
     
    Mr Xecuter likes this.
  3. Mr Xecuter

    Mr Xecuter Space Spelunker

    So I have been trying to figure out how to do this. I know that the game is seeing the lua file because I have this code in it:
    Code:
    object.setInteractive(true)
    ...and when I'm in-game it is highlighted as being interactive. However, when I press [E] to interact with it, nothing happens. Anyone have any suggestions or know of a good guide/example for this?
     
  4. The | Suit

    The | Suit Agent S. Forum Moderator

    If that your entire code - nothing will happen.
     
  5. Mr Xecuter

    Mr Xecuter Space Spelunker

    Obviously that is not the only line of code I have in there, it's just the only line that seems to be working. I have not been able to work on it for a few days now so I am erasing everything and starting over as I cant remember what I have tried and what I have not tried.

    Here is my current code for the lua file:
    Code:
    function init()
         object.setInteractive(true)
    end
    
    function onInteraction(args)
         return {"OpenCraftingInterface", {config= {
              ["requiresBlueprint"] = false,
                   ["paneLayout"] = {
                        ["windowtitle"] = {
                             ["type"] = "title",
                             ["title"] = "  TEST",
                             ["subtitle"] = "  SUB-TEST"
                             }
                   }
              }
         }
    }
    end
    
    Any help would be nice. When I click on the box, it just crashes starbound.

    Is there a good lua file that anyone can recommend in the starbound assets that I can learn from?
    --- Post updated ---
    Ok, I finally got a fully working lua based crafting table but what code do I add to make the ingredients invisable?
     
    Last edited: Jul 30, 2016
  6. Charlatan

    Charlatan Parsec Taste Tester

    What did you have to change to make it work ?
     

Share This Page