• gm_sourcenet3 - Advanced Source Networking Library
    203 replies, posted
  • Fixed. I don't think Linux uses the datagram threads (I'm having trouble checking but I can't see anything in the binary), so the update is for Windows only.
  • Avatar of jellybaby34
  • [QUOTE=Chrisaster;31173870]Fixed. I don't think Linux uses the datagram threads (I'm having trouble checking but I can't see anything in the binary), so the update is for Windows only.[/QUOTE] The example scripts crash me everytime I use them and when certain base scripts are in the autorun. PM'd dump if you need it
  • [QUOTE=jellybaby34;31189613]The example scripts crash me everytime I use them and when certain base scripts are in the autorun. PM'd dump if you need it[/QUOTE] As I said on the last page, the dumps from the crash you're getting don't contain any useful information and I can't recreate it.
  • Avatar of Gfoose
  • The new fix kinda lags up my server, not much but it is noticable. So I had to remove sourcenet3 :/
  • Avatar of Gfoose
  • The update ruins the sourcenet3 for clientside, but still works great for serverside, the revision before works perfectly for clientside. It seems to crash clients with the new one when you include the main files.
  • Avatar of Gfoose
  • [QUOTE=Chrisaster;31570263]Fixed the client crash.[/QUOTE] Silly little Chrisaster using old headers.
  • Avatar of Gfoose
  • [url]http://dumps.garrysmod.com/?view=3744820332&refresh=1[/url] [url]http://dumps.garrysmod.com/?view=1844283195&refresh=7[/url]
  • Avatar of Gfoose
  • Hook 'OutFilter' Failed: [@lua\sourcenet\sn3_base_netmessages.lua:70] bad argument #1 to 'WriteString' (string expected, got nil)
  • [QUOTE=Gfoose;31931703][url]http://dumps.garrysmod.com/?view=3744820332&refresh=1[/url] [url]http://dumps.garrysmod.com/?view=1844283195&refresh=7[/url][/QUOTE] Thanks for the reports. One of those crashes seems to be caused by a memory alloc failure, which Source's memoverride stuff may be responsible for. Could you try [url="http://dl.dropbox.com/u/7745323/gm_sourcenet3_gfoosetest.zip"]this[/url] and see if it fixes the problem?
  • Avatar of Gfoose
  • [QUOTE=Chrisaster;32009836]Thanks for the reports. One of those crashes seems to be caused by a memory alloc failure, which Source's memoverride stuff may be responsible for. Could you try [url="http://dl.dropbox.com/u/7745323/gm_sourcenet3_gfoosetest.zip"]this[/url] and see if it fixes the problem?[/QUOTE] Yeah.. uhmm [url]http://dumps.garrysmod.com/?view=949902250&refresh=2[/url]
  • [QUOTE=Gfoose;32017043]Yeah.. uhmm [url]http://dumps.garrysmod.com/?view=949902250&refresh=2[/url][/QUOTE] [url]http://dl.dropbox.com/u/7745323/gm_sourcenet3_gfoosetest2.zip[/url] I forgot the ReadVector and ReadAngle functions need to use Source's allocation system. I've changed it so they do, but nothing else does.
  • Can you add function CNetChan:GetLoss (current loss, not average)? Thx
  • [QUOTE=Tracer;32213415]Can you add function CNetChan:GetLoss (current loss, not average)? Thx[/QUOTE] There is no such function, sorry.
  • Avatar of alexgrist
  • Issue after the latest engine update? [code] [gm_sourcenet3] Failed to locate CNetChan::ProcessMessages, report this! [/code]
  • [QUOTE=Alex_grist;32787754]Issue after the latest engine update? [code] [gm_sourcenet3] Failed to locate CNetChan::ProcessMessages, report this! [/code][/QUOTE] Thanks, fixed.
  • There seems to be another problem causing instant buffer overflows. I'm looking into it now. [editline]15th October 2011[/editline] Fixed - Valve changed bf_read to use old_bf_read instead of CBitRead for some reason. The update is for Linux and Windows this time.
  • Avatar of _nonSENSE
  • I will test this thoroughly with the resourcex add-on you provided. Will report back if I find any other problems. Thanks for looking into this so quickly!
  • Avatar of LauScript
  • We downloaded the DLL from: [url]http://christopherthorne.googlecode.com/svn/trunk/gm_sourcenet3/[/url] we put it in lua/includes/modules and we are still getting the CNetChan::ProcessMessages error
  • [QUOTE=LauScript;32867968]We downloaded the DLL from: [url]http://christopherthorne.googlecode.com/svn/trunk/gm_sourcenet3/[/url] we put it in lua/includes/modules and we are still getting the CNetChan::ProcessMessages error[/QUOTE] Are you sure your engine.dll is up-to-date?
  • I've been getting a few of these recently. [url]http://dumps.garrysmod.com/?view=3892282019&refresh=2[/url]
  • [QUOTE=Pantho;33053643]I've been getting a few of these recently. [url]http://dumps.garrysmod.com/?view=3892282019&refresh=2[/url][/QUOTE] Can you send me the crash dump file?
  • Whilst fixing this up for the beta I noticed a mistake in the sn3_bf_read:ReadBits function. The second argument specified is the number of bits, but I was treating it as number of bytes for allocation. Now that I've fixed it, hopefully the "null pointer written/software nx fault" crashes should dissapear.
  • Updated to fix all serverside crashes. Make sure to update the Lua base files too. There are still clientside hooking issues, so I wouldn't recommend using the hooks in any state other than the server's. I might get round to fixing the client bugs, but I can't figure out what's causing them right now + there aren't really any practical uses for hooking clientside anyway. This will break when the beta is released, but I have a fix ready which I will release soon after.
  • Avatar of lorde banana
  • Did the "stop IPs being sent on connect" example get renamed/merged or something? I can't find it.
  • [QUOTE=slayer3032;33454373]Did you fix the one that I get in linux?[/QUOTE] Hopefully. Could you test it? If it still occurs then I'll investigate some more. [editline]27th November 2011[/editline] [QUOTE=Banana Lord.;33457361]Did the "stop IPs being sent on connect" example get renamed/merged or something? I can't find it.[/QUOTE] sn3_stripip.lua
  • Avatar of slayer3032
  • [QUOTE=Chrisaster;33458842]Hopefully. Could you test it? If it still occurs then I'll investigate some more.[/QUOTE] I'll be sure to when I get some IPs back.