irc bots problem
#1

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.
Reply
#2

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.
Reply
#3

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.
Reply
#4

Oh right, does the other things load in that FS ? account sys and anticheat
Reply
#5

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.
Reply
#6

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.
Reply
#7

Bump! Still need help.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)