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

×
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]
avatar
RemnantEvil: All that did was spam cmd prompts endlessly for me.
Are you Windows 10 user?

Alternatively you can right-click on file and choose "Run as Admin", to avoid UAC prompt.
Post edited January 25, 2017 by BaDTimE-S4
avatar
RemnantEvil: All that did was spam cmd prompts endlessly for me.
avatar
BaDTimE-S4: Are you Windows 10 user?

Alternatively you can right-click on file and choose "Run as Admin", to avoid UAC prompt.
Windows 7, although that seemed to fix it and the prompt ran properly. Thanks.

You said way back up the top that all this patching isn't necessary for Direct IP with friends. So should I just read up on port forwarding if I want to do that?
avatar
BaDTimE-S4: Are you Windows 10 user?

Alternatively you can right-click on file and choose "Run as Admin", to avoid UAC prompt.
avatar
RemnantEvil: Windows 7, although that seemed to fix it and the prompt ran properly. Thanks.

You said way back up the top that all this patching isn't necessary for Direct IP with friends. So should I just read up on port forwarding if I want to do that?
The patch (or GitHub instruction) is intended to replace Gamespy Master Server in Clients.

About Servers, I fixed the CD key problem when you run it in Internet mode.

Anyway, the functionality of alternative gamespy masterlist is still restricted.

So you need add your server IP / Join Port / GS2 Query Port (JoinPort+3) in Gametracker.com, in order to turn your server public.

Either LAN / Internet, port fwd is necessary. The only difference is that without a server listed, you will need to share IP with your friends to join using Direct IP.
A little out of the title, but I have always wanted somebody to patch some of these:

GAME DESIGNER MISTAKES

CONTRADICTION: Single player and multiplayer co-op have different scoring. In single player all SWAT officers except the leader can be injured and still you can get 100/100 score. In multiplayer no SWAT officer must be injured to get 100/100 score.
NON-REALISTIC: SWAT officer will be injured if another SWAT officer hits him with a fist. This lazy looking left handed pounch to center body area should never result an injury to a armored SWAT officer.
CONTRADICTION: Less Lethal Shotgun hit to SWAT officer results permanent red mark on body icon on bottom left, but keeps SWAT officer status healthy
CONTRADICTION: Launcher grenade hit to SWAT officer will result nothing on the body icon on bottom left, but changes SWAT officer status injured
BAD IDEA: Vote for leader function should not be used because leader status prevents everyone seeing when leaders status is injured
BAD IDEA: Heavy armor and light armor are useless if you want to have 100/100 scores in multiplayer because after even a small hit results injury
MISSING FEATURE: Hand grenades have no counter indicating how many you have got.

BUGS
Flashlight can be pointed through walls to help optiwanding.
Suspects and civilians may be visible partly trough doors and when surrendered they sometimes may be pushed inside some objects for example a television or a suitcase.
Used bullets are sometimes stuck in air.
In DuPlexis Diamond Center you may walk in air if you choose to go down in certain angle with the left handrail of top floor main stairs.
In -EXP-Department Of Agriculture you can drop behind fallen chair and be stuck forever.
In -EXP- Fresnal St. Station a handcuffed suspect managed to free himself and stand up.
In single player dropped weapons can drop inside graphics and become invisible, they still have to be picked up for maximum score, so all you can do is to move cursor around the surrendered suspects to find text Secure Evidence
In multiplayer clients may see dropped weapons that the host does not see and vice versa. Usually game will leave out weapons that not everyone can secure as the mission progresses.
I prefer the "Swat 4 Server Browser Alternative" myself (I run the disk version of gold edition) but I guess this would work as well.

Good work.
Dunno if it's been mentioned elsewhere but http://aluigi.altervista.org/patches/swat4x2fix.lpatch might also be a good idea.
Im still getting Invalid CdKey when trying to host an internet server even after running the patch.bat.

Ran it as administrator
avatar
nicehat: Im still getting Invalid CdKey when trying to host an internet server even after running the patch.bat.

Ran it as administrator
Be sure that your installation folder is C:\Program Files (x86)\GOG Galaxy\Games\SWAT 4\, otherwise, you are free to right-click script file, and edit it according your custom installation path.

The goal of patch is allow client to experience once again browsing Gamespy in game Master server list.

The addition of the known as "Public Server Patch" was made supposedly that i would be a dedicated server.

Unfortunately, it seems not work to Listening Mode game host; therefore, I recommend host the game as dedicated server, and then relaunch the game connecting in localhost - IP 127.0.0.1.

Note that you need to forward UDP & TCP ports ranging 10480-10487 (104890 if you want to use Gez WebAdmin)

You can also just add you internal LAN IP in DMZ (demilitarized zone) in your router, instead port forward.

Note that host a game in internet as "LAN" wont present such CDkey issue, since your friends use direct IP connection.

Stay tuned because there are new 'ALL-in-ONE' package to be launched asap intended to replace all those several pieces still needed to announce your public server in masterserver and others.

Best regards.
Post edited January 28, 2017 by BaDTimE-S4
avatar
nicehat: Im still getting Invalid CdKey when trying to host an internet server even after running the patch.bat.

Ran it as administrator
avatar
BaDTimE-S4: Be sure that your installation folder is C:\Program Files (x86)\GOG Galaxy\Games\SWAT 4\, otherwise, you are free to right-click script file, and edit it according your custom installation path.

The goal of patch is allow client to experience once again browsing Gamespy in game Master server list.

The addition of the known as "Public Server Patch" was made supposedly that i would be a dedicated server.

Unfortunately, it seems not work to Listening Mode game host; therefore, I recommend host the game as dedicated server, and then relaunch the game connecting in localhost - IP 127.0.0.1.

Note that you need to forward UDP & TCP ports ranging 10480-10487 (104890 if you want to use Gez WebAdmin)

You can also just add you internal LAN IP in DMZ (demilitarized zone) in your router, instead port forward.

Note that host a game in internet as "LAN" wont present such CDkey issue, since your friends use direct IP connection.

Stay tuned because there are new 'ALL-in-ONE' package to be launched asap intended to replace all those several pieces still needed to announce your public server in masterserver and others.

Best regards.
When you do it would be a good idea to do 2 versions. One for the galaxy install and one for the installer install which by default is C:\gog games\game name here
Post edited January 29, 2017 by Varacka
avatar
BaDTimE-S4: Be sure that your installation folder is C:\Program Files (x86)\GOG Galaxy\Games\SWAT 4\, otherwise, you are free to right-click script file, and edit it according your custom installation path.

The goal of patch is allow client to experience once again browsing Gamespy in game Master server list.

The addition of the known as "Public Server Patch" was made supposedly that i would be a dedicated server.

Unfortunately, it seems not work to Listening Mode game host; therefore, I recommend host the game as dedicated server, and then relaunch the game connecting in localhost - IP 127.0.0.1.

Note that you need to forward UDP & TCP ports ranging 10480-10487 (104890 if you want to use Gez WebAdmin)

You can also just add you internal LAN IP in DMZ (demilitarized zone) in your router, instead port forward.

Note that host a game in internet as "LAN" wont present such CDkey issue, since your friends use direct IP connection.

Stay tuned because there are new 'ALL-in-ONE' package to be launched asap intended to replace all those several pieces still needed to announce your public server in masterserver and others.

Best regards.
avatar
Varacka: When you do it would be a good idea to do 2 versions. One for the galaxy install and one for the installer install which by default is C:\gog games\game name here
I just added 2 more possible paths.

I'm a bit busy with paperwork right now, but I will add path detection searching windows registry asap

---------------------------

Here's the direct download to Masterserver Patch + Public Server Patch:

Swat 4 v1.1: Engine.dll

Expansion: Engine.dll

P.S.

I bought my game in D2D. Since gamespy shutdown I could not reinstall it anymore; even still having serial number.

So I replaced the original Swat4.exe and Swat4x.exe, which tried to contact D2D's dead servers, in order to allow me to launch the game, for those files:

Swat 4 v1.1: Swat4.exe

Expansion: Swat4X.exe

I don't know if that it will somehow help, but I don't have such problems related with "CD key".
Post edited January 29, 2017 by BaDTimE-S4
and now I am getting an error when connecting with my friend of cd-key auth failed when we both try to join the same server with this patch. Freaking wierd. Running the expansion.
Post edited January 29, 2017 by Varacka
avatar
Varacka: and now I am getting an error when connecting with my friend of cd-key auth failed when we both try to join the same server with this patch. Freaking wierd. Running the expansion.
https://github.com/sergeii/swat-patches/tree/master-for-servers/swat4stats-masterserver#hosting-a-server
avatar
Varacka: and now I am getting an error when connecting with my friend of cd-key auth failed when we both try to join the same server with this patch. Freaking wierd. Running the expansion.
avatar
BaDTimE-S4: https://github.com/sergeii/swat-patches/tree/master-for-servers/swat4stats-masterserver#hosting-a-server
This fix does not work for hosting a SWAT 4x server using the GoG version. Whenever a player tries to connect the dedicated server crashes with this error:

Log: UGameSpyManager::ServerSendChallengeString - sending GAMESPYCHALLENGE CS=5iwjsUOR
DevNet: Level server received: GAMESPYRESPONSE RS=d41d8cd98f00b204e9800998ecf8427e36770563888ed7a8c9f35b8c870fd282f0ea4790
Log: UGameSpyManager::ServerAuthenticateCDKey - challenge=5iwjsUOR, response=d41d8cd98f00b204e9800998ecf8427e36770563888ed7a8c9f35b8c870fd282f0ea4790
Log: UGameSpyManager::ServerAuthenticateCDKey - returning
Log: UGameSpyManager::ServerCDKeyAuthenticationFailed
Critical: UGameEngine::Tick
Critical: UpdateWorld
Critical: MainLoop->GenerateExtraCrashInfo [(GLevel: 'myLevel' PendingLevel: '(NULL)' NetMode: 'NM_DedicatedServer']
Critical: MainLoop
Log: Exception handler: Flushing log file...
Exit: Executing UObject::StaticShutdownAfterError
Exit: Exiting.
Log: Waiting for file streaming thread to finish...
Uninitialized: Name subsystem shut down
Uninitialized: Log file closed, 03/25/17 02:30:00
Another user supposedly created a fix for this but they never added links to their thread.
Post edited March 25, 2017 by bporgn
By far the best way to fix the multiplayer server list is to get the Content/System patch for the SWAT4: Gold Edition on https://github.com/sergeii/swat-patches/tree/master/swat4stats-masterserver#how-to-install-this-patch. You simply replace the Engine.dll file, run the game and viola!
My Swat4X dedicated server crashes upon connection as mentioned above. Does anyone know how to fix that?
avatar
bporgn: This fix does not work for hosting a SWAT 4x server using the GoG version. Whenever a player tries to connect the dedicated server crashes with this error:

Log: UGameSpyManager::ServerSendChallengeString - sending GAMESPYCHALLENGE CS=5iwjsUOR
DevNet: Level server received: GAMESPYRESPONSE RS=d41d8cd98f00b204e9800998ecf8427e36770563888ed7a8c9f35b8c870fd282f0ea4790
Log: UGameSpyManager::ServerAuthenticateCDKey - challenge=5iwjsUOR, response=d41d8cd98f00b204e9800998ecf8427e36770563888ed7a8c9f35b8c870fd282f0ea4790
Log: UGameSpyManager::ServerAuthenticateCDKey - returning
Log: UGameSpyManager::ServerCDKeyAuthenticationFailed
Critical: UGameEngine::Tick
Critical: UpdateWorld
Critical: MainLoop->GenerateExtraCrashInfo [(GLevel: 'myLevel' PendingLevel: '(NULL)' NetMode: 'NM_DedicatedServer']
Critical: MainLoop
Log: Exception handler: Flushing log file...
Exit: Executing UObject::StaticShutdownAfterError
Exit: Exiting.
Log: Waiting for file streaming thread to finish...
Uninitialized: Name subsystem shut down
Uninitialized: Log file closed, 03/25/17 02:30:00
avatar
bporgn: Another user supposedly created a fix for this but they never added links to their thread.
Did you ever find a fix for this? i'm having the same problem
Post edited June 21, 2017 by BrumesWolf