Offtopic: Into Commodore 64 (6502) coding, pixeling or music?
Xentax is looking for new members for the C64 activities!
Just drop us a message at forum@xentax.com and join the Scene Team!
Forum rules: Click here
Xentax is looking for new members for the C64 activities!
Just drop us a message at forum@xentax.com and join the Scene Team!
Forum rules: Click here
[PC] City Racing ".msh" and ".dat" Files
-
- ultra-n00b
- Posts: 5
- Joined: Fri Oct 06, 2017 4:40 pm
- Has thanked: 2 times
- Been thanked: 1 time
[PC] City Racing ".msh" and ".dat" Files
I don't know how to open these ".msh" and ".dat" files. There are ".obj" files too but they have very small sizes. I want to edit these models, can anyone help me?
".obj", ".dat" and ".msh" files(".dat" files in the "msh" folder):
https://drive.google.com/file/d/1IiRBg0 ... sp=sharing
Thanks
".obj", ".dat" and ".msh" files(".dat" files in the "msh" folder):
https://drive.google.com/file/d/1IiRBg0 ... sp=sharing
Thanks
- shakotay2
- MEGAVETERAN
- Posts: 2818
- Joined: Fri Apr 20, 2012 9:24 am
- Location: Nexus, searching for Jim Kirk
- Has thanked: 702 times
- Been thanked: 1452 times
Re: [PC] City Racing ".msh" and ".dat" Files
point cloud is perfect but for some reason the face indices don't seem to fit
You do not have the required permissions to view the files attached to this post.
Bigchillghost, Reverse Engineering a Game Model: viewtopic.php?f=29&t=17889
extracting simple models: viewtopic.php?f=29&t=10894
Make_H2O-ForzaHor3-jm9.zip
"You quoted the whole thing, what a mess."
extracting simple models: viewtopic.php?f=29&t=10894
Make_H2O-ForzaHor3-jm9.zip
"You quoted the whole thing, what a mess."
-
- ultra-n00b
- Posts: 5
- Joined: Fri Oct 06, 2017 4:40 pm
- Has thanked: 2 times
- Been thanked: 1 time
Re: [PC] City Racing ".msh" and ".dat" Files
How you opened it?shakotay2 wrote:point cloud is perfect but for some reason the face indices don't seem to fit
-
- ultra-veteran
- Posts: 401
- Joined: Fri Jul 08, 2011 10:36 am
- Has thanked: 51 times
- Been thanked: 399 times
Re: [PC] City Racing ".msh" and ".dat" Files
Hex2obj.barankaplan7878 wrote: How you opened it?
Here is the first mesh from "Main.msh" in the "01" folder.

I first though vertex blocks are 64 bytes but there are actually 2 sets of vertex blocks each with 32 bytes blocks. So index start - (64 * vertex count) or (32 * vertex count) to get to the start of the vertex blocks. This kinda reminded me of Skyforge.
-
- ultra-n00b
- Posts: 5
- Joined: Fri Oct 06, 2017 4:40 pm
- Has thanked: 2 times
- Been thanked: 1 time
Re: [PC] City Racing ".msh" and ".dat" Files
I want to replace these models, what should I do?akderebur wrote:Hex2obj.barankaplan7878 wrote: How you opened it?
Here is the first mesh from "Main.msh" in the "01" folder.
I first though vertex blocks are 64 bytes but there are actually 2 sets of vertex blocks each with 32 bytes blocks. So index start - (64 * vertex count) or (32 * vertex count) to get to the start of the vertex blocks. This kinda reminded me of Skyforge.
- shakotay2
- MEGAVETERAN
- Posts: 2818
- Joined: Fri Apr 20, 2012 9:24 am
- Location: Nexus, searching for Jim Kirk
- Has thanked: 702 times
- Been thanked: 1452 times
Re: [PC] City Racing ".msh" and ".dat" Files
@akderebur: great!
How'd you know that vertex start address is 0x2A0, not 0xC0?
How'd you know that vertex start address is 0x2A0, not 0xC0?
Bigchillghost, Reverse Engineering a Game Model: viewtopic.php?f=29&t=17889
extracting simple models: viewtopic.php?f=29&t=10894
Make_H2O-ForzaHor3-jm9.zip
"You quoted the whole thing, what a mess."
extracting simple models: viewtopic.php?f=29&t=10894
Make_H2O-ForzaHor3-jm9.zip
"You quoted the whole thing, what a mess."
-
- ultra-veteran
- Posts: 401
- Joined: Fri Jul 08, 2011 10:36 am
- Has thanked: 51 times
- Been thanked: 399 times
Re: [PC] City Racing ".msh" and ".dat" Files
First I checked the smaller vertex blocks near the end of the file and saw that vertex data is always 2 sets of 32 bytes blocks, so 64 * vertex count bytes in total. For the first mesh I also started from 0xC0, but when you start from there and go until index start, you end up with 142688 bytes. Divided by 64 it is 2229.5. It had to be same as vertex count (2222), so I figured I should start at a later offset. At the end I did index start (0x22E20) - (2222 * 64) and ended up with 0x2A0.shakotay2 wrote: How'd you know that vertex start address is 0x2A0, not 0xC0?
-
- ultra-n00b
- Posts: 5
- Joined: Fri Oct 06, 2017 4:40 pm
- Has thanked: 2 times
- Been thanked: 1 time
- shakotay2
- MEGAVETERAN
- Posts: 2818
- Joined: Fri Apr 20, 2012 9:24 am
- Location: Nexus, searching for Jim Kirk
- Has thanked: 702 times
- Been thanked: 1452 times
Re: [PC] City Racing ".msh" and ".dat" Files
well, did you ever edit/replace a model of any other 3D game?barankaplan7878 wrote:Anyone can tell me how to edit these files?
If 'no' be informed that it's a VERY hard task in general. If you don't believe me search the forum for threads where an "obj to whatever3Dformat" conversion has been done. Guess there's not too many.
You'd need a FULL format analysis for such, without that it's senseless.
(If you're an experienced modder you might know that it's possible to edit static models as long as the new vertex count doesn't exceed the original one. Left over vertices have to be set to zero then.)
A "whatever3Dformat to obj" conversion generally can be done without a full format conversion.
See the 100s of threads where this has been done, especially using hex2obj.
This is what I recommend to start with, understanding the use of hex2obj or similar, i.e. Lazov's 3D Model Researcher for example or Model Inspector from Herbert3000.
You also might read Bigchillghost's tutorial about Reverse Engineering a Game Model.
Bigchillghost, Reverse Engineering a Game Model: viewtopic.php?f=29&t=17889
extracting simple models: viewtopic.php?f=29&t=10894
Make_H2O-ForzaHor3-jm9.zip
"You quoted the whole thing, what a mess."
extracting simple models: viewtopic.php?f=29&t=10894
Make_H2O-ForzaHor3-jm9.zip
"You quoted the whole thing, what a mess."
- Tosyk
- double-veteran
- Posts: 934
- Joined: Thu Oct 22, 2009 10:24 am
- Location: Russia, Siberia
- Has thanked: 225 times
- Been thanked: 111 times
- Contact:
-
- ultra-n00b
- Posts: 5
- Joined: Fri Oct 06, 2017 4:40 pm
- Has thanked: 2 times
- Been thanked: 1 time
Re: [PC] City Racing ".msh" and ".dat" Files
ThisTosyk wrote:what 'City Racing' you refering to, barankaplan7878?
