S.T.U.N. Runner 60FPS and possible HD upgrade

HornheaDD

Grand Master
Joined
Apr 28, 2021
Messages
555
Reaction score
498
Location
Texas
Two things to get out of the way right here -

A. If this type of project is not allowed or does not belong in this section of the forum, mods/admins, please feel free to delete it (or move it to where it belongs?)

B. I am in absolutely NO way a programmer/coder. I have dabbled in python and by 'dabbled' I mean "I did about 4 days of 100 Days of Python" and my head exploded.

With those out of the way, I would like to announce (I guess) a project to enhance the 1989 Arcade game S.T.U.N. Runner. As far as I know it was only ever ported to the Atari Lynx and a few PCs back in the day not counting "Arcade Classics" releases that were just emulators. After seeing what someone did with StarFox Enhanced Youtube video here I got to thinking, what about STUN Runner? Would it be possible to do this? The simple answer is a resounding....... maybe.

Using our upcoming robot overlord Claude and his beefier brother ClaudeCode, I was able to compile a version of MAME 285 to modify the game to run at a (mostly) smooth 60 fps. Beyond that, the plan is to create an HD Redraw of the game. Here is a quick video that was created by Claude with a side by side of an HD version of the game running at its native 20 fps, and then 60 on the right. These are concept, but Claude was able to create these quick redraws using MAME and its own voodoo. So its "real" per se, but also just a mockup using the real thing if that makes any sense.

Currently this only works using a specifically compiled version of MAME 285 and stunrun.zip.

That said - my goal here is to have the entire game rewritten into a standalone PC/Linux port, at 60fps, in HD, and possibly/hopefully widescreen. Or if nothing else, HD in 4x3. Claude claims up and down that its possible but can take months of working on it, which makes sense. I guess one of those "recomp" things.

Note: stunrun.zip is in no way modified yet, its all doohickies and doodads in MAME. But I was able to get the sound working properly, as well as the fps to be favorable. I have a working bundled version of MAME that runs it by default (no menus, commandline, etc, just double click and it runs and hit F2 to bring up the MAME in-game menu) on both Windows and Linux (CachyOS, but it was built in an Ubuntu environment).

I havent placed it on a Git or website or anything just yet because Im still testing things, but I will upload the special version of MAME that only has the SR game driver so its small. Once I am happy with it, I will upload the emulator, and like most cases, you would need to provide your own stunrun.zip for MAME 285.

I even did a SUPER MEGA GIGA TECHNICAL EDIT of the games logo. Bask in my photoshop prowess!:


1794980761222.png


I dunno if anyone else likes this game as much as I do/did, but I pumped plenty of quarters into the "sled" version of this game, and along with a Neo Geo MV-2-13, it is one of my grail cabs.

Anyway, sorry for the ramble. This is the first time Ive done anything like this so other than knowing I am talking out of my ass, I figured I'd share the idea. I hope I can progress with it and get it going.

edit: Updated the MAME version, I mistyped. It's running MAME 285, not 258.
 
Last edited:
Go go go! It’s an excellent game and love for it is nice to see!


I bought that cab for 200$ in 2012ish … and sold it cause hey, it’s the size of a snowmobile!
I missed it enough to track one down 2-3 years ago? from a friend, only to find out my highscore were still in there so it was indeed my old cab! 500$ this time ;)

When you sell a game and buy it again, it is a sign. Dont ever let it go again!
 
Last edited:
Ive gone the whole route and created a git at https://github.com/HornheaDD/STUN60 for the project. Currently its only the 60FPS version, the HD Redraw has not yet been started or attempted.

Feel free to check it out, there are flavors for Windows 10/11, Linux and an .appimage for Arch based distros. Remember, you'll need to source your own stunrun.zip - I dont need Atari at my back porch.

For those (like me) that tend to skip READMEs, this is really the only functional part you'll need:

Hitting the O (not zero) key will bring up the FPS counter or turn it off. I believe its on by default.
Hitting C will turn on the CRT scanline shader, if pressed again, it will cycle to a sharper scanline version, and if hit again it will turn it off. Hitting it yet again will cycle back to the CRT scanline shader.

I know this is only emulation at this point, but for those that happen to have MAME pcs, feel free to check it out. Works pretty good with my Xbox One X controller.
 
Well, we have our first HD/60FPS release. Feel free to check out either one. The 60FPS version remains the same as before, left there for purists who prefer the game look the part as it did in 1989. The HD/60 version is now live. Download is about 50MB. Then when the game finishes processing the change, (only does it the first launch), it expands to about 75MB.

HD - https://github.com/HornheaDD/STUN_HD60/releases/tag/hd-v1.0
SD - https://github.com/HornheaDD/STUN60/releases/tag/v1.0

Still some work to do like the wire framing sections like when boosting, or the level where the tunnel is transparent, but we're making some good progress.
 
Ive updated the project a bit, HD60 is now at v1.2 - I (well... claude) did some mods to the game to get the wireframe sections of tracks and the wireframe version of the vehicle (when boosting) into HD as well. And - I got it to modify the geometry for the gates at the beginning and ends of tunnels. Now they open smoothly instead of at the 8 frames of animation as before! Quite impressed with that, actually.

The 60FPS version is basically 'done' so it wont be going past the 1.0 release, but theres still some work to be done on HD60. Im hoping a widescreen hack will work, but Im not certain.
 
STUN HD60 is now up to release v1.4!

Latest additions include:
  • Wire framing is now HD'afied. Most non-3D animations such as the iris style gates at the beginning/ends of tunnels have been improved from the original. Gate irises would open with about 8 frames of animation and even in HD they were choppy. Now, they open smoove as butta.
  • The transition from solid to wire frame when hitting a boost panel is now animated much better than the original.
  • The pilot, who is only ever seen walking up to the Runner vehicle at the beginning has also been updated and walks a lot smoother instead of the very few frames he was originally animated at. It's an extremely minor thing that you only see for about 3 seconds, but I figured it would add a bit of charm.
  • Odds and ends like the bird enemy's animation have been updated, as have explosions, impacts with armored enemies, and when blowing up an enemy in a race the animated pieces of shrapnel now animate much smoother than before.
Still need to try and HD'afy the in-between-level screens as they are still SD. Sharp, but still SD. Im not certain how well they will turn out, but the backgrounds seem to have been ok so we'll see.

As an aside - I wonder if something like this could be done with Hard/Race Drivin'. Time will tell...
 
Last edited:
STUN HD60 is now up to release v1.4!

all right, back from a week in Paris.

your link above is doubled ;)


The CPUs are overclocked (68010 x3, video x4, 3D x8), which this needs; the launcher sets it. Advanced: the environment variable STUN60_CLOCK (e.g. maincpu=3,gsp=4,adsp=8) overrides it,

The windows environment variable? or is there a config for it?! cause yeah .. it's of course really weird to play it in HD, but I think this overclocking is what throws me off and make the game play really "weird" to me. of course I'm comparing it to the real machine
 
Do you mean if you can change the options on Windows?

If so I don't believe that to be the case. They aren't adjustable on Linux either. 60fps is just "on" by design. The only options changeable would be the HD option or the scan lines.

I haven't played the game on an actual cab in years, so unfortunately I can't compare how they feel. I just use my Linux PC to test builds, and the windows PC in my chewlix to test windows functionality.

When you say weird, what are you referring to?

edit: thanks for the heads up on the link. Weird, its been fixed!
 
Last edited:
Back
Top