[MOD 0.13] EfficienSee : optimise your factory !

Topics and discussion about specific mods
User avatar
binbinhfr
Smart Inserter
Smart Inserter
Posts: 1524
Joined: Sat Feb 27, 2016 7:37 pm
Contact:

Re: [MOD 0.13] EfficienSee : optimise your factory !

Post by binbinhfr »

TimTravel wrote:What does nb stand for in the first post?
nb = number ;-)
My mods on the Factorio Mod Portal :geek:
Gaist
Burner Inserter
Burner Inserter
Posts: 15
Joined: Mon Aug 13, 2018 8:38 pm
Contact:

Re: [MOD 0.13] EfficienSee : optimise your factory !

Post by Gaist »

Awesome mod, but regrettably seem to keep stumbling into a crash when bringing up the GUI on certain things!

Error while running event
EfficienSee::effic_hotkey (ID 185)
_ _EfficienSee_ _/control,lua:1348: attempt to compare number with nil

Image

Any ideas on a fix by any chance? Using an AngelBob setup.

Edit: We were able to resolve this error by adjusting the function at 1348 from the error message to this:

Code: Select all

local function build_obj_line(gui,uplist_object,n)
	local amount = uplist_object.amount
	local object = uplist_object.object
	local name = object.name
	if amount ~= nil then	
		if amount > 0 then -- product
			gui.add({type = "sprite-button", sprite = "sprite_prod_effic", tooltip = {"effic-gui-prod-tt"}, style = "sprite_ingr_effic_style"})
		else -- ingredient
			gui.add({type = "sprite-button", sprite = "sprite_ingr_effic", tooltip = {"effic-gui-ingr-tt"}, style = "sprite_ingr_effic_style"})
			amount = -amount
		end
	end
	if amount ~= nil then	
		gui.add({type = "label", caption = amount .. "x", style = "label_effic_style"})
	end
	uplist_object.chk_sel = nil

	local gui2 = gui.add({type = "sprite-button", name = "but_effic_obj_" .. string.format("%2d",n) .. name, tooltip = {"effic-gui-open-object"}, style = "sprite_obj_effic_style"})
	if uplist_object.is_item then
		gui2.sprite = "item/" .. name
	else
		gui2.sprite = "fluid/" .. name
	end
	uplist_object.lbl_name = gui.add({type = "label", caption = object.localised_name, style = "label_effic_style"})			
	uplist_object.lbl_dp = gui.add({type = "label", style = "label_numg_effic_style"})
	uplist_object.lbl_dpt = gui.add({type = "label", style = "label_numw_effic_style"})
	uplist_object.lbl_dc = gui.add({type = "label", style = "label_numg_effic_style"})
	uplist_object.lbl_dct = gui.add({type = "label", style = "label_numw_effic_style"})
	uplist_object.lbl_ds = gui.add({type = "label", style = "label_numg_effic_style"})
	uplist_object.lbl_dst = gui.add({type = "label", style = "label_numw_effic_style"})

	uplist_object.lbl_norm = gui.add({type = "label", style = "label_numw_effic_style"})
	uplist_object.lbl_nbingr = gui.add({type = "label", caption = object.nb_recipes, style = "label_effic_style"})
end
nuhll
Filter Inserter
Filter Inserter
Posts: 946
Joined: Mon Apr 04, 2016 9:48 pm
Contact:

Re: [MOD 0.13] EfficienSee : optimise your factory !

Post by nuhll »

hmm. such a fuggin great idea for a mod.

I could really use it.

but i dont see anything on the map view... also i have selected iron plate and cant come back to see ALL items...? any ideas? Is there a other mod as this?
deltaone
Manual Inserter
Manual Inserter
Posts: 2
Joined: Thu Jun 01, 2017 5:14 am
Contact:

Re: [MOD 0.13] EfficienSee : optimise your factory !

Post by deltaone »

0.17 fixes - worked on first look
Attachments
EfficienSee_1.0.54.zip
(106.96 KiB) Downloaded 136 times
Post Reply

Return to “Mods”