Deadlock's Stacking Beltboxes & Compact Loaders


Adds minimalist 1x1 loaders and stacking beltboxes for 5x belt compression for ores, plates and some intermediate products

Content
1 year, 7 months ago
0.17 - 2.0
126K
Logistics

g 2.1

a month ago

Will the mod be available for version 2.1?

a month ago
(updated a month ago)

Author has not updated any of his mods in the last year and a half, so there's a possibility that there won't be an update anymore. Which would be sad because my fav playstyle heavily relies on the stacking :(

EDIT:
Got it to work through trial and error. I never made my own mods in Factorio and I don't have any experience with lua either. But I'm a C++ dev and I dared my luck to make this mod compatible. So it's probably a very dirty hack and it might break stuff, USE THESE FIXES AT YOUR OWN RISK!
Also, because for some reason it wouldn't recognize "crafting-with-fluid-or-metallurgy" as a valid recipe category anymore (even though the API says it's a built-in category in the game), I think my changes will require an assembling machine rather than a foundry to craft the Vulcanus equipment. Anyone with modding experience, feel free to add to my fixes in order to make the mod use the foundry again. Here are the changes required to make it work:

AGAIN, USE THESE FIXES AT YOUR OWN RISK!

root directory

info.json: change the "2.0" values in line 8 and line 13 to "2.1"

directory Prototypes

create_beltbox.lua: Line 160 should read: "category = tier_table.beltbox_category,". Change it to "categories = {tier_table.beltbox_category},".

create_loader.lua: Line 160 should read: "category = tier_table.loader_category,". Change it to "categories = {tier_table.loader_category},".

create_stack.lua: Lines 143 and 172 should read "category = "stacking"," and "category = "unstacking",", respectively. Change them to "categories = {"stacking"}," and "categories = {"unstacking"},", respectively.

public.lua: Look for the line "tier_table.loader_category = data.raw.recipe[tier_table.underground_belt].category". Below that, add the following three new lines:
if not tier_table.loader_category then
tier_table.loader_category = "crafting"
end
Also look for the line "tier_table.beltbox_category = data.raw.recipe[tier_table.underground_belt].category" Below that, add the following three new lines:
if not tier_table.beltbox_category then
tier_table.beltbox_category = "crafting"
end

vanilla_tiers.lua: Lines 79 and 86 should read "loader_category = t3_category," and "beltbox_category = t3_category,", respectively. Change them to "loader_category = "crafting-with-fluid"," and "beltbox_category = "crafting-with-fluid",", respectively.
Also, line 115 and 122 should read "loader_category = "crafting-with-fluid-or-metallurgy"," and "beltbox_category = "crafting-with-fluid-or-metallurgy",", respectively. Change those to "loader_category = "crafting-with-fluid"," and "beltbox_category = "crafting-with-fluid",", respectively.

a month ago
(updated a month ago)

I got the mod working on Factorio 2.1 in my fork. (but without space age stuff so i need to fix that yet., if you play 2.1 without space age enabled it works)

This is not an official release, but it loaded successfully and I tested the basic functionality in-game: loaders, beltboxes, and stacking/unstacking appear to work.

Fork:https://github.com/goakiller900/deadlock-beltboxes-loaders-continued

Main changes:

Updated info.json to factorio_version 2.1 and version 2.6.1.
Added a compatibility fix for the Factorio 2.1 recipe prototype change where category and additional_categories were merged into categories.
Kept the existing Vulcanus / Space Age category names instead of replacing crafting-with-fluid-or-metallurgy with crafting-with-fluid.

So far this seems cleaner than forcing everything back to normal assembling-machine crafting, but I have only done basic testing.

Use at your own risk, of course. I am not the original author and I do not want to claim this is an official continuation. I mainly wanted to share the fix because other people seem to be running into the same 2.1 issue.

a month ago

AAAAAAND fixed the space age thing

a month ago
(updated a month ago)

Thanks a lot for picking it up!

Kept the existing Vulcanus / Space Age category names instead of replacing crafting-with-fluid-or-metallurgy with crafting-with-fluid.
So far this seems cleaner than forcing everything back to normal assembling-machine crafting, but I have only done basic testing.

Sure does. I had to switch it back to assembling machines because it just wouldn't work with "crafting-with-fluid-or-metallurgy", saying it wasn't a valid category. I still don't know why it wasn't working when I clearly used an official category name from the API, but your solution definitely looks better.

I am not the original author and I do not want to claim this is an official continuation. I mainly wanted to share the fix because other people seem to be running into the same 2.1 issue.

That's why I just published my changes here in the comments. I had no intentions of taking over a mod that I didn't make either, especially when I have zero lua experience :P Kudos to you for stepping up to the challenge!

a month ago
(updated a month ago)

@Estelyen be carefull though lots of bugs still, on its own it runs fine, but if you add addons for example pyanodon or bobs what ever i crashess still, iam working on it,, fixed it, the error is in py in it self

a month ago

There is nothing in the license that says it can't be updated and continued.
It's not restrictive

a month ago

There is nothing in the license that says it can't be updated and continued.
It's not restrictive

True, but giving current authors the chance to update their own mod is a thing.

i did a release on factorio mods page for 2.1 for now and if he comes back i will drop it :)

a day ago

AAAAAAND fixed the space age thing

see

https://mods.factorio.com/mod/deadlock-beltboxes-loaders-continued

I'm not a native English speaker. The following text was translated with ChatGPT.

Based on my testing, to make the recipes work with the Foundry in Space Age 2.1, the recipe categories need to be changed to:

t1, t2 -> {"crafting", "metallurgy"}
t3, t4 -> {"crafting-with-fluid", "metallurgy"}

I took a look at your GitHub repository and noticed that you've changed some of the original logic. I'm not very familiar with Lua, so would you mind updating it accordingly?

If you don't have the time, I could fork your GitHub repository and make the changes myself, but that feels a bit unnecessary.

a day ago
(updated a day ago)

Hello!

Thank you for the clarification. You mean allowing the loader and beltbox construction recipes themselves to be crafted in the Foundry, not allowing the Foundry to perform stacking and unstacking.

You are correct that the continuation currently uses Factorio 2.1’s new categories field, but still supplies only one category for each loader and beltbox recipe.

The intended categories would be:

T1 and T2:
{"crafting", "metallurgy"}

T3 and T4:
{"crafting-with-fluid", "metallurgy"}

The actual stacking and unstacking recipes would remain exclusive to the beltboxes.

I am leaving for holiday tomorrow, so I probably will not be able to work on this immediately. I expect to look at it once I am settled at my holiday location, most likely sometime next week.

You are also very welcome to fork the repository and open a pull request in the meantime. I can review and test it when I am available. Ideally, the change should remain compatible with third-party tiers that still provide only a single category.

Thank you for spotting this and for taking the time to test it!

a day ago

Hello!

Thank you for the clarification. You mean allowing the loader and beltbox construction recipes themselves to be crafted in the Foundry, not allowing the Foundry to perform stacking and unstacking.

You are correct that the continuation currently uses Factorio 2.1’s new categories field, but still supplies only one category for each loader and beltbox recipe.

The intended categories would be:

T1 and T2:
{"crafting", "metallurgy"}

T3 and T4:
{"crafting-with-fluid", "metallurgy"}

The actual stacking and unstacking recipes would remain exclusive to the beltboxes.

I am leaving for holiday tomorrow, so I probably will not be able to work on this immediately. I expect to look at it once I am settled at my holiday location, most likely sometime next week.

You are also very welcome to fork the repository and open a pull request in the meantime. I can review and test it when I am available. Ideally, the change should remain compatible with third-party tiers that still provide only a single category.

Thank you for spotting this and for taking the time to test it!

I forked your code, made the changes, and created a pull request. The update allows beltbox and loader recipes to be used in Foundry. I also did some basic local testing, and it worked without any issues.

a day ago

Thank you for the pull request! I read that you have already tested it successfully. I am going to test it in my local version as well before merging it.

I will specifically check all four tiers in both assembling machines and the Foundry, as well as startup without Space Age enabled.

Thanks again for putting this together so quickly!

a day ago

I didn't consider the case where Space Age is not available before. This issue has now been fixed and submit new pull request

a day ago

yea i saw that, i added your fix to the 7.0.7 test branch, and iam going to test it asap

New response