.:: Bots United ::.

.:: Bots United ::. (http://forums.bots-united.com/index.php)
-   Offtopic (http://forums.bots-united.com/forumdisplay.php?f=23)
-   -   YaPB Developer Preview 1.1 (http://forums.bots-united.com/showthread.php?t=916)

Terran 03-04-2004 16:58

Re: YaPB Developer Preview 1.1
 
I've blocked those CVars from the server rules:

yapb_autosaveexp
yapb_botchat
yapb_botspray
yapb_botuseradio
yapb_debuggoal
yapb_detailnames
yapb_followuser
yapb_inhumanturns
yapb_maxbots
yapb_maxskill
yapb_minskill
yapb_shootthruwalls
yapb_timergrenade
yapb_timerpickup
yapb_timersound
yapb_useexp
yapb_votekick

Whistler 08-04-2004 06:50

Re: YaPB Developer Preview 1.1
 
blocking those CVARs may cause weird problems.

you can try modify the source code to the old dev1.1 version (use pfnAddServerCommand).

Also you can try using the DLL as normal HPBbot type DLL (i.e., use +localinfo mm_gamedll) and it may be better

Terran 09-04-2004 00:25

Re: YaPB Developer Preview 1.1
 
I'm not blocking the engines access to the CVARs, I prevent the remote access to them via the server status request of the game browsers.

When you define a CVAR you can set some flags. One of those flags makes the CVAR appear in the server status report (that's what causes the problem). All this plugin does is defining those CVAR before other plugins do (CVARS can only be defined once 8)) - but without the "export" flag (I don't know the correct name).

Pierre-Marie Baty 09-04-2004 02:24

Re: YaPB Developer Preview 1.1
 
The possible flags a CVAR can wear are those here:
Code:

#define FCVAR_ARCHIVE  (1<<0) // set to cause it to be saved to vars.rc
#define FCVAR_USERINFO  (1<<1) // changes the client's info string
#define FCVAR_SERVER  (1<<2) // notifies players when changed
#define FCVAR_EXTDLL  (1<<3) // defined by external DLL
#define FCVAR_CLIENTDLL        (1<<4)  // defined by the client dll
#define FCVAR_PROTECTED        (1<<5)  // It's a server cvar, but we don't send the data since it's a password, etc.  Sends 1 if it's not bland/zero, 0 otherwise as value
#define FCVAR_SPONLY                (1<<6)  // This cvar cannot be changed by clients connected to a multiplayer server.
#define FCVAR_PRINTABLEONLY (1<<7)  // This cvar's string cannot contain unprintable characters ( e.g., used for player name etc ).
#define FCVAR_UNLOGGED  (1<<8)  // If this is a FCVAR_SERVER, don't log changes to the log file / console if we are creating a log

Please Terran, could you tell me which one I need to set in order for my CVARs to stay accessible locally on the server and not externally ?
I'd like to make sure I do things right.

Terran 09-04-2004 08:04

Re: YaPB Developer Preview 1.1
 
The problem is caused by the FCVAR_SERVER flag. Remove it from your flags and the SZ_Getspace error should be history.

Pierre-Marie Baty 09-04-2004 11:41

Re: YaPB Developer Preview 1.1
 
ah great. I never used it anyway :)

Whistler 19-04-2004 07:07

Re: YaPB Developer Preview 1.1
 
Oh sorry but I've never been an admin, thanks for pointing this out anyway, I've fixed it now.


All times are GMT +2. The time now is 19:56.

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