-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Description
Is there an existing issue for this?
- I have searched the existing issues
Describe the bug
Hi there, I have been using GDevelop to make web games for my job and have found that since the big 3d update the hot reload no longer works.
I am on GDevelop desktop version 5.6.250 MacOS
When I am editing/updating the game in web before I could make a change in the desktop editor and press update with no issues.
now I have to press update. then my web view breaks/crashes. Then in the editor hit preview and do the local preview and then let that build. After that the web preview works again and has my new updates.
When the web preview breaks there is this error in the console:
Uncaught TypeError: can't access property "variables", e is undefined _ runtimegame.ts:286 <anonymous> (index):200 <anonymous> (index):212
I cannot provide my game file sorry.
side note: I really enjoy the software you have created. Thank you.
Steps to reproduce
- Start Network Preview
- Open network preview in a browser (firefox or chrome)
- Game loads fine
- Make a change in the editor (I just updated a text value to demo)
- Press Update
- Game will update but if you refresh the browser you now get this error:
Uncaught TypeError: can't access property "variables", e is undefined _ runtimegame.ts:286 <anonymous> (index):200 <anonymous> (index):212
You cannot play your game in the browser at all now.
- Go back to the editor and press preview to do the local game preview
- The game works and loads fine
- Now you can refresh your browser and the game works again...
It seems like the preview button doing a fresh build each time fixes it and the hot reload breaks it
GDevelop platform
Desktop
GDevelop version
5.6.250-11a096dbabc15f5aa36b84e65ce04d8e7619f4ab
Platform info
Details
OS (e.g. Windows, Linux, macOS, Android, iOS)
macOS
OS Version (e.g. Windows 10, macOS 10.15)
Tahoe 26.1
Browser(For Web) (e.g. Chrome, Firefox, Safari)
Chrome or Zen (Firefox)
Device(For Mobile) (e.g. iPhone 12, Samsung Galaxy S21)
N/A
Additional context
No response