Coder Social home page Coder Social logo

lachs's Introduction

Lachs - Live Assistant for Counting Heads in Splatoon3

Updates / 版本更新

  • 0.8:

    • Change the setting panel with a select list. Function to add the previous count.

      通过列表选择显示方式 可选择显示历史总击杀数(需手动输入未统计部分)

    • Add display options to filter information on the screen.

      添加选项控制显示的信息(危险度,统计场数,上一场击杀数)

    • Add multi-language support.

      添加多语言支持

    • Add update checker.

      启动时检查更新

  • 0.7:

    • Initial commit. Boss counting function.

      初始功能 boss击杀计数

Introduction / 简介

Local web server for displaying and updating salmonid boss count in Salmon Run of Splatoon 3.

The live counting can be checked with a browser or OBS (browser source).

Use Node.js as the local backend and nxapi for fetching results.

斯普拉遁3打工boss击杀实时计数器

使用nxapi获取打工结果数据,并通过Node.js搭建本地网页服务器实现网页显示

可在OBS中添加浏览器源实现直播间统计数据显示

Usage / 使用方法

Setting page: Use date and time selector to set the start time. The program will count every battle later than the start time.

There are three display modes:

  • Simple: Display the kill count of the selected boss only.
  • Target: Display a target number along with the kill count. Only display bosses with non-zero targets.
  • All: Display the kill count after adding the custom offset. This function can be used when counting all-time killings, where the input offset is the previous kill count.

Use arrow key to switch between display mods in OBS

There are three display options:

  • Show Counted Rounds: display the number of counted rounds.
  • Show Last Round: display the last round kill count in parenthesis.
  • Show Rank/Hazard: display last round difficulty.

After setting the display, click start to display the live count page. The page will refresh every 10 seconds to update the result.

设置界面: 通过日期时间选项设置计数起始时间点,程序会统计在此时间点之后的所有已下载记录

显示模式:

  • 简易:只显示统计出的选定boss击杀数量
  • 目标:在统计的boss数量后面显示目标数量
  • 总计:显示当前统计数量加上程序未统计的数量(需手动输入未统计部分)

在OBS中通过方向键切换选项

显示选项:

  • 显示统计场数:在屏幕上显示本次统计的总场数
  • 显示前一场计数:在统计的boss数量后面括号内显示上一场的击杀数量
  • 显示段位/危险度:在屏幕上显示上一场的危险度信息

Installation / 安装方法

  1. Install Node.js (installer can be found on official website. We recommend using the default install location.)

  2. In Lachs folder:

    a. Windows: run ”install.bat”,

    b. MacOS/Linux: run ”install.sh

    c. Following the instructions to authorize nxapi. If successful, the user info will show on the command window. This step only needs to be executed once for each user.

  3. Launch web server:

    a. WINDOWS运行”Launch-Lachs-v0.7.bat

    b. MacOS/Linux运行”Launch-Lachs-v0.7.sh

  4. After starting the monitor script, nxapi will download the recent 50 Salmon Run results.

  5. Copy http://localhost:8001 to the browser or OBS browser source. Then set salmonid boss to monitor on the setting panel and click the start button to display counting.

OBS webpage and browser webpage are independent. Start counting in the browser will not affect the display in OBS.

When using OBS, right-click the added browser source and choose the interact button.

The counting icons are arranged with auto line-break. Adjust the display width of the OBS browser source to control the number of icons on each line.

  1. 安装Node.js(安装包可从官网获取 建议使用默认安装路径)

  2. 在GitHub下载,并解压后的Lachs文件夹中:

    a. WINDOWS运行”install.bat”,

    b. MacOS/Linux运行”install.sh

    c. 安装并根据引导完成nxapi授权 授权成功后会显示用户信息 此步骤每个Switch用户只需执行一次

    auth image 注意一定要复制窗口中显示的新链接到浏览器 不要刷新已经打开的网页,不要用上一次复制的链接

    d. Napxi授权:网页登陆 my.nintendo.com 后打开命令窗口中显示的链接

  3. 启动网页服务器:

    a. WINDOWS运行”Launch-Lachs-v0.7.bat

    b. MacOS/Linux运行”Launch-Lachs-v0.7.sh

  4. 右键“选择此人”按钮并复制链接地址,粘贴到命令窗口后按回车键

  5. 网页服务器启动后,nxapi将下载最近50场打工记录。

  6. 复制 http://localhost:8001 到浏览器或者OBS中的浏览器源启动实时击杀统计

OBS与浏览器界面相互独立,在浏览器中点击开始不会影响OBS中的显示

使用OBS浏览器源时可以通过:右键-交互 进行目标设置

计数面板的boss图标采用自动换行显示 设置OBS浏览器宽度可控制每行显示数量

manual image

FAQ / 常见问题

  1. 授权时无法连接服务器:connect ETIMEDOUT
    • 授权可能需要翻墙(与登陆NSO相同)
  2. 运行实时更新程序时网页出现错误
    • 可在github发布issue或者加QQ群653996475寻求帮助 必要时提供log/latest_run.log运行日志
  3. MacOS/Linux运行报错 permission denied
    • 需要手动添加执行权限 详情可私信或者加群指导

Important notice / 重要通知

2023.04.21

  • A bug in nxapi uses an outdated app version causing authorization to fail. Execute tools/patch_nxapi to patch the local file until nxapi is updated. The patch file will be copied when running the installation script.

    数据获取程序nxapi现版本的bug导致无法进行用户授权 请使用tools文件夹里的patch_nxapi进行本地修复,并等待nxapi更新 补丁文件会在运行install.bat时自动替换

Version

Current-Version: 0.8

License

GPL-3.0

lachs's People

Contributors

preon7 avatar

Stargazers

Lucas Liu avatar ezvik avatar  avatar  avatar

Watchers

 avatar

Forkers

poiiii0525

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.