Page 1 of 1

[2.0.72] Crash and weirdness with game.simulation.write (BlueprintLibraryGui::rebuildGui)

Posted: Mon Nov 03, 2025 10:06 pm
by jurgy
I was messing about with creating tips-and-tricks simulations for my mod and was trying out the game.simulation.write method which lead to a crash to desktop.
Trying to get a minimal reproduction for it to report here I stumbled on some other weird behavior. With just story board:

Code: Select all

game.simulation.active_quickbars = 1
player = game.simulation.create_test_player{name = "big K"}
player.character.teleport{0, 4}

game.simulation.camera_player = player
game.simulation.camera_position = {0, 0.5}
game.simulation.camera_player_cursor_position = player.position

local story_table =
{
  {
    {
      name = "start",
      init = function() end,
      condition = story_elapsed_check(1)
    },
    {
      condition = story_elapsed_check(0.25),
      action = function()
        game.simulation.write{text="foo"}
      end
    }
  }
}
tip_story_init(story_table)
The character/simulation opens the Train Overview and starts walking to the left:
11-03-2025, 22-56-54.png
11-03-2025, 22-56-54.png (333.26 KiB) Viewed 282 times
"o" is the hotkey for the train overview, so I guess that has something to do with it, but other than that, idk.

I'll attach this smaller mod as well as the mod I was originally working on with the crash log so you could hopefully also reproduce the crash to desktop but if you need more info, let me know.

Re: [2.0.72] Crash and weirdness with game.simulation.write (BlueprintLibraryGui::rebuildGui)

Posted: Tue Nov 04, 2025 6:11 pm
by jurgy
I was talking about another crash of the simulator with Jarg in the modding discord and he has created a pull request on your side for the fix for that, so maybe that also fixes this.

Edit:
Nevermind
justarandomgeek wrote: oh that one's a gui thing, i'm not touching that

Re: [2.0.72] Crash and weirdness with game.simulation.write (BlueprintLibraryGui::rebuildGui)

Posted: Tue Nov 04, 2025 6:22 pm
by justarandomgeek
Just to confirm, the other pr (#7998 re: LuaPlayer.blueprints) does not in fact fix this - but i don't understand this one enough to do anything more helpful

Re: [2.0.72] Crash and weirdness with game.simulation.write (BlueprintLibraryGui::rebuildGui)

Posted: Tue Nov 04, 2025 8:35 pm
by Rseding91
Thanks for the report. I think you have the blueprint library bound to f, or o - and in the simulation it's opening the library (which is where the crash happened). That, or another tips-and-tricks simulation was opening the library GUI.

In either case, it's now fixed for 2.1.