Page 1 of 1

Decompiled midtown.exe

Posted: Mon May 11, 2009 10:43 pm
by Tonywolfe121
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.

Posted: Mon May 11, 2009 10:46 pm
by HummersRock
Epic.

Posted: Mon May 11, 2009 10:56 pm
by Franch88
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:

Posted: Mon May 11, 2009 11:15 pm
by Tonywolfe121
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; }

Posted: Mon May 11, 2009 11:42 pm
by Zac4084
What does it do??

Posted: Mon May 11, 2009 11:54 pm
by kylej866
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.

Posted: Mon May 11, 2009 11:57 pm
by Franch88
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).

Posted: Tue May 12, 2009 12:00 am
by kylej866
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?

Posted: Tue May 12, 2009 12:41 am
by HummersRock
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.

Posted: Tue May 12, 2009 3:55 am
by dageek
Sounds fun.
If only I knew C....

Posted: Tue May 12, 2009 4:13 am
by Tonywolfe121
https://www.sharewareplaza.com/C-to-C-Co ... 31589.html

Converts C to c++

requires python 2.0 or higher :wink:

Posted: Sat May 23, 2009 1:50 pm
by dummiesboy
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