-
-
Notifications
You must be signed in to change notification settings - Fork 97
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
Log project and port number #578
Comments
This needs more details. |
You can create custom project settings that are then read in the client or server code: # Default to 25000 if the setting evaluates to `false`
# (which will happen if it's not defined, as it will return `null`).
var port = ProjectSettings.get_setting("application/server/port") or 25000 |
Wouldn't this proposal become obsolete if godotengine/godot#37067 is merged anyaway? |
Both solution are valid. In my case we will have more control? |
How I can access to editor settings likewise? - i use C# but I guess will be the same as gdscript. |
I recently made a plugin to make changing ports more convenient |
@tanjunior Thank you for your suggestion but I have already found a workaround with a plugin of mine as described here #37687 . It work setting to port when the project start. |
@git2013vb That is a good idea, i will try to add it to my plugin. |
I successfully added that to my plugin. It now saves the port in project settings. And everytime you open up the project it will retrieve the setting and apply it to editor settings. Waiting for it to be approved on Asset Library. |
So this issue was basically solved by a plugin? |
I still think that will be better to move it in Project property without be forced to use a plugin. |
Yea I made this plugin to use just until godot release new version with #37067 committed. |
So it is the same so we can close this :) |
Describe the project you are working on:
client server project
Describe the problem or limitation you are having in your project:
Every time I debug my client and my server at same time I have to set different port to show the debug result in dock
Describe the feature / enhancement and how it helps to overcome the problem or limitation:
move the port setting in project only
Describe how your proposal will work, with code, pseudocode, mockups, and/or diagrams:
NA
If this enhancement will not be used often, can it be worked around with a few lines of script?:
nope
Is there a reason why this should be core and not an add-on in the asset library?:
NA
The text was updated successfully, but these errors were encountered: