Closed DLRG-Dominik closed 6 years ago
Vorweg würde ich dich darum bitten, Issues in Englisch zu erstellen, da viele Beteiligte an dem Projekt kein Deutsch sprechen und nur ich dir so helfen kann.
Nun zu deiner Frage: das ist sehr komisch :/ ich kenn einige die ARC in Prod. nutzen und keine Probleme haben. So kann ich mir nur eine Verbindung zu #31 erklären, dass die Verbindung vom Server getrennt wird, da die Packages nicht "bestätigt" werden.
The server's BE RCon tries to send a server message packet 5 times for 10 seconds. If the client fails to acknowledge the packet within this time, it will be removed from BE RCon's list of authenticated clients and will no longer be able to issue any commands.
Auszug aus den docs
Versuche mal die Verbindung mit einem Loop sozusagen am Leben zu erhalten, oder ganz simpel: sende die Nachrichten einfach 9 statt 10 Sekunden vorher :D
Hi @DLRG-Dominik ,
When sending a command like, say something in global, you need to acknowledge the command package that you have been sending to the server. See my ReactPHP example and in there you can make a timer of 10 seconds to restart your game server. Keep in mind that you need dependencies when using ReactPHP library.
Also you have to acknowledge the chat logs if someone is talking in your server when your process got started to restart the server. My ReactPHP script will do it for you.
Hallo,
Ich habe ein Restart-System für meinen Arma Server erstellt. Das Restart system soll eigentlich 10 Sekunden bevor der Server restartet, hingehen und mittels sayGlobal Eine Nachricht schicken und danach von 10 runter zählen.
Ich habe mir dafür ein PHP-TCP Server erstellt:
In dem Server baue ich eine RCON Verbindung auf, und wollte diese dann für alle Anfragen nutzen.
Aber er sendet wenn überhaupt nur eine Nachricht und nicht die anderen. Ein reconnect(), wie in #12 kann ich nicht ausführen, da ich nach kurzer zeit mich nicht verbinden kann.