[MOD 0.16] Upgrade planner

Topics and discussion about specific mods
Fluffything
Manual Inserter
Manual Inserter
Posts: 4
Joined: Sun Oct 25, 2015 5:11 pm
Contact:

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

Post 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.

KrzysD
Long Handed Inserter
Long Handed Inserter
Posts: 61
Joined: Mon Oct 27, 2014 6:49 pm
Contact:

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

Post 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
Last edited by KrzysD on Fri Oct 30, 2015 1:24 pm, edited 1 time in total.

Fluffything
Manual Inserter
Manual Inserter
Posts: 4
Joined: Sun Oct 25, 2015 5:11 pm
Contact:

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

Post 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:
Attachments
Factorio Error pt2.png
Factorio Error pt2.png (42.78 KiB) Viewed 10246 times

KrzysD
Long Handed Inserter
Long Handed Inserter
Posts: 61
Joined: Mon Oct 27, 2014 6:49 pm
Contact:

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

Post 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:

KrzysD
Long Handed Inserter
Long Handed Inserter
Posts: 61
Joined: Mon Oct 27, 2014 6:49 pm
Contact:

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

Post 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 :)
Attachments
control.lua
Confirmed working, by Fluffything and KrzysD
(20.61 KiB) Downloaded 611 times
Last edited by KrzysD on Fri Oct 30, 2015 1:25 pm, edited 1 time in total.

Fluffything
Manual Inserter
Manual Inserter
Posts: 4
Joined: Sun Oct 25, 2015 5:11 pm
Contact:

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

Post 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 ^^

kds71
Long Handed Inserter
Long Handed Inserter
Posts: 91
Joined: Fri Mar 06, 2015 12:27 pm
Contact:

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

Post 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.

azakir nalda
Burner Inserter
Burner Inserter
Posts: 12
Joined: Mon Aug 10, 2015 4:18 pm
Contact:

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

Post 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.

User avatar
DaveMcW
Smart Inserter
Smart Inserter
Posts: 3700
Joined: Tue May 13, 2014 11:06 am
Contact:

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

Post by DaveMcW »

That bug happens when the mod tries to loop through an unsorted inventory.

azakir nalda
Burner Inserter
Burner Inserter
Posts: 12
Joined: Mon Aug 10, 2015 4:18 pm
Contact:

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

Post 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?

FryLad
Manual Inserter
Manual Inserter
Posts: 1
Joined: Fri Dec 18, 2015 8:40 pm
Contact:

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

Post 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?

kds71
Long Handed Inserter
Long Handed Inserter
Posts: 91
Joined: Fri Mar 06, 2015 12:27 pm
Contact:

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

Post 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.

R3vo
Inserter
Inserter
Posts: 35
Joined: Thu Sep 03, 2015 5:38 pm
Contact:

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

Post 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

kiba
Filter Inserter
Filter Inserter
Posts: 344
Joined: Thu Jun 11, 2015 5:32 am
Contact:

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

Post by kiba »

12.21.

Same error as what R3vo got.

kds71
Long Handed Inserter
Long Handed Inserter
Posts: 91
Joined: Fri Mar 06, 2015 12:27 pm
Contact:

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

Post 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.

sodyaler
Manual Inserter
Manual Inserter
Posts: 4
Joined: Sun May 18, 2014 4:27 am
Contact:

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

Post 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.

malecord
Fast Inserter
Fast Inserter
Posts: 134
Joined: Wed Mar 23, 2016 11:23 am
Contact:

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

Post 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

kds71
Long Handed Inserter
Long Handed Inserter
Posts: 91
Joined: Fri Mar 06, 2015 12:27 pm
Contact:

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

Post 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.

Yarlin
Manual Inserter
Manual Inserter
Posts: 1
Joined: Wed Mar 30, 2016 4:08 pm
Contact:

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

Post by Yarlin »

Does this mod add upgrades from other mods or only vanilla?

User avatar
Thomasnotused
Filter Inserter
Filter Inserter
Posts: 259
Joined: Thu Jan 29, 2015 9:58 pm
Contact:

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

Post 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.
I have no idea what I'm doing.

Post Reply

Return to “Mods”