OK guys another of my little questions that I hope someone can help me with. When either the toolset or the game itself loads a .mdl file how does it know whether the model has already been compiled or not? Both have the same extension so as far as they are concerned it could be either. Does the compiled version have some sort of code at the start that should never occur in the ascii version? If so how many bytes long is it and what are the actual values of the bytes.
Thanks in advance.
TR
Yet another simple(?) question.
Débuté par
Tarot Redhand
, juil. 23 2010 01:34
#1
Posté 23 juillet 2010 - 01:34
#2
Posté 23 juillet 2010 - 09:47
A binary or compiled version of the mdl file's first byte should always be hex 0x00
An ascii version of the mdl file should always start with a remark line such as "#MAXMODEL" or something similar depending on what tool was used to decompile the binary mdl.

MDA
An ascii version of the mdl file should always start with a remark line such as "#MAXMODEL" or something similar depending on what tool was used to decompile the binary mdl.
MDA
#3
Posté 23 juillet 2010 - 10:35
Thanks. I knew it had to be something simple like that. Having looked inside a couple of compiled ones I just wondered if it was more bytes in size because all the ones I looked at had 4 nul bytes at the start.
Modifié par Tarot Redhand, 23 juillet 2010 - 10:36 .
#4
Posté 23 juillet 2010 - 11:37
Now that I think about it, it is 4 bytes.
Modifié par Michael DarkAngel, 23 juillet 2010 - 11:39 .





Retour en haut






