diff --git a/addons/netfox.extras/plugin.cfg b/addons/netfox.extras/plugin.cfg index ca6cca7..8a5536e 100644 --- a/addons/netfox.extras/plugin.cfg +++ b/addons/netfox.extras/plugin.cfg @@ -3,5 +3,5 @@ name="netfox.extras" description="Game-specific utilities for Netfox" author="Tamas Galffy" -version="0.15.14" +version="0.15.15" script="netfox-extras.gd" diff --git a/addons/netfox.extras/weapon/network-weapon.gd b/addons/netfox.extras/weapon/network-weapon.gd index 3957034..20bbe5e 100644 --- a/addons/netfox.extras/weapon/network-weapon.gd +++ b/addons/netfox.extras/weapon/network-weapon.gd @@ -28,10 +28,8 @@ func fire() -> Node: var data = _projectile_data[id] if not is_multiplayer_authority(): - print("Requesting projectile %s" % [id]) rpc_id(get_multiplayer_authority(), "_request_projectile", id, NetworkTime.tick, data) else: - print("Weapon is local, accepting projectile %s" % [id]) rpc("_accept_projectile", id, NetworkTime.tick, data) print("Calling after fire hook for %s" % [projectile.name]) @@ -164,7 +162,7 @@ func _request_projectile(id: String, tick: int, request_data: Dictionary): func _accept_projectile(id: String, tick: int, response_data: Dictionary): print("[%s] Accepting projectile %s from %s" % [multiplayer.get_unique_id(), id, multiplayer.get_remote_sender_id()]) if multiplayer.get_unique_id() == multiplayer.get_remote_sender_id(): - print("Projectile %s is local, nothing to do" % [id]) + # Projectile is local, nothing to do return if _projectiles.has(id): @@ -172,7 +170,6 @@ func _accept_projectile(id: String, tick: int, response_data: Dictionary): var local_data = _projectile_data[id] _reconcile_buffer.push_back([projectile, local_data, response_data]) else: - print("[%s] Spawning brand new projectile %s" % [multiplayer.get_unique_id(), id]) var projectile = _spawn() _apply_data(projectile, response_data) _projectile_data.erase(id) diff --git a/addons/netfox.noray/plugin.cfg b/addons/netfox.noray/plugin.cfg index 3e55b80..6892cad 100644 --- a/addons/netfox.noray/plugin.cfg +++ b/addons/netfox.noray/plugin.cfg @@ -3,5 +3,5 @@ name="netfox.noray" description="Bulletproof your connectivity with noray integration for netfox" author="Tamas Galffy" -version="0.15.14" +version="0.15.15" script="netfox-noray.gd" diff --git a/addons/netfox/network-events.gd b/addons/netfox/network-events.gd index ee83005..653a32a 100644 --- a/addons/netfox/network-events.gd +++ b/addons/netfox/network-events.gd @@ -74,7 +74,6 @@ func is_server() -> bool: func _ready(): enabled = ProjectSettings.get_setting("netfox/events/enabled", true) - print("Network Events is %s" % [enabled]) # Automatically start ticking when entering multiplayer and stop when # leaving multiplayer diff --git a/addons/netfox/plugin.cfg b/addons/netfox/plugin.cfg index d04f22f..d52c3fb 100644 --- a/addons/netfox/plugin.cfg +++ b/addons/netfox/plugin.cfg @@ -3,5 +3,5 @@ name="netfox" description="A higher-level networking addon with rollback support" author="Tamas Galffy" -version="0.15.14" +version="0.15.15" script="netfox.gd" diff --git a/examples/forest-brawl/scripts/brawler-crown.gd b/examples/forest-brawl/scripts/brawler-crown.gd index 888e0b4..d036184 100644 --- a/examples/forest-brawl/scripts/brawler-crown.gd +++ b/examples/forest-brawl/scripts/brawler-crown.gd @@ -32,7 +32,6 @@ func _handle_scores(scores: Dictionary): # No crown in single player if scores.size() == 1: - print("Only one player!") return var max_score = scores.values().max() @@ -40,7 +39,6 @@ func _handle_scores(scores: Dictionary): # Multiple players share the crown if max_players.size() > 1: - print("Multiple players with crown!") return var player_id = max_players[0] @@ -48,9 +46,5 @@ func _handle_scores(scores: Dictionary): .filter(func(it): return it.player_id == player_id)\ .pop_back() - print("All players: %s" % [get_tree().get_nodes_in_group("Brawlers")]) - print("Player by id %s: %s" % [player_id, get_tree().get_nodes_in_group("Brawlers")\ - .filter(func(it): return it.player_id == player_id)]) - target = player is_enabled = true