Decompiled midtown.exe

File decompiled in C

User avatar
Tonywolfe121
MM2X Active User
MM2X Active User
Posts: 502
Registered for: 16 years 8 months

Decompiled midtown.exe

Postby Tonywolfe121 » Mon May 11, 2009 10:43 pm

Small project I have been working on.

Decompiled 100%

Download link:
https://www.mediafire.com/?mfwgkdlzgnu

It is not 100% readable.

But I hope some devs can use it.

Was decompiled in C.

User avatar
HummersRock
MM2X Super Active User
MM2X Super Active User
Posts: 2152
Registered for: 17 years 3 months
Location: Floating in The Land of Colours
Contact:

Postby HummersRock » Mon May 11, 2009 10:46 pm

Epic.
[url=https://bit.ly/znpgtp][color=deepskyblue]My MM2 Creations[/color][/url] | [url=https://bit.ly/o9c3][color=red]My MM2 Youtube[/color][/url] | [url=https://bit.ly/yfqjeq][color=green]My DeviantArt[/color][/url]

User avatar
Franch88
MM2X Admin
MM2X Admin
Posts: 15758
Registered for: 16 years 9 months
Location: Italy
Been thanked: 1 time
Contact:
Italy

Postby Franch88 » Mon May 11, 2009 10:56 pm

Great job Tony, you're always doing something special about MM2. :wink:
I hope that this code can be useful to develop new kind of programs that can edit some game features now impossible to edit, or better, succeed to let use the hidden and maybe not completed races records video recording feature. :roll:
Fiat 500 = Italian motorization. Franch88, MM2 eXtreme forum and website Administrator.
|Franch88's MM2 Releases|

User avatar
Tonywolfe121
MM2X Active User
MM2X Active User
Posts: 502
Registered for: 16 years 8 months

Postby Tonywolfe121 » Mon May 11, 2009 11:15 pm

Thanks guys :D

here are the dll files
https://www.mediafire.com/?d2inhzbmnzn

Didn't get much in mmlang.dll so i will just post it here.

Code: Select all

#include <windows> #include <defs> //------------------------------------------------------------------------- // Data declarations //------------------------------------------------------------------------- // Function declarations BOOL __stdcall DllMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved); // idb //----- (10001AE5) -------------------------------------------------------- BOOL __stdcall DllMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved) { return 1; }

Zac4084
MM2X Super Active User
MM2X Super Active User
Posts: 4058
Registered for: 15 years 2 months
Location: England
Contact:

Postby Zac4084 » Mon May 11, 2009 11:42 pm

What does it do??
Image

User avatar
kylej866
MM2X Occasional User
MM2X Occasional User
Posts: 388
Registered for: 15 years 10 months
Location: West Virginia, US
Contact:

Postby kylej866 » Mon May 11, 2009 11:54 pm

What does it do??
You would not know if we told you. You have to have an advanced knowledge of C programming to even get a faint idea of what to do with it.
[url=https://biohazardgaming.net/kylejdesign/][img]https://i50.tinypic.com/bgz8nl.jpg[/img][/url]

User avatar
Franch88
MM2X Admin
MM2X Admin
Posts: 15758
Registered for: 16 years 9 months
Location: Italy
Been thanked: 1 time
Contact:
Italy

Postby Franch88 » Mon May 11, 2009 11:57 pm

Zac, it's something related with the code programming, something not easy. It's the game .exe file coded in C programming language, that can be useful to the MM2 community programmers like Maxoff.

The .dll files couldn't be so interesting like the game .exe one, but could be possible to something about the graphic options. The mmlang.dll is the less important, and it's easily edited with an hex editor to change the game text language (something that Tony has already experimented).
Fiat 500 = Italian motorization. Franch88, MM2 eXtreme forum and website Administrator.
|Franch88's MM2 Releases|

User avatar
kylej866
MM2X Occasional User
MM2X Occasional User
Posts: 388
Registered for: 15 years 10 months
Location: West Virginia, US
Contact:

Postby kylej866 » Tue May 12, 2009 12:00 am

I might be able to do something with it. I have a good knowledge of C++ and C is not overly different.

If someone did do something with it, what would you want done?
[url=https://biohazardgaming.net/kylejdesign/][img]https://i50.tinypic.com/bgz8nl.jpg[/img][/url]

User avatar
HummersRock
MM2X Super Active User
MM2X Super Active User
Posts: 2152
Registered for: 17 years 3 months
Location: Floating in The Land of Colours
Contact:

Postby HummersRock » Tue May 12, 2009 12:41 am

You could also convert it to C++.

Getting rid of these limits that cause heap overruns would definitely be great; also making mm2 multi-threaded (at least for dual cores, if not tri or quad cores), would be fantastic. And it might also have a low RAM usage, so having it use something like 900MB if you have 2-3GB of RAM could also help. It might even need some help with video RAM usage, who knows.

So basically just getting it multi-threaded, improving performance, and getting rid of the heap overrun issues would be awesome.
[url=https://bit.ly/znpgtp][color=deepskyblue]My MM2 Creations[/color][/url] | [url=https://bit.ly/o9c3][color=red]My MM2 Youtube[/color][/url] | [url=https://bit.ly/yfqjeq][color=green]My DeviantArt[/color][/url]

User avatar
dageek
MM2X Very Active User
MM2X Very Active User
Posts: 1205
Registered for: 15 years 7 months
Location: United States
Contact:

Postby dageek » Tue May 12, 2009 3:55 am

Sounds fun.
If only I knew C....
[url=https://www.dageek.webs.com][img]https://i945.photobucket.com/albums/ad294/photobukcet_dageek/Avatars/LamboSig.jpg[/img][/url]

User avatar
Tonywolfe121
MM2X Active User
MM2X Active User
Posts: 502
Registered for: 16 years 8 months

Postby Tonywolfe121 » Tue May 12, 2009 4:13 am

https://www.sharewareplaza.com/C-to-C-Co ... 31589.html

Converts C to c++

requires python 2.0 or higher :wink:

User avatar
dummiesboy
MM2X Super Active User
MM2X Super Active User
Posts: 2430
Registered for: 15 years 8 months
Location: USA
Been thanked: 1 time
Contact:

Postby dummiesboy » Sat May 23, 2009 1:50 pm

This is awesome! Great job, tony! :D

I'm a little late, but it would be great if Maxoff saw this. Hopefully, if he does, he can do something with the game at this level. :D
Image