Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Code Snippets / [DBP]+[Enhan Anim]+[Dark Data] Extract/Load Animations: Apocalypse Pack

Author
Message
DigitalFury
13
Years of Service
User Offline
Joined: 30th Jul 2010
Location: United States
Posted: 1st Dec 2010 20:30 Edited at: 2nd Dec 2010 03:08
I created a quick and easy way of extracting all the animation (.anim) files from the Apocalypse Pack.

Functions:

Create_AnimationDatabase(AnimationName$, Dir$)
This function will scan the folder Dir$ and write all .anim file names to the database assigning an index to each.
- AnimationName$ = The animation file name.
- Dir$ = The directory to create the new files

Load_AnimationDatabase(AnimationName$, Dir$, DFS, KFS)
This function will load the database created under the database indexes of DFS and KFS. Refer to the DFS index for "GetAnimationIndex" later. The function will also load every .anim file it find in directory Dir$.
- AnimationName$ = The animation file name.
- Dir$ = The directory to create the new files
- DFS/KFS = Database Indexes (Dark Data)

GetAnimationIndex(DFS, Name$)
By giving a name you get the index of the anim file loaded.
- DFS = Database Index
- Name$ - Animation Name

GoTo Statements:

Extract_Animation:
Since the anim is the same for ever mod zombie and slow zombie I use a for loop to reduce the amount of code. The base animation is extracted first and then the extra animations for that object are extracted.

Extract_BaseAnimation:
The anim from 1 - 91 are the same so this goto statement is called instead of having a lot of redundant code.



Download the Folders from this post.
Download the .Anim files from MegaUpload here.

This snippet is used in my project Zombie Project: Early WIP.

Any comments, questions, or bugs let me know. Don't forget to credit me if you use any of my code.

DigitalFury

Attachments

Login to view attachments
DigitalFury
13
Years of Service
User Offline
Joined: 30th Jul 2010
Location: United States
Posted: 4th Dec 2010 06:17 Edited at: 4th Dec 2010 21:39
Character Shop Extract/Load Animation


Extract Animation Code:
- "Character.x" = The Outputed .x Character from Character Shop
All this can be changed to match the correct dir/file paths:


DigitalFury
13
Years of Service
User Offline
Joined: 30th Jul 2010
Location: United States
Posted: 4th Dec 2010 21:40 Edited at: 4th Dec 2010 21:41
Load Animation


Load_Animation:
This is the goto statement for loading all the animation.

Login to post a reply

Server time is: 2024-04-24 16:37:40
Your offset time is: 2024-04-24 16:37:40