irc bots problem -
Face9000 - 28.01.2013
Hello, im developing a minigames server and everything works except a thing, when the server restart for the next map, the irc bots remain connected in the channel but it doesnt echo NOTHING that happening ingame:
I use a filterscript for general things (accounts, irc, anticheat etc) and gamemodes for the maps.
This is OnGameModeInit from the main FS
pawn Код:
gBotID[0] = IRC_Connect(IRC_SERVER, IRC_PORT, BOT_1_NICKNAME, BOT_1_REALNAME, BOT_1_USERNAME);
IRC_SetIntData(gBotID[0], E_IRC_CONNECT_DELAY, 5);
gBotID[1] = IRC_Connect(IRC_SERVER, IRC_PORT, BOT_2_NICKNAME, BOT_2_REALNAME, BOT_2_USERNAME);
IRC_SetIntData(gBotID[1], E_IRC_CONNECT_DELAY, 5);
gBotID[2] = IRC_Connect(IRC_SERVER, IRC_PORT, BOT_3_NICKNAME, BOT_3_REALNAME, BOT_3_USERNAME);
IRC_SetIntData(gBotID[2], E_IRC_CONNECT_DELAY, 5);
gBotID[3] = IRC_Connect(IRC_SERVER, IRC_PORT, BOT_4_NICKNAME, BOT_4_REALNAME, BOT_4_USERNAME);
IRC_SetIntData(gBotID[3], E_IRC_CONNECT_DELAY, 5);
gBotID[4] = IRC_Connect(IRC_SERVER, IRC_PORT, BOT_5_NICKNAME, BOT_5_REALNAME, BOT_5_USERNAME);
IRC_SetIntData(gBotID[4], E_IRC_CONNECT_DELAY, 5);
gBotID[5] = IRC_Connect(IRC_SERVER, IRC_PORT, BOT_6_NICKNAME, BOT_6_REALNAME, BOT_6_USERNAME);
IRC_SetIntData(gBotID[5], E_IRC_CONNECT_DELAY, 5);
gGroupID = IRC_CreateGroup();
In OnGameModeExit i dont make the bots disconnect to reconnect it when server restarted, because they're too slow. So the bots stay connected, but when the server restarts for load the new map (i use changemode), it doesnt echo nothing of what is typed ingame.
Re: irc bots problem -
Djole1337 - 28.01.2013
If you are using IRC as a FS you have to load it again.
pawn Код:
SendRconCommand("reloadfs ircfs");
I'm not 100% sure but try it.
Re: irc bots problem -
Face9000 - 28.01.2013
Quote:
Originally Posted by Mr_DjolE
If you are using IRC as a FS
|
The core of the server is in a FS but inside there is also anticheat and account system, just the maps are separated (gamemodes), it's all-in one built.
Re: irc bots problem -
Djole1337 - 28.01.2013
Oh right, does the other things load in that FS ? account sys and anticheat
Re: irc bots problem -
Face9000 - 28.01.2013
Quote:
Originally Posted by Mr_DjolE
Oh right, does the other things load in that FS ? account sys and anticheat
|
Yes. It loads irc, account sys and anticheat.
Re: irc bots problem -
Face9000 - 29.01.2013
Quote:
Originally Posted by Mr_DjolE
If you are using IRC as a FS you have to load it again.
pawn Код:
SendRconCommand("reloadfs ircfs");
I'm not 100% sure but try it.
|
I tried it now, i separated the irc system in a new filterscript and reloaded at every map change, same problem.
Re: irc bots problem -
Face9000 - 30.01.2013
Bump! Still need help.