Skip to content

Commit

Permalink
Merge pull request #9 from kion-dgl/export-player
Browse files Browse the repository at this point in the history
Export player
  • Loading branch information
kion-dgl authored Jul 13, 2024
2 parents ed791ff + 6a56c15 commit 130da0d
Show file tree
Hide file tree
Showing 11 changed files with 1,194 additions and 1,172 deletions.
Binary file removed head_debug.bin
Binary file not shown.
54 changes: 11 additions & 43 deletions index.ts
Original file line number Diff line number Diff line change
@@ -1,55 +1,23 @@
import { encodeModel } from "./src/Encode";
import { encodeModel } from "./src/EncodeModel";
import { encodeTexture } from "./src/EncodeTexture";
import { encodeRom } from "./src/EncodeRom";

// Helmet + Normal Shoes
encodeModel(
"PL00P000.BIN",
// Body Encoding
"obj/02_BODY.obj",
"obj/03_HIPS.obj",
"obj/10_LEG_RIGHT_TOP.obj",
"obj/11_LEG_RIGHT_BOTTOM.obj",
"obj/13_LEG_LEFT_TOP.obj",
"obj/14_LEG_LEFT_BOTTOM.obj",
// Feet
"obj/12_RIGHT_FOOT.obj",
"obj/15_LEFT_FOOT.obj",
// Left Arm
"obj/07_LEFT_SHOULDER.obj",
"obj/08_LEFT_ARM.obj",
"obj/09_LEFT_HAND.obj",
// Right Arm
"obj/04_RIGHT_SHOULDER.obj",
"obj/05_RIGHT_ARM.obj",
"obj/06_RIGHT_HAND.obj",
// Head
"obj/01_HEAD_HAIR.obj",
"obj/01_HEAD_FACE.obj",
"obj/01_HEAD_MOUTH.obj",
// Encode the Texture
encodeTexture(
// Body Texture
"png/body-1.png",
// Face Texture
"png/face-1.png",
);

// No helmet + Normal Shoes
encodeModel(
"PL00P010.BIN",
// Body Encoding
"obj/02_BODY.obj",
"obj/03_HIPS.obj",
"obj/10_LEG_RIGHT_TOP.obj",
"obj/11_LEG_RIGHT_BOTTOM.obj",
"obj/13_LEG_LEFT_TOP.obj",
"obj/14_LEG_LEFT_BOTTOM.obj",
// Feet
"obj/12_RIGHT_FOOT.obj",
"obj/15_LEFT_FOOT.obj",
// Left Arm
"obj/07_LEFT_SHOULDER.obj",
"obj/08_LEFT_ARM.obj",
"obj/09_LEFT_HAND.obj",
// Right Arm
"obj/04_RIGHT_SHOULDER.obj",
"obj/05_RIGHT_ARM.obj",
"obj/06_RIGHT_HAND.obj",
// Head
"obj/01_HEAD_HELMET.obj",
"obj/01_HEAD_FACE.obj",
"obj/01_HEAD_MOUTH.obj",
);

encodeRom();
Binary file removed mod/PL00P000.BIN
Binary file not shown.
Binary file added mod/PL01T.BIN
Binary file not shown.
Binary file removed player.dat
Binary file not shown.
Binary file added png/body-1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added png/face-1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit 130da0d

Please sign in to comment.