Channel notify exception error.

Started by Sporranlegion, October 15, 2018, 10:51:58 PM

Previous topic - Next topic

Sporranlegion

I have started useing JTS3 servermod on our teamspeak server. The server is running on my network with servermod running on the same machine.
I keep getting an exception error on the channel notify function. Where have I gone wrong ???

Server cfg file...............................................................
#BOT WATCHING FOR NEW GUEST
   # Channel id that should be watched for new clients. You can only set one channel id here!
Channelnotify_channel_id = 1

   # A comma separated list (without spaces) of server group ids.
   # Depends on the given mode, this server groups can be ignored or only this server groups will be watched!
   # If no server groups should be ignored, set no server groups here and select the group list mode ignore!
Channelnotify_group_list = 8

   # Select one of the two modes for the server group list.
   # ignore = The selected server groups will be ignored.
   # only = Send a notify message only if the selected server groups join the channel.
Channelnotify_group_list_mode = only

   # A comma separated list (without spaces) of server group ids, which should be notified about new clients in the specified channel.
Channelnotify_grouptargets = 6,23

   # A comma separated list (without spaces) of channel ids.
   # Depends on the given mode, target clients in this channels can be ignored or only clients in this channels receive the notify message!
   # If no channels should be ignored, set no channels here and select the channel list mode ignore!
Channelnotify_channel_list =

   # Select one of the two modes for the channel list.
   # ignore = Clients in the selected channels will be ignored.
   # only = Only clients in the selected channels receive the notify message.
Channelnotify_channel_list_mode = ignore

   # Select the message mode, how the notified clients should get the message.
   # poke or chat are valid values!
Channelnotify_message_mode = poke

   # Select the message mode, how the clients (who joined the channel) should get the message.
   # poke, chat or none are valid values!
Channelnotify_messagenotified_mode = none

   # Path to file which contains the channel notify message
Channelnotify_file = config/server1/channelnotifymessages.cfg


Server log file...............................
2018-10-14 13:53:35   JTS3ServerMod   STATUS   Virtual bot instance "serverbot" starts now (build 6501)
2018-10-14 13:53:35   JTS3ServerMod   STATUS   Activate log level: INFO
2018-10-14 13:53:35   JTS3ServerMod   INFO   Successfully loaded function: IdleCheck / idle
2018-10-14 13:53:35   JTS3ServerMod   INFO   Successfully loaded function: IdleCheck / idle_guest
2018-10-14 13:53:35   JTS3ServerMod   INFO   Successfully loaded function: MuteMover / mute
2018-10-14 13:53:35   JTS3ServerMod   INFO   Successfully loaded function: WelcomeMessage / welcome
2018-10-14 13:53:35   JTS3ServerMod   INFO   Successfully loaded function: Advertising / advertising
2018-10-14 13:53:35   JTS3ServerMod   INFO   Successfully loaded function: ChannelNotify / channelnotify
2018-10-14 13:53:35   Function idle   INFO   All idle time limits are disabled, Idle Check function will be disabled now!
2018-10-14 13:53:35   Function idle_guest   INFO   All idle time limits are disabled, Idle Check function will be disabled now!
2018-10-14 13:53:35   Function mute   ERROR   Exception in loadConfig(), disable() or activate()!
2018-10-14 13:53:35   Function mute   EXCEPTION   de.stefan1200.jts3servermod.BotConfigurationException: Headphone and Microphone detection in config disabled!
2018-10-14 13:53:35   Function channelnotify   ERROR   Exception in loadConfig(), disable() or activate()!
2018-10-14 13:53:35   Function channelnotify   EXCEPTION   java.lang.NumberFormatException: Config value of "channelnotify_channel_id" is not a number! Current value: not set
2018-10-14 13:53:36   JTS3ServerMod   INFO   Successful connected to 127.0.0.1!
2018-10-14 13:53:36   JTS3ServerMod   INFO   Login as "Server_BOT" successful!
2018-10-14 13:53:36   JTS3ServerMod   INFO   Successful selected virtual server on port 9987!
2018-10-14 13:53:36   JTS3ServerMod   WARNING   Unable to receive permission list! If possible, please set the permission "b_serverinstance_permission_list" to the bot query account "Server_BOT" or the "Guest Server Query" group.
2018-10-14 13:53:36   JTS3ServerMod   INFO   Server connection log is activated and will be written into the file: C:\TeamSpeak Server\JTS3ServerMod_6.5.0\JTS3ServerMod\JTS3ServerMod_server1_login.csv
2018-10-14 13:53:36   Function welcome   INFO   All new connecting clients get the welcome message from file config/server1/welcomemessages.cfg
2018-10-14 13:53:36   Function advertising   INFO   Advertising will be send to virtual server every 5 minutes (1 messages found)
2018-10-14 13:53:36   JTS3ServerMod   INFO   Bot started and connected successful, write !botinfo in server chat to get an answer!
2018-10-14 13:53:36   JTS3ServerMod   INFO   Creating client database cache...
2018-10-14 13:53:41   JTS3ServerMod   INFO   Client database cache created, 25 clients in cache.
2018-10-14 13:54:22   JTS3ServerMod   INFO   Got command from Sporranlegion: !botconfirmerrors
2018-10-14 14:03:30   JTS3ServerMod   INFO   Got command from Sporranlegion: !botcfgreload
2018-10-14 14:03:30   Function idle   INFO   All idle time limits are disabled, Idle Check function will be disabled now!
2018-10-14 14:03:30   Function idle_guest   INFO   All idle time limits are disabled, Idle Check function will be disabled now!
2018-10-14 14:03:30   Function mute   ERROR   Exception in loadConfig(), disable() or activate()!
2018-10-14 14:03:30   Function mute   EXCEPTION   de.stefan1200.jts3servermod.BotConfigurationException: Headphone and Microphone detection in config disabled!
2018-10-14 14:03:30   Function channelnotify   ERROR   Exception in loadConfig(), disable() or activate()!
2018-10-14 14:03:30   Function channelnotify   EXCEPTION   java.lang.NumberFormatException: Config value of "channelnotify_channel_id" is not a number! Current value: not set

Any help would be appreciated
Thanks.

Stefan1200

The error message says:
Config value of "channelnotify_channel_id" is not a number! Current value: not set

You posted only the value "Channelnotify_channel_id", if there is really no value for "channelnotify_channel_id", you have to fix this.

Sporranlegion

I have set the value of Channelnotify_channel_id as 1 in the config file havent I ?

# Channel id that should be watched for new clients. You can only set one channel id here!
Channelnotify_channel_id = 1

or is the error pointing to a different command.

Stefan1200

channelnotify_channel_id is not Channelnotify_channel_id

Sporranlegion

Now I'm confused .........
Am I looking for a case sensitive error then, have I set something with lower case instead of upper case.
I will check the cfg file again

Sporranlegion

Should

# Channel id that should be watched for new clients. You can only set one channel id here!
Channelnotify_channel_id = -1

be

# Channel id that should be watched for new clients. You can only set one channel id here!
channelnotify_channel_id = -1

Stefan1200

Well, you have to keep the case from the bot_functions line, because that is the right one. And regarding the log file, you used lower case, right.

Sporranlegion

Thanks Stefan, I should have realized the mistake sooner but the more you look for a solution to a problem you forget to look for the simple solution  8)