[PC] City Racing ".msh" and ".dat" Files

Post questions about game models here, or help out others!
Post Reply
barankaplan7878
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

Post by barankaplan7878 » Thu Jul 05, 2018 9:28 pm

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

User avatar
shakotay2
MEGAVETERAN
MEGAVETERAN
Posts: 2605
Joined: Fri Apr 20, 2012 9:24 am
Location: Nexus, searching for Jim Kirk
Has thanked: 638 times
Been thanked: 1332 times

Re: [PC] City Racing ".msh" and ".dat" Files

Post by shakotay2 » Fri Jul 06, 2018 6:13 am

point cloud is perfect but for some reason the face indices don't seem to fit
police-msh.jpg
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."

barankaplan7878
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

Post by barankaplan7878 » Fri Jul 06, 2018 10:45 am

shakotay2 wrote:point cloud is perfect but for some reason the face indices don't seem to fit
police-msh.jpg
How you opened it?

akderebur
ultra-veteran
ultra-veteran
Posts: 324
Joined: Fri Jul 08, 2011 10:36 am
Has thanked: 44 times
Been thanked: 290 times

Re: [PC] City Racing ".msh" and ".dat" Files

Post by akderebur » Fri Jul 06, 2018 12:03 pm

barankaplan7878 wrote: How you opened it?
Hex2obj.

Here is the first mesh from "Main.msh" in the "01" folder.

Image

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.

barankaplan7878
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

Post by barankaplan7878 » Fri Jul 06, 2018 12:37 pm

akderebur wrote:
barankaplan7878 wrote: How you opened it?
Hex2obj.

Here is the first mesh from "Main.msh" in the "01" folder.

Image

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.
I want to replace these models, what should I do?

User avatar
shakotay2
MEGAVETERAN
MEGAVETERAN
Posts: 2605
Joined: Fri Apr 20, 2012 9:24 am
Location: Nexus, searching for Jim Kirk
Has thanked: 638 times
Been thanked: 1332 times

Re: [PC] City Racing ".msh" and ".dat" Files

Post by shakotay2 » Fri Jul 06, 2018 1:07 pm

@akderebur: great!
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."

akderebur
ultra-veteran
ultra-veteran
Posts: 324
Joined: Fri Jul 08, 2011 10:36 am
Has thanked: 44 times
Been thanked: 290 times

Re: [PC] City Racing ".msh" and ".dat" Files

Post by akderebur » Fri Jul 06, 2018 1:40 pm

shakotay2 wrote: How'd you know that vertex start address is 0x2A0, not 0xC0?
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.

barankaplan7878
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

Post by barankaplan7878 » Fri Jul 06, 2018 1:52 pm

Anyone can tell me how to edit these files?

User avatar
shakotay2
MEGAVETERAN
MEGAVETERAN
Posts: 2605
Joined: Fri Apr 20, 2012 9:24 am
Location: Nexus, searching for Jim Kirk
Has thanked: 638 times
Been thanked: 1332 times

Re: [PC] City Racing ".msh" and ".dat" Files

Post by shakotay2 » Fri Jul 06, 2018 2:26 pm

barankaplan7878 wrote:Anyone can tell me how to edit these files?
well, did you ever edit/replace a model of any other 3D game?
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."

User avatar
Tosyk
double-veteran
double-veteran
Posts: 936
Joined: Thu Oct 22, 2009 10:24 am
Location: Russia, Siberia
Has thanked: 226 times
Been thanked: 107 times
Contact:

Re: [PC] City Racing ".msh" and ".dat" Files

Post by Tosyk » Mon Jul 09, 2018 12:23 pm

what 'City Racing' you refering to, barankaplan7878?
Thank you for all you do here
my blog | my forum

barankaplan7878
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

Post by barankaplan7878 » Tue Jul 10, 2018 10:27 am

Tosyk wrote:what 'City Racing' you refering to, barankaplan7878?
This

Image

Post Reply