MM2: About Crash Courses

User avatar
Doof4294967296
MM2X Occasional User
MM2X Occasional User
Posts: 296
Registered for: 11 years 7 months

MM2: About Crash Courses

Postby Doof4294967296 » Thu Apr 09, 2015 2:17 am

Is it possible to change the default car used in crash courses? I want to change it to my medium detail version of fastback and london cab.

User avatar
KingAndy
MM2X Very Active User
MM2X Very Active User
Posts: 1114
Registered for: 10 years 8 months
Location: Lisbon, Portugal
Been thanked: 1 time
Contact:

Postby KingAndy » Thu Apr 09, 2015 11:55 am

I guess you have to actually replace the default ones, your new versions need to have the same basename. If you try to delete the default cars, the game uses the last mod vehicle on the game directory alphabetical order.
Image
Best active member avatar
Best active member MM1 screenshot-er
Friendliest active member

Image
Most helpful active member
Best MM2 car converter of the year
Best MM2 innovation of the year
Author of the best MM2 mod of the year
Best active user's self amatory site


Image

User avatar
Doof4294967296
MM2X Occasional User
MM2X Occasional User
Posts: 296
Registered for: 11 years 7 months

Postby Doof4294967296 » Fri Apr 10, 2015 4:40 am

That's what I exactly did temporarily. I replaced the the files of vpbullet to vpbullet_m. I copied those files and renamed it with the old default one and put the 3d model and tuning in a certain archive. This says that the car selected on crash courses are coded in the game's source code. Isn't it?

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

Postby dummiesboy » Sun Apr 12, 2015 5:52 pm

You can change the vehicle used by editing the EXE with a hex editor. You can't change the size of the exe though, so the base name of your new car would need to be the same length as vpbullet.
Image

User avatar
SuperSecret
MM2X Junior User
MM2X Junior User
Posts: 127
Registered for: 15 years 5 months
Location: Italy

Postby SuperSecret » Sun Apr 12, 2015 7:30 pm

You have 2 options: one is editing the basenames in the .exe file (very easy if you know how to do it), the other is using a program that changes the basenames when the game is started (like my MM2Hack)

The new basenames do not have to have the same length as the originals (there is space for some extra characters), but there is a limit indeed.

I Just did a quick scan with CheatEngine, here are the addresses in memory (while running):

Default SF CC car: 5C3618 (max length: 11 chars)
Default London CC car: 5C3624 (max length: 7 chars)
ImageAuthor of best MM2 track add-on of the year (2014) - Best Programmer (2015)
ImageBest programmer (2013 - 2014) - Best MM2 innovation of the year (2014)
ImageAuthor of best MM2 mod of the year (2013)

User avatar
Doof4294967296
MM2X Occasional User
MM2X Occasional User
Posts: 296
Registered for: 11 years 7 months

Postby Doof4294967296 » Wed May 13, 2015 10:29 am

Is that true? I'll try it.

User avatar
SuperSecret
MM2X Junior User
MM2X Junior User
Posts: 127
Registered for: 15 years 5 months
Location: Italy

Postby SuperSecret » Wed May 13, 2015 12:26 pm

Since it was very easy (at least for me), I did the dirty job for you: here is an updated version of MM2Hack that includes Crash Course car basenames. (here is the source code if anyone wants to tinker with it)

To use it just unzip it into your MM2 folder and run it. You can run it normally (allowing you to change the preferences) or in silent mode (i.e.: add the -silent argument to the command line and the program will start without passing through the GUI, launching directly MM2. Any other command line arguments will be passed to MM2)

If it does not have any effect on MM2, run it as Administrator
ImageAuthor of best MM2 track add-on of the year (2014) - Best Programmer (2015)
ImageBest programmer (2013 - 2014) - Best MM2 innovation of the year (2014)
ImageAuthor of best MM2 mod of the year (2013)