8,018
edits
Paradox-01 (talk | contribs) m (thanks for heads up) |
Paradox-01 (talk | contribs) (...) |
||
Line 58: | Line 58: | ||
'''VBS code for | '''VBS code piece for TRMA creation''' | ||
* The objects get listed one after another (TRMA-ready). | |||
* The textures are listed for TRMA and TXMP creation. | |||
for each | * There's a texture size check to see if "-large" argument is necessary. | ||
{| border=0 cellspacing=20 cellpadding=0 align=right | |||
| hexhound hierarchy | |||
[http://i305.photobucket.com/albums/nn207/unknownfuture/Oni_Galore_Images/3D_modding/hexhound_hierarchy_zpsf32e971c.png http://i305.photobucket.com/albums/nn207/unknownfuture/Oni_Galore_Images/3D_modding/hexhound_hierarchy_tn_zpsd82230ce.png] | |||
|} | |||
objs = 0 | |||
if selection.count > 0 then | |||
' any part could be seleced, let's find the root body part | |||
SelectNeighborObj selection(0), 4 | |||
' get children | |||
set bodyparts = '''selection(0).FindChildren( , , siMeshFamily)''' | |||
for each member in bodyparts | |||
logmessage "object name: " & member.name | |||
if not typename(member.Material.CurrentImageClip) = "Nothing" then | |||
logmessage "texture: " & member.Material.CurrentImageClip.source.filename.value | |||
'logmessage "material: " & member.Material.name | |||
'logmessage "shader: " & member.Material.shaders(0).name | |||
logmessage "X: " & member.Material.CurrentImageClip.source.Parameters("XRes").Value | |||
logmessage "Y: " & member.Material.CurrentImageClip.source.Parameters("YRes").Value | |||
end if | |||
objs = objs + 1 | |||
logmessage "----------------------------------------------------------" | |||
next | |||
logmessage "counted body parts: " & objs | |||
end if | |||
' INFO : object name: A | |||
' INFO : texture: C:\Users\RRM\Desktop\A.tga | |||
' INFO : X: 512 | |||
' INFO : Y: 512 | |||
' INFO : ---------------------------------------------------------- | |||
' INFO : object name: R | |||
' INFO : texture: C:\Users\RRM\Desktop\D.tga | |||
' INFO : X: 512 | |||
' INFO : Y: 512 | |||
' INFO : ---------------------------------------------------------- | |||
' INFO : object name: S | |||
' INFO : texture: C:\Users\RRM\Desktop\E.tga | |||
' INFO : X: 512 | |||
' INFO : Y: 512 | |||
' INFO : ---------------------------------------------------------- | |||
' INFO : object name: P | |||
' INFO : texture: C:\Users\RRM\Desktop\B.tga | |||
' INFO : X: 512 | |||
' INFO : Y: 512 | |||
' INFO : ---------------------------------------------------------- | |||
' INFO : object name: Q | |||
' INFO : texture: C:\Users\RRM\Desktop\C.tga | |||
' INFO : X: 512 | |||
' INFO : Y: 512 | |||
' INFO : ---------------------------------------------------------- | |||
' INFO : object name: N | |||
' INFO : texture: C:\Users\RRM\Desktop\F.tga | |||
' INFO : X: 512 | |||
' INFO : Y: 512 | |||
' INFO : ---------------------------------------------------------- | |||
' INFO : object name: O | |||
' INFO : texture: C:\Users\RRM\Desktop\G.tga | |||
' INFO : X: 512 | |||
' INFO : Y: 512 | |||
' INFO : ---------------------------------------------------------- | |||
' INFO : object name: L | |||
' INFO : texture: C:\Users\RRM\Desktop\H.tga | |||
' INFO : X: 512 | |||
' INFO : Y: 512 | |||
' INFO : ---------------------------------------------------------- | |||
' INFO : object name: M | |||
' INFO : texture: C:\Users\RRM\Desktop\I.tga | |||
' INFO : X: 512 | |||
' INFO : Y: 512 | |||
' INFO : ---------------------------------------------------------- | |||
' INFO : object name: B | |||
' INFO : texture: C:\Users\RRM\Desktop\J.tga | |||
' INFO : X: 512 | |||
' INFO : Y: 512 | |||
' INFO : ---------------------------------------------------------- | |||
' INFO : object name: C | |||
' INFO : texture: C:\Users\RRM\Desktop\K.tga | |||
' INFO : X: 512 | |||
' INFO : Y: 512 | |||
' INFO : ---------------------------------------------------------- | |||
' INFO : object name: D | |||
' INFO : texture: C:\Users\RRM\Desktop\R.tga | |||
' INFO : X: 512 | |||
' INFO : Y: 512 | |||
' INFO : ---------------------------------------------------------- | |||
' INFO : object name: E | |||
' INFO : texture: C:\Users\RRM\Desktop\S.tga | |||
' INFO : X: 512 | |||
' INFO : Y: 512 | |||
' INFO : ---------------------------------------------------------- | |||
' INFO : object name: F | |||
' INFO : texture: C:\Users\RRM\Desktop\L.tga | |||
' INFO : X: 512 | |||
' INFO : Y: 512 | |||
' INFO : ---------------------------------------------------------- | |||
' INFO : object name: G | |||
' INFO : texture: C:\Users\RRM\Desktop\M.tga | |||
' INFO : X: 512 | |||
' INFO : Y: 512 | |||
' INFO : ---------------------------------------------------------- | |||
' INFO : object name: H | |||
' INFO : texture: C:\Users\RRM\Desktop\N.tga | |||
' INFO : X: 512 | |||
' INFO : Y: 512 | |||
' INFO : ---------------------------------------------------------- | |||
' INFO : object name: I | |||
' INFO : texture: C:\Users\RRM\Desktop\O.tga | |||
' INFO : X: 512 | |||
' INFO : Y: 512 | |||
' INFO : ---------------------------------------------------------- | |||
' INFO : object name: J | |||
' INFO : texture: C:\Users\RRM\Desktop\P.tga | |||
' INFO : X: 512 | |||
' INFO : Y: 512 | |||
' INFO : ---------------------------------------------------------- | |||
' INFO : object name: K | |||
' INFO : texture: C:\Users\RRM\Desktop\Q.tga | |||
' INFO : X: 512 | |||
' INFO : Y: 512 | |||
' INFO : ---------------------------------------------------------- | |||
' INFO : counted body parts: 19 | |||
Line 402: | Line 523: | ||
TRAM files with 20 bones are possible (via old xml method) but they refuse to become incorporated into the raw file archive. (onisplit will even stop you at the oni-file creation if you use the newer conversion method (dae and xml). | TRAM files with 20 bones are possible (via old xml method) but they refuse to become incorporated into the raw file archive. (onisplit will even stop you at the oni-file creation if you use the newer conversion method (dae and xml). | ||
Probably this whole thing falls under the rubric "too difficult to achieve". |
edits