Skip to content

just make it work#30

Open
edenoftheware wants to merge 2 commits into
Leystryku:masterfrom
edenoftheware:master
Open

just make it work#30
edenoftheware wants to merge 2 commits into
Leystryku:masterfrom
edenoftheware:master

Conversation

@edenoftheware
Copy link
Copy Markdown

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
Copy Markdown

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
Copy Markdown
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);

@misterkeyster
Copy link
Copy Markdown

hi Eden very last follow up sorry!
i used the steps you provided a long time ago and did not able to get it working sadly
-180714362 + 8192 = 180706170 for line 212 however when logging in i get the error that states the server is using a newer version, despite it being just a normal server with nothing special i host for 10 euros a month

@misterkeyster
Copy link
Copy Markdown

sorry i maent to say i used
netchan.GetSendData()->WriteLong(-180706170);

error was:
Connection refused! [#GameUI_ServerRejectNewVersion]

@misterkeyster
Copy link
Copy Markdown

i just realized -180706170 also matches your commit so it meant i had been using the right number

@edenoftheware
Copy link
Copy Markdown
Author

sorry i maent to say i used netchan.GetSendData()->WriteLong(-180706170);

error was: Connection refused! [#GameUI_ServerRejectNewVersion]

No worries man, does your oob.cpp:106 show writeconnect.WriteString("2025.03.26"); // game version?

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