Page 4 of 17

Re: [MOD 0.12.1] Upgrade planner - v1.1.6

Posted: Sun Oct 25, 2015 7:21 pm
by Fluffything
just checked and I am on 0.12.13 i even reinstalled just to make sure, no success however. I also tried the mod all on its own in a new game as well just to make sure it wasnt a mod conflict I got the same error.
The only other thing i can think of that isnt normal is I forced automated construction using the lua command at the start of the game other than that I dont see why it wouldn't be working.

Going to grab my brother's save file too see if he gets the same error there as well. (EDIT) Just tested his file and I get the same error.

Re: [MOD 0.12.1] Upgrade planner - v1.1.6

Posted: Tue Oct 27, 2015 1:46 pm
by KrzysD
oh darn, you're right, i just made the control.lua without even checking if it worked, I only thought it did cause it didnt throw up any errors. sorry about that!

Here is a control.lua that works, BUT! I couldn't figure out line 384 because of scripting changes in 0.12.12
[quote]game.get_localised_entity_name is replaced by LuaEntityPrototype::localised_name read property. The same for technology and item.[/quote]
and because of that the items you put in the set list will not show up! but it does work!


Tbog on this forum just helped me out with this, replace line 384 with "ruleset_grid["upgrade-planner-" .. type .. "-" .. index].caption = game.item_prototypes[stack.name].localised_name" no quotes
The Correct control file has been attached :) Thank you Tbog!

Edit-See page 7 @ Wed Oct 28, 2015 7:42 am for correct LUA

Re: [MOD 0.12.1] Upgrade planner - v1.1.6

Posted: Wed Oct 28, 2015 10:03 am
by Fluffything
Thanks KrzysD for all your help.

New problem, i can open the tab at the top and seclect what i want to upgrade from and to I then save and close it but when i try to open it again i get this error:

Re: [MOD 0.12.1] Upgrade planner - v1.1.6

Posted: Wed Oct 28, 2015 1:35 pm
by KrzysD
Fluffything wrote:Thanks KrzysD for all your help.

New problem, i can open the tab at the top and seclect what i want to upgrade from and to I then save and close it but when i try to open it again i get this error:
I found that out myself last night, since I did the fix at work, but Tbog helped me again with line 46, but when I fix that line another line errors out at the GUI with the saving window, this goes WAY beyond my abilities of LUA scripting, and I don't want to have to keep bothering Tbog, I'll wait for kds71 to update it , but he's been inactive on here for a little while now :cry:

Re: [MOD 0.12.1] Upgrade planner - v1.1.6

Posted: Wed Oct 28, 2015 1:42 pm
by KrzysD
Fluffything wrote:Thanks KrzysD for all your help.

New problem, i can open the tab at the top and seclect what i want to upgrade from and to I then save and close it but when i try to open it again i get this error:
I'm at work this morning, but ill add the fix Tbog gave me, be my guinea pig and try the attached control.lua :lol:

all thanks should go to kds71 and Tbog :)

Re: [MOD 0.12.1] Upgrade planner - v1.1.6

Posted: Wed Oct 28, 2015 3:34 pm
by Fluffything
KrzysD i think your selling yourself short :), it works perfectly now thank you for all your help. i'll be sure to pester you more if i find another bug ^^

Re: [MOD 0.12.1] Upgrade planner - v1.1.6

Posted: Sun Nov 01, 2015 1:42 am
by kds71
Sorry for the delay, I have been busy with other stuff. I just uploaded v1.1.7 which is compatible with Factorio 0.12.16. Thanks for your patience.

Re: [MOD 0.12.16] Upgrade planner - v1.1.7

Posted: Mon Nov 09, 2015 8:52 pm
by azakir nalda
good day,

i am hosting a small server for a group of players but they have run into a issue using the upgrade planner.
Everything was fine at first but just recently whenever someone tries to use the upgrade planner blueprint the server crashes with the following report

Code: Select all

Error while running the event handler: __upgrade-planner__/control.lua:553: attempt to index field 'cursor_stack' (a nil value)
we tried to fix the issue ourselves by running through the code to find the issue but it returned no results.

extra info:
  • Running headless factorio server v0.12.16
    Running mod version 1.1.7
    9 players on the server
    No matter which player tries to use the blueprint it kicks out and crashes
Hopefully you can help us out.

Re: [MOD 0.12.16] Upgrade planner - v1.1.7

Posted: Mon Nov 09, 2015 9:58 pm
by DaveMcW
That bug happens when the mod tries to loop through an unsorted inventory.

Re: [MOD 0.12.16] Upgrade planner - v1.1.7

Posted: Mon Nov 09, 2015 10:12 pm
by azakir nalda
DaveMcW wrote:That bug happens when the mod tries to loop through an unsorted inventory.
how could this be fixed easily so i can communicate it to the players?

Re: [MOD 0.12.16] Upgrade planner - v1.1.7

Posted: Fri Dec 18, 2015 8:42 pm
by FryLad
Quick question (Kinda stupid)

Does this mod work with 12.20?

if not, how do I downgrade the version to one that works?

Re: [MOD 0.12.16] Upgrade planner - v1.1.7

Posted: Sat Dec 19, 2015 10:58 am
by kds71
FryLad wrote:Quick question (Kinda stupid)

Does this mod work with 12.20?

if not, how do I downgrade the version to one that works?
I'm using Factorio 0.12.20 with this mod and everything is working fine.

Re: [MOD 0.12.16] Upgrade planner - v1.1.7

Posted: Fri Jan 08, 2016 10:53 am
by R3vo
kds71 wrote:
FryLad wrote:Quick question (Kinda stupid)

Does this mod work with 12.20?

if not, how do I downgrade the version to one that works?
I'm using Factorio 0.12.20 with this mod and everything is working fine.
Doesn't work for me with the latest version 0.12.20, I am getting an error message as soon as I click on the "upgrade planner" button.
Image

Re: [MOD 0.12.16] Upgrade planner - v1.1.7

Posted: Mon Jan 18, 2016 6:26 pm
by kiba
12.21.

Same error as what R3vo got.

Re: [MOD 0.12.16] Upgrade planner - v1.1.9

Posted: Sat Jan 23, 2016 10:20 am
by kds71
Are you using any other mods? I'm playing Factorio 0.12.21 and everything is fine. It was ok with 0.12.20 as well.

Edit: I just uploaded v1.1.8 of this mod, it contains a fix for potential conflicts with other mods that add a custom deconstruction planner.

Edit 2: Looks like I forgot to remove debug message before uploading v1.1.8 :( It is fixed now in v1.1.9, sorry about that.

Re: [MOD 0.12.16] Upgrade planner - v1.1.9

Posted: Tue Mar 22, 2016 6:21 am
by sodyaler
Just a question. Is there any way to get the bots to replace belts without them having to empty whats on the belt first? Just like how it's done when manually upgrading belts.

Re: [MOD 0.12.16] Upgrade planner - v1.1.9

Posted: Fri Mar 25, 2016 1:41 pm
by malecord
Woah. nu player here. I just upgraded my first belt and I it was such a pain that I immediately googled for a mod to automate the stuff. I'm gonna try it later.

I'm surprised the devs did not integrate this in the base game yet. :D

Re: [MOD 0.12.16] Upgrade planner - v1.1.9

Posted: Tue Mar 29, 2016 1:50 pm
by kds71
sodyaler wrote:Just a question. Is there any way to get the bots to replace belts without them having to empty whats on the belt first? Just like how it's done when manually upgrading belts.
Nope, bots must deconstruct a belt that is being replaced first, and before deconstructing they have to empty it.

Re: [MOD 0.12.16] Upgrade planner - v1.1.9

Posted: Wed Mar 30, 2016 4:13 pm
by Yarlin
Does this mod add upgrades from other mods or only vanilla?

Re: [MOD 0.12.16] Upgrade planner - v1.1.9

Posted: Wed Mar 30, 2016 5:54 pm
by Thomasnotused
Yarlin wrote:Does this mod add upgrades from other mods or only vanilla?
I'm using it with Bob's Mods and it works as intended.