Online MTM2 truck viewer
Re: Online MTM2 truck viewer
Did you upload the screenshot feature version? Can't find it on your github either.
Re: Online MTM2 truck viewer
yeah. forgot to actually push to main repo, sorry. should be working now
Re: Online MTM2 truck viewer
Yup this is great. Already added it to the website. Great job Kmaster.
Re: Online MTM2 truck viewer
I feel like an unintended consequence of this is to find out when you created the pod of your truck wrong
(see my point to Cale in general discussion, lol).
Re: Online MTM2 truck viewer
Thanks and yeah, I used exactly the same truck for testing 2.1 truck support (bigfoot drag test) and noticed that also. That's why i ended up using his 2.1 HD pack.
Re: Online MTM2 truck viewer
That axle thing, the placement in the viewer compared to the game is correct. My 200, 200, 400 was a long distance ballpark estimation, probably something like 198, 198, 400 is more correct so that it actually rests into the bar.
Re: Online MTM2 truck viewer
i noticed the following:
seems like the script is not loading files from truck2.pod anymore
Re: Online MTM2 truck viewer
Fix your cookies ;)
Re: Online MTM2 truck viewer
I cleared them but that didn't fix it. I saw a CORS-related error in the chrome console, and I actually fixed it by loading the truck page from mtm2.com instead of www.mtm2.com:
Code: Select all
truck-worker.js:29 truck2.pod not found in OPFS. Fetching from local server...
Access to fetch at 'https://mtm2.com/JSTruckViewer-main/src/worker/TRUCK2.POD' from origin 'https://www.mtm2.com' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource.
JSTruckViewer-main/?url=../~trucks/T2026/monsterpatrolnowingbymatt785.zip:1 Access to fetch at 'https://mtm2.com/JSTruckViewer-main/src/worker/TRUCK2.POD' from origin 'https://www.mtm2.com' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource.
truck-worker.js:42 Failed to download truck2.pod from server: Failed to fetch
(anonymous) @ truck-worker.js:42Re: Online MTM2 truck viewer
Oh interesting. Somewhere in the communication between the app and the server, it triggers CORS if you open the app from www.mtm2.com and then try to load a link using mtm2.com. It doesn't recognize it as the same server.
Re: Online MTM2 truck viewer
I changed the truck2.pod to a relative URL so it should help a little bit but it still fails CORS when going from www to no-www.
Re: Online MTM2 truck viewer
So apparently this a known thing and CORS does treat them as separate servers. Meh
Re: Online MTM2 truck viewer
Something I've noticed, and maybe I'm missing something - the HD Truck Pack final release lets you select which truck you want to view, but the Mickey Thompson Stadium Trucks do not.
Otherwise, this is incredible, letting me cringe at my early works in full HD.
Otherwise, this is incredible, letting me cringe at my early works in full HD.
Re: Online MTM2 truck viewer
I noticed your zip truck pack contains multiple POD filesCale wrote: Fri Jun 05, 2026 6:23 pm Something I've noticed, and maybe I'm missing something - the HD Truck Pack final release lets you select which truck you want to view, but the Mickey Thompson Stadium Trucks do not.
https://www.mtm2.com/~trucks/trucks.php ... on+Stadium
this is not supported yet. it currently only loads the first POD file found in the ZIP. I'll try to add support for loading multiple POD files soon across all JS utilities
Re: Online MTM2 truck viewer
does anybody remember how to add dark-tinted transparent windows? it was a hardware rendering trick that you do in the binedit mapper.
Re: Online MTM2 truck viewer
Oh... I've never known that. lol
Re: Online MTM2 truck viewer
Done some toying around with it for the first time, and I gotta say, I really love it, definitely a lot better than simply looking at the truck via pic previews.
Of course, it's not always a 100%, as there are issues with some of the trucks uploaded over the years, but the main gear grinder that I have with it at the moment, is how some POD files that contains more than one truck, the "TRUCKS IN POD" tab doesn't show up for whatever reason, therefore I can't view any of the other trucks in the POD file whatsoever.
Just as I wrote this, I noticed that you said that you were going to work on the multiple POD files viewing anyway, so all good.
Of course, it's not always a 100%, as there are issues with some of the trucks uploaded over the years, but the main gear grinder that I have with it at the moment, is how some POD files that contains more than one truck, the "TRUCKS IN POD" tab doesn't show up for whatever reason, therefore I can't view any of the other trucks in the POD file whatsoever.
Just as I wrote this, I noticed that you said that you were going to work on the multiple POD files viewing anyway, so all good.
Last edited by Ford-chan on Sat Jun 06, 2026 9:38 am, edited 1 time in total.
Re: Online MTM2 truck viewer
You map a Transparent face type to the corner of a black/not black pixel. The amount of not-black pixels around it determine how transparent it is.Kmaster wrote: Fri Jun 05, 2026 8:28 pm does anybody remember how to add dark-tinted transparent windows? it was a hardware rendering trick that you do in the binedit mapper.
Re: Online MTM2 truck viewer
If there are multiple trucks in a single pod it should work fine. The issue is if there are multiple pods in a zip file. Can you link to an example?Ford-chan wrote: Sat Jun 06, 2026 4:27 am Done some toying around with it for the first time, and I gotta say, I really love it, definitely a lot better than simply looking at the truck via pic previews.
Of course, it's not always a 100%, as there are issues with some of the trucks uploaded over the years, but the main gear grinder that I have with it at the moment, is how some POD files that contains more than one truck, the "TRUCKS IN POD" tab doesn't show up for whatever reason, therefore I can't view any of the other trucks in the POD file whatsoever.
Just as I wrote this, I noticed that you said that you were going to work on the multiple POD files viewing anyway, so all good.
Re: Online MTM2 truck viewer
This pack in particular, with only one truck accessible, that being Scarlet Bandit, and no Bounty Hunter to gain access to.Fila wrote: Sat Jun 06, 2026 11:27 am If there are multiple trucks in a single pod it should work fine. The issue is if there are multiple pods in a zip file. Can you link to an example?
https://www.mtm2.com/%7Etrucks/trucks.p ... andit+2001