-
-
Notifications
You must be signed in to change notification settings - Fork 115
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
EOS integration #318
EOS integration #318
Conversation
Every log-parser still emit events with the |
…on->execute() method
Here is a patch that addresses some of the issues in this PR: --- a/core/rcon.js
+++ b/core/rcon.js
@@ -186,7 +186,7 @@ export default class Rcon extends EventEmitter {
return this.soh;
}
const bufSize = this.stream.readInt32LE(0);
- if (bufSize > 4154 || bufSize < 10) return this.badPacket();
+ if (bufSize < 10) return this.badPacket();
else if (bufSize <= this.stream.byteLength - 4 && this.stream.byteLength >= 12) {
const bufId = this.stream.readInt32LE(4);
const bufType = this.stream.readInt32LE(8);
@@ -228,7 +228,7 @@ export default class Rcon extends EventEmitter {
this.emit(`response${this.responseString.id - 2}`, this.responseString.body);
this.responseString.body = '';
} else if (!packet.body.includes('^A')) {
- this.responseString.body = this.responseString.body += packet.body;
+ this.responseString.body = this.responseString.body + packet.body;
this.responseString.id = packet.id;
} else this.badPacket();
}
@@ -241,7 +241,7 @@ export default class Rcon extends EventEmitter {
}`
);
this.stream = Buffer.alloc(0);
- this.responseString = '';
+ this.responseString.body = '';
return null;
}
onClose() { There were 2 typos and a hard limit on a max packet size. I did some test rcon dumps and the biggest packet I got was 13670 bytes long. Since squad has no respect towards the standard, I'd suggest removing the upper limit entirely. |
@Ulibos |
Conflict fixed |
On the current (2 days ago) PR, seeing a new error in the console:
No crashing or functionality impaired that I've yet noticed. If there is any information I can add or provide, let me know. |
@romanvoloboev make sure you don't have multiple tools connecting to rcon from the same IP (including loopback), because it would cause both the tools to alternate the connection |
yep, I have rcon web admin panel.. |
but it's strange, because my setup didn't change and everything was working before.. |
When was "before"? Were you using the version of rcon.js with passthrough support? |
Maybe few days ago it was working.. |
@romanvoloboev try to stop the other tool and check if the error persists |
I can't stop "other tool", because there is no other tool except LinuxGSM which starts server.
So I rebooted dedicated server, started game server via LinuxGSM, started SquadJS, connected to server and got this: Start params (screenshot from LinuxGSM tool) Another thing that I should mention that I'm building and runing squadJs via docker-compose So I don't know what to do.. please try to reproduce by yourself by installing server via LinuxGSM and connect to it SQJS from the same host with 1 static IP. |
@romanvoloboev try to stop the other tool (rcon web admin panel) connecting to the RCON to avoid conflict. |
@fantinodavide my issue has been fixed by accepting in firewall input udp traffic to 21114 port |
very good! |
@werewolfboy13 I think it's ready to be merged |
First EOS implementation. Still requires extensive testing.