- Jan 28, 2013
- Reaction score
EDIT: This issue has been fixed globally for all players.
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:
SWAT Build Number: 34688 Access Violation caused General protection fault! History: UGameEngine::Tick <- UpdateWorld <- MainLoop->GenerateExtraCrashInfo [(GLevel: 'myLevel' PendingLevel: '(NULL)' NetMode: 'NM_Standalone'] <- MainLoop
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.dllfile), 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.
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 your
hostsfile 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\hostson Windows fixes the problem:
2. Swat4.ini patch ( credits to @Beppe_goodoldrebel )Add
MassiveUpdateDelay=100000000to your Swat4.ini configuration file under
[Engine.GameEngine]section. Your file should then look something like this:
[Engine.GameEngine] MassiveUpdateDelay=100000000 EnableDevTools=false ...
3. m4d.dll patch ( credits to @BaDTimE )Replace your
m4d.dllwith our custom edited dll which will contact
localhostinstead 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/Systemfolder of you Swat4 installation.
You can download the patched .dll from here (link comes from our Discord support channel). If you need the original back again, use this link.