Could anyone take a look at these .binmsh files from Alan Wake? Maybe create a python or maxscript-based skeleton/weights extractor for the models?
http://sta.sh/0174ots6sv5g
Request : Alan Wake .binmsh
-
artworkplay
- veteran
- Posts: 114
- Joined: Wed Oct 05, 2011 9:40 pm
- Has thanked: 49 times
- Been thanked: 4 times
-
mariokart64n
- ultra-veteran

- Posts: 567
- Joined: Sun Jun 05, 2005 12:00 pm
- Location: Ontario, Canada
- Has thanked: 34 times
- Been thanked: 200 times
Re: Request : Alan Wake .binmsh
I worked on this format over at the facepunch forums and skin weights were "extractable" at the time, but flagged off in the script.
I was UNABLE to figure out the BONES, so I figured there was no use enabling it
Anyway here I've enabled the flag for you, having fun FIXING bones:

maxscript: http://facepunch.com/showthread.php?t=1 ... st47254771
I was UNABLE to figure out the BONES, so I figured there was no use enabling it
Anyway here I've enabled the flag for you, having fun FIXING bones:

maxscript: http://facepunch.com/showthread.php?t=1 ... st47254771
mariokart64n wrote:format is strange, as we don't get much of a header to work with.
it gives a few counts or sizes for the main vertex and index buffer but then thats it
then you jump past that and land at skeleton and material data blocks and some unknown data??? I'm also missing the skeleton hierarchy info :/
anyway after which you'll finally come to the mesh table, which in most games I see are at the top with the header.
In this format everything seems in reverse, which makes my implementation very UNSTABLE.
as the format does not supply an address to the mesh table I have to parse through the material table to get to it.
The material table is dynamic, so without picking apart the material calls in a disassembler I can only accommodate what I was provided with in the OP's sample.
In other words if there is a new material call the program will land at the wrong address and CRASH :'(
I have created a 3dsmax maxscript that imports the OP's provided sample file. Probably WILL NOT WORK on other files, so don't bother trying
![]()
You do not have the required permissions to view the files attached to this post.
Maxscript and other finished work I've done can be found on my DeviantArt account
- shakotay2
- MEGAVETERAN

- Posts: 3461
- Joined: Fri Apr 20, 2012 9:24 am
- Location: Nexus, searching for Jim Kirk
- Has thanked: 955 times
- Been thanked: 1876 times
Re: Request : Alan Wake .binmsh
impressive work, as always!
Not sure whether Spine0 should be a child of the pelvis and as always I've spoiled the skinning:
surely had. I manually created an array containing the parent ids (face bones unresolved):mariokart64n wrote:Anyway here I've enabled the flag for you, having fun FIXING bones:
Code: Select all
BPar_ID = #(-1, 1, 2, 3, 4, 5, 6, 7, 8, -1,-1,-1, 3, 13, 14, 15, 16, 17, -1, 2, 20, 21, 22, --23
20, 24, 25, 9, 21, 28, 29, 30, 24, 32, 33, 34, -1, 9, 37, 38, 9, 40, 41, 9, 43, 44, 27, 46, -- 47
9, 48, 49, 18, 51, 52, 18, 54, 55, 18, 57, 58, 18, 60, 61, 18, 63, 64, --65
1,
66, 67, -1,-1,-1,-1,-1,-1,-1,-1,-1,-1, -- 78
-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,
-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,
-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,
-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,
-1,-1,-1,-1,-1,-1,-1,-1)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."
-
artworkplay
- veteran
- Posts: 114
- Joined: Wed Oct 05, 2011 9:40 pm
- Has thanked: 49 times
- Been thanked: 4 times
Re: Request : Alan Wake .binmsh
Awesome work as always. Fixing the bones and assigning the materials ...not a problem but some of the weights "don't exist" like in the screenshot...


- Tosyk
- double-veteran

- Posts: 953
- Joined: Thu Oct 22, 2009 10:24 am
- Location: Russia, Siberia
- Has thanked: 227 times
- Been thanked: 123 times
- Contact:
Re: Request : Alan Wake .binmsh
Mario updated the script and I'm happy to share it with you.
How to use:
Note: it's important that you use the correct skeleton, and thats about it.
also seems all bones called "ragdoll*" can be removed

- Import the Skeleton from the havok File (\Alan Wake\data\ep999-000\skeletons\) into 3dsmax first with:
https://lukascone.wordpress.com/2019/03 ... ax-plugin/
import settings:- scale = 97
- Coord. setup - tick Invert Top
- Coord. setup - Back - choose Top from dropdown
- Coord. setup - tick Right
- Coord. setup - Right - choose Right from dropdown
- then run script, flip the toggles around with settings:
- Clear scene: OFF
- Enable Skin: ON
- Flip X Axis of Mesh: ON
Note: it's important that you use the correct skeleton, and thats about it.
also seems all bones called "ragdoll*" can be removed

You do not have the required permissions to view the files attached to this post.
