.:: Bots United ::.

.:: Bots United ::. (http://forums.bots-united.com/index.php)
-   Bug Reports (http://forums.bots-united.com/forumdisplay.php?f=49)
-   -   "Add WP Flag" Crashes Game (http://forums.bots-united.com/showthread.php?t=1617)

g4s 08-05-2004 09:53

"Add WP Flag" Crashes Game
 
I'm now using sPlOrYgOn's lastest release, which has fixed a few bugs.
However, when I tried to set flag for a waypoint, I was disconnected, took me to the console. The error message I got is:
Quote:

Host_Error: PF_MessageEnd_I: Refusing to send user message ShowMenu of 197 bytes to client, user message size limit is 192 bytes
Other wp commands seem to work fine so far.
I don't know if anyone has reported this bug, if so, please excuse me for being new to this new great pb project.

9_9

sPlOrYgOn 08-05-2004 11:05

Re: "Add WP Flag" Crashes Game
 
Sorry but I cannot reproduce this..
The only thing I got to happen was..
When I try to add all the flags to one waypoint it crashes the game :(

Huntkillaz 08-05-2004 11:14

Re: "Add WP Flag" Crashes Game
 
yeah i've never had a crash with wp flags ..what wp flag did u try add and to what wp...?

Whistler 08-05-2004 12:29

Re: "Add WP Flag" Crashes Game
 
hehehe... that's why I'm doing this in YaPB:
Code:


void UTIL_ShowMenu( edict_t *pEdict, int slots, int displaytime, bool needmore, char *pText )
{
  if (gmsgShowMenu == 0)
      gmsgShowMenu = REG_USER_MSG( "ShowMenu", -1 );

  while (strlen(pText) >= 64)
  {
      MESSAGE_BEGIN(MSG_ONE, gmsgShowMenu, NULL, pEdict);
        WRITE_SHORT(slots);
        WRITE_CHAR(displaytime);
        WRITE_BYTE(1);
        for (int i = 0; i <= 63; i++)
            WRITE_CHAR(pText[i]);
      MESSAGE_END();

      pText += 64;
  }

  MESSAGE_BEGIN(MSG_ONE, gmsgShowMenu, NULL, pEdict);
      WRITE_SHORT(slots);
      WRITE_CHAR(displaytime);
      WRITE_BYTE(needmore);
      WRITE_STRING(pText);
  MESSAGE_END();
}


g4s 11-05-2004 08:32

Re: "Add WP Flag" Crashes Game
 
Hello, just downloaded sPlOrYgOn's lastest release (release 2).
I did a fresh install (cs1.3 retail + 1.5 update + lastest metamod), then installed podbot.
But this problem still happened to me.
"wpmenu --> 5. WP ON --> wpmenu --> 3. Add Flag --> CS Crashes"
CS actually didn't crash, but disconnected me and took me to console.
Same error message returned:
Quote:

Host_Error: PF_MessageEnd_I: Refusing to send user message ShowMenu of 197 bytes to client, user message size limit is 192 bytes
Huntkillaz, I didn't even get a chance to choose what kind of flag coz I was disconnected right after I press the button 3 (which is "Add Flag"). And I just chose a random waypoint (normal or a point that has been set flags).

Am I doing something wrong here? Isn't there anyone else get this error?

Thanks

sPlOrYgOn 11-05-2004 08:34

Re: "Add WP Flag" Crashes Game
 
I never get that error.. ever...
but I'll include Whistler's fix :D

g4s 11-05-2004 11:55

Re: "Add WP Flag" Crashes Game
 
Well, ok, its weird, just for me.
maybe I really made some mistakes.
Anyways, thanks, sPIOrYgOn.

omg, took me hours to spell your name :D :D :D

Pierre-Marie Baty 11-05-2004 12:57

Re: "Add WP Flag" Crashes Game
 
Quote:

Host_Error: PF_MessageEnd_I: Refusing to send user message ShowMenu of 197 bytes to client, user message size limit is 192 bytes
this IS a bug in the bot code. sPlOrYgOn, you must have changed one of the waypoint menus and now the menu text is longer than 192 bytes. Ensure each menu's text is LESS than 192 bytes, else the engine will refuse sending the message.

And Whistler's fix is not really appliable in the PB26mm source code... I changed a lot of things in the menu display code.

Just ensure your menus do less than 192 characters long and you'll be fine.

sPlOrYgOn 11-05-2004 15:32

Re: "Add WP Flag" Crashes Game
 
but they are... I never get the error...
and i've never touched the wp menus..


All times are GMT +2. The time now is 18:39.

Powered by vBulletin® Version 3.8.2
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.