MTM2 Source Code
MTM2 Source Code
Mark over at Terminal Reality released the MTM2 source code to me after signing legal agreements, pretty much everything stays confidential but there is quite a bit of code to go through and look at. Don't know what I am going to do with it, I might make some patches, I don't know how hard it will be to get it to compile, we will see.
- Kmaster
- MTM2 Engineer
- Posts: 1369
- Joined: Fri Oct 10, 2003 6:19 pm
- Location: Valparaíso, Chile.
- Contact:
Re: MTM2 Source Code
Oh my. Big news indeed.
Re: MTM2 Source Code
Color me impressed! Don't forget to make some backups.
Re: MTM2 Source Code
Holy Crapola!!!!!!!!!!!!!!!!!
Some patches would be awesome if possible
Some patches would be awesome if possible
Re: MTM2 Source Code
I would be thinking something like this:
Things already covered by current patch but maybe can be improved for stability:
- Bumped up maximum render distance from 20 to 50 units. (more if possible)
- Bumped up maximum vertex count in trid3d.dll from 8000 to 12000
- Fixed the "too many objects" error
Things would be great if improved:
- Native resolution improvement. Wide screen support
- Fix the "Have Mark increase box count". (the following happens if the box count is increased viewtopic.php?f=13&t=7154&start=32 So obviously the engine itself needs to be fixed to avoid that error)
- Using the patch, tracks like Castle Rock Too and Spring Valley crash at a particular point in the game with an ambiguous access violation error. Based on what I've tested it seems to be related to simply too many objects but unknown whether it is the actual object count or the number of vertices that causes the crash.
I hope gamer still visits this forum. Maybe he can help you out with some stuff since he's been working on the Evo source code.
Things already covered by current patch but maybe can be improved for stability:
- Bumped up maximum render distance from 20 to 50 units. (more if possible)
- Bumped up maximum vertex count in trid3d.dll from 8000 to 12000
- Fixed the "too many objects" error
Things would be great if improved:
- Native resolution improvement. Wide screen support
- Fix the "Have Mark increase box count". (the following happens if the box count is increased viewtopic.php?f=13&t=7154&start=32 So obviously the engine itself needs to be fixed to avoid that error)
- Using the patch, tracks like Castle Rock Too and Spring Valley crash at a particular point in the game with an ambiguous access violation error. Based on what I've tested it seems to be related to simply too many objects but unknown whether it is the actual object count or the number of vertices that causes the crash.
I hope gamer still visits this forum. Maybe he can help you out with some stuff since he's been working on the Evo source code.
Re: MTM2 Source Code
Of course I'm still here, there will be the curve in getting it compiled. But once that hurdle is sorted, those limitations will easily melt away much as they did with EvoR.
I don't really have as much vested interest in MTM as Jpez does, nor do our goals quite align. But hopefully this helps ya'll, I've had zero free time for EvoR as I'm buried head first in the world of fatherhood & Android/Unity programming.
I don't really have as much vested interest in MTM as Jpez does, nor do our goals quite align. But hopefully this helps ya'll, I've had zero free time for EvoR as I'm buried head first in the world of fatherhood & Android/Unity programming.
4x4 Evolution Revival Project
http://www.4x4evolution.com
http://www.4x4evolution.com
Re: MTM2 Source Code
How the hell did you manage to find mark and get him to give you the code?
And further more, if he had the code, why doesn't he just re-release the game himself?
Wish you could share the code with all of us so we could help too. I think half this board is made up of developers
And further more, if he had the code, why doesn't he just re-release the game himself?
Wish you could share the code with all of us so we could help too. I think half this board is made up of developers

- Kmaster
- MTM2 Engineer
- Posts: 1369
- Joined: Fri Oct 10, 2003 6:19 pm
- Location: Valparaíso, Chile.
- Contact:
Re: MTM2 Source Code
probably because Microsoft has all the intellectual property of the game and he might get in serious legal trouble
Mark just re-released Terminal Velocity for Android and ios by the way. (The first game he created using the MTM1 engine back in 1995)
Mark just re-released Terminal Velocity for Android and ios by the way. (The first game he created using the MTM1 engine back in 1995)
- Kmaster
- MTM2 Engineer
- Posts: 1369
- Joined: Fri Oct 10, 2003 6:19 pm
- Location: Valparaíso, Chile.
- Contact:
Re: MTM2 Source Code
Any news on this?
Re: MTM2 Source Code
Let us know if you need any help. Like I said before. Easily half of us or more are developers here 

Re: MTM2 Source Code
Yes, I'm interested too!
Re: MTM2 Source Code
Tbf Slayer, he did sign an NDA so he can't just go spread the code around.
Re: MTM2 Source Code
Of course, but we can still help with compiler errors and stuff. Maybe help him track down 20 year old references? etc.Fila wrote:Tbf Slayer, he did sign an NDA so he can't just go spread the code around.

Re: MTM2 Source Code
I signed my life away with Mark and got the source code as well \o/
Right now I'm going through it to try and get it to compile. Don't know how they had it set up back then but right now I need to link every .h file properly (as in give the full address to the file) otherwise they aren't getting found. There are quite a bunch of them.
It also doesn't help that my c++ programming knowledge more or less ends at creating a tic-tac-toe game
Right now I'm going through it to try and get it to compile. Don't know how they had it set up back then but right now I need to link every .h file properly (as in give the full address to the file) otherwise they aren't getting found. There are quite a bunch of them.
It also doesn't help that my c++ programming knowledge more or less ends at creating a tic-tac-toe game
Re: MTM2 Source Code
Do they have a path already? You might just need to make sure the source code is in the exact path it expects.Fila wrote:I signed my life away with Mark and got the source code as well \o/
Right now I'm going through it to try and get it to compile. Don't know how they had it set up back then but right now I need to link every .h file properly (as in give the full address to the file) otherwise they aren't getting found. There are quite a bunch of them.
It also doesn't help that my c++ programming knowledge more or less ends at creating a tic-tac-toe game
Like for example if user Mark wrote it on his desktop in windows 95. I would expect the path to be C:\windows\profiles\Mark\Desktop\MTM2\*.h Or something like that

Re: MTM2 Source Code
No, there's no path at all.
It's as if it expects the file to be in the same folder but I'm kinda scared to lump everything in one folder. Mark mentioned it's supposed to be separated in folders.
Though maybe I should just make a copy and lump everything in one separate folder and see what happens.
It's as if it expects the file to be in the same folder but I'm kinda scared to lump everything in one folder. Mark mentioned it's supposed to be separated in folders.
Though maybe I should just make a copy and lump everything in one separate folder and see what happens.
Re: MTM2 Source Code
Haha. That didn't work. Ended up with 2000+ errors. Keeping the folders separate only gives me 97 errors (but i'm not done updating the paths yet).
- Kmaster
- MTM2 Engineer
- Posts: 1369
- Joined: Fri Oct 10, 2003 6:19 pm
- Location: Valparaíso, Chile.
- Contact:
Re: MTM2 Source Code
This is getting really interesting!
Re: MTM2 Source Code
I'm assuming they used Watcom to compile it back then, however it shouldn't be too much work to get it working on something a bit more modern. Feel free to message, or hit me up on IRC as well we can probably help somewhat. As I'd imagine some conventions to be similar.
4x4 Evolution Revival Project
http://www.4x4evolution.com
http://www.4x4evolution.com
Re: MTM2 Source Code
Yeah I'm trying to get it to work with VS 2015, mostly because eventually I would like to try and port it to DirectX9. But anyway, won't have the time to finish working on the paths until next week.