Page 1 of 1

Zaafbin und anims file only 1kb big

Posted: Sun Jul 28, 2013 4:26 pm
by noMatt
Hey guys the title tell you everything you need to know about that :)
I have munged them properly followed every instruction. But the files are only 1 kb

OK its not that a complicated animation, its a test.
The game crashes as soon as i start the level


Heres my Object Define File

Code: Select all

[GameObjectClass]
ClassLabel = "prop"
GeometryName = "Cube.msh"

[Properties]
GeometryName = "Cube"
AnimationName = "Cube"
Animation	= "Cube_1"



Re: Zaafbin und anims file only 1kb big

Posted: Sun Jul 28, 2013 5:19 pm
by Marth8880
Are you positive you followed each step perfectly? Could you describe what you did as well as post your .bat files and debug log?


EDIT:

Your class label needs to be "animatedprop".

Ref: http://www.secretsociety.com/forum/down ... meters.txt

Re: Zaafbin und anims file only 1kb big

Posted: Sun Jul 28, 2013 5:25 pm
by noMatt
theres sadly no debug log and i did the following


copyd every needed bat
pasted the needed .msh files (basepose and cube :) )
munged the anims
I also modified the munge_Animation.bat so its compatible with windows 8
here are my .bats

munge.bat
Hidden/Spoiler:
[code]
@REM munge.bat
@REM Calls %1\munge.bat for all animation subdirectories


@REM props
@call munge_subdir.bat Prop\Cube

Pause[/code]
munge_animation.bat
Hidden/Spoiler:
[code]
@REM called from $\Animations\type\subfolder\
@REM all params are passed to zenasset
@REM if there are more than 9 parameters to pass, you can enclose all params in double quotes
@setlocal

@set MUNGE_ROOT_DIR=..\..\..
REM @if "%MUNGE_BIN_DIR%"=="" (
@set MUNGE_BIN_DIR=%CD%\%MUNGE_ROOT_DIR%\..\ToolsFL\Bin
@set PATH=%CD%\%MUNGE_ROOT_DIR%\..\ToolsFL\Bin;%PATH%
REM)

zenasset /multimsh /writefiles %~1 > ZenAsset.log

@mkdir %MUNGE_ROOT_DIR%\%2\MUNGED
binmunge -inputfile *.zaa -chunkid zaa_ -ext zaabin -outputdir %MUNGE_ROOT_DIR%\%2\MUNGED\
binmunge -inputfile *.zaf -chunkid zaf_ -ext zafbin -outputdir %MUNGE_ROOT_DIR%\%2\MUNGED\
del *.zaa
del *.zaf
move *.anims %MUNGE_ROOT_DIR%\%2\MUNGED\
@endlocal[/code]
munge.bat located in \prop\cube
Hidden/Spoiler:
[code]
@call ..\munge_animation.bat "/keepframe0 /specialquathack /dest Cube_1.zaf" Worlds\DMI
[/code]

Re: Zaafbin und anims file only 1kb big

Posted: Sun Jul 28, 2013 5:43 pm
by Marth8880
noMatt wrote:theres sadly no debug log and i did the following
I said debug log, not munge log. There is always a debug log. Regardless, post ZenAsset.log instead, actually.
noMatt wrote:

Code: Select all

@call ..\munge_animation.bat "/keepframe0 /specialquathack /dest Cube_1.zaf" Worlds\DMI
The .zaf argument needs to be the name of the folder followed by the *.zaf file extension

Re: Zaafbin und anims file only 1kb big

Posted: Sun Jul 28, 2013 5:47 pm
by noMatt
ZenAssets log:
Hidden/Spoiler:
[code]
-- Processing directory C:\BF2_ModTools\data_DMI\Animations\Prop\Cube
Processing file basepose.msh, will save in .\\\Cube.zaf
*** WARNING: Skin model segment 0 has too many/few UVs?
*** WARNING: Skin model segment 0 has too many/few vert colors?
.
[/code]