×
Spam Prevention - PLEASE READ !! (23 Apr 2021)

Due to a problem with spammers the rules for posting in the forums have changed for new users.

Newly registered users won't have their posts published until a moderator approves them.

DgVoodoo creator discusses Swat 3

More
4 months 4 weeks ago #2672 by Slippery Jim
Replied by Slippery Jim on topic DgVoodoo creator discusses Swat 3
I would be happy with 24 bit colours :)

Going to read your post now.

Please Log in or Create an account to join the conversation.

More
4 months 4 weeks ago - 4 months 4 weeks ago #2674 by Slippery Jim
Replied by Slippery Jim on topic DgVoodoo creator discusses Swat 3
Just reading the direct draw reference page for "DirectDrawCreate".

One of the return values is "DDERR_GENERIC". Sound familiar? 

The dreaded start up/movie crash.

Update:  I also see a reference to SetPixelFormat on these pages.  Loading up Ghidra to see if Swat 3 uses this.  Nope

Right now everything I am doing is stabbing in the dark out of ignorance.  The more logical approach would be to look for an old book about DirectDraw and start reading.

I think a lot of the window creation calls also involve USER32.dll such as:
CreateWindowExA
GetWindowRect
SetRec
SetWindowPos

Update 2:   Got 2 books.  "DirectDraw programming" by Bret Timmins and "Windows Graphics Programming: Win32 and DirectDraw" by Feng Yuan.
 

Please Log in or Create an account to join the conversation.

More
4 months 4 weeks ago - 4 months 4 weeks ago #2675 by Copy-Cat
Replied by Copy-Cat on topic DgVoodoo creator discusses Swat 3
If they are not too expensive. I will get a copy also. Where you purchase them from?

second thought, might go with different books to collaborate findings.

Please Log in or Create an account to join the conversation.

More
4 months 4 weeks ago - 4 months 4 weeks ago #2676 by Slippery Jim
Replied by Slippery Jim on topic DgVoodoo creator discusses Swat 3
Wink wink.

I did a bit of quick reading last night of the first book.   Depending how they did things it probably is more difficult than a simple hack.

One command that may be of use to us is SetDisplayMode.   You can take an existing DirectDraw object and change it by height, width, and colour depth.   RestoreDisplayMode will change it back to what it was before you made the call.

Please Log in or Create an account to join the conversation.

More
4 months 4 weeks ago #2678 by Copy-Cat
Replied by Copy-Cat on topic DgVoodoo creator discusses Swat 3
Yes, more than a simple hack.

The values for those calls in the OPcode will mostly be hardcoded. Like I said in a previous post, if the code sets values before the call to say 0, that line of opcode is 4 bytes, we cant modify that value by changing it because you need at least 8 bytes  for a number larger than 0.

The location where I am currently viewing the calls is near the location of the CodeCave call. That will at least give you a real world example of those calls to mess with.

Please Log in or Create an account to join the conversation.

Time to create page: 0.115 seconds
Powered by Kunena Forum