[MOD 0.12.x] Easy Belt Layer

Topics and discussion about specific mods
Rahbek
Inserter
Inserter
Posts: 37
Joined: Tue Dec 22, 2015 5:47 pm
Contact:

Re: [MOD 0.12.x] Easy Belt Layer

Post by Rahbek »

tleviathan wrote:Error
Factorio 0.12.16 17230 x64
Capture.JPG
__easybel__/control.lua:5: attempt to index global 'game' (a nil value)

I tried replacing game.on_ with script.on_ but no change. That's about all I can do i lua/factorio modding :|

any news on that by chance? :)
Schmendrick
Fast Inserter
Fast Inserter
Posts: 223
Joined: Wed Apr 30, 2014 11:17 pm
Contact:

Re: [MOD 0.12.x] Easy Belt Layer

Post by Schmendrick »

I'm still alive, I swear (updated).
Like my mods? Check out another! Or see older, pre-0.12.0 mods.
Rahbek
Inserter
Inserter
Posts: 37
Joined: Tue Dec 22, 2015 5:47 pm
Contact:

Re: [MOD 0.12.x] Easy Belt Layer

Post by Rahbek »

Schmendrick wrote:I'm still alive, I swear (updated).

Yay! And happy new years!
judos
Filter Inserter
Filter Inserter
Posts: 270
Joined: Mon Dec 08, 2014 11:17 am
Contact:

Re: [MOD 0.12.x] Easy Belt Layer

Post by judos »

Hey there,

This is a great mod :D

However I just found an error while playing:
Error while running the event handler: __easybelt__/control.lua:71: LuaItemStack API call when LuaItemStack was invalid.
This was in the old 0.1.0 version, so the equivalent in the new version would be line 88 with this code:

Code: Select all

local item, pos = p.cursor_stack
if item then item=item.name else item=toplace[e.name] end
I propose to add something like:

Code: Select all

if item and not item.valid then item=nil end
Hope that helps everyone ;)
Neomore
Inserter
Inserter
Posts: 47
Joined: Sun Jun 21, 2015 5:42 pm
Contact:

Re: [MOD 0.12.x] Easy Belt Layer

Post by Neomore »

For anyone looking for a version of this mod for Factorio 0.13.X, I have added this mod to a mod I update, now titled Advanced Logistics.

This mod adds new types of belts and pipes that go farther distances (30 and 50), as well as modifying the base underground belts to have a max distance of 10 instead of 5.

You can download the mod from the mod portal at the following link: https://mods.factorio.com/mods/Neomore/ ... -Logistics
For those of you that want only the easy belt layer mod, there is a version of this on the Advanced Factorio mod page, which you can reach by the link in my signature.
Author of Advanced Factorio, a set of mods that add small bits of Advanced functionality to your gameplay

Check it out here: https://mods.factorio.com/user/neomore
Post Reply

Return to “Mods”