Animset Troubles

In this forum you will find and post information regarding the modding of Star Wars Battlefront 2. DO NOT POST MOD IDEAS/REQUESTS.

Moderator: Moderators

Master_Ben
Lieutenant General
Lieutenant General
Posts: 675
Joined: Wed Nov 12, 2008 9:50 pm
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set
Location: Watching your PC over your shoulder. No, the other sholder....

Animset Troubles

Post by Master_Ben »

So I've got two simple animations I made and got exported, puncher_sabre_stand_attack1a_full.msh, and puncher_sabre_stand_idle_emote_full.msh, and a borrowed basepose. I've put it in a copy of template, renamed it to "puncher", and edited it to look like this:
@call ..\munge_animation.bat "/keepframe0 /dest puncher.zaf" Sides\rep
Ran the file, and..... nothing appeared anywhere. Any help? (One of those slap me in the face obvious solutions is welcome too :P ).

Thanks guys.
User avatar
StarkillerMarek
Rebel Colonel
Rebel Colonel
Posts: 611
Joined: Wed Aug 12, 2009 4:42 pm
Location: I may be back.

Re: Animset Troubles

Post by StarkillerMarek »

What do the log files say?
Master_Ben
Lieutenant General
Lieutenant General
Posts: 675
Joined: Wed Nov 12, 2008 9:50 pm
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set
Location: Watching your PC over your shoulder. No, the other sholder....

Re: Animset Troubles

Post by Master_Ben »

That's the thing. When I say nothing, I mean nothing. I see the window for a split second, and that's it.

EDIT:Ran it as administrator, same thing.
An apology to the mods is due as well, wasn't sure where to put this and actually thought this was the modding thread. Feel free to move it.
FragMe!
Gametoast Staff
Gametoast Staff
Posts: 2244
Joined: Sat May 13, 2006 12:34 am
Projects :: Not sure keep changing my mind.
Games I'm Playing :: F1 and SWBF
xbox live or psn: No gamertag set
Location: Origin name GT_FragMe
Contact:

Re: Animset Troubles

Post by FragMe! »

Did you set up your animation directory the same as it is shown in the assests one, meaning you have a soldieranimationbank folder, of course you don't need all the subdirectories but you do need the bat files that are in the root of the animation directory. As well as the munge_animation.bat that is in the soldieranimationbank.

now you don't necessarily need to follow the directory structure exactly but I figure if it worked for Pandemic it should work for us.
Master_Ben
Lieutenant General
Lieutenant General
Posts: 675
Joined: Wed Nov 12, 2008 9:50 pm
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set
Location: Watching your PC over your shoulder. No, the other sholder....

Re: Animset Troubles

Post by Master_Ben »

Well, I did discover that I didn't have munge_subdir, munge, and clean, in my animations folder..... But that didn't change a thing. Strange, eh? :|
FragMe!
Gametoast Staff
Gametoast Staff
Posts: 2244
Joined: Sat May 13, 2006 12:34 am
Projects :: Not sure keep changing my mind.
Games I'm Playing :: F1 and SWBF
xbox live or psn: No gamertag set
Location: Origin name GT_FragMe
Contact:

Re: Animset Troubles

Post by FragMe! »

Can only suggest double checking again that all the .bats are there in the proper spots as well check the zenasset.log and see what it says. That will show any munge errors.
Master_Ben
Lieutenant General
Lieutenant General
Posts: 675
Joined: Wed Nov 12, 2008 9:50 pm
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set
Location: Watching your PC over your shoulder. No, the other sholder....

Re: Animset Troubles

Post by Master_Ben »

Well where would the log be located? I haven't been able to find it, and I don't think the batch is producing one. :|
FragMe!
Gametoast Staff
Gametoast Staff
Posts: 2244
Joined: Sat May 13, 2006 12:34 am
Projects :: Not sure keep changing my mind.
Games I'm Playing :: F1 and SWBF
xbox live or psn: No gamertag set
Location: Origin name GT_FragMe
Contact:

Re: Animset Troubles

Post by FragMe! »

If it was being produced it would be in the same directory as your animation msh files.
Master_Ben
Lieutenant General
Lieutenant General
Posts: 675
Joined: Wed Nov 12, 2008 9:50 pm
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set
Location: Watching your PC over your shoulder. No, the other sholder....

Re: Animset Troubles

Post by Master_Ben »

Yeah, I thought so. Nothing appears there in any case. :|
So, munger = broke? Or is there a way to fix it?
User avatar
impspy
Captain
Captain
Posts: 493
Joined: Wed Dec 31, 2008 1:54 pm
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set
Location: Pax Empiricae; check WIP

Re: Animset Troubles

Post by impspy »

Are you running Vista? If so this post by phazon_elite might help:
phazon_elite wrote:Very sorry to bump this, but I have some important information regarding this fix.

If anyone has run into the problem of munge_animation.bat not working in Vista, here's a fix:

Change this:
Hidden/Spoiler:
@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=..\..\..
@if "%MUNGE_BIN_DIR%"=="" (
@set MUNGE_BIN_DIR=%CD%\%MUNGE_ROOT_DIR%\..\ToolsFL\Bin
@set PATH=%CD%\%MUNGE_ROOT_DIR%\..\ToolsFL\Bin;%PATH%
)

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
To this:
Hidden/Spoiler:
@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
I encountered this today, and I hope it helps to anyone who had this problem.
Master_Ben
Lieutenant General
Lieutenant General
Posts: 675
Joined: Wed Nov 12, 2008 9:50 pm
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set
Location: Watching your PC over your shoulder. No, the other sholder....

Re: Animset Troubles

Post by Master_Ben »

Aha! Worked, thanks a lot! :thumbs: I really appreciate it.

EDIT: Bah, scratch that. Now I get the log, saying 0 errors and whatnot, but I still don't get the animation files anywhere.
FragMe!
Gametoast Staff
Gametoast Staff
Posts: 2244
Joined: Sat May 13, 2006 12:34 am
Projects :: Not sure keep changing my mind.
Games I'm Playing :: F1 and SWBF
xbox live or psn: No gamertag set
Location: Origin name GT_FragMe
Contact:

Re: Animset Troubles

Post by FragMe! »

post your zenasset.log you could also just try doing a search for thenameofyouranimation.zaabin and see if it put it somewhere you weren't expecting
Master_Ben
Lieutenant General
Lieutenant General
Posts: 675
Joined: Wed Nov 12, 2008 9:50 pm
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set
Location: Watching your PC over your shoulder. No, the other sholder....

Re: Animset Troubles

Post by Master_Ben »

Zenasset.log is 100% empty. And yeah, I tried that.
AQT
Gametoast Staff
Gametoast Staff
Posts: 4910
Joined: Sat Nov 03, 2007 4:55 pm
Location: SoCal, USA

Re: Animset Troubles

Post by AQT »

Just to make sure, is your side really called rep? As in the rep here:
@call ..\munge_animation.bat "/keepframe0 /dest puncher.zaf" Sides\rep
Master_Ben
Lieutenant General
Lieutenant General
Posts: 675
Joined: Wed Nov 12, 2008 9:50 pm
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set
Location: Watching your PC over your shoulder. No, the other sholder....

Re: Animset Troubles

Post by Master_Ben »

Yup, a stock copy-pasted republic side.
FragMe!
Gametoast Staff
Gametoast Staff
Posts: 2244
Joined: Sat May 13, 2006 12:34 am
Projects :: Not sure keep changing my mind.
Games I'm Playing :: F1 and SWBF
xbox live or psn: No gamertag set
Location: Origin name GT_FragMe
Contact:

Re: Animset Troubles

Post by FragMe! »

The fact you are getting an empty zenasset means the munge.bat in your units animation folder cannot find the munge_animation.bat file it is calling for. Been there done that banged head on keyboard

So in your Animations folder you have 3 bat files (clean, munge and munge_subdir) and a folder that may be named SoldierAnimationBank

Then in the folder called SoldierAnimationBank you have one bat file called munge_animation.bat and a directory called something related to your animation, lets say puncher.

In the puncher folder you have 1 bat file called munge.bat with the changes you indicated as well as a basepose.msh and the animation msh, once again we'll just call it puncher.msh

And it is the bat file in this folder you are running to munge the animation.
Master_Ben
Lieutenant General
Lieutenant General
Posts: 675
Joined: Wed Nov 12, 2008 9:50 pm
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set
Location: Watching your PC over your shoulder. No, the other sholder....

Re: Animset Troubles

Post by Master_Ben »

Yes, on all accounts.
FragMe!
Gametoast Staff
Gametoast Staff
Posts: 2244
Joined: Sat May 13, 2006 12:34 am
Projects :: Not sure keep changing my mind.
Games I'm Playing :: F1 and SWBF
xbox live or psn: No gamertag set
Location: Origin name GT_FragMe
Contact:

Re: Animset Troubles

Post by FragMe! »

Try this, copy the Aayla animation folder to your maps Animation/SoldierAnimationBank folder, then go into the folder and try running the bat see if Aayla animations munge correctly. You can always delete the resultant files from the munge folder later
Master_Ben
Lieutenant General
Lieutenant General
Posts: 675
Joined: Wed Nov 12, 2008 9:50 pm
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set
Location: Watching your PC over your shoulder. No, the other sholder....

Re: Animset Troubles

Post by Master_Ben »

Good idea, done. Yup, Aayla's worked. I'm gonna assume it's my animations then? :|
FragMe!
Gametoast Staff
Gametoast Staff
Posts: 2244
Joined: Sat May 13, 2006 12:34 am
Projects :: Not sure keep changing my mind.
Games I'm Playing :: F1 and SWBF
xbox live or psn: No gamertag set
Location: Origin name GT_FragMe
Contact:

Re: Animset Troubles

Post by FragMe! »

When you exported the animations you did click on the animation boxes in the pandemic exporter. sorry just had to ask. Another thing you could do is copy your animations to aalyas folder, the one you just did a munge from, delete the existing msh files first, and try munging that. Don't edit the munge.bat file.
Post Reply