Re: [MOD 0.16.x] Deadlock's Stacking Beltbox (& Compact Loaders)
Posted: Tue May 08, 2018 3:33 pm
miss angel catalist(mineral, cristal, hybrid) and slag for compresed recipe
www.factorio.com
https://forums.factorio.com/
Third party mod items are not directly supported, see the first post for add-ons for other mods and the FAQ.ShinoHarvest wrote:miss angel catalist(mineral, cristal, hybrid) and slag for compresed recipe
That gave me a chuckle, if you are at the point of the game that you are using those belts then you do not need stacked resources, having the loader however is handy and compact loaders already has a tier 0 loader.There is a request on the mod portal to add a tier 0 beltbox
ShinoHarvest wrote:miss angel catalist(mineral, cristal, hybrid) and slag for compresed recipe
Thanks. Blender, TexturePacker, PNGGauntlet and a 16 year old version of Photoshop.Sigma1 wrote:The graphics are real nice! I'm just wondering how you made the textures?
That's right, the way DSB is set up, it expects to be working with prototypes of type "item". The things that are throwing errors for you are all non-items. Science packs are "tools" and ammo is "ammo", etc.Fuchsi_II wrote:I am trying to create an addon for DSB and DCM that adds support for more vanilla items.
But it works only with some items.
can some one help me. I guess it works correctly only with items with the prototype name item.
Code: Select all
--log("ERROR: DSB asked to use icon_size that is not 32, 64 or 128 ("..item-name..")")
Code: Select all
if icon_size and (icon_size ~= 32 and icon_size ~= 64 and icon_size ~= 128) then
log("ERROR: DSB asked to use icon_size that is not 32, 64 or 128 ("..item_name..")")
--return
icon_size = 32
end
Code: Select all
1.415 Script @__DeadlockStacking__/prototypes/shared.lua:229: ERROR: DSB asked to use icon_size that is not 32, 64 or 128 (raw-wood)
1.415 Script @__DeadlockStacking__/prototypes/shared.lua:229: ERROR: DSB asked to use icon_size that is not 32, 64 or 128 (iron-ore)
1.415 Script @__DeadlockStacking__/prototypes/shared.lua:229: ERROR: DSB asked to use icon_size that is not 32, 64 or 128 (copper-ore)
1.415 Script @__DeadlockStacking__/prototypes/shared.lua:229: ERROR: DSB asked to use icon_size that is not 32, 64 or 128 (stone)
1.415 Script @__DeadlockStacking__/prototypes/shared.lua:229: ERROR: DSB asked to use icon_size that is not 32, 64 or 128 (coal)
1.416 Script @__DeadlockStacking__/prototypes/shared.lua:229: ERROR: DSB asked to use icon_size that is not 32, 64 or 128 (iron-plate)
1.416 Script @__DeadlockStacking__/prototypes/shared.lua:229: ERROR: DSB asked to use icon_size that is not 32, 64 or 128 (copper-plate)
1.416 Script @__DeadlockStacking__/prototypes/shared.lua:229: ERROR: DSB asked to use icon_size that is not 32, 64 or 128 (steel-plate)
1.416 Script @__DeadlockStacking__/prototypes/shared.lua:229: ERROR: DSB asked to use icon_size that is not 32, 64 or 128 (stone-brick)
1.416 Script @__DeadlockStacking__/prototypes/shared.lua:229: ERROR: DSB asked to use icon_size that is not 32, 64 or 128 (copper-cable)
1.416 Script @__DeadlockStacking__/prototypes/shared.lua:229: ERROR: DSB asked to use icon_size that is not 32, 64 or 128 (iron-gear-wheel)
1.416 Script @__DeadlockStacking__/prototypes/shared.lua:229: ERROR: DSB asked to use icon_size that is not 32, 64 or 128 (iron-stick)
1.416 Script @__DeadlockStacking__/prototypes/shared.lua:229: ERROR: DSB asked to use icon_size that is not 32, 64 or 128 (sulfur)
1.416 Script @__DeadlockStacking__/prototypes/shared.lua:229: ERROR: DSB asked to use icon_size that is not 32, 64 or 128 (plastic-bar)
1.416 Script @__DeadlockStacking__/prototypes/shared.lua:229: ERROR: DSB asked to use icon_size that is not 32, 64 or 128 (solid-fuel)
1.416 Script @__DeadlockStacking__/prototypes/shared.lua:229: ERROR: DSB asked to use icon_size that is not 32, 64 or 128 (electronic-circuit)
1.416 Script @__DeadlockStacking__/prototypes/shared.lua:229: ERROR: DSB asked to use icon_size that is not 32, 64 or 128 (advanced-circuit)
1.416 Script @__DeadlockStacking__/prototypes/shared.lua:229: ERROR: DSB asked to use icon_size that is not 32, 64 or 128 (processing-unit)
1.416 Script @__DeadlockStacking__/prototypes/shared.lua:229: ERROR: DSB asked to use icon_size that is not 32, 64 or 128 (battery)
1.416 Script @__DeadlockStacking__/prototypes/shared.lua:229: ERROR: DSB asked to use icon_size that is not 32, 64 or 128 (uranium-ore)
1.416 Script @__DeadlockStacking__/prototypes/shared.lua:229: ERROR: DSB asked to use icon_size that is not 32, 64 or 128 (uranium-235)
1.416 Script @__DeadlockStacking__/prototypes/shared.lua:229: ERROR: DSB asked to use icon_size that is not 32, 64 or 128 (uranium-238)
There is indeed a typo on that line with the variable name, thanks for the report.Villfuk02 wrote:when fixed, it can finally do wat is it supposed to and I can read the log:
It errors with every single stackable item. BUT WHY???
My mod doesn't change anything, so why is it erroring like crazy with my mod?
Thanks. The problem is about 95% on my end and 5% on yours. Internally, DSB uses the same function to generate stacked vanilla items as it does when other mods call for their stuff be stacked (with or without a specific icon size). For vanilla stuff, it is supposed to be called without specifying an icon size (which it then sets to 32 as a default), but a derp on my end still has an old local variable (c) specified in the call, and that local c is no longer initialised, which worked fine for the last couple of months as long as nothing else was initialising c (i.e. it was nil). Meanwhile, your mod assigns values to c as a global variable (e.g. in your item.lua where it's used in a for loop) and because CustomModules runs before DSB, that final value of c (probably 1 or something) was being mistakenly passed along to the vanilla stacks generation.Villfuk02 wrote:this is the mod: https://mods.factorio.com/mod/CustomModules
and i think all versions will cause this issue, but all except the last one have proven to be somewhat buggy or incompatible, so work with the last one (0.16.1)