VOGONS


First post, by Zoomer

User metadata
Rank Member
Rank
Member

Hi everyone! Recently I've stumbled upon a game called AMOK released in 1996 on PC and in 1997 on Sega Saturn. It was first developed as an exclusive for Sega 32x and then, when Sega dropped it, it was reworked for Saturn from what I gather. It's interesting, that Wikipedia lists release date on PC earlier than Saturn, but whatever.

So having played 5 levels on easy difficulty on Saturn I kinda liked it and there I found out that I have to restart on Hard to complete it. I hate when they do that, haha.

And that's when I found out about the PC release. I managed to find the CD, and it contains the executables for both Dos and Windows 95. It's one of those games that kinda runs directly from CD. The readme says it doesn't copy anything to hard rive and even for saves you have to use a password system. And it works flawlessly on my Windows 98 PC, with redbook audio and highres modes. It goes up to 800x600 and looks and runs much better than on Saturn.

So then I wanted to run it on my main pc with Windows 11 in order to use dgVoodoo and so on. However, I'm getting that stupid fullscreen windows message (a la UAC) "This app can't run on your PC". And no matter what I do, it doesn't want to run it.

I'm not even sure what does that message mean. The only time I saw this is back in Windows 10 times when I tried to run some win16 installer or something, and Wow64 complained. However, back then it dropped a message in the Event Viewer about incompatibility with 16 bit apps and it was easy to troubleshoot. There's absolutely nothing this time. I've looked everywhere.

So here's what happens.

The CD's got a windows executable in the x:\AMOKFILS\FILES95 directory called AMOKWIN.EXE. If you run it, it silently closes, no errors or anything.

Working my way through Procmon, I found out that it actually drops a "AMOKTEMP.EXE" file into the system's \Local\Temp\ directory (so much for running directly from the CD), and then probably tries to run it. Then it can't and silently crashes. I think.

The AMOKTEMP.EXE stays there. If I try to run it, I'm getting that "This app can't run on your PC" thing. I've checked with winevdm on 64-bit Windows and it says it's a Win32 app. Wow64 doesn't say anything either, as mentioned before.

I also inspected it with hex editor and to me, it looks like a valid exe. It also contains this string inside: "this is a Windows NT windowed executable". So it's even an NT executable. I'm not sure why then Windows 11 complains.

Googling this error brought nothing. Looks like it's a pretty generic error (like everything in modern windows now).

Has anyone tried troubleshooting such a message before? I can't find even the faintest lead. Is it some sort of security stuff, or some incompatibility, or what. I thought maybe Windows sees it as a legacy exe and tries to elevate it, but then it doesn't since it sitting in a temp folder and some security policy prohibits it from doing that. So I copied it to another location but again same result.

Process Monitor doesn't even see it launching.

I'm attaching that amoktemp.exe from the temp directory if anyone would want to poke around in hex editor. Virus Total says it's clean, but you might want to use VM or something just in case.

I'm completely at a loss here and would be grateful for any suggestions

Last edited by Zoomer on 2025-01-10, 12:55. Edited 1 time in total.

MB: Asus P3B-F 1.03 (2x ISA)
CPU: PIII-S 1.4GHz/VIA C3 800MHz
RAM: 256MB PC133
Video: GeForce 4600Ti/Voodoo 5 5500/Voodoo 3 3500 for DOS Glide
Audio: SB16 OPL3 + Audigy Platinum Ex
OS: Windows 98

Reply 1 of 13, by BEEN_Nath_58

User metadata
Rank l33t
Rank
l33t

I tried to see if the Win98 and Win11 AMOKTEMP.EXE is identical, and yes it is. Maybe the game is using some kind of encryption on top of it?

previously known as Discrete_BOB_058

Reply 2 of 13, by BEEN_Nath_58

User metadata
Rank l33t
Rank
l33t

huh2 on SourceForge helped me with a tool I deleted sometime.
Download this, this is an unobfuscated amoktemp.exe and put it over to the Temp folder as Read only
https://sourceforge.net/p/dxwnd/discussion/ge … ent/amoktemp.7z

previously known as Discrete_BOB_058

Reply 3 of 13, by Zoomer

User metadata
Rank Member
Rank
Member

Whaaa...??? Obfuscated? Why? I mean, yay, it works indeed! Thank you so much! Looks dope, by the way!

But why would they obfuscate it in the times of Windows 95? The executable without any piracy protection? What for? Or is that the piracy protection itself? Is this why Win11 doesn't want to run it? Does it see the file is obfuscated? And I thought I saw it all.

Anyway, the modified executable works, only you can't run it directly of course. And it also seems that a file could be deleted even if it has a "Read-only" attribute. Even by the user without elevated privileges. Was it always like this? Do "System" privileges are applied for what AMOKWIN.EXE is doing?

For those who struggles with that game:

1. Download the file provided by Been_Nath_58 (attached it to this post)
2. Extract the exe file from the 7z archive to x:\Users\[username]\AppData\Local\Temp
3. Rightclick the extracted file and open properties -> security tab -> Advanced button. Change the Owner to Administrator. Close and reopen this window and press "Disable inheritance". Then press "Change permissions", select your account and press edit and then remove Full Control, Modify and Write permissions. Leave Read and Read & Execute.
4. Repeat the same for SYSTEM account.
5. In the File Properties mark the Read-only attribute.

2. Extract the exe file from the 7z archive to any directory.
3. Copy the contents of the AMOKFILS directory from the CD image to the same directory where you extracted the AMOKTEMP.EXE
6 (optional). Copy dgVoodoo files to the same directory (without dgVoodoo the game may or may not instantly exit) and configure it according to your preferences.
7. Setup any winmm emulator to get the redbook audio music.
8. Run AMOKTEMP.EXE, press F2 to go high res and enjoy!

Steps 1 through 6 need to be done only once. Other than that, the game runs flawlessly. dgVoodoo's borderless screen works fine, though I'd recommend ticking off "Application controlled fullscreen/windowed state" and "Disable Alt-Enter to toggle screen state" in the dgVoodoo settings, since the game would exit if it detects the loss of focus.

Again, thank you so much for helping me with that! Now on to finishing it. 😀

The attachment AMOK 10_01_2025 10_43_15.jpg is no longer available
Last edited by Zoomer on 2025-01-10, 11:47. Edited 2 times in total.

MB: Asus P3B-F 1.03 (2x ISA)
CPU: PIII-S 1.4GHz/VIA C3 800MHz
RAM: 256MB PC133
Video: GeForce 4600Ti/Voodoo 5 5500/Voodoo 3 3500 for DOS Glide
Audio: SB16 OPL3 + Audigy Platinum Ex
OS: Windows 98

Reply 4 of 13, by BEEN_Nath_58

User metadata
Rank l33t
Rank
l33t
Zoomer wrote on 2025-01-10, 10:57:

Whaaa...??? Obfuscated? Why? I mean, yay, it works indeed! Thank you so much! Looks dope, by the way!

I checked again, its not obfuscated, but its a format modern Windows doesn't recognise correctly. This tool helped:
https://www.ctpax-x.org/index.php?goto=cxsoft … show=71&lang=en

The game seems to delete the executable on exit. Since I wasn't sure with changing SYSTEM rights, I used DxWnd to keep the executable AMOKTEMP.EXE static and run from anywhere.

previously known as Discrete_BOB_058

Reply 5 of 13, by Zoomer

User metadata
Rank Member
Rank
Member

Thanks! Somehow I never faced these errors even though I run lots of retro games. Well, the more you know.

Huh, indeed. It seems, this app intimidated me, haha.

You can in fact copy the AMOKFILS directory from the CD to any location and then copy the modified AMOKTEMP.EXE to the root of that directory (so, AMOKFILS\AMOKTEMP.EXE) and then run it directly. It also works with the built-in Windows 11 directdraw emulation, so no need for dgVoodoo if you're fine with it. Also, it seems that AMOKTEMP.EXE is being deleted by AMOKWIN.EXE and since you're no longer running AMOKWIN, nobody's gonna delete AMOKTEMP and so there's no need to fumble around with the access permissions.

In the end you only need any winmm emulator and then there's no need in the virtual cd-rom at all.

A total WIN! Thanks again!

MB: Asus P3B-F 1.03 (2x ISA)
CPU: PIII-S 1.4GHz/VIA C3 800MHz
RAM: 256MB PC133
Video: GeForce 4600Ti/Voodoo 5 5500/Voodoo 3 3500 for DOS Glide
Audio: SB16 OPL3 + Audigy Platinum Ex
OS: Windows 98

Reply 6 of 13, by BEEN_Nath_58

User metadata
Rank l33t
Rank
l33t
Zoomer wrote on 2025-01-10, 11:30:
Thanks! Somehow I never faced these errors even though I run lots of retro games. Well, the more you know. […]
Show full quote

Thanks! Somehow I never faced these errors even though I run lots of retro games. Well, the more you know.

Huh, indeed. It seems, this app intimidated me, haha.

You can in fact copy the AMOKFILS directory from the CD to any location and then copy the modified AMOKTEMP.EXE to the root of that directory (so, AMOKFILS\AMOKTEMP.EXE) and then run it directly. It also works with the built-in Windows 11 directdraw emulation, so no need for dgVoodoo if you're fine with it. Also, it seems that AMOKTEMP.EXE is being deleted by AMOKWIN.EXE and since you're no longer running AMOKWIN, nobody's gonna delete AMOKTEMP and so there's no need to fumble around with the access permissions.

In the end you only need any winmm emulator and then there's no need in the virtual cd-rom at all.

A total WIN! Thanks again!

Yes right the file copying works. The game also has 256 and 32 bit colour modes, so the latter shouldn't be a problem ever atleast

Regarding games, there were at least 2 more games that needed this tool: Agent Armstrong 1997, and Ice and Fire 1995

previously known as Discrete_BOB_058

Reply 7 of 13, by Zoomer

User metadata
Rank Member
Rank
Member

Thanks for confirming! I've attached your modified file to my post. Hope you don't mind? And also edited the instructions 😀

Yeah, regarding the resolution. You can press F2 at any point in game to switch to high res (contrary to what the readme says). The game settings don't get saved, but that's what it's like in Windows 98 too. There aren't too many of them anyway, you only have to remap controls each time. The defaults are fine to, but I found it best to have forward-backward-strafeleft-straferight on WASD and turning left-right on cursor keys. But that's just my preference 😀

MB: Asus P3B-F 1.03 (2x ISA)
CPU: PIII-S 1.4GHz/VIA C3 800MHz
RAM: 256MB PC133
Video: GeForce 4600Ti/Voodoo 5 5500/Voodoo 3 3500 for DOS Glide
Audio: SB16 OPL3 + Audigy Platinum Ex
OS: Windows 98

Reply 8 of 13, by BEEN_Nath_58

User metadata
Rank l33t
Rank
l33t
Zoomer wrote on 2025-01-10, 11:45:

Thanks for confirming! I've attached your modified file to my post. Hope you don't mind? And also edited the instructions 😀

Yeah, regarding the resolution. You can press F2 at any point in game to switch to high res (contrary to what the readme says). The game settings don't get saved, but that's what it's like in Windows 98 too. There aren't too many of them anyway, you only have to remap controls each time. The defaults are fine to, but I found it best to have forward-backward-strafeleft-straferight on WASD and turning left-right on cursor keys. But that's just my preference 😀

Sure no worries.

previously known as Discrete_BOB_058

Reply 9 of 13, by Zoomer

User metadata
Rank Member
Rank
Member

Thanks! Well, this topic is closed then. We got everything and even better 😁

The game's nice. Very underappreciated, I think. It's very Desert Strike-like, only not that pressing with timed missions and forgiving in the sense that you can fail some sub-mission, but still continue playing.

MB: Asus P3B-F 1.03 (2x ISA)
CPU: PIII-S 1.4GHz/VIA C3 800MHz
RAM: 256MB PC133
Video: GeForce 4600Ti/Voodoo 5 5500/Voodoo 3 3500 for DOS Glide
Audio: SB16 OPL3 + Audigy Platinum Ex
OS: Windows 98

Reply 10 of 13, by BEEN_Nath_58

User metadata
Rank l33t
Rank
l33t

Are you currently playing the game? I was reported that there was a crash in mission 3, but then it got resolved. If you encounter, let me know

previously known as Discrete_BOB_058

Reply 11 of 13, by myne

User metadata
Rank Oldbie
Rank
Oldbie
BEEN_Nath_58 wrote on 2025-01-10, 11:05:

The game seems to delete the executable on exit. Since I wasn't sure with changing SYSTEM rights, I used DxWnd to keep the executable AMOKTEMP.EXE static and run from anywhere.

2 possible fixes:
1) read-only

2), copy it, eg game.bak have a bat copy it on run. eg copy game.bak game.exe, run

I built:
Convert old ASUS ASC boardviews to KICAD PCB!
Re: A comprehensive guide to install and play MechWarrior 2 on new versions on Windows.
Dos+Windows 3.11+tcp+vbe_svga auto-install iso template
Script to backup Win9x\ME drivers from a working install
Re: The thing no one asked for: KICAD 440bx reference schematic

Reply 12 of 13, by Zoomer

User metadata
Rank Member
Rank
Member
BEEN_Nath_58 wrote on 2025-01-11, 17:53:

Are you currently playing the game? I was reported that there was a crash in mission 3, but then it got resolved. If you encounter, let me know

I do, and I'm on mission 3 phase 1. The game has whopped my backside several times, but I haven't experienced any crashes yet. I'll report back if there's anything.

The password is XABXAB, if you're interested to test it yourself 😀

Edit: I kept thinking about the crash. Excluding the fact, that this could be simply a random game bug, this game does some weird things. It keeps one of the cpu cores at 100% (14900k). It also has some weird FPS lock of 42.

So if you'll get another report, maybe it would be a good idea to impose an external FPS limit? Maybe the engine crashes the moment the internal FPS limit is disabled e.g. during screen transitions or loading?

Last edited by Zoomer on 2025-01-12, 23:16. Edited 1 time in total.

MB: Asus P3B-F 1.03 (2x ISA)
CPU: PIII-S 1.4GHz/VIA C3 800MHz
RAM: 256MB PC133
Video: GeForce 4600Ti/Voodoo 5 5500/Voodoo 3 3500 for DOS Glide
Audio: SB16 OPL3 + Audigy Platinum Ex
OS: Windows 98

Reply 13 of 13, by Zoomer

User metadata
Rank Member
Rank
Member
myne wrote on 2025-01-12, 04:31:
2 possible fixes: 1) read-only […]
Show full quote
BEEN_Nath_58 wrote on 2025-01-10, 11:05:

The game seems to delete the executable on exit. Since I wasn't sure with changing SYSTEM rights, I used DxWnd to keep the executable AMOKTEMP.EXE static and run from anywhere.

2 possible fixes:
1) read-only

2), copy it, eg game.bak have a bat copy it on run. eg copy game.bak game.exe, run

The #1 won't work as the file is deleted anyway if you won't setup the r/w permissions properly, I discuss this in detail in my previous post, and

#2 isn't necessary since you can simply copy the executable to any random place together with game files from the CD and run it from there - again, see above. Since the exe's path to be deleted is hardcoded to the system temp folder, it won't get deleted any longer from another location.

I wouldn't recommend running it from the temp folder anyway, it's pretty stupid as this area is volatile and you also have to keep a copy of the dgVoodoo files there. It's not worth it.

MB: Asus P3B-F 1.03 (2x ISA)
CPU: PIII-S 1.4GHz/VIA C3 800MHz
RAM: 256MB PC133
Video: GeForce 4600Ti/Voodoo 5 5500/Voodoo 3 3500 for DOS Glide
Audio: SB16 OPL3 + Audigy Platinum Ex
OS: Windows 98