View Single Post
Error SVC_BAD the HPB bot MM in Help!!!
Old
  (#1)
leandrotsampa
Member
 
Status: Offline
Posts: 5
Join Date: Jan 2010
Depressed Error SVC_BAD the HPB bot MM in Help!!! - 05-02-2010

The game log shows the following error message, is:
Code:
Last 32 messages parsed.
2534 0008 svc_time
2534 0013 svc_clientdata
2534 0031 svc_deltapacketentities
2536 0008 SENDTARGET
2536 0012 SENDTARGET
2536 0016 Stamina
2536 0019 SENDTARGET
2536 0023 svc_time
2536 0028 svc_clientdata
2536 0042 svc_deltapacketentities
2537 0008 svc_time
2537 0013 svc_clientdata
2537 0027 svc_deltapacketentities
2539 0008 SENDTARGET
2539 0012 SENDTARGET
2539 0016 Stamina
2539 0019 svc_time
2539 0024 svc_clientdata
2539 0038 svc_deltapacketentities
2539 0060 svc_sound
2540 0008 svc_time
2540 0013 svc_clientdata
2540 0027 svc_deltapacketentities
2542 0008 SENDTARGET
2542 0012 SENDTARGET
2542 0016 Stamina
2542 0019 SENDTARGET
2542 0023 SENDTARGET
2542 0027 Stamina
2542 0030 svc_time
2542 0035 svc_clientdata
BAD:   69:svc_bad
Wrote erroneous message to buffer.dat
Host_Error: CL_EntityNum: 1536 is an invalid number, cl.max_edicts is  1035

My code is as follows:
Code:
else if (mod_id == NNK_DLL)
{
if (msg_type == GET_USER_MSG_ID (PLID, "VGUIMenu", NULL))
botMsgFunction = BotClient_NNK_VGUI;
else if (msg_type == GET_USER_MSG_ID (PLID, "ShowMenu", NULL))
botMsgFunction = BotClient_NNK_ShowMenu;
else if (msg_type == GET_USER_MSG_ID (PLID, "WeaponList", NULL))
botMsgFunction = BotClient_NNK_WeaponList;
else if (msg_type == GET_USER_MSG_ID (PLID, "CurWeapon", NULL))
botMsgFunction = BotClient_NNK_CurrentWeapon;
else if (msg_type == GET_USER_MSG_ID (PLID, "AmmoX", NULL))
botMsgFunction = BotClient_NNK_AmmoX;
else if (msg_type == GET_USER_MSG_ID (PLID, "WeapPickup", NULL))
botMsgFunction = BotClient_NNK_WeaponPickup;
else if (msg_type == GET_USER_MSG_ID (PLID, "AmmoPickup", NULL))
botMsgFunction = BotClient_NNK_AmmoPickup;
else if (msg_type == GET_USER_MSG_ID (PLID, "ItemPickup", NULL))
botMsgFunction = BotClient_NNK_ItemPickup;
else if (msg_type == GET_USER_MSG_ID (PLID, "Health", NULL))
botMsgFunction = BotClient_NNK_Health;
else if (msg_type == GET_USER_MSG_ID (PLID, "Damage", NULL))
botMsgFunction = BotClient_NNK_Damage;
else if (msg_type == GET_USER_MSG_ID (PLID, "ScreenFade", NULL))
botMsgFunction = BotClient_NNK_ScreenFade;
else if (msg_type == GET_USER_MSG_ID (PLID, "SelAmmo", NULL))
botMsgFunction = BotClient_NNK_SelAmmo;
else if (msg_type == GET_USER_MSG_ID (PLID, "Achfinal", NULL))
botMsgFunction = BotClient_NNK_Achfinal;
else if (msg_type == GET_USER_MSG_ID (PLID, "Chakra", NULL))
botMsgFunction = BotClient_NNK_Chakra;
else if (msg_type == GET_USER_MSG_ID (PLID, "Charge", NULL))
botMsgFunction = BotClient_NNK_Charge;
else if (msg_type == GET_USER_MSG_ID (PLID, "Train", NULL))
botMsgFunction = BotClient_NNK_Train;
else if (msg_type == GET_USER_MSG_ID (PLID, "HudText", NULL))
botMsgFunction = BotClient_NNK_HudText;
else if (msg_type == GET_USER_MSG_ID (PLID, "SayText", NULL))
botMsgFunction = BotClient_NNK_SayText;
else if (msg_type == GET_USER_MSG_ID (PLID, "TextMsg", NULL))
{
botMsgFunction = BotClient_NNK_TextMsg;
botMsgEndFunction = BotClient_NNK_TextMsg;
}
else if (msg_type == GET_USER_MSG_ID (PLID, "ResetHUD", NULL))
botMsgFunction = BotClient_NNK_ResetHUD;
else if (msg_type == GET_USER_MSG_ID (PLID, "InitHUD", NULL))
botMsgFunction = BotClient_NNK_InitHUD;
else if (msg_type == GET_USER_MSG_ID (PLID, "GameTitle", NULL))
botMsgFunction = BotClient_NNK_GameTitle;
else if (msg_type == GET_USER_MSG_ID (PLID, "DeathMsg", NULL))
botMsgFunction = BotClient_NNK_DeathMsg;
else if (msg_type == GET_USER_MSG_ID (PLID, "ScoreInfo", NULL))
botMsgFunction = BotClient_NNK_ScoreInfo;
else if (msg_type == GET_USER_MSG_ID (PLID, "TeamInfo", NULL))
botMsgFunction = BotClient_NNK_TeamInfo;
else if (msg_type == GET_USER_MSG_ID (PLID, "TeamScore", NULL))
botMsgFunction = BotClient_NNK_TeamScore;
else if (msg_type == GET_USER_MSG_ID (PLID, "GameMode", NULL))
botMsgFunction = BotClient_NNK_GameMode;
else if (msg_type == GET_USER_MSG_ID (PLID, "ServerName", NULL))
botMsgFunction = BotClient_NNK_ServerName;
else if (msg_type == GET_USER_MSG_ID (PLID, "HideWeapon", NULL))
botMsgFunction = BotClient_NNK_HideWeapon;
else if (msg_type == GET_USER_MSG_ID (PLID, "SetFOV", NULL))
botMsgFunction = BotClient_NNK_SetFOV;
else if (msg_type == GET_USER_MSG_ID (PLID, "ScreenShake", NULL))
botMsgFunction = BotClient_NNK_ScreenShake;
else if (msg_type == GET_USER_MSG_ID (PLID, "TeamNames", NULL))
botMsgFunction = BotClient_NNK_TeamNames;
else if (msg_type == GET_USER_MSG_ID (PLID, "StatusText", NULL))
botMsgFunction = BotClient_NNK_StatusText;
else if (msg_type == GET_USER_MSG_ID (PLID, "StatusValue", NULL))
botMsgFunction = BotClient_NNK_StatusValue;
else if (msg_type == GET_USER_MSG_ID (PLID, "Stamina", NULL))
botMsgFunction = BotClient_NNK_Stamina;
else if (msg_type == GET_USER_MSG_ID (PLID, "SENDMSG", NULL))
botMsgFunction = BotClient_NNK_SENDMSG;
else if (msg_type == GET_USER_MSG_ID (PLID, "Kawarimi", NULL))
botMsgFunction = BotClient_NNK_Kawarimi;
else if (msg_type == GET_USER_MSG_ID (PLID, "SendTarget", NULL))
botMsgFunction = BotClient_NNK_SendTarget;
else if (msg_type == GET_USER_MSG_ID (PLID, "Sprite", NULL))
botMsgFunction = BotClient_NNK_Sprite;
else if (msg_type == GET_USER_MSG_ID (PLID, "SetFace", NULL))
botMsgFunction = BotClient_NNK_SetFace;
else if (msg_type == GET_USER_MSG_ID (PLID, "ShakeCam", NULL))
botMsgFunction = BotClient_NNK_ShakeCam;
else if (msg_type == GET_USER_MSG_ID (PLID, "ChangeJutsu", NULL))
botMsgFunction = BotClient_NNK_ChangeJutsu;
else if (msg_type == GET_USER_MSG_ID (PLID, "ForceCam", NULL))
botMsgFunction = BotClient_NNK_ForceCam;
else if (msg_type == GET_USER_MSG_ID (PLID, "Healed", NULL))
botMsgFunction = BotClient_NNK_Healed;
}


My file bot.txt in Game Mode Team:
http://paste.ubuntu.com/369503/

My BotClient_NNK_VGUI:

Code:
void BotClient_NNK_VGUI(void *p, int bot_index)
{
   static int state = 0;   // current state machine state

   if (state == 0)
   {
      if ((*(int *)p) == 2)  // este é para selecionar a equipe?

         bots[bot_index].start_action = MSG_NNK_TEAM_SELECT;

      else if ((*(int *)p) == 51)  // este é para selecionar o personagem?

         bots[bot_index].start_action = MSG_NNK_CLASS_SELECT;

   }

   state++;

   if (state == 1)
      state = 0;
}
Code:
   else if (mod_id == NNK_DLL)
   {
      // códigos do Naruto Naiteki Kensei aqui...

      if (pBot->start_action == MSG_NNK_TEAM_SELECT)
      {
         pBot->start_action = MSG_NNK_IDLE;  // volta para espera

         if ((pBot->bot_team != 1) && (pBot->bot_team != 2) &&
             (pBot->bot_team != 5))
            pBot->bot_team = -1;

         if (pBot->bot_team == -1)
            pBot->bot_team = RANDOM_LONG(1, 2);

         // seleciona uma equipe para o BOT se juntar...
         if (pBot->bot_team == 1)
            strcpy(c_team, "1");
         else if (pBot->bot_team == 2)
            strcpy(c_team, "2");
         else
            strcpy(c_team, "5");

         FakeClientCommand(pEdict, "jointeam", c_team, NULL);

         return;
      }

      if (pBot->start_action == MSG_NNK_CLASS_SELECT)  // seleciona um personagem
      {
         pBot->start_action = MSG_NNK_IDLE;  // volta para espera

         if ((pBot->bot_class < 1) || (pBot->bot_class > 4))
            pBot->bot_class = -1;  // usa aleatório

         if (pBot->bot_class == -1)
            pBot->bot_class = RANDOM_LONG(1, 4);

         // seleciona o personagem para o BOT usar...
         if (pBot->bot_class == 1)
            strcpy(c_class, "Naruto");
         else if (pBot->bot_class == 2)
            strcpy(c_class, "Kakashi");
         else if (pBot->bot_class == 3)
            strcpy(c_class, "Sakura");
         else if (pBot->bot_class == 4)
            strcpy(c_class, "Sasuke");
         else
            strcpy(c_class, "5");  // aleatório

         FakeClientCommand(pEdict, "selclass", c_class, NULL);

         // o BOT agora está no jogo (doesn't need to be started)
         pBot->not_started = 0;

         return;
      }
   }

Please I need help!!!


What I have to take, or what is missing place???
  
Reply With Quote