Skip to content

Conversation

@edenoftheware
Copy link

work with latest update thank golly gosh

some things changed, CLC_ClientInfo::m_nFriendsID needs to be set to your steamid now or else you'll get the boot, game version can no longer be 2000 (you can find the correct string by typing version in console), and for some reason im not sure of and dont care to find out is CLC_ClientInfo::ToString's reported SendTable crc is different than the one the server actually expects?

also registered net_disconnect as im not sure why that wasnt registered.

work with latest update thank golly gosh
@misterkeyster
Copy link

i was wondering if you didn't mind sharing how you discovered what was wrong?
gmod just updated today and once again, this no longer works.
i very frequently find use in headless gmod on servers i play on, but it seems to constantly be breaking, and i hate having a non-headless version of the game up when i am not playing :(

@edenoftheware
Copy link
Author

i was wondering if you didn't mind sharing how you discovered what was wrong? gmod just updated today and once again, this no longer works. i very frequently find use in headless gmod on servers i play on, but it seems to constantly be breaking, and i hate having a non-headless version of the game up when i am not playing :(

Hey man, sorry I didn't see this until just now. If you are still wondering how to fix it for future updates:
In the main menu type net_showmsg clc_ClientInfo then type maxplayers 32;map gm_construct into console.

After loading in look in the console for something like Msg from loopback: clc_ClientInfo: SendTableCRC -180714362
The number after SendTableCRC is what you are interested in, take that number and add 8192, in this case -180706170. Then take this number and paste it into src\leysourceengineclient.cpp at line 212. So for the current update it looks like:

		printf("Sending clc_ClientInfo\n");
		netchan.GetSendData()->WriteUBitLong(8, 6);
		netchan.GetSendData()->WriteLong(netchan.m_iServerCount);
		netchan.GetSendData()->WriteLong(-180706170);//clc_ClientInfo crc NOTE: for some reason the one displayed by net_showmsg is off by 8192
		netchan.GetSendData()->WriteOneBit(1);//ishltv
		netchan.GetSendData()->WriteLong(steam->GetSteamUser()->GetSteamID().ConvertToUint64());
		netchan.GetSendData()->WriteUBitLong(0, 21);

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants