Newcomer1989 / TSN-Ranksystem

A PHP Bot that assigns time based server groups on TeamSpeak3.
https://ts-ranksystem.com
GNU General Public License v3.0
144 stars 60 forks source link

Critical TS3 error on core function! Shutting down! #876

Closed hosseinmobasherian closed 1 year ago

hosseinmobasherian commented 2 years ago

2022-07-08 14:00:55.901405 CRITICAL Critical TS3 error on core function! Shutting down! 2022-07-08 14:00:55.900867 WARNING TS3 Error: 513: nickname is already in use (This nickname is already in use) 2022-07-08 14:00:55.873539 NONE Select virtual server... 2022-07-08 14:00:55.873321 INFO TS3 Server version: 1.4.22 on Linux [Build: 1607862532 from 2020-12-13 15:58:52] 2022-07-08 14:00:55.866594 NONE Connection to TS3 Server established. 2022-07-08 14:00:54.501826 NONE Connect to TS3 Server (Address: '45...217' Voice-Port: '62' Query-Port: '62' SSH: '0' Query-Slowmode: '0.0'). 2022-07-08 14:00:49.500129 NOTICE Try to reconnect in 5 seconds. 2022-07-08 14:00:49.499934 ERROR Error : [1538]: invalid parameter

Please Help Me!

Shad86 commented 2 years ago

Probably this is the issue.

2022-07-08 14:00:55.873321 INFO TS3 Server version: 1.4.22 on Linux [Build: 1607862532 from 2020-12-13 15:58:52]

Newest Teamspeak 3 Server Version is: 3.13.6

Newcomer1989 commented 2 years ago

Looks like TeaSpeak.

We have a different handle to change the nickname between Version 3.4.0 and higher or a version below that. For TeaSpeak it should be taken the old method, cause version is below 3.4.0.

We will change this matter with the next release version.

You can try to do the following edit on the jobs/bot.php, line 148

current code: if(version_compare($ts3version['version'],'3.4.0','>=')) {

replace the line with: if(version_compare($ts3version['version'],'3.4.0','>=') || version_compare($ts3version['version'],'3.0.0','<=')) {

A little feedback, if this helps, would be nice 👍

Newcomer1989 commented 1 year ago

should be solved with version 1.3.21