3 Commits

Author SHA1 Message Date
WiseNoodle
04440c0319 tweak tent rotation 2025-08-12 19:45:55 -04:00
98cf12f533 steam ui join 2 2025-08-12 18:42:09 -05:00
52a34c8415 steam ui join 2025-08-12 18:16:08 -05:00
2 changed files with 7 additions and 2 deletions

View File

@@ -379,7 +379,7 @@ transform = Transform3D(0.689594, 0, -0.724196, 0, 1, 0, 0.724196, 0, 0.689594,
[node name="Tent" parent="Campsite/TentPlot3" instance=ExtResource("4_qjimh")]
[node name="TentPlot4" type="Marker3D" parent="Campsite"]
transform = Transform3D(-0.0217975, 0, 0.999762, 0, 1, 0, -0.999762, 0, -0.0217975, 6.53113, 0.334599, -2.31805)
transform = Transform3D(-0.518758, 0, 0.854921, 0, 1, 0, -0.854921, 0, -0.518758, 6.53113, 0.334599, -2.31805)
[node name="Tent" parent="Campsite/TentPlot4" instance=ExtResource("4_qjimh")]

View File

@@ -26,6 +26,7 @@ func _ready() -> void:
Steam.lobby_joined.connect(_on_lobby_joined)
Steam.lobby_chat_update.connect(_on_lobby_chat_update)
Steam.p2p_session_request.connect(_on_p2p_session_request)
Steam.join_requested.connect(_on_lobby_join_requested)
multiplayer.peer_connected.connect(_on_peer_connected)
multiplayer.peer_disconnected.connect(_on_peer_disconnected)
@@ -37,7 +38,6 @@ func _ready() -> void:
multiplayer.server_relay = true
func _process(delta):
if not steam_initialized:
return
@@ -72,6 +72,11 @@ func join_lobby(this_lobby_id: int):
Steam.joinLobby(this_lobby_id)
func _on_lobby_join_requested(this_lobby_id: int, friend_id: int) -> void:
print("[CLIENT] 1. Attempting to join lobby (ID: %s)..." % this_lobby_id)
join_lobby(this_lobby_id)
func _on_lobby_joined(this_lobby_id: int, _p, _l, response: int):
if response != Steam.CHAT_ROOM_ENTER_RESPONSE_SUCCESS:
print("[CLIENT] !!! Failed to join lobby: %s" % get_join_fail_reason(response))