Last Resort Mod Blog

Installer - June 25, 2016

In between playing some new games from the Summer Steam Sale I started work on the installer for version 0.7 of the Last Resort mod.   I still need to update a few things from the old 0.6 installer and I need to make sure it is all idiot proof.  After the installer package is made I will need to test it all out both original disc versions of Swat 3 and also on the version.

click to enlarge image

Write comment (3 Comments)

Swat.exe and shims - June 24, 2016

gho, the coder behind the very useful DxWnd app, has responded on his forums about the recent frame rate problem that was discovered when "swat.exe" gets renamed.

"I'd bet that the game has "shims" configured to its filename.  As you may know or not, shims are preconfigured patches that Microsoft introduced to its new operating systems (for sure on Win10, I'm not certain starting from when) that patch "on the fly" legacy applications to ensure a better compatibility.  Shims can be applied according to different preconditions, from a particular game path to a given CRC or other more.

I bet that SWAT3 has shims related to its filename, so that if you rename it they will be no longer applied."

It looks like I have to go ahead with changes to the Last Resort Launcher to fix this issue.

Write comment (3 Comments)

2 Problems 1 Solution - June 19, 2016

Just some quick notes before I head off to bed (busy with real life work next few days).

Problem 1:

I was having a problem with some replacement textures of MissionA not showing up properly in the Last Resort mod.  The troublesome textures almost seemed random.   I double checked my mod folder and my mission folder to see if something in there could have been the problem.  I was banging my head on the keyboard trying to figure it out.   Copy-Cat made a comment in my last blog entry to check the mission directory.   A tiny part of me was insulted that he would think I wouldn't know about that so out of spite I thought to myself "fine, I will check again so that I can stick my tongue out at him that he was wrong".    I didn't have any fan made maps in the mission directory so at first I was feeling smug.   All that I had in that folder were a few of the official Sierra made downloadable maps that were free DLC.    For the sake of due diligence I decided to open up the official Sierra maps in 7zip.   I was shocked to find that they had included MissionA textures in maps like "Civil Unrest".     Ack!  This was the source of the problem all along.

Now I have egg on my face and have to say thanks to Copy-Cat for making the suggestion!

I have since moved all of the replacement textures for Last Resort into a traditional mod that will automatically get activated by the Launcher.  Thankfully mod textures have higher priority than mission textures.   Problem solved.


Problem 2:

Bounty2k3 posted in our forums that he noticed that the Last Resort mod gave poor FPS performance but only in full screen mode.   When he tested the mod by forcing Swat 3 into a window the FPS performance was normal.

This surprised me since in the past I have run tests but I don't think I ever tested windowed vs full screen.   Anyway, after a lot of testing, I figured out when the problem occurs but I am still not certain why it happens.

If you rename "swat.exe" to a different name the frame rate issue appears.  The Last Resort mod uses custom hacked executables to give higher screen resolutions and higher texture resolutions.   To do this we have renamed the "swat.exe" to "swat_1024x768.exe" and so on for each different resolution.  This method however seems to cause a FPS issue so this needs to be fixed.

As of right now I am still trying to decide the best solution.  Thanks Bounty2k3 for bringing this problem up!

Write comment (1 Comment)

Mod priority issues - June 1, 2016

Now that the new 1920x1080 menus are done I continued trying to get the mod ready for release by packaging up all the files.    However when I double check the work to see that everything is working properly I continue to have texture replacement priority issues.

Get ready for some boring technical explanation below:

What that means is when I create a replacement high resolution texture sometimes the game ignores it and uses the original low resolution texture.   If I put the texture in a mod and activate it the game will use the new version of the texture no problem.   This is actually how I work when I am making the new textures (for instance I place all the mission A new textures inside a mod folder called "missiona_new" and then activate it just like any other mod).

Now that I am trying to release a new version of Last Resort when I package everything up the new textures are no longer activated like a traditional mod.  This is when I start having file priority issues.

The only way to fix this is to search out which new textures aren't getting displayed properly and use a hex editor to modify the texture names so the game thinks they are whole new textures.  Not only is this a pain in the ass but it also increases the amount of memory the game will use for textures.

Write comment (14 Comments)

1920x1080 menus almost done - April 17, 2016

Although this is the first really nice weekend of the spring here in Canada I forced myself to work some more on the new 1920x1080 2D menus.   I was busy the last two weeks with real life work so haven't had any time.

Swat 3's debrief screens are grossly inefficient.    Why are there 15 debrief screens that do almost the exact same thing?   Madness.

The latest Fallout 4 DLC just came out about a week ago and I haven't even had time to play with that much.   The sunlight wins.   I am going outside and getting some ice cream at the old DQ.


Write comment (0 Comments)

Working on new 2D menu resolution - March 29, 2016

Swat 3's 2D menus are .BMP (bitmap) graphics and take a lot of work every time I need to generate a new resolution.   I have been thinking about adding 1920x1080 resolution for a long time and tonight I started to look at all my old Photoshop files.   First thing I noticed is that the old Last Resort main menu graphics wouldn't work any more.   They were fine for the lower resolutions but for this massive size I needed some new graphics.   I spent several hours on Google Images and Bing images and finally found some that I think are good looking.

Below is my first attempt and hasn't been refined in any way yet.

The larger the resolution gets the bigger the hit on the frame rate when on the 2D menus.  Even with fixes like DgVoodoo or WineD3d it will be interesting to see what frame rate we get once I am done.



 Click to enlarge (1920x1080 pixels)

Write comment (4 Comments)
2022  Swat 3 Last Resort - Swat 3 Game Modification
© 2001 Activision Publishing, Inc. Activision and SWAT are registered trademarks of
Activision Publishing, Inc. All other trademarks are property of their respective owners.