Skip to content

Commit

Permalink
fix docs, fix sklb2
Browse files Browse the repository at this point in the history
  • Loading branch information
lmcintyre committed Feb 22, 2022
1 parent 4c60911 commit ed84882
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
7 changes: 4 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ the FFXIV folder paths. If you select C:\Users\User\Desktop\tmp, it will save th
`C:\Users\User\Desktop\tmp\chara\human\c0101\skeleton\base\b0001\skl_c0101b0001.sklb`. That's just the way it is.

Anyways, since we're still on male Hyur, go to `chara/human/c0101/animation/bt_common/emote` and do the same thing as above,
but with `fistbump.pap`. This is your animation file. Place them both somewhere save, **as you'll need both of them later to put the animation back into the game.**
but with `fistbump.pap`. This is your animation file. Place them both somewhere safe, **as you'll need both of them later to put the animation back into the game.**

### Using AnimAssist

Expand All @@ -64,7 +64,7 @@ where output_file.hkx will be a Havok file that you can open in 3DS Max using Ha
This is what it looks like when I run this command on the files we just obtained:
![command](https://github.com/lmcintyre/AnimAssist/raw/main/gh/extract.png)

Note the skeleton warning. Skeletons mismatch don't produce an error, and will break literally everything ever.
Note the skeleton warning. Skeleton mismatches don't produce an error, and may break literally everything ever.

### Opening the file properly

Expand All @@ -82,7 +82,8 @@ You have some sweet changes to some animation, but now we need to put it back in
From the Max menu, click Export and type any filename you want, and save it in a cool, dry place. In the "Save as type"
drop-down, select "Havok Export (*.HKA, *.HKX, *.,HKT)". We will be saving an hkx file once more. Export your file,
again, selecting **disable scale, invert top, and set Back: Top.** You must select those, as well
as **Export animation and include skeleton**. **Optimize tracks is optional**.
as **Export animation and include skeleton**. Set **toolset to 2014**. In my testing, I found that it was optional,
however, it seems safest to **disable optimize tracks** according to user reports.

### Using AnimAssist (cont)

Expand Down
2 changes: 1 addition & 1 deletion anim.py
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,7 @@ def read_sklb_header_2(sklb_data) -> dict:
# 4 byte skeleton id
# 4 x 4 byte other skeleton ids

hdr = { k: v for k, v in zip(SKLB_HDR_2, struct.unpack('<4sIIIII4I', sklb_data[0:44])) }
hdr = { k: v for k, v in zip(SKLB_HDR_2, struct.unpack('<4sIIIII4I', sklb_data[0:40])) }
for key in hdr.keys():
dbgprint(f"{key} : {hdr[key]}")
return hdr
Expand Down

0 comments on commit ed84882

Please sign in to comment.