Skip to content

Commit

Permalink
Temp fixes for crashes when items are uninstalled
Browse files Browse the repository at this point in the history
  • Loading branch information
Nexela committed Jul 22, 2016
1 parent 603465a commit 39093bf
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 7 deletions.
6 changes: 3 additions & 3 deletions changelog.txt
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
CurrentAlpha
1.3.18
-Temporary work around to mod changes causing crash if the item no longer exists.
-Hotkey support, hover over an entity and CTRL-F to autofill
-Current known issues:
-Removing a mod which has a fuel item in the autofill table will cause crash on next autofill. /c remote.call("af","resetUser") might fix for now.
-Need better prioritization on ammo selection
-Hotkey Filling will fill trunk space if vehicle is full
-Bobs batteries load into tank 3 correctly, oops typo
-Added bobs metal mixer and chem mixer
-Angelrefining burner crusher
-Existing autofill users will have to run /c remote.call("af", "resetMod") to add in all of the changes. This will erase any sets you have manually added so use with caution.
-if you have any personal sets they will get removed every upgrade/mod change until I can add in better logic checking for sets!

1.3.17
-Combat Units Mod added to defaultsets
Expand Down
7 changes: 4 additions & 3 deletions control.lua
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ local order = {
--

script.on_configuration_changed(function()
initMod() --Should fail and only update fuels
initMod(true) --TODO needs to be changed to only update sets
end)

script.on_init(function()
Expand All @@ -57,7 +57,7 @@ script.on_event(defines.events.on_player_created, function(event)
if global.personalsets[username] == nil then
global.personalsets[username] = { active = true }
end
log("AutoFill: user ".. username .. " Created")
--log("AutoFill: user ".. username .. " Created")
end)

script.on_event("autofill-entity", function(event)
Expand Down Expand Up @@ -301,9 +301,10 @@ function initMod(reset)
end

global.has_init = true

log("Autofill: INIT - Reset all to default")
else
loader.updateFuelArrays(global.item_arrays)
log("AutoFill: Updated fuel arrays")
end
end

Expand Down
3 changes: 2 additions & 1 deletion info.json
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
{
"name": "autofill",
"version": "1.3.17",
"version": "1.3.18",
"factorio_version": "0.13",
"title": "Autofill",
"author": "rk84",
"contact": "www.factorioforums.com",
"homepage": "https://forums.factorio.com/viewtopic.php?f=92&t=1612",
"description": "Autofill inserts items (ammo,fuel,etc) inside entities when placing them in the world.",
"dependencies": ["base >= 0.13.0"],
"license": "MIT"
Expand Down

0 comments on commit 39093bf

Please sign in to comment.