Join, Return failed or successful #8
Labels
No labels
bug
duplicate
enhancement
help wanted
invalid
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: drraccoon/GD-Polo#8
Loading…
Add table
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
When player attempts to join a game, return if it was sucessful or failed. This'll allow us to properly display dialog box if it failed, or if it worked, pass the player into the lobby.
Join, Return failed or sucessfulto Join, Return failed or successfulf298ca909c
Currently, the game has a button "join game" connected to a signal, this triggers func join_game() which calls:
Although, there is no checks (yet) to return if a server was found at that IP address and port. Implementation was attempted by doing:
But
host.create_client(ip, port)
returns 0 when connecting to nothing, and when connecting to a known server... Its possible that returning a result off that call isnt the proper way to do this?See also, https://docs.godotengine.org/en/stable/tutorials/networking/high_level_multiplayer.html#initializing-the-network
I did create some signal connections withbuiltin functions:
But they're not working / firing.
Current progress can be found in latest commit (
f298ca909c
)