.:: Bots United ::.  
filebase forums discord server github wiki web
cubebot epodbot fritzbot gravebot grogbot hpbbot ivpbot jkbotti joebot
meanmod podbotmm racc rcbot realbot sandbot shrikebot soulfathermaps yapb

Go Back   .:: Bots United ::. > Cyborg Factory > POD-Bot mm > Bug Reports
Bug Reports Post any bug you experience with the latest release of this bot here

Reply
 
Thread Tools
"Add WP Flag" Crashes Game
Old
  (#1)
g4s
Member
 
g4s's Avatar
 
Status: Offline
Posts: 102
Join Date: May 2004
Default "Add WP Flag" Crashes Game - 08-05-2004

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
  
Reply With Quote
Re: "Add WP Flag" Crashes Game
Old
  (#2)
sPlOrYgOn
<-- He did it.
 
sPlOrYgOn's Avatar
 
Status: Offline
Posts: 1,558
Join Date: Jan 2004
Location: Los Angeles, California, USA, North America, Earth, Solar System, Milky Way.
Default Re: "Add WP Flag" Crashes Game - 08-05-2004

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
  
Reply With Quote
Re: "Add WP Flag" Crashes Game
Old
  (#3)
Huntkillaz
Member
 
Huntkillaz's Avatar
 
Status: Offline
Posts: 594
Join Date: Mar 2004
Location: Middle Earth (New Zealand)
Default Re: "Add WP Flag" Crashes Game - 08-05-2004

yeah i've never had a crash with wp flags ..what wp flag did u try add and to what wp...?


●_•
  
Reply With Quote
Re: "Add WP Flag" Crashes Game
Old
  (#4)
Whistler
Summoner
 
Whistler's Avatar
 
Status: Offline
Posts: 1,499
Join Date: Feb 2004
Location: Mist Village
Default Re: "Add WP Flag" Crashes Game - 08-05-2004

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();
}
  
Reply With Quote
Re: "Add WP Flag" Crashes Game
Old
  (#5)
g4s
Member
 
g4s's Avatar
 
Status: Offline
Posts: 102
Join Date: May 2004
Default Re: "Add WP Flag" Crashes Game - 11-05-2004

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
  
Reply With Quote
Re: "Add WP Flag" Crashes Game
Old
  (#6)
sPlOrYgOn
<-- He did it.
 
sPlOrYgOn's Avatar
 
Status: Offline
Posts: 1,558
Join Date: Jan 2004
Location: Los Angeles, California, USA, North America, Earth, Solar System, Milky Way.
Default Re: "Add WP Flag" Crashes Game - 11-05-2004

I never get that error.. ever...
but I'll include Whistler's fix
  
Reply With Quote
Re: "Add WP Flag" Crashes Game
Old
  (#7)
g4s
Member
 
g4s's Avatar
 
Status: Offline
Posts: 102
Join Date: May 2004
Default Re: "Add WP Flag" Crashes Game - 11-05-2004

Well, ok, its weird, just for me.
maybe I really made some mistakes.
Anyways, thanks, sPIOrYgOn.

omg, took me hours to spell your name
  
Reply With Quote
Re: "Add WP Flag" Crashes Game
Old
  (#8)
Pierre-Marie Baty
Roi de France
 
Pierre-Marie Baty's Avatar
 
Status: Offline
Posts: 5,049
Join Date: Nov 2003
Location: 46°43'60N 0°43'0W 0.187A
Default Re: "Add WP Flag" Crashes Game - 11-05-2004

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.



RACC home - Bots-United: beer, babies & bots (especially the latter)
"Learn to think by yourself, else others will do it for you."
  
Reply With Quote
Re: "Add WP Flag" Crashes Game
Old
  (#9)
sPlOrYgOn
<-- He did it.
 
sPlOrYgOn's Avatar
 
Status: Offline
Posts: 1,558
Join Date: Jan 2004
Location: Los Angeles, California, USA, North America, Earth, Solar System, Milky Way.
Default Re: "Add WP Flag" Crashes Game - 11-05-2004

but they are... I never get the error...
and i've never touched the wp menus..

Last edited by sPlOrYgOn; 11-05-2004 at 16:34..
  
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump



Powered by vBulletin® Version 3.8.2
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
vBulletin Skin developed by: vBStyles.com