jean-voila / sqrt100

🧟
https://jean-voila.github.io/sqrt100/
3 stars 0 forks source link

Gunshot Sound #24

Open bymedeu opened 3 weeks ago

bymedeu commented 3 weeks ago

When trying to shoot a bullet in the multiplayer map 02, the playback sound sends the following error: E 0:00:21:0736 NativeCalls.cs:496 @ void Godot.NativeCalls.godot_icall_1_57(nint, nint, float): Playback can only happen when a node is inside the scene tree <Erreur C++> Condition "!is_inside_tree()" is true. <Source C++> scene/audio/audio_stream_player.cpp:140 @ play()

NativeCalls.cs:496 @ void Godot.NativeCalls.godot_icall_1_57(nint, nint, float) AudioStreamPlayer.cs:240 @ void Godot.AudioStreamPlayer.Play(float) SFXPlayer.cs:73 @ bool SFXPlayer.PlaySFX(string, int) Revolver.cs:124 @ void CastleOfDemise.mobs.Player.Player.Shoot() Player.cs:46 @ void CastleOfDemise.mobs.Player.Player._Input(Godot.InputEvent) Node.cs:2119 @ bool Godot.Node.InvokeGodotClassMethod(Godot.NativeInterop.godot_string_name&, Godot.NativeInterop.NativeVariantPtrArgs, Godot.NativeInterop.godot_variant&) Node3D.cs:1036 @ bool Godot.Node3D.InvokeGodotClassMethod(Godot.NativeInterop.godot_string_name&, Godot.NativeInterop.NativeVariantPtrArgs, Godot.NativeInterop.godot_variant&) CollisionObject3D.cs:564 @ bool Godot.CollisionObject3D.InvokeGodotClassMethod(Godot.NativeInterop.godot_string_name&, Godot.NativeInterop.NativeVariantPtrArgs, Godot.NativeInterop.godot_variant&) PhysicsBody3D.cs:210 @ bool Godot.PhysicsBody3D.InvokeGodotClassMethod(Godot.NativeInterop.godot_string_name&, Godot.NativeInterop.NativeVariantPtrArgs, Godot.NativeInterop.godot_variant&) CharacterBody3D.cs:755 @ bool Godot.CharacterBody3D.InvokeGodotClassMethod(Godot.NativeInterop.godot_string_name&, Godot.NativeInterop.NativeVariantPtrArgs, Godot.NativeInterop.godot_variant&) CastleOfDemise.mobs.Player.Player_ScriptMethods.generated.cs:540 @ bool CastleOfDemise.mobs.Player.Player.InvokeGodotClassMethod(Godot.NativeInterop.godot_string_name&, Godot.NativeInterop.NativeVariantPtrArgs, Godot.NativeInterop.godot_variant&) CSharpInstanceBridge.cs:24 @ Godot.NativeInterop.godot_bool Godot.Bridge.CSharpInstanceBridge.Call(nint, Godot.NativeInterop.godot_string_name*, Godot.NativeInterop.godot_variant**, int, Godot.NativeInterop.godot_variant_call_error*, Godot.NativeInterop.godot_variant*)
jean-voila commented 3 weeks ago
  1. Tu peux écrire en français t'inquiètes
  2. Je pense que ça vient de la modification du SFXPlayer que je suis en train de faire, pour les tests j'ai pris le parti de n'appliquer pour l'instant au moteur SFX que les tirs du joueur (dans le vide, pas sur les ennemis). D'ailleurs, ça devrait ne pas fonctionner non plus sur la map classique (solo). Tu peux confirmer @bymedeu ?