It seems that you're using an outdated browser. Some things may not work as they should (or don't work at all).
We suggest you upgrade newer and better browser like: Chrome, Firefox, Internet Explorer or Opera

×
high rated
Hello, folks!

These patches were forgotten in my PC, and I had no time to write a decent post for release.

https://github.com/BaDTimE-S4/Swat-4-Patches/releases/download/swat4/Swat4_Patches.zip

What is included?

* InGame Server List
* All related CD-KEY error fixes (Including when trying to host a game)

Take note that the Master Server used by that patch is served and managed by Serge, which also hosts the superb site https://swat4stats.com/, that can also be used for Direct IP Connection.

Regards,

BaDTimE
Post edited March 03, 2024 by BaDTimE-S4
Question, can you connect directly with friends? or you need this replacement for Gamespy?
You are still able to play with your friends using Direct IP.

In that case, patch is not needed.

That patch is intended to you be able to browse all servers again, and find some populated server to join.
When I switch the 1.1 Engine.dll with mine it wont let me start the game anymore.
avatar
WickedSencho: When I switch the 1.1 Engine.dll with mine it wont let me start the game anymore.
Have in mind that Golden Edition is composed by Swat 4 v1.1 and the Expansion.

.\Content\System\Engine.dll should be replaced by github.com/sergeii/swat-patches/blob/master/swat4stats-masterserver/1.1/Engine.dll

and

.\ContentExpansion\System\Engine.dll should be replaced by github.com/sergeii/swat-patches/blob/master/swat4stats-masterserver/TSS/Engine.dll
Post edited January 24, 2017 by BaDTimE-S4
Oh I see, well I just changed the host file now, everything works fine. Thanks for the post!
How are you suppose to get around the "Invalid CD Key" whenever hosting an internet game? Also is there a detailed guide on how to go about hosting servers for this game? I'd love to do some SWAT 4 without hamachi or tungle, or gameranger or any of that nonsense!
avatar
Unmutual: How are you suppose to get around the "Invalid CD Key" whenever hosting an internet game? Also is there a detailed guide on how to go about hosting servers for this game? I'd love to do some SWAT 4 without hamachi or tungle, or gameranger or any of that nonsense!
That's a bit off topic.

Anyway, since there's no Gamespy CDKeyAuth server anymore, you can use 'Public Server' Engine.dll to start a dedicatedserver.

Unfortunately I fear that can't share this file URL here; so go ahead and google on.

Since you correctly foward our external router ports, you can also host a dedicatedserver in LAN mode, without need to replace any file.

To get your server listed in Swat4Stats and/or Gamespy ingame serverlist browser (Multiplayer Menu), you must to follow some procedures: github.com/sergeii/swat-gs2

Bare in mind that there are already a hundred dedicated servers online, already configure with admin mod, and other extensions.

Clans expend time and money to manage those servers, what are professionally hosted; not just a home servers.
Post edited January 25, 2017 by BaDTimE-S4
avatar
Unmutual: How are you suppose to get around the "Invalid CD Key" whenever hosting an internet game? Also is there a detailed guide on how to go about hosting servers for this game? I'd love to do some SWAT 4 without hamachi or tungle, or gameranger or any of that nonsense!
avatar
BaDTimE-S4: That's a bit off topic.

Anyway, since there's no Gamespy CDKeyAuth server anymore, you can use 'Public Server' Engine.dll to start a dedicatedserver.

Unfortunately I fear that can't share this file URL here; so go ahead and google on.

Since you correctly foward our external router ports, you can also host a dedicatedserver in LAN mode, without need to replace any file.

To get your server listed in Swat4Stats and/or Gamespy ingame serverlist browser (Multiplayer Menu), you must to follow some procedures: github.com/sergeii/swat-gs2

Bare in mind that there are already a hundred dedicated servers online, already configure with admin mod, and other extensions.

Clans expend time and money to manage those servers, what are professionally hosted; not just a home servers.
I just want to confirm my understanding of what you said.

If I just follow the instructions on the github links, and the port forwarding...

I can host a server (dedicated or not) as LAN mode, AND
1) It will show up in the public server list
2) People from public can join the server (No need to VPN service like Hamachi)

Is that correct?
Post edited January 25, 2017 by floccipocci
avatar
BaDTimE-S4: That's a bit off topic.

Anyway, since there's no Gamespy CDKeyAuth server anymore, you can use 'Public Server' Engine.dll to start a dedicatedserver.

Unfortunately I fear that can't share this file URL here; so go ahead and google on.

Since you correctly foward our external router ports, you can also host a dedicatedserver in LAN mode, without need to replace any file.

To get your server listed in Swat4Stats and/or Gamespy ingame serverlist browser (Multiplayer Menu), you must to follow some procedures: github.com/sergeii/swat-gs2

Bare in mind that there are already a hundred dedicated servers online, already configure with admin mod, and other extensions.

Clans expend time and money to manage those servers, what are professionally hosted; not just a home servers.
avatar
floccipocci: I just want to confirm my understanding of what you said.

If I just follow the instructions on the github links, and the port forwarding...

I can host a server (dedicated or not) as LAN mode, AND
1) It will show up in the public server list
2) People from public can join the server (No need to VPN service like Hamachi)

Is that correct?
That's correct.

It doesn't matter if you host a LAN or Internet server, after follow all procedures described in GitHub, your server will be included in public server list.

Just 1 consideration: in Swat4DedicatedServer.ini file, [GS2.Listener] section, Port parameter must be JoinPort+3, instead JoinPort+2 (eg. Port=10483).

Note that the native Swat4 does not follow strictly the Gamespy Query Protocol v1 standards.
For that reason you must also implement this: github.com/sergeii/swat-gs1 and its dependencies.
Post edited January 25, 2017 by BaDTimE-S4
avatar
floccipocci: I just want to confirm my understanding of what you said.

If I just follow the instructions on the github links, and the port forwarding...

I can host a server (dedicated or not) as LAN mode, AND
1) It will show up in the public server list
2) People from public can join the server (No need to VPN service like Hamachi)

Is that correct?
avatar
BaDTimE-S4: That's correct.

It doesn't matter if you host a LAN or Internet server, after follow all procedures described in GitHub, your server will be included in public server list.

Just 1 consideration: in Swat4DedicatedServer.ini file, [GS2.Listener] section, Port parameter must be JoinPort+3, instead JoinPort+2 (eg. Port=10483).

Note that the native Swat4 does not follow strictly the Gamespy Query Protocol v1 standards.
For that reason you must also implement this: github.com/sergeii/swat-gs1 and its dependencies.
Thank you for clearing it up! I've been testing the servers and still wondering why it doesn't show up in the master list.

I've yet to set the ports in the ini file.

Also, do you mean to say I have to use GS1 + Utils, together with GS2?

I'm looking at the Swat4Sever console log and still notice that "GameSpy query port: 10481" even though i changed the GS2.Listener parameter. I'm testing the SWAT4 (not SWAT4 TSS).

Anyway I'll try GS1.
Post edited January 25, 2017 by floccipocci
avatar
BaDTimE-S4: That's correct.

It doesn't matter if you host a LAN or Internet server, after follow all procedures described in GitHub, your server will be included in public server list.

Just 1 consideration: in Swat4DedicatedServer.ini file, [GS2.Listener] section, Port parameter must be JoinPort+3, instead JoinPort+2 (eg. Port=10483).

Note that the native Swat4 does not follow strictly the Gamespy Query Protocol v1 standards.
For that reason you must also implement this: github.com/sergeii/swat-gs1 and its dependencies.
avatar
floccipocci: Thank you for clearing it up! I've been testing the servers and still wondering why it doesn't show up in the master list.

I've yet to set the ports in the ini file.

Also, do you mean to say I have to use GS1 together with GS2?
The official master list service was closed in 2012 by gamespy; then we created an alternative service.

Btw, you have to add you server here: www.gametracker.com/servers/ in order to be listed by swat4stats and in-game browser. (Query Port = Join Port + 3)
Post edited January 25, 2017 by BaDTimE-S4
avatar
floccipocci: Thank you for clearing it up! I've been testing the servers and still wondering why it doesn't show up in the master list.

I've yet to set the ports in the ini file.

Also, do you mean to say I have to use GS1 together with GS2?
avatar
BaDTimE-S4: The official master list service was closed in 2012 by gamespy; then we created an alternative service.

Btw, you have to add you server here: www.gametracker.com/servers/ in order to be listed by swat4stats and in-game browser.
Ok that clears it up nicely.
I created a small script to automate the patching process explained in GitHub:

mytteam.com/files/patch.bat

That will add 3 entries in both Engine.dll files and Hosts files, which replaces gamespy's offline servers.

Also solves the CD Key problem.

Depending of your windows configuration, patch will request Admin Rights, prompting this dialog:
[url=
www.reviversoft.com/blog/wp-content/uploads/2014/0/windows-8-uac.png]
www.reviversoft.com/blog/wp-content/uploads/2014/0/windows-8-uac.png[/url]

Note that this patch was created exclusively for GOG default installation path.

Here's the plain source-code of script and am antivirus verification:

mytteam.com/files/patch.txt

[url=http://www.virustotal.com/en/file/21b090681659ef31ec67fd87fad21b05489798feb25ea5304ea611bbe5ce7445/analysis/148532858 1]www.virustotal.com/en/file/21b090681659ef31ec67fd87fad21b05489798feb25ea5304ea611bbe5ce7445/analysis/1485328 58 1[/url]
Post edited January 25, 2017 by BaDTimE-S4
avatar
BaDTimE-S4: I created a small script to automate the patching process explained in GitHub:

mytteam.com/files/patch.bat

That will add 3 entries in both Engine.dll files and Hosts files, which replaces gamespy's offline servers.

Also solves the CD Key problem.

Depending of your windows configuration, patch will request Admin Rights, prompting this dialog:
[url=
www.reviversoft.com/blog/wp-content/uploads/2014/0/windows-8-uac.png]
www.reviversoft.com/blog/wp-content/uploads/2014/0/windows-8-uac.png[/url]

Note that this patch was created exclusively for GOG default installation path.

Here's the plain source-code of script and am antivirus verification:

mytteam.com/files/patch.txt

[url=http://www.virustotal.com/en/file/21b090681659ef31ec67fd87fad21b05489798feb25ea5304ea611bbe5ce7445/analysis/148532858 1]www.virustotal.com/en/file/21b090681659ef31ec67fd87fad21b05489798feb25ea5304ea611bbe5ce7445/analysis/1485328 58 1[/url]
All that did was spam cmd prompts endlessly for me.