This code will fix missions that aren't compatible with mbp 1.14/1.20 because of directory settings. Moving platforms as well as interiors will work once upon doing this.
Note: DOING THE WHOLE ENTIRE CLA WILL CAUSE MARBLE BLAST TO CRASH, THUS NOT ALL LEVELS WILL GET FIXED.
^^^ Please do not do it on a lot of files, the game engine don't like it. As I described to Andrew, the game has to read each mission file line by line, parse each mission file line by line, and write each mission file line by line.
Code is under the MIT license, yada yada yada...
You can get the code from this pastebin here as it keeps nice formatting
pastebin.com/83J8i6ZD
To use, copy and paste that code into notepad/textedit, and save as missionFix.cs
Then, place the file into yourmarbleblastdirectory/marble/
or
yourmarbleblastdirectory/platinum/
then, open up Marble blast, and open the console (press ~)
in the console type this:
Code:exec($usermods @ /missionFix.cs);
The code will compile. Afterwards, to check it, type this into the console:
Code:fixMissions();
The code will do its thing, and it may take some time and even become unresponsive. Just let its do its thing. If it takes more than 5 minutes, then force quit marble blast and assume that it got most of the levels.
MBP LB USERS:
Afterwards, delete both the .cs and .dso file so that LBs will re-enable themselves in MBP.
Note: DOING THE WHOLE ENTIRE CLA WILL CAUSE MARBLE BLAST TO CRASH, THUS NOT ALL LEVELS WILL GET FIXED.
^^^ Please do not do it on a lot of files, the game engine don't like it. As I described to Andrew, the game has to read each mission file line by line, parse each mission file line by line, and write each mission file line by line.
Code is under the MIT license, yada yada yada...
You can get the code from this pastebin here as it keeps nice formatting
pastebin.com/83J8i6ZD
To use, copy and paste that code into notepad/textedit, and save as missionFix.cs
Then, place the file into yourmarbleblastdirectory/marble/
or
yourmarbleblastdirectory/platinum/
then, open up Marble blast, and open the console (press ~)
in the console type this:
Code:exec($usermods @ /missionFix.cs);
The code will compile. Afterwards, to check it, type this into the console:
Code:fixMissions();
The code will do its thing, and it may take some time and even become unresponsive. Just let its do its thing. If it takes more than 5 minutes, then force quit marble blast and assume that it got most of the levels.
MBP LB USERS:
Afterwards, delete both the .cs and .dso file so that LBs will re-enable themselves in MBP.
I am a programmer. Most here know me for being one of the major contributors to Marble Blast Platinum and PlatinumQuest.