Page 1 of 1

[0.12.x][Rseding91] Recipe change causes crash

Posted: Mon Aug 10, 2015 10:52 pm
by bobingabout
https://forums.factorio.com/forum/vie ... =60#p99688

This isn't the first report I've had of this issue. I don't have a savegame to post myself.

but the short end of it is... The recipe has completely changed (Different components, different output), from the old version of my mod, to the new version of my mod, and if you open an assembler with said recipe, the game crashs.

Re: [0.12.x] Recipe change causes crash

Posted: Mon Aug 10, 2015 11:47 pm
by Rseding91
Can you make an example save and mod to reproduce the crash?

Re: [0.12.x] Recipe change causes crash

Posted: Tue Aug 11, 2015 1:51 am
by SHiRKiT
I can try to explain how I got the crash, but this need testing to confirm:

- Install bobs electronic override (that's obsolete) and bob's metals and assembly
- Place a level 2 assembler (blue one) on the ground and select to produce the basic wooden circuit board (the one made from 3 wires and a wooden board)
- Save and exit the game
- Remove bob's electronic override and install bobs electronics
- Run the game and click the assembler

Needs testing, this is me speculating on prolly happened.

Re: [0.12.x] Recipe change causes crash

Posted: Tue Aug 11, 2015 7:29 pm
by bobingabout
SHiRKiT wrote:I can try to explain how I got the crash, but this need testing to confirm:

- Install bobs electronic override (that's obsolete) and bob's metals and assembly
- Place a level 2 assembler (blue one) on the ground and select to produce the basic wooden circuit board (the one made from 3 wires and a wooden board)
- Save and exit the game
- Remove bob's electronic override and install bobs electronics
- Run the game and click the assembler

Needs testing, this is me speculating on prolly happened.
That does sound about right.

Re: [0.12.x][Rseding91] Recipe change causes crash

Posted: Tue Aug 11, 2015 7:55 pm
by jorgenRe
Bob, have you included some way for it to check if you had that bobs electronic mod from earlier?
Because i think thats what you got to do(for a temporary fix). Since for me it sounds like the assemblers doesnt get to know that the recipe had changed and so it crashes because it cant find the items.

Basically i think its a matter of adding in an if statement for if it doesnt find what it needs to craft anymore in the game(if the needed items exist). Then reset the recipe(because you will most likely remove the assemblers after so it doesnt matter if it resets them)

Re: [0.12.x][Rseding91] Recipe change causes crash

Posted: Tue Aug 11, 2015 8:18 pm
by SHiRKiT
Just want to point out that the game insta crashes without a proper handling whatsoever, it just terminates like having an unhandled exception that explodes softwares.

Re: [0.12.x][Rseding91] Recipe change causes crash

Posted: Tue Aug 11, 2015 8:34 pm
by jorgenRe
SHiRKiT wrote:Just want to point out that the game insta crashes without a proper handling whatsoever, it just terminates like having an unhandled exception that explodes softwares.
Do you have the crash report found in the factorio folder just before the mods folder:
\AppData\Roaming\Factorio\mods
because the crash report may solve this issue once and for all(or atleast point to the bad thing ;)!)

Re: [0.12.x][Rseding91] Recipe change causes crash

Posted: Wed Aug 12, 2015 8:16 pm
by Rseding91
I tried every combination of recipe manipulation between save/load that I could think of and I wasn't able to get it to crash.

Can you please create a save + mod set that reproduces the crash and upload it here?

Re: [0.12.x][Rseding91] Recipe change causes crash

Posted: Thu Aug 13, 2015 2:53 pm
by bobingabout
Sorry for the delay, I had to actually start a new game to do this, so I was putting it off.

Save: https://www.dropbox.com/s/adi39f68rfgwj ... e.zip?dl=0
Mods: https://www.dropbox.com/s/6g9uzx5tbih2b ... s.rar?dl=0

to cause the crash simply open the assembly machine you're standing next to.

This is the developement set of mods, but the release version should give same results.

If you want to load the game as it was before, replace the electronics mod with this one: http://bobingabout.gamemod.net/Factorio ... 0.12.0.zip
log

Re: [0.12.x][Rseding91] Recipe change causes crash

Posted: Sat Aug 15, 2015 8:08 pm
by Rseding91
Thanks for the report. This is now solved for 0.12.5.