-
-
Notifications
You must be signed in to change notification settings - Fork 101
Description
Describe the project you are working on
A rhythm game that could download more songs from a firebase storage server
Describe the problem or limitation you are having in your project
A game with network connections needs to deal with sudden disconnection that could happen on user's device, especially it involves a download operation. Developer could add error message and such on the game, but they need to actually experience the disconnection everytime they want to test it. Currently, the only way to test this on the editor (globally, afaik) is to manually disconnect from Wifi/ethernet from the user's OS or hardware (unplugging the cable).
Describe the feature / enhancement and how it helps to overcome the problem or limitation
Would be nice if there's a button where it could virtually disable internet connection of the currently running project.
Describe how your proposal will work, with code, pseudo-code, mock-ups, and/or diagrams
Maybe it'll be similiar to godotengine/godot#99555 (mute button PR) where it'll be a new button on the Game view, toggled on by default. When toggled off, it'll acts as if the device has no internet connection, but only affect the currently run game on the Game view. (Editor will still be offline/online based on the Network Mode property on Editor Settings).
If this enhancement will not be used often, can it be worked around with a few lines of script?
I don't know how network works in godot in the background, maybe the addon/script need to modify something on every network related node in the scene tree? which might be complicated, and a native solution would be really helpful.
Is there a reason why this should be core and not an add-on in the asset library?
Same as the Mute Game feature, a nice addition to Game view QoL testing tools.