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

Add debug instance index argument when running multiple instances #62656

Closed

Conversation

Haydoggo
Copy link
Contributor

@Haydoggo Haydoggo commented Jul 3, 2022

When running multiple instances (eg. Debug->Run Multiple Instances->Run 3 Instances), there is no automatic way to tell one instance to behave differently to the others (eg. you might want one instance to host a game and the others to join it).

When running more than one instance, this PR adds an argument accessible through OS.get_cmdline_args() for the index of the instance. Each instance will always be assigned a different number from 0 to n-1 for n instances.
image

@akien-mga
Copy link
Member

This seems useful for but not very discoverable, users would need to check the command line or source code to know about it.

@akien-mga akien-mga requested review from Faless and Calinou July 3, 2022 08:24
@Faless
Copy link
Collaborator

Faless commented Jul 3, 2022

There is a discussion about debug instance arguments here: #57975, and a somehow related proposal here: godotengine/godot-proposals#522 .

Specifically, see the discussed implementation

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

Successfully merging this pull request may close these issues.

3 participants