guansss / magic-of-stella

Traveling in the fantasy world!

Home Page:https://steamcommunity.com/sharedfiles/filedetails/?id=1973329389

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

magic-of-stella

GitHub package.json version Codacy Badge Steam Subscriptions Made with

Wallpaper from the ending theme of anime Magic of Stella (ステラのまほう) .

View it online

1670402854696

Setup

It's recommended to use Yarn as package manager, npm is fine though.

yarn install

Serving

Sering for browsers

Create a folder named wallpaper at project root, then run following command.

yarn setup

Serving for Wallpaper Engine

By redirecting the running wallpaper to the server, we are able to use the liveReload feature of Webpack dev server, which is extremely useful for development.

To achieve that, a script was made to generate a bridge HTML file, there are a few steps to prepare before using this script:

  1. Create a folder in myproject directory of Wallpaper Engine, for example:

    C:\Program Files (x86)\Steam\steamapps\common\wallpaper_engine\projects\myprojects\magic-of-stella
    
  2. Go back to this project, create .env.local file at project root, add WALLPAPER_PATH variable which describes the destination of output files.

    WALLPAPER_PATH=C:\Program Files (x86)\Steam\steamapps\common\wallpaper_engine\projects\myprojects\magic-of-stella

    For more information about the format of this file, see dotenv.

  3. Run following command. You may be asked for confirmations to overwrite existing files.

    yarn setup
  4. Check the Wallpaper Engine browser, a new wallpaper should appear with [DEV] prefix.

This preparation should be done only once, but any time you think the generated files are supposed be updated, you need to run yarn setup again.

Now, just like serving for browsers, run yarn start, and then select the wallpaper, everything will work as it should be in browsers.

Building

yarn build

If you are updating an existing Workshop project instead of creating a new one, you need to specify a WORKSHOP_ID in .env.local before building the project.

WORKSHOP_ID=123456

When publishing to Workshop, don't forget to copy files in /wallpaper and paste them into your project.

About

Traveling in the fantasy world!

https://steamcommunity.com/sharedfiles/filedetails/?id=1973329389

License:MIT License


Languages

Language:TypeScript 68.8%Language:JavaScript 23.2%Language:HTML 6.6%Language:GLSL 1.4%