• If you have a mod, tool or prefab, please use the Resources section. Click Mods at the top of the forums.

Custom forge, and workstation

Okay, That's works. And how to add new "cols" to the crafting queue and the input window?
Hi venom2019, add this

Windows.xml

<! - add 3rd input to Forge ->

<set xpath = "/ windows / window [@ name = 'windowMyForgeInput'] / @ height"> 279 </set>

<set xpath = "/ windows / window [@ name = 'windowMyForgeInput'] / sprite [@ name = 'backgroundMain'] / @ height"> 228 </set>

<set xpath = "/ windows / window [@ name = 'windowMyForgeInput'] / rect [@ name = 'content'] / @ height"> 223 </set>

<set xpath = "/ windows / window [@ name = 'windowMyorgeInput'] / rect [@ name = 'content'] / grid / @ rows"> 3 </set>

windowmyforgeinput,change it to the name of your forge

For extra groove if it is for your forge and worktable, add this

XUi.xml

<! - Forge +1 crafting slot ->

<set xpath = "/ xui / ruleset [@ name = 'default'] / window_group [@ name = 'workstation_forge'] / window [@ name = 'windowCraftingQueue'] / @ name"> GKwindowCraftingQueue </set>

<! - Workbench +1 crafting slot ->

<set xpath = "/ xui / ruleset [@ name = 'default'] / window_group [@ name = 'workstation_workbench'] / window [@ name = 'windowCraftingQueue'] / @ name"> GKwindowCraftingQueue </set>

Here you put the name of your forge and worbench.

In windows.xml

<Gouki>

<append xpath = "/ windows">

<! - Crafting Queue +1 Slot ->

<window name = "GKwindowCraftingQueue" width = "397" height = "78" panel = "Left" cursor_area = "true">

<rect depth = "0" pos = "19.0" width = "378" controller = "CraftingQueue">

<grid name = "queue" rows = "1" cols = "5" pos = "3, -13" cell_width = "75" cell_height = "75" repeat_content = "true">

<recipe_stack name = "0" />

</grid>

</rect>

</window>

</append>

</Gouki>

I wait and serve you

regards,GK

P.S. Would you share your forge or you will publish your mod

 
Last edited by a moderator:
Hello guys, I have an idea... I want to make a pallet of barrels, and you could craft them, and if you have a pack of 4, you could decrease the number if you need a barrel, you will get that barrel, but also a pack of 3 barrel too. Is is possible?
Correct me if I'm wrong with something, what you want is to have a pallet of 4 barrels that you will design, but at the time of crafting it if you want 1 te of 1 barrel, 2 te of 2, etc.

I'm not sure if it could or not, but you can better make the design of 1 barrel, the design of 2 barrels, etc. and when you make the recipe is specific to each barrel design you made.

Regards, GK

 
Hello Gouki, I want this barrel to compress some of the fuel that I will add to the game, and there is going to be 4 barrel on the pallet, and you can place them down, and if you want to get your item back, you just have to craft the 3 barrel variation of that, but if the craft dont work like that, just like harvesting items, you could scrap that down, and you will get one barrel of that kind of fuel/liquid. and if you have 4 different kind of barrel, you will get all barrels, and the pallet. and you could place the barrel down, and craft the 3 barrel back. so there is going to have soooo much block.

And to answer your question, I will publish the whole mod, because this is going to be an extention of my Compressed Items 3.1 named mod, but this will be much better, and cooler than that was.

I could publish the blocks, but those are contains items from my whole mod, And I will have to make a different mod, which will just contains those 3 block.(ibc tote, woodburningfurnace, and the modernworkbench)

I don't know when will I publish my mod, but it will happen in 2020 :D

 
Last edited by a moderator:
Hello guys,

this is a preview of my barrel blocks that I made so far.

fOhDIu6.png


I made these 4 barrel yet,

the 1st barrel is a simple water barrel,

the 2nd is the biofuel barrel,

the 3rd is petroleum barrel,

and the 4th is a gas barrel.

and you can stack them on top of each other.

and there will be more barrel, and I will add a pallet version of it, and it will contain a lot of combinations too.

I hope when it will be ready to publish, you will like it.

 
Last edited by a moderator:
Hello guys, there is a problem

yI3E40E.png


iSkeGg7.png


So, the model actually is small when I want to place it down, but when it placed, IT'S HUGE LIKE HELL

What do I do with this crap? delete the model?

 
The block that you can see before you place it is called the imposter and will be scaled to the multiblockdim specified in the xml. The actual block must have a scale issue in unity - the parent mode should be empty and have a 0 0 0 position and be scaled 1 1 1. The child object is the 3d model and should be scaled accordingly. This is the object that will need a collider component and the b_mesh tag. You will have to repack the asset and reexport it every time you make a change.

Some of the veteran modders here do a lot more with unity than I do, and the old unity 7d2d videos still are mostly relevant.

 
Ah, thanks, so I have to scale it in unity? nice. I almost deleted the model, which can add 9 more barrel to the collection. the better fun is to put 4 on a pallet :D

 
Back
Top