Page 14 of 15

Re: [MOD 0.12.x] Autofill

Posted: Thu Dec 21, 2017 3:21 am
by Nexela
I will have some time to fix this soon, in the meantime it should work if you remove autofill, save the game, then re-add autofill

Re: [MOD 0.12.x] Autofill

Posted: Mon Dec 25, 2017 12:04 am
by nuhll
Sadly this is no longer working?!

10.172 Error ServerMultiplayerManager.cpp:95: MultiplayerManager failed: "Error while running on_init: __autofill__/stdlib/event/event.lua:163: __autofill__/autofill/sets.lua:73: attempt to index field 'forces' (a nil value)"

Factorio 0.16.7 (thats the error on the server)

Re: [MOD 0.12.x] Autofill

Posted: Mon Dec 25, 2017 6:31 am
by Nexela
I have been busy at work still hoping to get around to fixing this very soon. Sorry for the wait!

Re: [MOD 0.12.x] Autofill

Posted: Mon Dec 25, 2017 7:05 pm
by nuhll
AH okay, np. I just wondered bc it said it was updated for .16 but didnt work.

Re: [MOD 0.12.x] Autofill

Posted: Wed Jan 03, 2018 4:03 am
by gtmattz
Nexela wrote:I will have some time to fix this soon, in the meantime it should work if you remove autofill, save the game, then re-add autofill
Just to let you know, this does not work.

Love ths mod by the way, and look forward to being able to use it again :D, but I know how RL obligations can be, so will be patient.

Re: [MOD 0.12.x] Autofill

Posted: Wed Jan 03, 2018 2:08 pm
by nuhll
Yeah, the error i got was when i first installed this mod. (after some long time)

But get error when the server starts. Then i removed it and later i tried again, same error.

Re: [MOD 0.12.x] Autofill

Posted: Thu Jan 04, 2018 3:04 am
by Nexela
I am making progress!!!! However my day off got cancelled so not a lot of progress.

If I can't get it fixed this weekend I will probably just port the last .15 version over (instead of the re-write) since it should be fairly trivial

Re: [MOD 0.12.x] Autofill

Posted: Thu Jan 11, 2018 12:59 am
by Sparkysam
Nexela wrote:I am making progress!!!! However my day off got cancelled so not a lot of progress.

If I can't get it fixed this weekend I will probably just port the last .15 version over (instead of the re-write) since it should be fairly trivial
Any new update on when you might update the mod?? :)

Re: [MOD 0.12.x] Autofill

Posted: Mon Jan 22, 2018 9:44 am
by neoc
Can you replace the uses of player.get_inventory with player.get_quickbar and player.get_inventory so the mod works as intended in god mode as well?

Context is this thread: viewtopic.php?p=336804#p336804

Re: [MOD 0.12.x] Autofill

Posted: Thu Jan 25, 2018 12:36 am
by middlecloud
Hi.

I tried to pause Autofill (using Control + ALT + P) and doesn't work any suggestions?

Ty

Re: [MOD 0.12.x] Autofill

Posted: Thu Jan 25, 2018 3:49 am
by Nexela
Lots of things are currently still broken and on my too fix list as soon as time permits!

Re: [MOD 0.12.x] Autofill

Posted: Mon Feb 05, 2018 1:30 pm
by wvlad
Hi, I can't install this mod, the error says that in on_init your sets.lua attempts to index global.forces which is initialized only later in Force.Init() but moving Force.Init up calls "additional_data" method which needs sets.

It's not a migration.

Re: [MOD 0.12.x] Autofill

Posted: Tue Feb 06, 2018 12:12 am
by Nexela
It is a lack of time / still broken kind of thing.

Re: [MOD 0.12.x] Autofill

Posted: Tue Feb 06, 2018 1:27 pm
by wvlad
I somehow managed to fix it, I think the sequence is commenting those on_load lines in sets.lua, loading save where mod was not previously installed (now works until save/load), then saving, disabling mod, loading, saving, uncommenting lines, enabling mod, loading (now works forever).

Re: [MOD 0.12.x] Autofill

Posted: Fri Feb 09, 2018 4:26 pm
by tassman
wvlad wrote:I somehow managed to fix it, I think the sequence is commenting those on_load lines in sets.lua, loading save where mod was not previously installed (now works until save/load), then saving, disabling mod, loading, saving, uncommenting lines, enabling mod, loading (now works forever).
Can't reproduce. I think I must wait for repair.

Re: [MOD 0.12.x] Autofill

Posted: Sat Feb 17, 2018 7:47 pm
by tassman
Any updates?

Re: [MOD 0.12.x] Autofill

Posted: Sun Feb 18, 2018 9:24 am
by eradicator
Bug report:

With my new mod Stationary Fusion Reactors i get an error printed to the game/console every time i place a reactor (electric-energy-interface) in the world (only the last line is repeated every time).

Code: Select all

  27.675 Script @__autofill__/stdlib/event/event.lua:160: __autofill__/autofill/sets.lua:73: attempt to index field 'forces' (a nil value)
  27.941 Script @__autofill__/stdlib/event/event.lua:160: __autofill__/changes.lua:34: bad argument #0 to 'log' (Wrong number of arguments.)
  27.942 Script @__autofill__/stdlib/event/event.lua:160: __autofill__/autofill/sets.lua:73: attempt to index field 'forces' (a nil value)
  29.840 Script @__autofill__/stdlib/event/event.lua:160: __autofill__/autofill/autofill.lua:51: attempt to index local 'pdata' (a nil value)

Re: [MOD 0.12.x] Autofill

Posted: Wed Feb 21, 2018 6:53 pm
by CptnPenguin
Hey Nexela, since the update might take a little more time, is there a fix I can do by myself? Since just re-installing the mod didn't work for me either!
If it's too complicated to explain to a layman, I will just be patient instead.

Re: [MOD 0.12.x] Autofill

Posted: Thu Feb 22, 2018 4:44 am
by Nexela
For a simple fix updating the .15 version to work in .16 might be the best bet. It should be fairly trivial... but don't quote me on that.

Re: [MOD 0.12.x] Autofill

Posted: Fri Feb 23, 2018 7:19 pm
by joerg29
I get this error with 1.16

__autofill__/autofill/sets.lua:51: attempt to index local 'pdata' (a nil value)