Blueprint lab mod crashes my game if I try to exit

Looking for a mod? Have a review on a mod you'd like to share?
Post Reply
Vivaloz
Burner Inserter
Burner Inserter
Posts: 12
Joined: Fri Feb 25, 2022 12:54 pm
Contact:

Blueprint lab mod crashes my game if I try to exit

Post by Vivaloz »

I am talking about this (https://mods.factorio.com/mod/BlueprintLab_design) mod.

When exiting the lab, factorio crashes and this error message appears:

The mod The Blueprint Designer Lab (1.0.3) caused a non-recoverable error.
Please report this error to the mod author.

Error while running event BlueprintLab_design::on_gui_click (ID 1)
LuaEntity API call when LuaEntity was invalid.
stack traceback:
[C]: in function 'index'
__BlueprintLab_design/scripts/logic.lua:88: in function 'ToTheWorld'
BlueprintLab_design/scripts/logic.lua:9: in function 'OnLabButton'
BlueprintLab_design/scripts/gui.lua:46: in function <BlueprintLab_design/scripts/gui.lua:44>

This happened to me for no reason at all. Was designing a blueprint in the morning and when exiting in the evening now I can't. I've tried restarting, removing the mod and loading autosaves but nothing works. Please help, I can't continue playing anymore since I am stuck in the lab!!

Perhaps someone here knows a solution?? The factory must grow but I can't !!

FuryoftheStars
Smart Inserter
Smart Inserter
Posts: 2530
Joined: Tue Apr 25, 2017 2:01 pm
Contact:

Re: Blueprint lab mod crashes my game if I try to exit

Post by FuryoftheStars »

Try this:
0) You may need to uninstall the mod, I’m not sure.
1) Open the console
2) Use the teleport command, adding in the surface data.

So I think the command will look like this:

Code: Select all

/c game.player.teleport({0,0}, game.surfaces[1])
That is untested (not near a computer), but I think that should teleport you to the original spawn point.
My Mods: Classic Factorio Basic Oil Processing | Sulfur Production from Oils | Wood to Oil Processing | Infinite Resources - Normal Yield | Tree Saplings (Redux) | Alien Biomes Tweaked | Restrictions on Artificial Tiles

Vivaloz
Burner Inserter
Burner Inserter
Posts: 12
Joined: Fri Feb 25, 2022 12:54 pm
Contact:

Re: Blueprint lab mod crashes my game if I try to exit

Post by Vivaloz »

I mean, the command works. But the game still thinks I'm in the lab, so the only difference here is that I'm still stuck in the lab and I see my own base. I removed the mod beforehand, but I am still in the lab. WTF is this mod ?? I see the trains moving and the world working but I can't interact with the menu??

Vivaloz
Burner Inserter
Burner Inserter
Posts: 12
Joined: Fri Feb 25, 2022 12:54 pm
Contact:

Re: Blueprint lab mod crashes my game if I try to exit

Post by Vivaloz »


Vivaloz
Burner Inserter
Burner Inserter
Posts: 12
Joined: Fri Feb 25, 2022 12:54 pm
Contact:

Re: Blueprint lab mod crashes my game if I try to exit

Post by Vivaloz »

teleporting to spawn has created the weirdest glitch in factorio I've ever seen

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

Re: Blueprint lab mod crashes my game if I try to exit

Post by DaveMcW »

Code: Select all

/c game.player.create_character()

Code: Select all

/c game.player.force = "player"

Vivaloz
Burner Inserter
Burner Inserter
Posts: 12
Joined: Fri Feb 25, 2022 12:54 pm
Contact:

Re: Blueprint lab mod crashes my game if I try to exit

Post by Vivaloz »

Thanks for helping. I've been looking at the code of this mod and I think these operations should be performed:

Code: Select all

player.cheat_mode
should be false.
The recipe

Code: Select all

"bpl-electric-energy-interface"
should be removed.
The recipe

Code: Select all

"bpl-electric-energy-interface"
should be removed.
The recipe

Code: Select all

"bpl-electric-energy-interface"
should be removed.

Vivaloz
Burner Inserter
Burner Inserter
Posts: 12
Joined: Fri Feb 25, 2022 12:54 pm
Contact:

Re: Blueprint lab mod crashes my game if I try to exit

Post by Vivaloz »

Thanks for helping. I've been looking at the code of this mod and I think these operations should be performed:

- player.cheat_mode - should be false.
The recipe - "bpl-electric-energy-interface" - should be removed.
The recipe - "bpl-infinity-chest" - should be removed.
The recipe - "bpl-infinity-pipe" - should be removed.
The recipe - "bpl-loader" - should be removed.
The recipe - "bpl-fast-loader" - should be removed.
The recipe - "bpl-express-loader" - should be removed.
The player should be teleported to - {0, 0} -.
The controls should change to - {type = defines.controllers.character, character = playerData.character} -.
The inventory of the player and personal logistics should be returned.
The player should be destructible.
The ownership of all items in the world should be returned.

How do I perform this operations in the console? How will I return my data saved by the mod?

Vivaloz
Burner Inserter
Burner Inserter
Posts: 12
Joined: Fri Feb 25, 2022 12:54 pm
Contact:

Re: Blueprint lab mod crashes my game if I try to exit

Post by Vivaloz »

I've been able to perform all of these commands, luckily, but my inventory and personal logistics have disappeared. Any idea how I can return these?

FuryoftheStars
Smart Inserter
Smart Inserter
Posts: 2530
Joined: Tue Apr 25, 2017 2:01 pm
Contact:

Re: Blueprint lab mod crashes my game if I try to exit

Post by FuryoftheStars »

Vivaloz wrote:
Fri May 27, 2022 8:29 am
I've been able to perform all of these commands, luckily, but my inventory and personal logistics have disappeared. Any idea how I can return these?
Hmm, makes me think that mod separated you from your character avatar and then put you in the BP lab surface. You’d need to figure out where your old character is at (wherever you were when you engaged it last? I don’t know enough about this mod as I’ve never used it) and then see if you can either transfer the inventory or simply reattach yourself to it.
My Mods: Classic Factorio Basic Oil Processing | Sulfur Production from Oils | Wood to Oil Processing | Infinite Resources - Normal Yield | Tree Saplings (Redux) | Alien Biomes Tweaked | Restrictions on Artificial Tiles

Post Reply

Return to “Questions, reviews and ratings”