Artemia76 / CGServer

ChatGlobal server for Activeworlds Universe
GNU Lesser General Public License v2.1
0 stars 0 forks source link

Bot seemingly doesn't join world #2

Closed Elnor147 closed 1 month ago

Elnor147 commented 1 month ago

Hi again @Artemia76, I thank you again for your help so far.

I got my bot to connect to both the universe and IRC servers, though it seems like the bot doesn't join worlds or channels, is there some config missing?

In the universe it accepts the connection and shows the login, for the privilege password I figured I need to put the "$" before to get it to send the password.

My config and some logging as follows replacing some with 'x':

root@asgard:/# cat cgserver.ini

[General]
NbBot=1
Log=1
[LogGen]
FileName=/LogGen.log
MaxLine=10000
[Bot00]
Univers=universe.x
Monde=Welcome
Citoyen=1
PassPriv=x
Nom=Bot
Port=6670
AutoConnect=1
Delai=15
Essais=3
Visible=0
EnaCoulPerso=0
EnaStyle=0
ChatBride=0
ChatDistance=48
ExtDistance=86
ExtCoordX=61
ExtCoordZ=48
CGON=1
TxtMessAc=
EnaAnnArr=0
TxtAnnArr=
EnaAnnDep=0
TxtAnnDep=
EnaAnnKli=0
TxtAnnKli=
EnaAnnKlo=0
TxtAnnKlo=
ExtBride=0
EnaMessAc=1
[Bot00/ClrMessAc]
R=0
V=0
B=0
[Bot00/ClrAnnArr]
R=0
V=0
B=0
[Bot00/ClrAnnDep]
R=0
V=0
B=0
[Bot00/ClrAnnKli]
R=0
V=0
B=0
[Bot00/ClrAnnKlo]
R=0
V=0
B=0
[IRCGateway]
IRCHost=irc.x
IRCPassWord=
IRCPort=6667
IRCLogin=ChatGlobal
IRCChannel=#lobby
IRCAutoConnect=1
IRCDelai=15
IRCEssais=3
IRCCGEna=0
cgserver Started
Instance Initialized.
IRC Gateway : Connecting to IRC server...
Connected on the remote host
IRC Gateway Send Message : HELLO

IRC Gateway Send Message : NICK ChatGlobal

IRC Gateway Send Message : USER ChatGlobal 8 * :ChatGlobal IRC Client

IRC Gateway Receive Message: :irc.x 421 * HELLO :Unknown command
IRC Gateway Receive Message: :irc.x NOTICE * :*** Looking up your hostname...
IRC Gateway Receive Message: :irc.x NOTICE * :*** Couldn't look up your hostname
IRC Gateway Receive Message: :irc.x 001 ChatGlobal :Welcome to the x IRC Network ChatGlobal
IRC Gateway Receive Message: :irc.x 002 ChatGlobal :Your host is irc.x, running version ergo-2.7.0-9851d2e9bcbb02ae
IRC Gateway Receive Message: :irc.x 003 ChatGlobal :This server was created Fri, 16 Aug 2024 17:16:05 UTC
IRC Gateway Receive Message: :irc.x 004 ChatGlobal irc.x ergo-2.7.0-9851d2e9bcbb02ae BERTZios CEIMRUabefhiklmnoqstuv Iabefhkloqv
IRC Gateway Receive Message: :irc.x 005 ChatGlobal AWAYLEN=390 BOT=B CASEMAPPING=ascii CHANLIMIT=#:100 CHANMODES=Ibe,k,fl,CEMRUimnstu CHANNELLEN=64 CHANTYPES=# ELIST=U EXCEPTS EXTBAN=,m FORWARD=f INVEX KICKLEN=390 :are supported by this server
IRC Gateway Receive Message: :irc.x 005 ChatGlobal MAXLIST=beI:60 MAXTARGETS=4 MODES MONITOR=100 NETWORK=Gardner NICKLEN=32 PREFIX=(qaohv)~&@(null)TATUSMSG=~&@%+TARGMAX=NAMES:1,LIST:1,KICK:1,WHOIS:1,USERHOST:10,PRIVMSG:4,TAGMSG:4,NOTICE:4,MONITOR:100 TOPICLEN=390 UTF8MAPPING=rfc8265 UTF8ONLY WHOX :are supported by this server
Diffusion Subscriber num: 2
Diffusion Post : 60 MAXTARGETS=4 MODES MONITOR=100 NETWORK=x NICKLEN=32 PREFIX=(qaohv)~&@(null)TATUSMSG=~&@%+TARGMAX=NAMES:1,LIST:1,KICK:1,WHOIS:1,USERHOST:10,PRIVMSG:4,TAGMSG:4,NOTICE:4,MONITOR:100 TOPICLEN=390 UTF8MAPPING=rfc8265 UTF8ONLY WHOX :are supported by this server
Diffusion Post : 60 MAXTARGETS=4 MODES MONITOR=100 NETWORK=x NICKLEN=32 PREFIX=(qaohv)~&@(null)TATUSMSG=~&@%+TARGMAX=NAMES:1,LIST:1,KICK:1,WHOIS:1,USERHOST:10,PRIVMSG:4,TAGMSG:4,NOTICE:4,MONITOR:100 TOPICLEN=390 UTF8MAPPING=rfc8265 UTF8ONLY WHOX :are supported by this server
IRC Gateway : Receive Global message : 60 MAXTARGETS=4 MODES MONITOR=100 NETWORK=x NICKLEN=32 PREFIX=(qaohv)~&@(null)TATUSMSG=~&@%+TARGMAX=NAMES:1,LIST:1,KICK:1,WHOIS:1,USERHOST:10,PRIVMSG:4,TAGMSG:4,NOTICE:4,MONITOR:100 TOPICLEN=390 UTF8MAPPING=rfc8265 UTF8ONLY WHOX :are supported by this server
IRC Gateway Receive Message: :irc.x 005 ChatGlobal
IRC Gateway Receive Message: draft/CHATHISTORY=100 :are supported by this server
IRC Gateway Receive Message: :irc.x 251 ChatGlobal :There are 0 users and 2 invisible on 1 server(s)
IRC Gateway Receive Message: :irc.x 252 ChatGlobal 1 :IRC Operators online
IRC Gateway Receive Message: :irc.x 253 ChatGlobal 0 :unregistered connections
IRC Gateway Receive Message: :irc.x 254 ChatGlobal 1 :channels formed
IRC Gateway Receive Message: :irc.x 255 ChatGlobal :I have 2 clients and 0 servers
IRC Gateway Receive Message: :irc.x 265 ChatGlobal 2 3 :Current local users 2, max 3
IRC Gateway Receive Message: :irc.x 266 ChatGlobal 2 3 :Current global users 2, max 3
IRC Gateway Receive Message: :irc.x 422 ChatGlobal :MOTD File is missing
IRC Gateway Receive Message: :irc.x 221 ChatGlobal +i
^CExiting cgserver... Bye Bye!
Disconnected from Universe
Artemia76 commented 1 month ago

yes password start by a $ is understanding has a clear password by the bot and will be replaced by an encrypted one For example , if your password is "mypasword" , before launch the daemon, put $mypassword in the config file.

Looking you log file, something seem blocking on irc . Try to launch it without IRC to see if world connection work

Elnor147 commented 1 month ago

yes password start by a $ is understanding has a clear password by the bot and will be replaced by an encrypted one For example , if your password is "mypasword" , before launch the daemon, put $mypassword in the config file.

Looking you log file, something seem blocking on irc . Try to launch it without IRC to see if world connection work

Interesting, tried that and now I am getting a disconnect from the universe, it gives a LOGIN event with the appropriate brackets around the bot name, showing it accepted the connection though immediately thereafter it shows DISCONNECTED. I am able to get an Xelagot to login to the universe and a world alright.

The logging of the cgserver:

Instance initialized. Unable to join the universe, Reason: Connection Lost

It does the 15 second retry and fails again.

Artemia76 commented 1 month ago

Ok , and the uniserver log ? can you read any reason ?

Elnor147 commented 1 month ago

Ok , and the uniserver log ? can you read any reason ?

It's very strange:

09/06/2024 20:04:46.216 x.x.x.x:52733   CONNECTION accepted [0]
09/06/2024 20:04:46.486 x.x.x.x:52733   B2     9199  LOGIN '[ChatGlobal]' 'xxxxxx' 2 3 93  "Chat Global" 0xebbf74eb [0]
09/06/2024 20:04:46.621 x.x.x.x:52733   B2     9199  DISCONNECTED - '[ChatGlobal]'

I am unsure of what could be causing it to drop off like that. I have even tried to start the bot from outside the network where the universe and world servers are run, clients and bots can connect fine from outside.

Is there any further extensive debugging in a uniserver to be seen? under [debug] I already have all=1.

Thx again, I might make a Discord account later so we can chat. :)

Elnor147 commented 1 month ago

Ok , and the uniserver log ? can you read any reason ?

It's very strange:

09/06/2024 20:04:46.216 x.x.x.x:52733   CONNECTION accepted [0]
09/06/2024 20:04:46.486 x.x.x.x:52733   B2     9199  LOGIN '[ChatGlobal]' 'xxxxxx' 2 3 93  "Chat Global" 0xebbf74eb [0]
09/06/2024 20:04:46.621 x.x.x.x:52733   B2     9199  DISCONNECTED - '[ChatGlobal]'

I am unsure of what could be causing it to drop off like that. I have even tried to start the bot from outside the network where the universe and world servers are run, clients and bots can connect fine from outside.

Is there any further extensive debugging in a uniserver to be seen? under [debug] I already have all=1.

Thx again, I might make a Discord account later so we can chat. :)

It would seem that it was having an issue with the universe server I was running official 5.1 with an old license, I am using @coremaze's 'awtools' universe server and it seems to be working now!

It's giving some wxWidgets errors connecting to my IRCd I will deploy a different one as it worked on a public network.

Thanks @Artemia76

Artemia76 commented 1 month ago

OK I need a test contexte to understand what go wrong. Can you join me on Discord? I have Also the aw tools rust universe. I if possible I prefer have an account on you universe and a test world. Let me know.

Le sam. 7 sept. 2024, 07:22, Elnor147 @.***> a écrit :

Ok , and the uniserver log ? can you read any reason ?

It's very strange:

09/06/2024 20:04:46.216 x.x.x.x:52733 CONNECTION accepted [0] 09/06/2024 20:04:46.486 x.x.x.x:52733 B2 9199 LOGIN '[ChatGlobal]' 'xxxxxx' 2 3 93 "Chat Global" 0xebbf74eb [0] 09/06/2024 20:04:46.621 x.x.x.x:52733 B2 9199 DISCONNECTED - '[ChatGlobal]'

I am unsure of what could be causing it to drop off like that. I have even tried to start the bot from outside the network where the universe and world servers are run, clients and bots can connect fine from outside.

Is there any further extensive debugging in a uniserver to be seen? under [debug] I already have all=1.

Thx again, I might make a Discord account later so we can chat. :)

It would seem that it was having an issue with the universe server I was running official 5.1 with an old license, I am using @coremaze https://github.com/coremaze's 'awtools' universe server and it seems to be working now!

It's giving some wxWidgets errors connecting to my IRCd I will deploy a different one as it worked on a public network.

Thanks @Artemia76 https://github.com/Artemia76

— Reply to this email directly, view it on GitHub https://github.com/Artemia76/CGServer/issues/2#issuecomment-2335048830, or unsubscribe https://github.com/notifications/unsubscribe-auth/ALIGAZMNAZJND4NV4XWH633ZVKEQNAVCNFSM6AAAAABNX52QA6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGMZVGA2DQOBTGA . You are receiving this because you were mentioned.Message ID: @.***>

Elnor147 commented 1 month ago

OK I need a test contexte to understand what go wrong. Can you join me on Discord? I have Also the aw tools rust universe. I if possible I prefer have an account on you universe and a test world. Let me know. Le sam. 7 sept. 2024, 07:22, Elnor147 @.> a écrit : Ok , and the uniserver log ? can you read any reason ? It's very strange: 09/06/2024 20:04:46.216 x.x.x.x:52733 CONNECTION accepted [0] 09/06/2024 20:04:46.486 x.x.x.x:52733 B2 9199 LOGIN '[ChatGlobal]' 'xxxxxx' 2 3 93 "Chat Global" 0xebbf74eb [0] 09/06/2024 20:04:46.621 x.x.x.x:52733 B2 9199 DISCONNECTED - '[ChatGlobal]' I am unsure of what could be causing it to drop off like that. I have even tried to start the bot from outside the network where the universe and world servers are run, clients and bots can connect fine from outside. Is there any further extensive debugging in a uniserver to be seen? under [debug] I already have all=1. Thx again, I might make a Discord account later so we can chat. :) It would seem that it was having an issue with the universe server I was running official 5.1 with an old license, I am using @coremaze https://github.com/coremaze's 'awtools' universe server and it seems to be working now! It's giving some wxWidgets errors connecting to my IRCd I will deploy a different one as it worked on a public network. Thanks @Artemia76 https://github.com/Artemia76 — Reply to this email directly, view it on GitHub <#2 (comment)>, or unsubscribe https://github.com/notifications/unsubscribe-auth/ALIGAZMNAZJND4NV4XWH633ZVKEQNAVCNFSM6AAAAABNX52QA6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGMZVGA2DQOBTGA . You are receiving this because you were mentioned.Message ID: @.>

Hi @Artemia76 I will contact you soon to help!