Skip to content

My implementation of amachiro maker, a character customization app.

License

Notifications You must be signed in to change notification settings

charlie0129/amachiromaker

Repository files navigation

amachiromaker

I created this website since the original one was not accessible (as of November 2021; was taken down by its author 甘城なつき). Original website: amachiromaker|Picrew.

This website is not a one-to-one clone of the original one, rather it is rewritten from scratch using basic React (very lightweight, no UI library used).

Note: The original artwork (layers in the image) is not (and will not be) provided due to copyright reasons. You have to download them yourself, if the servers happen to be alive. I am not responsible if you violate the license.

How to Build

Build or Develop Locally

Before you begin, make sure node (>= 14), yarn, GNU Make, and curl are installed. Also, it is recommended to use a bash-compatible shell (Windows users will have problems, try WSL/MinGW/Cygwin).

If you do not want to install all the dependencies, use Docker to build the image (next section). It should be easier.

  • Run yarn install to install dependencies.
  • Run yarn build-static to download original artworks. This may take a while.
    • By doing this, you agree that you will follow the license on the original webpage and are responsible for any consequences if you violate the license.
    • Optionally, you may use yarn build-static -jx to enable parallel downloads, where x = number of threads (preferably 4, setting it too high will cause the server to throttle you).
  • Run yarn start to start development server. Your browser should open shortly.

If you want to build the website, run yarn build to build the website. Static files will be located under build/. Use any static file server to serve the directory. For development purposes, you can use python3 -m http.server to serve the directory on port 8000. For production, you can use nginx (example configuration is in nginx.conf) or caddy to serve the directory.

Build Docker Image

Make sure docker is installed. You can follow the instructions here.

Just run docker build . -t charlie0129/amachiromaker to build the production-ready image. It will take a while to download all the artworks for you if you haven't done it in the previous section.

You can then run docker run --rm -it -p 8000:80 charlie0129/amachiromaker to start the server (Port 8000 can be changed to whatever you want). The website will be available at http://localhost:8000/.

Features

  • Choose any combinations you want, with live preview.
  • Auto save. Your changes will be preserved between page reloads.
  • Download output image as PNG or PSD (with all the separate layers you can fiddle with).
  • Download raw layer combination presets. You can load the preset and make changes to it later.

Screenshot

Fig.1 - Screenshot

Animated GIF

Fig.2 - Animated GIF

PSD Layers

Fig.3 - PSD Layers

Any of the artwork above will not be provided in this repository.

Copyright of the artwork belongs to the original author.

Description of the Scripts

Generally, you will not need to use these scripts. They will be executed automatically when generating static files.

  • scripts/data/ JSONs from the original website, containing layer info. Scripts below will use them.
  • scripts/findDefaultCombination.js find out the layer combination to compose the default picture.
  • scripts/findDepth.js order the layers by depth.
  • scripts/generateMakefile.js generate Makefile to download all the layers from picrew CDN.
  • scripts/organizeData.js reconstruct the original data to make it easier to use (mainly by combining image srcs of different colors into layer objects).

If you find this project interesting, stars⭐️ are appreciated.

About

My implementation of amachiro maker, a character customization app.

Resources

License

Stars

Watchers

Forks

Packages

No packages published