Issue about pokes from Bot

Started by Miscni, April 08, 2012, 10:51:50 AM

Previous topic - Next topic

Miscni

Greeting Stefan

I have installed the botsystem on my Ubuntu Server, were I already have Teamspeak server installed as well.

And I have been using your system for a while now, and I love using it, but I noticed something, that I dont know, how to fix it. :'(

My bot system send messages out every 30 min, on the main chat channel. And since I am danish, we use ÆØÅ in our words, and that works like a charm. 8)

But when we get a poke, from the bot, those pokes are shown like this here : været forsætter , it schould really look like this here : været forsætter. so words that have ÆØÅ in them, are being shown incorrect.  :'(

My spec on server
OS : Ubuntu Server 10.04 32-Bit
Memory : 4GB
Java : java version "1.6.0_20"
OpenJDK Runtime Environment (IcedTea6 1.9.13) (6b20-1.9.13-0ubuntu1~10.04.1)
OpenJDK Client VM (build 19.0-b09, mixed mode, sharing)

Log file from JTS3ServerMod_server1.log
2012-04-08 10:39:48 START_MOD Virtual bot instance "clan" starts now
2012-04-08 10:39:48 START_INFO Successful connected to localhost!
2012-04-08 10:39:48 START_INFO Login as "******************" successful!
2012-04-08 10:39:48 START_INFO Successful selected virtual server 1!
2012-04-08 10:39:49 ADVERTISING_MODE Advertising will be send to virtual server every 30 minutes (12 messages found)
2012-04-08 10:39:49 IDLE_MODE Clients will be moved into Channel "AFK - Away From Keyboard" (2) after being idle for 30 minutes
2012-04-08 10:39:49 IDLE_WARN_MODE Clients get a warning message after being idle for 15 minutes
2012-04-08 10:39:49 AWAY_MODE Clients with away status will be moved to Channel "AFK - Away From Keyboard" (2) after 2 seconds and moved back if not away anymore!
2012-04-08 10:39:49 MUTE_MODE Clients with headphone or microphone muted will be moved to Channel "AFK - Away From Keyboard" (2) after 0 seconds and moved back if not muted anymore!
2012-04-08 10:39:49 AUTOMOVE_MODE Auto Move is enabled, default channels for 5 server groups set
2012-04-08 10:39:49 CACHE_INFO Creating client database cache...
2012-04-08 10:39:49 START_SUCCESSFUL Bot started and connected successful, write !botinfo in server chat to get an answer!
2012-04-08 10:40:22 CACHE_INFO Client database cache created, 386 clients in cache.


Log file from JTS3ServerMod_InstanceManager.log
2012-04-08 10:39:48 START_MANAGER JTS3ServerMod 3.6.3 Final (13.02.2012) Instance Manager started...
2012-04-08 10:39:48 START_INSTANCE Start bot instance clan...


I hope this here can help abit.

JTS3ServerMod_server1.cfg
bot_messages_encoding = ISO-8859-1

Cheers & Hugz

Miscni

Stefan1200

Is the poke message with the wrong encoding the idle warning message? If yes, does it look right, if you change the message type to chat?

Miscni

Hi Stefan

I still get the same error from chat

<13:59:22> "Botty": Du har været stille I 15 min, hvis det forsætter, bliver du flyttet til AFK. Forsat god dag.
<14:14:22> "Botty": Du har været stille I 30 min, og er bleven flyttet til "AFK - Away From Keyboard"! Forsat god dag.


Stefan1200

Quote from: Miscni on April 08, 2012, 05:01:43 PM
I still get the same error from chat

Ok, in this case the encoding of the idlemessages.cfg file is wrong. Just fix that encoding and it should work fine.

Miscni

I'm trying to do, as you explained. but this here is how the code is.

# JTS3ServerMod Config File

# Idle message, the client get this message as kick reason (mode 1) or chat message (mode 2).
# You can use the following keywords, which will be replaced:
# %IDLE_MAX_TIME% - Replaced with max idle time
# %IDLE_CHANNEL_NAME% - If mode 2 selected, this will be replaced with the channel name of the idle_move_channel_id
# Typical BBCode like in Teamspeak 3 Client possible. You can use \n for a new line.
Du har været stille I 30 min, og er bleven flyttet til "%IDLE_CHANNEL_NAME%"! Forsat god dag.

# If mode 2 selected, set the kick reason for being idle longer than idle_second_max_time.
# You can use the following keywords, which will be replaced:
# %IDLE_MAX_TIME% - Replaced with max idle time
# %IDLE_SECOND_MAX_TIME% - This will be replaced with the second idle max time
# Typical BBCode like in Teamspeak 3 Client possible. You can use \n for a new line.
You got kicked because being idle for longer than %IDLE_SECOND_MAX_TIME% minutes.

# Idle warning message, the client get this message as chat message.
# You can use the following keywords, which will be replaced:
# %IDLE_WARN_TIME% - Replaced with idle warn time
# %IDLE_MAX_TIME% - Replaced with max idle time
# %IDLE_CHANNEL_NAME% - If mode 2 selected, this will be replaced with the channel name of the idle_move_channel_id
Du har været stille I 15 min, hvis det forsætter, bliver du flyttet til AFK. Forsat god dag.


and I still get the same result when Bot sends a poke or chat  :'(

Stefan1200

Well, it might look good in your text editor, but the file encoding must be the same as you set in your bot config file (bot_messages_encoding). Or the bot will read the characters different from your text editor.

Miscni

So the first thread I wrote, with the message encodeing, is not the same place then???

Quote from: Miscni on April 08, 2012, 10:51:50 AM
JTS3ServerMod_server1.cfg
bot_messages_encoding = ISO-8859-1

Stefan1200

Quote from: Miscni on April 08, 2012, 10:11:27 PM
So the first thread I wrote, with the message encodeing, is not the same place then???

Of course, but the idle messages config file seems not stored with the ISO-8859-1 encoding, thats why non ASCII characters looks wrong on the TS3 server.

Miscni

Finally figurede it out.

You are a lifesaver, Thx so much,  ;D

Cheers & Hugz