EDIT: This issue has been fixed globally for all players. However, you can still apply this patch to avoid unnecessary internet connections.
This post addresses the following error (and those similar to it) which occurs when attempting to load A-Bomb Nightclub, Qwik-Fuel Convenience Store, Old Granite Hotel or DuPlesis Diamonds maps:
Code:
SWAT Build Number: 34688
Access Violation caused General protection fault!
History: UGameEngine::Tick <- UpdateWorld <- MainLoop->GenerateExtraCrashInfo [(GLevel: 'myLevel' PendingLevel: '(NULL)' NetMode: 'NM_Standalone'] <- MainLoop
Error summary
Since 7th September 2021, a 3rd party service, which is contacted by Swat4, ceased it's activities forever. Therefore, whenever Swat4 tries to load these maps, it leads the application to crash due to a null pointer. To summarize, Swat4 contacts the domain "madserver.net" (which is hardcoded in
m4d.dll
file), and receives an invalid reply. Thus, ALL SWAT 4 PLAYERS suffered with that crash issue, what could only be avoided by disabling the internet connection (which for MP is not a fix). Since that problem persists, all SWAT 4: Gold Edition copies sold by GOG.com (and many other games that depend on that 3rd party ad service) simply stopped working.Thanks to @BaDTimE and @KrazyFire , we have a working fix for the SWAT4 crashes that have been happening lately. In the following week we will work on a global solution which will fix the game without the need for patches - since in the current state, every newcomer will crash on certain maps. Whoever is interested can read more about it in our Discord #support channel , however I will put the relevant details below as well.
Solutions
Currently, we have a number of solutions available, however unfortunately all of them require action from the user before the game is able to be played on mentioned maps:
1. Hosts file patch ( credits to @KrazyFire )
Patch yourhosts
file to block the ad website - if you choose this option, check our Discord support channel for more details on which hosts to block. For now, we have confirmed that placing the following lines in %WINDIR%\system32\drivers\etc\hosts
on Windows fixes the problem:
Code:
127.0.0.1 madserver.net
2. Swat4.ini patch ( credits to @Beppe_goodoldrebel )
AddMassiveUpdateDelay=100000000
to your Swat4.ini configuration file under [Engine.GameEngine]
section. Your file should then look something like this:
INI:
[Engine.GameEngine]
MassiveUpdateDelay=100000000
EnableDevTools=false
...
3. m4d.dll patch ( credits to @BaDTimE )
Replace yourm4d.dll
with our custom edited dll which will contact localhost
instead of the faulty host and since there will be no responses coming it will silently fail. This .dll file should replace the one found in Content/System
folder of you Swat4 installation.You can find the patched .dll in a zip file attached to this topic.
Attachments
Last edited: