Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
37 commits
Select commit Hold shift + click to select a range
f7eed8f
Add shirt/pants common colors, tweak head scale and camera, responsiv…
datkat21 Feb 24, 2025
598d8fa
Update SVGs.
datkat21 Feb 24, 2025
94427bb
Accessibility (text) labels, custom icon draw funcs, confirm lookalik…
datkat21 Feb 24, 2025
dc15c99
Add separators/accommodations for laptop screen size, add MiiCreatorV…
datkat21 Feb 24, 2025
c926f68
Update icons.json.
datkat21 Feb 24, 2025
029b224
Add new Choose a Look-alike revise selection, minor refactoring in FF…
datkat21 Feb 25, 2025
e861bd7
Tweaks to random Mii grid, tweaks to make Wii U theme non-functional
datkat21 Feb 25, 2025
603a28f
Hotfix for body model, replace bg_qr_wiiu.png, add missing sounds to …
datkat21 Feb 27, 2025
fac042b
Cleanup: remove FFLShader/MiitomoShader (in favor of ffl.js shaders),…
datkat21 Feb 27, 2025
4a0ca77
Tweak revise feature, add ColorMixShaderMaterial and sRGBToLinear fun…
datkat21 Feb 28, 2025
c508cdd
Add temporary Mii type (blue pants), texResolution control, disposing…
datkat21 Mar 3, 2025
b40da54
Change favicon, move logic to setup FFL to FFLLoader.ts, attempt to f…
datkat21 Mar 3, 2025
e7511d0
Add new localization system with gettext.js.
datkat21 Mar 4, 2025
fb29a1b
improve head focus, fix name length check, add resource reload warnin…
datkat21 Mar 5, 2025
ee50db4
Experimental support for Streetpass body model, more localization, up…
datkat21 Mar 6, 2025
e6454f2
Add missing conversion ToVer3FacelineColorTable in MiiCreatorV4Data.t…
datkat21 Mar 9, 2025
d38fdd3
Refine experimental scaling for StreetPass body hands, more localizat…
datkat21 Mar 10, 2025
3d3a80a
Update ffl.js and struct-fu using its JSDoc types, add rendertarget.j…
datkat21 Mar 10, 2025
e9b739b
Prepare for release by disable unfinished UI, POST data to /api/archi…
datkat21 Mar 13, 2025
a6f5fb9
More Options button, wigType field, hotfix hair flip in ffl.js, more …
datkat21 Mar 13, 2025
5e90f26
Implement syncing library with server (pushToServer), bump version to…
datkat21 Mar 14, 2025
40dd325
Add logic to fix CreateID flags, fix icons with hijab hat, set wigTyp…
datkat21 Mar 17, 2025
08f923b
Add eyeSclera hack, misc ffl.js fixes, FFLiCharInfo.ts to use MiiData…
datkat21 Mar 17, 2025
fb4d7f1
Add helper.ts/popup.ts, functionality to choose Personal Mii
datkat21 Mar 17, 2025
869e00c
Remove Switch shader from ShaderUtils.ts, refine Personal Mii dialog,…
datkat21 Mar 18, 2025
a80f7da
Update Miitomo pose images, minor update to helper.ts
datkat21 Mar 20, 2025
2f9080d
Add more Guest Miis and initial animation support in helper.ts, Perso…
datkat21 Mar 24, 2025
d603afe
Add clothes types and shoes color, update Wii U body model, update al…
datkat21 Mar 31, 2025
13db199
Add Miitomo "Basic" (Pretendo) shader, add clothing for Miitomo body,…
datkat21 Apr 1, 2025
6ef5fe3
Add mii-selector from David, optionally load StreetPass body...
datkat21 Apr 2, 2025
415d130
Rename selector.css.ts -> selector_misc.ts, add missing default: in M…
datkat21 Apr 3, 2025
f88f241
Add eye/eyebrow rotation tables (for accuracy), update i18n/template.…
datkat21 Apr 7, 2025
84205bb
Update ffl.js (2fc67ca), add Three.js materials, update selector.js, …
datkat21 Apr 7, 2025
d79a9b3
Bump to v0.9.3, remove update timer, WIP privacy policy, "More Option…
datkat21 Apr 26, 2025
c6bd8d6
Add initial implementation of Mii structs with struct-fu.
datkat21 Apr 26, 2025
5a2c62d
Run Prettier on all files. (TBD: Most files in the repo are CRLF or L…
datkat21 Apr 26, 2025
40883cb
Refactor to use struct-fu defined structs, remove use of mii-js (Non-…
datkat21 Feb 24, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -176,4 +176,6 @@ out

# FFL resource files
FFLRes*.dat
AFLRes*.dat
AFLRes*.dat

mii-creator-server
2 changes: 1 addition & 1 deletion .prettierrc
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"arrowParens": "always",
"bracketSameLine": false,
"endOfLine": "lf",
"endOfLine": "auto",
"singleQuote": false,
"semi": true,
"trailingComma": "none",
Expand Down
16 changes: 10 additions & 6 deletions build.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import { stripDebug } from "@namchee/bun-plugin-strip-debug";

/**
* Builds a TypeScript file to a directory.
* @param filePath The file path.
Expand All @@ -15,11 +17,13 @@ export async function compile(
splitting: false,
emitDCEAnnotations: true,
sourcemap: "none",
minify: {
identifiers: true,
syntax: true,
whitespace: true,
},
// Only apply when building for prod !!
// minify: {
// identifiers: true,
// syntax: true,
// whitespace: true
// }
// plugins: [stripDebug({ exclude: ["warn"] })]
}).catch((e) => {
console.error("Failed to build:", e);
})) as BuildOutput;
Expand All @@ -39,7 +43,7 @@ import type { BuildOutput } from "bun";
async function build() {
try {
await compile(
["./src/main.ts", "./src/api.ts", "./src/worker.ts"],
["./src/main.ts", "./src/helper.ts", "./src/popup.ts", "./src/worker.ts"],
"./public/dist/"
);
} catch (e) {
Expand Down
Binary file modified bun.lockb
100755 → 100644
Binary file not shown.
26 changes: 26 additions & 0 deletions gettext.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
import { GettextExtractor, JsExtractors } from "gettext-extractor";

let extractor = new GettextExtractor();

extractor
.createJsParser([
JsExtractors.callExpression("__", {
arguments: {
text: 0,
context: 1
},
comments: { otherLineLeading: true }
}),
JsExtractors.callExpression("ngettext", {
arguments: {
text: 1,
textPlural: 2,
context: 3
}
})
])
.parseFilesGlob("./src/**/*.@(ts|js|tsx|jsx)");

extractor.savePotFile("./src/i18n/template.pot");

extractor.printStats();
14 changes: 10 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,25 +3,31 @@
"module": "build.ts",
"type": "module",
"scripts": {
"build-ts": "bun build.ts",
"serve": "bunx serve -l 3000 -C ./public"
"dev": "bun build.ts",
"serve": "bunx serve -l 3000 -C ./public",
"server": "cd mii-creator-server && bun ."
},
"devDependencies": {
"@types/bun": "latest"
"@namchee/bun-plugin-strip-debug": "^1.0.4",
"@types/bun": "latest",
"po2json": "^0.3.0"
},
"peerDependencies": {
"typescript": "^5.0.0"
"typescript": "^5.8.2"
},
"dependencies": {
"@datkat21/html": "^1.2.0",
"@sentry/browser": "^8.53.0",
"@types/assert": "^1.5.10",
"@types/gettext.js": "^1.0.3",
"@types/gsap": "^3.0.0",
"@types/md5": "^2.3.5",
"@types/three": "^0.173.0",
"assert": "^2.1.0",
"buffer": "^6.0.3",
"camera-controls": "^2.9.0",
"gettext-extractor": "^3.8.0",
"gettext.js": "^2.0.3",
"iconv-lite": "^0.6.3",
"jszip": "^3.10.1",
"kaitai-struct": "^0.10.0",
Expand Down
Binary file modified public/assets/audio/miiMakerU.zip
Binary file not shown.
Binary file added public/assets/audio/miiSelector.zip
Binary file not shown.
Binary file modified public/assets/images/favicon.ico
Binary file not shown.
Binary file not shown.
Binary file modified public/assets/images/poses/miitomo/01.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 modified public/assets/images/poses/miitomo/02.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 modified public/assets/images/poses/miitomo/03.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 modified public/assets/images/poses/miitomo/04.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 modified public/assets/images/poses/miitomo/05.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 modified public/assets/images/poses/miitomo/06.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 modified public/assets/images/poses/miitomo/07.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 modified public/assets/images/poses/miitomo/08.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 modified public/assets/images/poses/miitomo/09.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 modified public/assets/images/poses/miitomo/10.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 modified public/assets/images/poses/miitomo/11.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 modified public/assets/images/poses/miitomo/12.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 modified public/assets/images/poses/miitomo/13.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 modified public/assets/images/poses/miitomo/14.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 modified public/assets/images/poses/miitomo/15.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 modified public/assets/images/poses/miitomo/16.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 modified public/assets/images/update_notice/update_notice_image_01.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 public/assets/models/miiBodyF_streetpass.glb
Binary file not shown.
Binary file modified public/assets/models/miiBodyF_wiiu.glb
Binary file not shown.
Binary file added public/assets/models/miiBodyM_streetpass.glb
Binary file not shown.
Binary file modified public/assets/models/miiBodyM_wiiu.glb
Binary file not shown.
2 changes: 1 addition & 1 deletion public/dist/api.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Binary file modified public/dist/ffl-emscripten.wasm
100644 → 100755
Binary file not shown.
Loading