Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Export player #9

Merged
merged 4 commits into from
Jul 13, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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