Code Monkey home page Code Monkey logo

solarstats-old's Introduction

Solar Stats ๐Ÿ“Š

GitHub Maintenance

Minecraft proxy server for Hypixel. It's like a stats overlay, but better. For now you must build it yourself and enjoy it before a release. And as a lot of our projects, this one is also open source!

โš ๏ธ But this version may have bugs!

Usage โš’๏ธ

To use it you need to have NodeJS installed. (LTS version is recommended)

Building from source ๐Ÿ—๏ธ

Clone the repository on your machine using

$ git clone https://github.com/Solar-Tweaks/SolarStats

Once the repo is downloaded move to the directory and install the dependencies

$ cd SolarStats
$ npm install

You can now build the project, you will be able to use the exe file located in the dist folder. Or use the npm start command to directly run the compiled TypeScript

$ npm run build

Configuration โš™๏ธ

At the root of the project (or in the same directory as the executable) create a config.json file with the following content:

{
  "apiKey": "API KEY HERE",
  "server": {
    "host": "hypixel.net",
    "port": 25565
  },
  "customEmotes": {
    ":solar:": "โ˜€",
    ":lunar:": "โ˜พ"
  },
  "checkForUpdates": true,
  "autoDownloadUpdates": true,
  "statistics": true,
  "modules": {
    "bedwarsWaypoints": true,
    "heightLimitDelayFix": true,
    "lunarCooldowns": true,
    "bedwarsTeammates": true,
    "mvpppEmotes": true,
    "stats": true
  }
}

Starting the server ๐Ÿš€

With NodeJS

$ npm start

With the executable

Just execute the executable file. For non windows operating system you can use

$ .\path\to\executable

Arguments

Solar Stats supports the following arguments:

  • --skipUpdater: Skip the update check at startup
  • --noTracking: Don't track statistics
  • --config=/path/to/config.json: Use a custom config file (default config file is config.json in the current working directory)
  • --noTray: Disable the tray icon

Authenticating ๐Ÿ”’

When you will login for the first time you will see in the console a message like this:

[msa] First time signing in. Please authenticate now:
To sign in, use a web browser to open the page https://www.microsoft.com/link and enter the code XXXXXXXX to authenticate.

Open a browser and login with your Microsoft account. If you have not migrated your account yet you can try to edit the code manually. (Or migrate your account)

โš ๏ธ Mojang accounts wont be supported!

solarstats-old's People

Contributors

deepsource-autofix[bot] avatar richarddorian avatar steviegt6 avatar tbhgodpro avatar tinywifi avatar

Stargazers

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

Watchers

 avatar  avatar  avatar  avatar  avatar

solarstats-old's Issues

Microsoft Link

When I first linked I linked my main to my alt microsoft acc, how do I remove the microsoft link

Aswell when I am on the alt it says that "Error while executing module BedwarsWaypoints, Disabling Module" after logging into hypixel

OK so IDK if this is an issue that everyone has but if it is thats even better and hopefully will get fixed soon. Whenever I switch servers with solarstats on, it gives me an error message and shuts down the server.

/Users/(me)/SolarStats/node_modules/@solar-tweaks/minecraft-protocol-lunarclient/src/LCPlayer.js:56
โ€“โ€“โ€“โ€“ this.waypoints.forEach((waypoint) => {
^

TypeError: Cannot read properties of undefined (reading 'forEach')
โ€“โ€“โ€“โ€“ at LCPlayer.removeAllWaypoints (/Users/(me)/SolarStats/node_modules/@solar-tweaks/minecraft-protocol-lunarclient/src/LCPlayer.js:56:20)
โ€“โ€“โ€“โ€“ at Listener. (/Users/(me)/SolarStats/build/player/Player.js:60:27)
โ€“โ€“โ€“โ€“ at Listener.emit (node:events:527:28)
โ€“โ€“โ€“โ€“ at InstantConnectProxy. (/Users/(me)/SolarStats/build/Classes/Listener.js:11:22)
โ€“โ€“โ€“โ€“ at InstantConnectProxy.emit (node:events:539:35)
โ€“โ€“โ€“โ€“ at Client. (/Users/(me)/SolarStats/node_modules/prismarine-proxy/src/instant_connect_proxy.js:50:12)
โ€“โ€“โ€“โ€“ at Client.emit (node:events:527:28)
โ€“โ€“โ€“โ€“ at FullPacketParser. (/Users/(me)/SolarStats/node_modules/minecraft-protocol/src/client.js:91:12)
โ€“โ€“โ€“โ€“ at FullPacketParser.emit (node:events:527:28)
โ€“โ€“โ€“โ€“ at addChunk (/Users/(me)/SolarStats/node_modules/readable-stream/lib/_stream_readable.js:298:12)

Only few features work.

I realized that the new update of solarstats now runs perfectly. However, the bedwars waypoints, notification, and teammates don't work at all. Only mvp++ and location update works.

Invalid api key

C:\Users(user)\Desktop\SolarStats\node_modules\hypixel-api-reborn\src\Private\requests.js:24
if (res.status === 403) throw new Error(Errors.INVALID_API_KEY);
^

Error: [hypixel-api-reborn] Invalid API Key! For help join our Discord Server https://discord.gg/NSEBNMM
at Requests.request (C:\Users(user)\Desktop\SolarStats\node_modules\hypixel-api-reborn\src\Private\requests.js:24:35)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
at async Client._makeRequest (C:\Users(user)\Desktop\SolarStats\node_modules\hypixel-api-reborn\src\Client.js:70:20) at async Object.module.exports (C:\Users(user)\Desktop\SolarStats\node_modules\hypixel-api-reborn\src\API\getKeyInfo.js:4:15)

Error: [hypixel-api-reborn] Invalid API Key

C:\Users\samsc\SolarStats>npm start
npm WARN config global --global, --local are deprecated. Use --location=global instead.

[email protected] start
node .


/ | | | / | | | |
| (
___ | | __ _ _ __ | (
| |
__ | | ___
_
_ \ / _ | |/ | '__| \___ \| __/ _ | / |
__) | () | | (| | | _) | || (| | |_
|
/ __/|
|_,|| |_____/ __,|_|__/
v1.0.0-dev

INFO Checking for updates...
INFO Proxy started
C:\Users\samsc\SolarStats\node_modules\hypixel-api-reborn\src\Private\requests.js:24
if (res.status === 403) throw new Error(Errors.INVALID_API_KEY);
^

Error: [hypixel-api-reborn] Invalid API Key! For help join our Discord Server https://discord.gg/NSEBNMM
at Requests.request (C:\Users\samsc\SolarStats\node_modules\hypixel-api-reborn\src\Private\requests.js:24:35)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
at async Client._makeRequest (C:\Users\samsc\SolarStats\node_modules\hypixel-api-reborn\src\Client.js:70:20)
at async Object.module.exports (C:\Users\samsc\SolarStats\node_modules\hypixel-api-reborn\src\API\getKeyInfo.js:4:15)

Bug: unable to npm install

When entering npm install, all that shows up is: "npm WARN tar ENOENT: no such file or directory, lstat 'C:\Users\XXXX\Documents\SolarStats\node_modules.staging\javascript-obfuscator-f63bd6ad\typings'"

Invis tracker

So the other day my friend and I were playing, got a notification someone went invis, and then the tracker thing showed up in the void, like how it is when your teammate is out of render distance. At first, I thought they were, in fact, out of render distance, until I saw the foot particle thingy show up right in front of me... and... well... it was them... ples fix

What to do once you start?

So I used npm and I installed and did everything and then when I did npm start and the proxy started (oh i use mac btw, thats why i didnt just use the exe), i quit and relaunched solar tweaks and tried using /ss in chat but it didnt work... and yes i did start the proxy and everything. Can anyone explain how to fix this?

npm run build Error

Full PowerShell Log

PS C:\Users\Minoa> git clone https://github.com/Solar-Tweaks/SolarStats
Cloning into 'SolarStats'...
remote: Enumerating objects: 762, done.
remote: Counting objects: 100% (184/184), done.
remote: Compressing objects: 100% (67/67), done.
remote: Total 762 (delta 151), reused 119 (delta 117), pack-reused 578
Receiving objects: 100% (762/762), 294.99 KiB | 2.06 MiB/s, done.
Resolving deltas: 100% (483/483), done.
PS C:\Users\Minoa> cd SolarStats
PS C:\Users\Minoa\SolarStats> npm install
npm WARN config global `--global`, `--local` are deprecated. Use `--location=global` instead.
npm WARN EBADENGINE Unsupported engine {
npm WARN EBADENGINE   package: '@minecraft-js/[email protected]',
npm WARN EBADENGINE   required: { node: '>=18.x' },
npm WARN EBADENGINE   current: { node: 'v16.16.0', npm: '8.11.0' }
npm WARN EBADENGINE }

added 382 packages, and audited 383 packages in 9s

65 packages are looking for funding
  run `npm fund` for details

found 0 vulnerabilities
PS C:\Users\Minoa\SolarStats> npm run build
npm WARN config global `--global`, `--local` are deprecated. Use `--location=global` instead.

> [email protected] build
> npm run clean && node ./scripts/build.js

npm WARN config global `--global`, `--local` are deprecated. Use `--location=global` instead.

> [email protected] clean
> node ./scripts/clean.js

info: cleaning build folder... ๐Ÿ—๏ธ
C:\Users\Minoa\SolarStats\scripts\clean.js:5
  if (!error.message.includes('ENOENT')) throw error;
                                         ^

TypeError: fs.rmSync is not a function
    at Object.<anonymous> (C:\Users\Minoa\SolarStats\scripts\clean.js:10:6)
    at Module._compile (module.js:577:32)
    at Object.Module._extensions..js (module.js:586:10)
    at Module.load (module.js:494:32)
    at tryModuleLoad (module.js:453:12)
    at Function.Module._load (module.js:445:3)
    at Module.runMain (module.js:611:10)
    at run (bootstrap_node.js:387:7)
    at startup (bootstrap_node.js:153:9)
    at bootstrap_node.js:500:3
PS C:\Users\Minoa\SolarStats>

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.