MM2 source code on MMarchive

Just now found it!

User avatar
cody
MM2X Occasional User
MM2X Occasional User
Posts: 341
Registered for: 18 years 7 months
Location: United States
Contact:

MM2 source code on MMarchive

Postby cody » Mon Sep 27, 2010 8:39 pm

Here's the link:
https://www.mmarchive.com/file_details.php?file_id=1926

I didn't know it was on MMArchive!!

What do you think? It may change the way we make mods and also fix compatibility issues with Windows Vista/7 and any future operating systems! It could even fix car issues such as limits on speed, acceleration, brakes, etc. I even found occurences of what I think might be the max speed (1118437376 appears on lines 22246, 300670, 320039, 320128 and appears to point to other lines), but that will probably stay a mystery of the game programming unless I get a C compiler.

I apologize for that other topic (My cannot find source code) and I now know it may be possible to re-program the game to work better (crash less, run faster). I might even figure out how to make it 64-bit!
My Member Number is prime. LOL!

User avatar
Franch88
MM2X Admin
MM2X Admin
Posts: 15759
Registered for: 17 years
Location: Italy
Been thanked: 1 time
Contact:
Italy

Postby Franch88 » Mon Sep 27, 2010 9:29 pm

From what I know that code decompiled in C programming language is just taken from the game .exe file. Maybe something can be done with it, but probably that's not all the game code, the description says that's a base code. Before say all the things that you can think and wish to do, must be seen what's possible to do with it, and not being a programmer I can't absolutely know. However, someone succeeded to re-compile or however edit the game in a way (Azbestos8, author of MM2 Lite and of Midtown Mashup closed project), but the game hasn't been kinda revolutioned.
Fiat 500 = Italian motorization. Franch88, MM2 eXtreme forum and website Administrator.
|Franch88's MM2 Releases|

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

Re: MM2 source code on MMarchive

Postby HummersRock » Mon Sep 27, 2010 10:46 pm

I now know it may be possible to re-program the game to work better (crash less, run faster). I might even figure out how to make it 64-bit!
Good luck. Programming isn't easy.

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

Postby Zac4084 » Tue Sep 28, 2010 1:35 am

Indeed Az. :P I think these topics are wasteless because it's really too hard and I don't think someone can succeed. You really have a lot of thinks on your mind..
Image

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

Postby HummersRock » Tue Sep 28, 2010 2:32 am

I think these topics are wasteless because it's really too hard and I don't think someone can succeed.
Nah. It's definitely possible and there are people that can do it. Some people can do it pretty easily I'm sure. But the people that are good enough at programming don't care to reprogram a ten year old game or make a sequel to a ten year old game.

And I would think by the time you get to the level of skill needed to do something this complicated you wouldn't care about reprogramming MM2 anymore.

User avatar
cody
MM2X Occasional User
MM2X Occasional User
Posts: 341
Registered for: 18 years 7 months
Location: United States
Contact:

Postby cody » Wed Sep 29, 2010 10:15 pm

I found occurrences of the number 1118437376. I think it might be the max speed (1118.437376 mph or something like that). 8O What else could it be?

Also, Where can I get a freeware full version C compiler? Visual Studio is way too expensive.
My Member Number is prime. LOL!

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

Postby dageek » Wed Sep 29, 2010 11:18 pm

[url=https://www.dageek.webs.com][img]https://i945.photobucket.com/albums/ad294/photobukcet_dageek/Avatars/LamboSig.jpg[/img][/url]

User avatar
cody
MM2X Occasional User
MM2X Occasional User
Posts: 341
Registered for: 18 years 7 months
Location: United States
Contact:

Postby cody » Wed Sep 29, 2010 11:23 pm

Do these work with Windows 7 64-bit?
My Member Number is prime. LOL!

User avatar
Franch88
MM2X Admin
MM2X Admin
Posts: 15759
Registered for: 17 years
Location: Italy
Been thanked: 1 time
Contact:
Italy

Postby Franch88 » Wed Sep 29, 2010 11:30 pm

Why don't you just try and see by yourself instead to always uselessly ask? Probably yes, that shouldn't be a problem. The program look pretty old, in the website is said that the 5.0 beta version is for the Windows 95, 98, NT, 2000 and XP systems.
Fiat 500 = Italian motorization. Franch88, MM2 eXtreme forum and website Administrator.
|Franch88's MM2 Releases|

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

Postby Zac4084 » Wed Sep 29, 2010 11:50 pm

Really man? You know if you download it and see and actually want the mod to be faster if it even works, you download it and see if it works before posting.. Even if it doesn't, run in compatibility mode, and if you don't know how, Google. If you're not willing to buy or get the pirated version, don't even think about this going on...
Image

User avatar
cody
MM2X Occasional User
MM2X Occasional User
Posts: 341
Registered for: 18 years 7 months
Location: United States
Contact:

Postby cody » Wed Sep 29, 2010 11:58 pm

Thanks for the link. If it doesn't work with Windows 7, I will run it in compatibility mode (Windows XP SP1, SP2, or SP3, whichever one works best).

Edit: I can read the source code but I can't get it to compile! It gives over 200 errors and stops, saying that something's extremely wrong with the code. Why? Am I using the wrong format?
My Member Number is prime. LOL!

User avatar
az_mobile
MM2X Newbie
MM2X Newbie
Posts: 16
Registered for: 13 years 3 months
Location: England

Postby az_mobile » Mon Mar 07, 2011 11:18 am

Does anyone know what version of C this is written in, before I download the source?
[img]https://img814.imageshack.us/img814/1953/mm2xaxe42i.png[/img]

User avatar
az_mobile
MM2X Newbie
MM2X Newbie
Posts: 16
Registered for: 13 years 3 months
Location: England

Postby az_mobile » Mon Mar 07, 2011 12:33 pm

Okay, so has anyone actually played around with this? I've had a little dabble, but it seems that there are a few files missing/I have compiler problems. I'm no C++ expert.

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

Postby HummersRock » Mon Mar 07, 2011 2:58 pm

No I don't think anyone really has. But it isn't the complete source code, so I doubt you could do very much with it without being very good at the language it's programmed in (which I thought was C#).
[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
az_mobile
MM2X Newbie
MM2X Newbie
Posts: 16
Registered for: 13 years 3 months
Location: England

Postby az_mobile » Mon Mar 07, 2011 3:39 pm

I've just had a play around with it, I gathered a shitload of includes that were missing, but I'm still no closer to having anything usable.

IMO - it's a complete waste of time, well maybe not completely, but for the most part.

As for languages, it's C++ and Delphi. I used VC++ 6 (VS6).

I also had a play around with the *.dll files to see if I could modify the in-game progress bars, font colours, etc, but no luck.

What a tease.
[img]https://img814.imageshack.us/img814/1953/mm2xaxe42i.png[/img]