tarnadas / net64plus-server Goto Github PK
View Code? Open in Web Editor NEWLicense: MIT License
License: MIT License
I actually already have the fix for this, I'm just too lazy to use git so I figured I'd leave a comment.
One of the dependencies, clusterws (cws) deprecated versions 1 and 2 of their package and they no longer work with node versions above 14 (the latest lts is 14 something and the latest is on 16 now). Net64's server uses version 1. To fix this edit package.json and go down to dependencies.
Where you see "@clusterws/cws": "^1"
Change this to
"@clusterws/cws": "3.0.0"
Then run yarn install and it will update it. I've tested it and version 3.0.0 works with the the latest lts (14) and will allow you to keep your node up to date without having to downgrade to 13 or lower.
If the admin sees this you could test it and update package.json's cws to 3.0.0. Again, I'm too lazy to make use git.
I have just created a startup script for net64+ that starts it at boot time and restarts it should it die. You can get it at https://github.com/fstltna/net64PlusStartup - I would be happy to support a website for you if you like...
I can't disable gamemode voting in 2.2.0, even with this in settings.json :
"enableGamemodeVote": false,
What i see is this:
download and install Node
git clone this repository or download as zip
modify settings.json
But what i do with this node program + the downloaded server thing?
version 2.3.0 is broken
When I port forward, it works when I join to host. When other people attempt to join however, they have something that says "connection timeout". This is shown for everyone that attempts to join my server. It seems that some other people have this issue too. Best of luck fixing this!
On linux debian 9.7 i got problems to start the server.
Tested with npm 8 and npm 11, also with version 2.2.2
[at-loader] Checking finished with 8 errors
Hash: a205a4ed1b8b7a427140
Version: webpack 3.12.0
Child
Hash: a205a4ed1b8b7a427140
Time: 18648ms
Asset Size Chunks Chunk Names
index.js 1.11 MB 0 [emitted] [big] main
[0] ./src/globals.ts 285 bytes {0} [built]
[1] ./src/proto/ServerClientMessage.js 220 kB {0} [built]
[5] ./src/models/Connection.model.ts 354 bytes {0} [built]
[6] ./src/models/Settings.model.ts 475 bytes {0} [built]
[7] ./src/index.ts 2.4 kB {0} [built]
[8] ./src/WebSocketServer.ts 14.6 kB {0} [built]
[9] ./src/Client.ts 19.1 kB {0} [built]
[10] ./src/Identity.ts 7.25 kB {0} [built]
[11] ./src/Player.ts 1.19 kB {0} [built]
[13] ./src/proto/ClientServerMessage.js 127 kB {0} [built]
[16] ./src/MetaData.ts 1.17 kB {0} [built]
[18] ./src/Command.ts 10.2 kB {0} [built]
[19] ./src/Vote.ts 2.45 kB {0} [built]
[21] ./src/WebHook.ts 2.5 kB {0} [built]
[22] ./src/Arguments.ts 2.67 kB {0} [built]
+ 11 hidden modules
ERROR in [at-loader] ./node_modules/jest-mock-axios/dist/lib/mock-axios-type s.d.ts:27:10
TS2707: Generic type 'Mock<T>' requires between 0 and 1 type arguments.
ERROR in [at-loader] ./node_modules/jest-mock-axios/dist/lib/mock-axios-type s.d.ts:28:11
TS2707: Generic type 'Mock<T>' requires between 0 and 1 type arguments.
ERROR in [at-loader] ./node_modules/jest-mock-axios/dist/lib/mock-axios-type s.d.ts:29:10
TS2707: Generic type 'Mock<T>' requires between 0 and 1 type arguments.
ERROR in [at-loader] ./node_modules/jest-mock-axios/dist/lib/mock-axios-type s.d.ts:30:12
TS2707: Generic type 'Mock<T>' requires between 0 and 1 type arguments.
ERROR in [at-loader] ./node_modules/jest-mock-axios/dist/lib/mock-axios-type s.d.ts:31:13
TS2707: Generic type 'Mock<T>' requires between 0 and 1 type arguments.
ERROR in [at-loader] ./node_modules/jest-mock-axios/dist/lib/mock-axios-type s.d.ts:32:11
TS2707: Generic type 'Mock<T>' requires between 0 and 1 type arguments.
ERROR in [at-loader] ./node_modules/jest-mock-axios/dist/lib/mock-axios-type s.d.ts:33:14
TS2707: Generic type 'Mock<T>' requires between 0 and 1 type arguments.
ERROR in [at-loader] ./node_modules/jest-mock-axios/dist/lib/mock-axios-type s.d.ts:35:13
TS2707: Generic type 'Mock<T>' requires between 0 and 1 type arguments.
npm ERR! code ELIFECYCLE
npm ERR! errno 2
npm ERR! [email protected] build:dev: webpack --env=dev
npm ERR! Exit status 2
npm ERR!
I set up 3 Net64 servers on the same computer. 2 of these is 2.1.0 server. One of them is password-protected, and it works fine, but the other one is a public server, and I tried to join with Mario, and the server client gave me this.
Error: Player object could not be created, because characterId is null
at Client.createPlayerObject (D:\NET64\net64plus-server-master\net64plus-server-master\dist\index.js:6851:40)
at Client.onHandshake (D:\NET64\net64plus-server-master\net64plus-server-master\dist\index.js:6842:18)
at Client.onMessage (D:\NET64\net64plus-server-master\net64plus-server-master\dist\index.js:6758:26)
at onServerMessage (D:\NET64\net64plus-server-master\net64plus-server-master\node_modules\uws\uws.js:21:15)
But when I tried to join as Luigi, it worked fine.
I'm trying to host my own server with auto restarts as you showed, but when I do $ npm run build I always get this:
npm ERR! missing script: build
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\Jack\AppData\Roaming\npm-cache_logs\2018-05-16T21_35_28_387Z-debug.log
I've been trying to connect to my server and it keeps crashing Net64 as well as the emulator. This only happens when I specifically connect to my server. I've forwarded all the port I need to (TCP 3678).
-- Server --
OS: Debian 9
CPU: N/A
RAM: 1GB
IP: net64.xnium.ca
Suppose i know Javascript (I do) and wanted to modify the server's code (eg. to add custom commands and such), is there a de-obfuscated version of the server executable or another way i may add this sort of functionality? Since the server controls the chat, it should be possible to implement all sorts of server-side plugins, much like what was done with many minecraft servers.
Just asking, but how do I setup a Net64+ server webhook?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.