Subsurface - build beneath your base!

by Natha

While everyone is looking up to space, other planets and the rest of the universe, there is a whole world buried directly underneath us...

Content
11 days ago
1.1 - 2.0
2.87K
Environment Mining

g Nonrecoverable error after deleting blueprint/clicking blueprint book

a month ago

I was clicking a blueprint book and put it in the trash from another mod, and got this error
The mod Subsurface - build beneath your base! (1.0.12) caused a non-recoverable error.
Please report this error to the mod author.

Error while running event Subsurface::on_player_cursor_stack_changed (ID 32)
Item is not blueprint.
stack traceback:
[C]: in function 'get_blueprint_entities'
Subsurface/scripts/elevators.lua:118: in function 'elevator_on_cursor_stack_changed'
Subsurface/control.lua:470: in function <Subsurface/control.lua:463>

30 days ago

I have the same issue

I ran into this too

30 days ago
(updated 30 days ago)

Will fix this soon, there's a lack of API support for books currently

22 days ago

Dear Natha,

I found a solution to this one:
The Mod "Blueprint Extensions (Kux Edition)" (https://mods.factorio.com/mod/Kux-BlueprintExtensions) includes a fix for this crash. If you install and activate it, all blueprint books can be picked up. So, you should be able to find the solution to this problem in Kux' code. Maybe give some credits to him. :)

Sincerely

Leon

22 days ago

I still have this issue after installing Kux-BlueprintExtensions, using Nilaus's base-in-a-book.

21 days ago

Dear alyssile,

I tested this with an updated version of Nilaus book (https://www.factorio.school/view/-NxbepJcCxyUl-6mabQi), the original one (https://factorioprints.com/view/-LI0gc-a-2_VLWR-tx1d) and another random large blueprint book (https://www.factorio.school/view/-OCxV8Rp19ZoVPHkwv4V).
Trying to import any of those books with this and the before mentioned "Blueprint Extension" mod active, lead to a crash. I then started Factorio unmodded and tried importing all three books, which worked just fine. I saved them in my blueprint library and restarted Factorio with all my mods active. After loading my save file, I opened my blueprint library and tried to use all three of them. All three could be used without any crashing. Therefore I conclude two things:
1) The mod "Blueprint Extensions (Kux Edition)" doesn't include a solution to prevent Factorio from crashing when importing a new blueprint books - only for handling already imported books.
2) You tried to import the blueprint book into a modded game.

Please try importing the book(s) in an unmodded game and save it/them in your blueprint library. Then restart Factorio with your mods active.
Can you use the blueprint book now?

Sincerely

Leon

19 days ago
(updated 19 days ago)

Dear @alyssile, dear @Natha,

after starting Factorio today and loading my modded save file, I got this error again, even though I had "Blueprint Extension" activated.
Therefore I took a closer look at the error message and wrote a quick and dirty fix, to get rid of this error - at least for the moment.
If you or anyone else is interested in it (I don't take any responsibility if blueprint books vanish or this fix breaks your game):
- Go to "%AppData%\Factorio\mods\" and open "Subsurface_1.0.12.zip"
- In the archive go to "\Subsurface_1.0.12\scripts\" and extract "elevators.lua"
- Open the extracted file and go to line 114, which should look like this:
if player.cursor_stack and player.cursor_stack.valid_for_read then
- Replace it with this one:
if player.cursor_stack and player.cursor_stack.valid_for_read and not player.cursor_stack.is_blueprint_book then
- Save the file and replace the one in your archive "Subsurface_1.0.12.zip" with your modified file
- Start Factorio and load a game with "Subsurface" active; pick up a blueprint book from your inventory

Kind regards

Leon

[Edit: Typos]

18 days ago

There will be a hotfix for the next release, blueprint books wont show elevator indicators

16 days ago

Getting a new similar error after the update when picking up a blueprint book.

The mod Subsurface - build beneath your base! (1.0.13) caused a non-recoverable error.
Please report this error to the mod author.

Error while running event Subsurface::on_player_cursor_stack_changed (ID 33)
Record is not a BlueprintRecord.
stack traceback:
[C]: in function 'get_blueprint_entities'
Subsurface/scripts/elevators.lua:106: in function 'elevator_on_cursor_stack_changed'
Subsurface/control.lua:469: in function <Subsurface/control.lua:462>

16 days ago
(updated 16 days ago)

ah didnt have this in mind

15 days ago

Hello everyone,

quick fix for this:
- Go to "%AppData%\Factorio\mods\" and open "Subsurface_1.0.13.zip"
- In the archive go to "\Subsurface_1.0.13\scripts\" and extract "elevators.lua"
- Open the extracted file and go to line 105, which should look like this:
if player.is_cursor_blueprint() and (player.cursor_record or player.cursor_stack.is_blueprint) then
- Replace it with this one:
if player.cursor_stack.valid_for_read and player.is_cursor_blueprint() and (player.cursor_record or player.cursor_stack.is_blueprint) then
- Save the file and replace the one in your archive "Subsurface_1.0.13.zip" with your modified file
- Start Factorio and load a game with "Subsurface" active; then pick up a blueprint book

Sincerely

Leon

New response