Jump to content

probem with custom voice lines

Pending 0.5.2

jauski
jauski

Posted

hello i tried record custom voice lines using like meme clips etc and record them to rust trough soundpad to my mic and i got problem it records it nicely but when i replay it, i hear only end of the sound and i get errors or soemthng my f1 console.

I tried multiple different clips and most was around 2-5 and couple 2-9seconds and the error what i get is voice buffer is too large. i will put a image of that.

Coudl this be some code side i tryed solve this with my personal ai and he noticed and suspected this 

In the PlaySounds method, the code sends all VoiceData packets at once using a foreach loop over the Sounds list during a single server tick. This instantly floods and overflows the Rust client's voice buffer.

 Instead of sending all packets instantly in a single foreach loop, the packets could to be sent using a Coroutine with a small delay between each Send() call (for example, yield return new WaitForSeconds(0.06f);). This mimics natural microphone data transmission and prevents the client buffer from skipping the audio.

but ofcourse you know better

Thank you in advance

Näyttökuva 2026-06-26 203754.png

walkinrey

Posted

i'll take a look on that, i think devs made some changes in recent updates that may be related to that

jauski

Posted

Hi i got time to test the plugin and the audio recording is broken recording start nicely and stops but when i try run command replay or save i get errors

 

Failed to call hook 'CmdNpc' on plugin 'RoamingNPCs v0.5.3' (FormatException: Index (zero based) must be greater than or equal to zero and less than the size of the argument list.)
  at System.Text.StringBuilder.AppendFormatHelper (System.IFormatProvider provider, System.String format, System.ParamsArray args) [0x000f9] in <e605204d165a49d89ae7579f3d894429>:0 
  at System.String.FormatHelper (System.IFormatProvider provider, System.String format, System.ParamsArray args) [0x00023] in <e605204d165a49d89ae7579f3d894429>:0 
  at System.String.Format (System.String format, System.Object[] args) [0x00020] in <e605204d165a49d89ae7579f3d894429>:0 
  at Oxide.Plugins.RoamingNPCs.GetLangText (System.String userID, System.String key, System.Object[] args) [0x0000e] in <15fbebdc33d14541b761a71ab8ac190e>:0 
  at Oxide.Plugins.RoamingNPCs.Cmd_RecVoice (Oxide.Core.Libraries.Covalence.IPlayer pl, System.String command, System.String[] args) [0x0033f] in <15fbebdc33d14541b761a71ab8ac190e>:0 
  at Oxide.Plugins.RoamingNPCs.CmdNpc (Oxide.Core.Libraries.Covalence.IPlayer iPlayer, System.String command, System.String[] args) [0x005f9] in <15fbebdc33d14541b761a71ab8ac190e>:0 
  at Oxide.Plugins.RoamingNPCs.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x00589] in <15fbebdc33d14541b761a71ab8ac190e>:0 
  at Oxide.Plugins.CSharpPlugin.InvokeMethod (Oxide.Core.Plugins.HookMethod method, System.Object[] args) [0x00079] in <42f9bedc659b4f4786eb778d3cd58968>:0 
  at Oxide.Core.Plugins.CSPlugin.OnCallHook (System.String name, System.Object[] args) [0x000de] in <15f61ddda771464d8246ebdce8ff4811>:0 
  at Oxide.Core.Plugins.Plugin.CallHook (System.String hook, System.Object[] args) [0x00060] in <15f61ddda771464d8246ebdce8ff4811>:0 
Failed to call hook 'CmdNpc' on plugin 'RoamingNPCs v0.5.3' (FormatException: Index (zero based) must be greater than or equal to zero and less than the size of the argument list.)
  at System.Text.StringBuilder.AppendFormatHelper (System.IFormatProvider provider, System.String format, System.ParamsArray args) [0x000f9] in <e605204d165a49d89ae7579f3d894429>:0 
  at System.String.FormatHelper (System.IFormatProvider provider, System.String format, System.ParamsArray args) [0x00023] in <e605204d165a49d89ae7579f3d894429>:0 
  at System.String.Format (System.String format, System.Object[] args) [0x00020] in <e605204d165a49d89ae7579f3d894429>:0 
  at Oxide.Plugins.RoamingNPCs.GetLangText (System.String userID, System.String key, System.Object[] args) [0x0000e] in <15fbebdc33d14541b761a71ab8ac190e>:0 
  at Oxide.Plugins.RoamingNPCs.Cmd_RecVoice (Oxide.Core.Libraries.Covalence.IPlayer pl, System.String command, System.String[] args) [0x004bb] in <15fbebdc33d14541b761a71ab8ac190e>:0 
  at Oxide.Plugins.RoamingNPCs.CmdNpc (Oxide.Core.Libraries.Covalence.IPlayer iPlayer, System.String command, System.String[] args) [0x005f9] in <15fbebdc33d14541b761a71ab8ac190e>:0 
  at Oxide.Plugins.RoamingNPCs.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x00589] in <15fbebdc33d14541b761a71ab8ac190e>:0 
  at Oxide.Plugins.CSharpPlugin.InvokeMethod (Oxide.Core.Plugins.HookMethod method, System.Object[] args) [0x00079] in <42f9bedc659b4f4786eb778d3cd58968>:0 
  at Oxide.Core.Plugins.CSPlugin.OnCallHook (System.String name, System.Object[] args) [0x000de] in <15f61ddda771464d8246ebdce8ff4811>:0 
  at Oxide.Core.Plugins.Plugin.CallHook (System.String hook, System.Object[] args) [0x00060] in <15f61ddda771464d8246ebdce8ff4811>:0 
Saved 100,933 ents, cache(2.13), write(0.08), disk(0.04).
Saving complete
Failed to call hook 'CmdNpc' on plugin 'RoamingNPCs v0.5.3' (FormatException: Index (zero based) must be greater than or equal to zero and less than the size of the argument list.)
  at System.Text.StringBuilder.AppendFormatHelper (System.IFormatProvider provider, System.String format, System.ParamsArray args) [0x000f9] in <e605204d165a49d89ae7579f3d894429>:0 
  at System.String.FormatHelper (System.IFormatProvider provider, System.String format, System.ParamsArray args) [0x00023] in <e605204d165a49d89ae7579f3d894429>:0 
  at System.String.Format (System.String format, System.Object[] args) [0x00020] in <e605204d165a49d89ae7579f3d894429>:0 
  at Oxide.Plugins.RoamingNPCs.GetLangText (System.String userID, System.String key, System.Object[] args) [0x0000e] in <15fbebdc33d14541b761a71ab8ac190e>:0 
  at Oxide.Plugins.RoamingNPCs.Cmd_RecVoice (Oxide.Core.Libraries.Covalence.IPlayer pl, System.String command, System.String[] args) [0x004bb] in <15fbebdc33d14541b761a71ab8ac190e>:0 
  at Oxide.Plugins.RoamingNPCs.CmdNpc (Oxide.Core.Libraries.Covalence.IPlayer iPlayer, System.String command, System.String[] args) [0x005f9] in <15fbebdc33d14541b761a71ab8ac190e>:0 
  at Oxide.Plugins.RoamingNPCs.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x00589] in <15fbebdc33d14541b761a71ab8ac190e>:0 
  at Oxide.Plugins.CSharpPlugin.InvokeMethod (Oxide.Core.Plugins.HookMethod method, System.Object[] args) [0x00079] in <42f9bedc659b4f4786eb778d3cd58968>:0 
  at Oxide.Core.Plugins.CSPlugin.OnCallHook (System.String name, System.Object[] args) [0x000de] in <15f61ddda771464d8246ebdce8ff4811>:0 
  at Oxide.Core.Plugins.Plugin.CallHook (System.String hook, System.Object[] args) [0x00060] in <15f61ddda771464d8246ebdce8ff4811>:0 
[Dracula] [Dracula] Next auto-run scheduled in 7803 seconds.
Saved 100,932 ents, cache(1.63), write(0.07), disk(0.04).
Saving complete
Failed to call hook 'CmdNpc' on plugin 'RoamingNPCs v0.5.3' (FormatException: Index (zero based) must be greater than or equal to zero and less than the size of the argument list.)
  at System.Text.StringBuilder.AppendFormatHelper (System.IFormatProvider provider, System.String format, System.ParamsArray args) [0x000f9] in <e605204d165a49d89ae7579f3d894429>:0 
  at System.String.FormatHelper (System.IFormatProvider provider, System.String format, System.ParamsArray args) [0x00023] in <e605204d165a49d89ae7579f3d894429>:0 
  at System.String.Format (System.String format, System.Object[] args) [0x00020] in <e605204d165a49d89ae7579f3d894429>:0 
  at Oxide.Plugins.RoamingNPCs.GetLangText (System.String userID, System.String key, System.Object[] args) [0x0000e] in <15fbebdc33d14541b761a71ab8ac190e>:0 
  at Oxide.Plugins.RoamingNPCs.Cmd_RecVoice (Oxide.Core.Libraries.Covalence.IPlayer pl, System.String command, System.String[] args) [0x0033f] in <15fbebdc33d14541b761a71ab8ac190e>:0 
  at Oxide.Plugins.RoamingNPCs.CmdNpc (Oxide.Core.Libraries.Covalence.IPlayer iPlayer, System.String command, System.String[] args) [0x005f9] in <15fbebdc33d14541b761a71ab8ac190e>:0 
  at Oxide.Plugins.RoamingNPCs.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x00589] in <15fbebdc33d14541b761a71ab8ac190e>:0 
  at Oxide.Plugins.CSharpPlugin.InvokeMethod (Oxide.Core.Plugins.HookMethod method, System.Object[] args) [0x00079] in <42f9bedc659b4f4786eb778d3cd58968>:0 
  at Oxide.Core.Plugins.CSPlugin.OnCallHook (System.String name, System.Object[] args) [0x000de] in <15f61ddda771464d8246ebdce8ff4811>:0 
  at Oxide.Core.Plugins.Plugin.CallHook (System.String hook, System.Object[] args) [0x00060] in <15f61ddda771464d8246ebdce8ff4811>:0 

About Us

Codefling is the largest marketplace for plugins, maps, tools, and more, making it easy for customers to discover new content and for creators to monetize their work.

Downloads
2.7m
Total downloads
Customers
11.6k
Customers served
Files Sold
165.4k
Total sales
Payments
3.6m
Processed total
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.