Coder Social home page Coder Social logo

nomi-san / balance-buff-viewer Goto Github PK

View Code? Open in Web Editor NEW
19.0 19.0 4.0 76 KB

ARAM/URF balance buff viewer plugin for Pengu Loader

License: MIT License

JavaScript 0.15% TypeScript 99.85%
aram balance league-client league-of-legends lol pengu-loader plugins urf

balance-buff-viewer's Introduction

Halo 👏

  • 🤣 Full-stack system to web
  • 🥳 Reverse engineering
  • 🐟 Fishing


Visitor count

balance-buff-viewer's People

Contributors

bakaft avatar franndzs avatar hoon610 avatar nomi-san avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

balance-buff-viewer's Issues

how add Arena mode buff data

是否可以展示 在竞技场模式下 英雄的buff 呢
Is it possible to display the hero’s buff in Arena mode?

[BUG] Node throws `ENOENT` when run `cnpm crawl`

PS E:\Repos\balance-buff-viewer> pnpm crawl

> balance-buff-viewer-plugin@13.13.2 crawl E:\Repos\balance-buff-viewer
> sucrase-node src/crawl.ts

Failed to parse fandom data. [Error: ENOENT: no such file or directory, open 'E:\Repos\balance-buff-viewer\dist\balance.json'] {
  errno: -4058,
  code: 'ENOENT',
  syscall: 'open',
  path: 'E:\\Repos\\balance-buff-viewer\\dist\\balance.json'
}
 ELIFECYCLE  Command failed with exit code 1.

🤔Of course there is no dist folder before build

simple orkaround, :

diff --git a/src/crawl.ts b/src/crawl.ts
index 33ba535..0da0aef 100644
--- a/src/crawl.ts
+++ b/src/crawl.ts
@@ -107,7 +107,18 @@ async function main() {
   const data = buildBalanceBuffData(script);
 
   const json = JSON.stringify(data);
-  const outpath = path.join(process.cwd(), 'dist/balance.json');
+  const outdir = path.join(process.cwd(), 'dist');
+  const outpath = path.join(outdir, 'balance.json');
+
+  try {
+    await fs.mkdir(outdir);
+  } catch (err: any) {
+    if (err instanceof NodeJS.ErrnoException){
+      if (err.code !== 'EEXIST') {
+        throw err;
+      }
+    }
+  }

   await fs.writeFile(outpath, json);
 }

How to update

i need Latest version,If you don't have time to update, please tell me how to update the version data and change the regional language. Thank you

Can't get the plugin to work!

I followed your guide for other issue but can't get it to work

I got this from my console tab

Untitled

Here's my plugin folder

image

I can send you debug log if you wanted.

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.