Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow launching multiple game instances #560

Closed
Jummit opened this issue Mar 6, 2020 · 4 comments · Fixed by godotengine/godot#36920
Closed

Allow launching multiple game instances #560

Jummit opened this issue Mar 6, 2020 · 4 comments · Fixed by godotengine/godot#36920
Milestone

Comments

@Jummit
Copy link

Jummit commented Mar 6, 2020

Describe the project you are working on:

Any multiplayer project.

Describe the problem or limitation you are having in your project:

To debug the project I need at least two instances running, which I do by running the game from the project manager. This is a little inconvenient.

Describe the feature / enhancement and how it helps to overcome the problem or limitation:

You should be able to shift-click on the play buttons to launch an instance of the game, even if another instance is still being debugged. Maybe this instance could then be debugged.

The stop button should only close the debugged instance, but all instances when pressing shift.

There should also be a config option to configure how many instance shift pressing the run button will launch, and maybe even instance-specific arguments so client and server can be launched automaticlly. (godotengine/godot#7008 (comment))

Describe how your proposal will work, with code, pseudocode, mockups, and/or diagrams:

The game needs to be launched similarly to the run option in the project manager.

If this enhancement will not be used often, can it be worked around with a few lines of script?:

I don't know how other people working with multiplayer debug their games, but I most of them would use this approach. It can be done in one line with OS.execute().

Is there a reason why this should be core and not an add-on in the asset library?:

There needs to be a way to debug networked games in engine.

This is basiclly godotengine/godot#7008.

@Calinou
Copy link
Member

Calinou commented Mar 6, 2020

Is this implemented by godotengine/godot#36244 Debug > Debug 2 instances option?

@Jummit
Copy link
Author

Jummit commented Mar 6, 2020

Most of the time this will be enough, but I often want to test a scenario with two player and one server.

@Calinou
Copy link
Member

Calinou commented Mar 6, 2020

@Faless Is there anything that would prevent debugging 3 or 4 instances at once? If not, we could expose this in the Debug menu.

@Faless
Copy link

Faless commented Mar 7, 2020

@Calinou no, that's probably just a matter of adding the option, I'll add it for 3 and 4 I guess, more that that seems pointless, and the editor has a hard limit of 4 connected sessions (for usability and security, but maybe we can make it configurable if there really is a use case).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants