Page 1 of 1

Error loading saves with F-mod

Posted: Tue Sep 02, 2014 1:14 pm
by Vulcan
e.png
e.png (41.09 KiB) Viewed 4838 times
Does anybody know what the error message shown in the attchment means, particularly what 239 means. This is the first time this error has occurred and i have not modified the control.lua, so I am confused why it has appeared.
Thanks,
Vulcan

Re: Error loading saves with F-mod

Posted: Tue Sep 02, 2014 4:23 pm
by OBAMA MCLAMA
Try posting your control.lua to www.pastebin.com so we can see whats up.

Re: Error loading saves with F-mod

Posted: Thu Oct 09, 2014 4:12 pm
by Vulcan

Code: Select all

require "util"
require "defines"	
	if event.createdentity.name == "salt-extractor" then					--[[Salt extractor build]]--
		if glob.saltextractors==nil then
			glob.saltextractors={}
			glob.saltextractorscount=0
		end
		glob.saltextractorscount=glob.saltextractorscount+1
		glob.saltextractors[glob.saltextractorscount]={}
		glob.saltextractors[glob.saltextractorscount].entity=event.createdentity

	end
	if glob.saltextractors~=nil and event.tick%180==0 then				--[[Salt extractor]]--
		for i,_ in pairs(glob.saltextractors) do
			if glob.saltextractors[i].entity.valid then
				local pumps=game.findentities{{glob.saltextractors[i].entity.position.x-2,glob.saltextractors[i].entity.position.y-2,},{glob.saltextractors[i].entity.position.x+2,glob.saltextractors[i].entity.position.y+2}}
				pumpnear=false
				for y,_ in pairs(pumps) do
					if pumps[y].name=="pipe-to-ground" then
						liquid=pumps[y].getliquid()
						if liquid ~= nil and liquid.amount~=0 then
							pumpnear=true
							break
						end
					end
				end
				if pumpnear==true then
					glob.saltextractors[i].entity.insert{name="salt",count=1}
				end
			else
				table.remove(glob.saltextractors,i)
			end
		end
	end