map chara stuff

This commit is contained in:
Tau
2019-11-06 17:28:29 -05:00
parent 6873af4693
commit d1dfda62c9
+18
View File
@@ -6,6 +6,24 @@ import { LoadProfileResponse2 } from "../response/loadProfile2";
export function loadProfile2(res: LoadProfileResponse2) {
const buf = Buffer.alloc(0x0d30);
// Story stuff
//buf.writeUInt32LE(0x1ff, 0x0228);
// face
buf.writeUInt8(1, 0x070c); // Male/female
buf.writeUInt16LE(0x0066, 0x070e); // Unknown
buf.writeUInt16LE(0x00fc, 0x0710); // Face shape?
buf.writeUInt16LE(0x0000, 0x0712); // Unknown, some weird behind-face protrusion
buf.writeUInt16LE(0x0000, 0x0714); // Unknown
buf.writeUInt16LE(0x0000, 0x0716);
buf.writeUInt16LE(0x0000, 0x0718);
buf.writeUInt16LE(0x0000, 0x071a);
buf.writeUInt16LE(0x00d7, 0x071c); // Background
buf.writeUInt16LE(0x0000, 0x071e); // Flair
// Flairs (bitmap)
// buf.fill(0xff, 0x071c, 0x071c + 0xb4);
buf.writeInt16LE(0x0065, 0x0000);
buf.writeInt32LE(res.profileId, 0x3b8);
buf.writeUInt16LE(res.settings.bgMusic, 0x3c8);