Error loading saves with F-mod

Place to post guides, observations, things related to modding that are not mods themselves.
Post Reply
Vulcan
Inserter
Inserter
Posts: 48
Joined: Sat Aug 02, 2014 12:34 pm
Contact:

Error loading saves with F-mod

Post by Vulcan »

e.png
e.png (41.09 KiB) Viewed 4631 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

OBAMA MCLAMA
Filter Inserter
Filter Inserter
Posts: 337
Joined: Fri May 30, 2014 4:23 am
Contact:

Re: Error loading saves with F-mod

Post by OBAMA MCLAMA »

Try posting your control.lua to www.pastebin.com so we can see whats up.
When i stream twitch i always answer questions and try to help, come visit me.

Vulcan
Inserter
Inserter
Posts: 48
Joined: Sat Aug 02, 2014 12:34 pm
Contact:

Re: Error loading saves with F-mod

Post 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

Post Reply

Return to “Modding discussion”