fonic / wcdatool

Watcom Disassembly Tool (wcdatool) - Tool to aid disassembling DOS applications created with the Watcom toolchain
69 stars 7 forks source link

How to disassemble Pac-Man VR #11

Open DuggletMcNugglet opened 1 year ago

DuggletMcNugglet commented 1 year ago

So I have a non-MK app that I'm trying to decompile, I managed through IDA to identify that it was in fact compiled through Watcom. I've tried multiple softwares to try to decompile it into comprehensive code, but to no avail. Some lines ARE in fact clearly readable in other softwares, but there's a lot of garbage inbetween those sections, and I don't know how to clean that up. Did some searching and lo and behold, I found your project and was overjoyed that something was created specifically for Watcom applications, but I just can't for the life of me get it running, and the install instructions are incredibly confusing.

For example, you never specified where to put objdump. I tried to run your included BAT files for compiling Open Watcom 2.0 from source, but that didn't seem to work correctly either. I tried transferring the files I already had from a seperate installation of OW 1.9 from the official site, but that didn't seem to do anything either. Just would really like some clarification on how to actually install/use this, thanks.

fonic commented 1 year ago

Sure, why not. Sounds like a good idea.

DuggletMcNugglet commented 1 year ago

Also :) image

The entire maze is all there in the 3DS files, I learned that Blender 2.74 had an importer for 3DS, so used that. Weird that they took it out of later versions for some reason.

fonic commented 1 year ago

Nice. Have you had any luck with opening the .ASC files outside of the original application?

Screenshot_20230330_100229

DuggletMcNugglet commented 1 year ago

Not directly...I did figure how how to basically just recreate the model from scratch by adding the matching number of vertices and then manually typing the coordinates for each in Blender. A friend from Discord had actually begun writing a script for importing them directly into Unity, and it gives a pretty good representation of the shape, but it's represented by multiple cube objects and not an actual mesh, not sure if they're going to continue it or not, need to ask.

Also, through that experiment with the vertices in Blender, I confirmed what I had suspected about how the ghosts rendered...the 3D object for them was literally just a flat rectangle, they really were just the 2D sprites that you find in the assets, the body would just face directly at the player camera at all times, sort of like DOOM, and their face was rendered separately and would rotate around the body independently, facing where the ghost was facing in-game. Upon closer inspection of footage and screenshots, the pellets were also just sprites, though I can't seem to find which exact assets were the sprites in question...

Did you ever make the Discord account? If you did you can tell me your User ID and I can add you to the group I made.

fonic commented 1 year ago

Well, MilkShape 3D seems to work and is also able to export to various formats, have you tried that?

Screenshot (1)

DuggletMcNugglet commented 1 year ago

Ooh no, I hadn't even heard of MilkShape 3D, awesome! Added to the comment above, sorry late edit.

fonic commented 1 year ago

Also, through that experiment with the vertices in Blender, I confirmed what I had suspected about how the ghosts rendered...the 3D object for them was literally just a flat rectangle, they really were just the 2D sprites that you find in the assets, the body would just face directly at the player camera at all times, sort of like DOOM, and their face was rendered separately and would rotate around the body independently, facing where the ghost was facing in-game. Upon closer inspection of footage and screenshots, the pellets were also just sprites, though I can't seem to find which exact assets were the sprites in question...

Yeah, noticed that too when opening those .ASC files in 3D Studio. Most of them are just a flat shape, very few are actual models (like ARCH.ASC).

Did you ever make the Discord account? If you did you can tell me your User ID and I can add you to the group I made.

Oh, I see, that was misunderstanding. I thought you were asking if I had a Discord server that could be used for the project. A Discord account I already have. Just post the invite link here.

DuggletMcNugglet commented 1 year ago

Oh, I see, that was misunderstanding. I thought you were asking if I had a Discord server that could be used for the project. A Discord account I already have. Just post the invite link here.

Ohh ok, haha. One sec.

https://discord.gg/cu5M2M88dT