Heap Overruns are a thing of the past!
Incredible discovery by CarLuver69
- BUGATTIMAN253MPH
- MM2X Very Active User
- Posts: 1296
- Registered for: 13 years 6 months
- Location: Ireland
- Contact:
I just chucked a bunch of random cars into my directory along with my upcoming mod and it still works witout issue. I guess the future has finally arrived then.
Best Midtown Madness 2 car converter of the year
Best Midtown Madness 2 car converter of the year
Author of the best Midtown Madness 2 car add-on of the year
Best active member Midtown Madness 1 screenshot-er
Best active member avatar
Best Midtown Madness 2 breakout of the year
Funniest active member
- CarLuver69
- MM2X Active User
- Posts: 934
- Registered for: 17 years 6 months
- Location: California, USA
- Contact:
Hey guys, I've successfully patched the EXE to do the following:
- Increased default heap size to 128MB
- New "heapsize" parameter to allow for custom heap sizes!
To use a custom heap size, pass "-heapsize [size in mb]" to MM2. For example, to have a 1024MB heap, pass "-heapsize 1024" to MM2. So 256MB would be "-heapsize 256", and so on. However, due to extremely limited space, I was unable to implement any sort of error checking. I strongly recommend not to go below 32MB, and don't pass an empty parameter!
Download: https://goo.gl/CYsWYD
Backup your old one before replacing it! Enjoy!
EDIT: I've been informed that the EXE I patched does not include Diatosta's EXE patch. I'll see what I can do about this.
- Increased default heap size to 128MB
- New "heapsize" parameter to allow for custom heap sizes!
To use a custom heap size, pass "-heapsize [size in mb]" to MM2. For example, to have a 1024MB heap, pass "-heapsize 1024" to MM2. So 256MB would be "-heapsize 256", and so on. However, due to extremely limited space, I was unable to implement any sort of error checking. I strongly recommend not to go below 32MB, and don't pass an empty parameter!
Download: https://goo.gl/CYsWYD
Backup your old one before replacing it! Enjoy!
EDIT: I've been informed that the EXE I patched does not include Diatosta's EXE patch. I'll see what I can do about this.
[img]https://img59.imageshack.us/img59/2562/2010mm2cawardssilver.png[/img] [color=orange]Best MM2 Innovation - Author of best car of the year[/color]
[color=silver][i]Proud supporter of MM2X[/i][/color]
[color=#CCCCCC]How do I love thee MM2? Let me count the add-ons...
[size=134][b]Are my pictures not showing up? [url=https://photobucket.com/CL69MM2]CLICK HERE![/url][/b][/size][/color]
[color=silver][i]Proud supporter of MM2X[/i][/color]
[color=#CCCCCC]How do I love thee MM2? Let me count the add-ons...
[size=134][b]Are my pictures not showing up? [url=https://photobucket.com/CL69MM2]CLICK HERE![/url][/b][/size][/color]
- COOLGUY200
- MM2X Active User
- Posts: 586
- Registered for: 13 years 6 months
- Location: tiny shed in detroit
- Diatosta
- MM2X Active User
- Posts: 783
- Registered for: 12 years 2 months
- Location: Portugal? Maybe...
- Contact:
If you want I can try to patch my .exe, and even include error checking if I'm able to
[color=white]MM2 lover! Yeah![/color]
[color=white]diatosta.pt[/color]
[color=white]Also, gotta love when people don't publicize their work or ask for support in their signatures. Also don't forget to check my unfinished mods and donate to my Paypal
Also, one of my trucks[/color]
[img][/img]
[color=white]diatosta.pt[/color]
[color=white]Also, gotta love when people don't publicize their work or ask for support in their signatures. Also don't forget to check my unfinished mods and donate to my Paypal
Also, one of my trucks[/color]
[img][/img]
This is quite an achievement! Amazing find guys. Since then I have been doing nothing more but cruising on New York with all three on max density. Never had this much fun.
While its great so see a patch, I'll wait for Diatosta's EXE patch. Now if only the veterans were here to witness this. (Riva and Stan to name a few)
EDIT: 10 cops as maximum is fine with me. Just need to know how to do that
While its great so see a patch, I'll wait for Diatosta's EXE patch. Now if only the veterans were here to witness this. (Riva and Stan to name a few)
EDIT: 10 cops as maximum is fine with me. Just need to know how to do that
Last edited by Kunal2045 on Sat May 14, 2016 5:59 am, edited 1 time in total.
[align=center][color=black]Sig[/color]
[img]https://www.imgweave.com/view/4838.png[/img][/align]
[img]https://www.imgweave.com/view/4838.png[/img][/align]
- FXANBSS
- MM2X Active User
- Posts: 686
- Registered for: 11 years 6 months
- Location: Midtown Club, Discord
- Been thanked: 4 times
Diatosta's EXE has a annoying crash, if you have over 10 cops chasing you, put 10 cops as maximun and it will fix it.
If you want more than 10 cops without crashes, then use this:
https://mmarchive.com/file_details.php?file_id=2248
The behavior of the cops are more friendly though.
If you want more than 10 cops without crashes, then use this:
https://mmarchive.com/file_details.php?file_id=2248
The behavior of the cops are more friendly though.
- SuperSecret
- MM2X Junior User
- Posts: 127
- Registered for: 15 years 9 months
- Location: Italy
I made a patcher (download: compiled and source code), to use it just drag and drop midtown2.exe on the program.
Beware, New York is still quite unstable under certain conditions (the Heap Overruns are gone, but sometimes it just crashes with a generic "FindHeap failed" error)Since then I have been doing nothing more but cruising on New York with all three on max density. Never had this much fun.
Author of best MM2 track add-on of the year (2014) - Best Programmer (2015)
Best programmer (2013 - 2014) - Best MM2 innovation of the year (2014)
Author of best MM2 mod of the year (2013)
Best programmer (2013 - 2014) - Best MM2 innovation of the year (2014)
Author of best MM2 mod of the year (2013)
- FXANBSS
- MM2X Active User
- Posts: 686
- Registered for: 11 years 6 months
- Location: Midtown Club, Discord
- Been thanked: 4 times
What about merge this one?
https://www.mm2x.com/modules.php?name=Forum ... pic&t=5409
Every EXE in the universe and then make the Ultimate EXE, with no crashes.
And of course do Beta Testing, i hate the cops crash.
https://www.mm2x.com/modules.php?name=Forum ... pic&t=5409
Every EXE in the universe and then make the Ultimate EXE, with no crashes.
And of course do Beta Testing, i hate the cops crash.
I haven't come across that error yet, but thanks for the heads up. Good work with the patcher btw.Beware, New York is still quite unstable under certain conditions (the Heap Overruns are gone, but sometimes it just crashes with a generic "FindHeap failed" error)
[align=center][color=black]Sig[/color]
[img]https://www.imgweave.com/view/4838.png[/img][/align]
[img]https://www.imgweave.com/view/4838.png[/img][/align]
- Diatosta
- MM2X Active User
- Posts: 783
- Registered for: 12 years 2 months
- Location: Portugal? Maybe...
- Contact:
So I finally finished the damn .exe mod. It's my modified .exe, but with the -heapsize argument, as in Mark's. But this one includes some error checking. Like, if you try to put something lower than 32, and it'll throw you an fancy error
Anyway, here it is:
https://mega.nz/#!U11TUL6L!Qz7vR2AaPMi0 ... duCsan1LAM
Thanks to Mark for finding this out and by giving me some help over at Facebook
Anyway, here it is:
https://mega.nz/#!U11TUL6L!Qz7vR2AaPMi0 ... duCsan1LAM
Thanks to Mark for finding this out and by giving me some help over at Facebook
[color=white]MM2 lover! Yeah![/color]
[color=white]diatosta.pt[/color]
[color=white]Also, gotta love when people don't publicize their work or ask for support in their signatures. Also don't forget to check my unfinished mods and donate to my Paypal
Also, one of my trucks[/color]
[img][/img]
[color=white]diatosta.pt[/color]
[color=white]Also, gotta love when people don't publicize their work or ask for support in their signatures. Also don't forget to check my unfinished mods and donate to my Paypal
Also, one of my trucks[/color]
[img][/img]
- dummiesboy
- MM2X Super Active User
- Posts: 2430
- Registered for: 16 years 1 month
- Location: USA
- Been thanked: 1 time
- Contact:
- Franch88
- MM2X Admin
- Posts: 15759
- Registered for: 17 years 3 months
- Location: Italy
- Been thanked: 1 time
- Contact:
It really had to be published and brought to the public, and more, was me who suggested the implementing of a patcher to SuperSecret, so to apply it to any Midtown2.exe file out there.
Fiat 500 = Italian motorization. Franch88, MM2 eXtreme forum and website Administrator.
|Franch88's MM2 Releases|
|Franch88's MM2 Releases|