Closed PolSpock closed 1 year ago
Hello, another issue with this issue : If your game embedded a SceneMap in your GameMenu, your s&box client will crash after client loading when the server launches a Sandbox.Game.ChangeLevel
https://github.com/sboxgame/issues/assets/5229571/7d087d55-d2d5-4dd7-b6b4-a9bfdd25e2d1
Hello, i would like to reopen the issue cause the crashing state is still there after a hotload, see my video above
(For the video i have reproduced the same step as explained in my "To reproduce" part)
Describe the bug
Hi,
Since the
Out-of-game rendering
update, myGameMenu
that embed aSceneMap
loaded fromasset.party
package are constantly producing a s&box crashI've been able to reproduce the issue on the sandbox game. Look down below to see the steps to reproduce
To Reproduce
1) Download https://github.com/Facepunch/sandbox 2) Replace the content of
code/Menu/MainMenu.razor
:code/Menu/MainMenu.razor
``` @using Sandbox; @using Sandbox.UI; @using Sandbox.Menu.backgroundmap; @inherits RootPanel @implements Sandbox.Menu.IGameMenuPanel @namespace Sandbox.Menu3) Create folder
code/Menu/backgroundmap
4) CreateBackgroundMap.razor
:BackgroundMap.razor
``` @using Sandbox.UI.Construct; @using Sandbox.UI; @namespace Sandbox.Menu.backgroundmap @attribute [StyleSheet] @inherits Panel5) Create
BackgroundMap.razor.scss
:BackgroundMap.razor.scss
``` BackgroundMap { position: absolute; flex-grow: 1; width: 100%; height: 100%; scenepanel { flex-grow: 1; } } ```6) Start your s&box & sandbox game Normally you will see the
roomfield.avatar_menu_map
SceneMap and "hey" text 7) Start the game with buttons8) Quit the game once loaded: you will crash 9) However if you comment
<BackgroundMap />
from theMainMenu.razor
, you will not crashExpected behavior
Using
SceneMap
in theGameMenu
state must not result in s&box crashMedia/Files
No response
Additional context
No response