[Fwd: [bfprog] Setting Server Password?]
Andreas Fredriksson
deplinenoise at gmail.com
Fri Jun 24 01:11:45 PDT 2005
On 6/24/05, James Gurney <james at globalmegacorp.org> wrote:
> Hey Andreas, sorry to mail you directly, just wasn't sure if you'd
> joined the bfprog list or not.. and we'd really appreciate your input on
> this, if you have any ideas :)
That's ok, I was meaning to subscribe.
> From: Christopher Kent <singlebarrel at comcast.net>
> Reply-To: Battlefield Programming <bfprog at lists.matureasskickers.net>
> To: <bfprog at lists.matureasskickers.net>
>
> I'm trying to set the server password programmatically (poor man's reserved
> slots) but I can't find any exposed variable to set. Does anybody have any
> ideas?
>
> host.ss_getParam('password')
> and
> host.ss_getParam('passwd')
>
> both fail as invalid parameters.
AFAIK there isn't a password property you can access from the host;
the API concerns itself mostly with game objects, events and such.
Is it possible to change the password on the fly using a console
command? If so, one could execute "sv.password <newpw>" using the same
host API the rcon module uses (I don't have a BF2 installation here to
look at so I can't remember the exact syntax).
// Andreas
--
And I hate redundancy, and having different functions for the same thing.
- Linus Torvalds on linux-kernel
More information about the BFProg
mailing list