How to apply password without breaking certificate

Discussion for Admins of ETPro/BayonET servers.
If you don't run a server, please don't post here...

Moderators: Forum moderators, developers

Post Reply
Fenris
Posts: 49
Joined: Fri Oct 31, 2003 11:54 pm
Location: Stockholm, Sweden

How to apply password without breaking certificate

Post by Fenris »

Hi

I have kind of raised this question a long time ago, but I didn't get any working solution and a lot has changed in etpro since then so I thought it time to ask again whether there is any easy working way to do what I'm thinking about ?

I'm running a server, it used to run public campaign, but to allow matches to run I had to rcon the settings, which required me present and if my teammates played matches they sometimes forgot the rcon-password and had to use another server to have it password protected, as they could vote for CB config and vote for maps, but voting for CB config would not set a password on the server.

So, my question is fairly simple, the answer is maybe not, but is there any way to have the config file set a password when loaded ? I.e. could the clanwar.config file be configured with a password without breaking the certificate (guess it would have to be pre-configured but is that an option ?) or is there a way to create a custom .config file that would set a password and then in addition execute clanwar.config, to make it possible to make one vote on a public server and both enable passwords and clanbase config settings ?

Best regards
Mike
Mark
Posts: 411
Joined: Thu Jan 01, 2004 6:10 am
Location: #vpclan@qnet

Post by Mark »

Maybe give some of them the semi admin right to change the password (g_password).

greets
Mark
Get owned at: Gaming@d1p.de (217.172.182.126:27960)
Image
Hi! I'm a .signature *virus*! Copy me into your ~/.signature to help me spread!
Fenris
Posts: 49
Joined: Fri Oct 31, 2003 11:54 pm
Location: Stockholm, Sweden

Post by Fenris »

Won't work in this, I have already distributed the rcon password, so the problem is not the password itself, it's the complexity of remembering the procedure, I'm more looking for a way to do all the things in one single command, and I'd prefer a callvote option, since the "/callvote config clanwar" has been quite well promoted by bani and others most people will remember that procedure, and then it'd just be the thing of changing the config to "/callvote config customcb" or similar :)

(Ok, call us old and forgetful but anyway.... :P )
User avatar
deej
Posts: 743
Joined: Fri Mar 19, 2004 12:44 am
Location: Belgium!
Contact:

Post by deej »

Create two extra files in etmain:

default_pub.cfg
default_comp.cfg

These get executed when people call a vote for competition or public settings.

Both can contain extra stuff (on top of server.cfg) you want loaded. E.g. in default_pub.cfg you set g_password = "" and in default_comp.cfg you set g_password "whatever".

Risk is a noob will call a competition vote and one of your members will have to go in with the password and call a vote for public settings again but hey, a small price to pay and it serves the noob well that they all get kicked ;-).
Our servers now run on 64 bit steroids. Point your ET to:
- Forgotten Ground StopWatch Server with occasional wolfrof 1
- Fraggle Rock ETPub Server - Mix up ET/UT & Duke Nukem
DG
Posts: 513
Joined: Thu Jul 24, 2003 4:16 am

Post by DG »

hows about:

<i>clanwar1.config</i>
password x
config clanwar



maybe add a g_needpass 1, tho dont think it'd be necessary.
Fenris
Posts: 49
Joined: Fri Oct 31, 2003 11:54 pm
Location: Stockholm, Sweden

Post by Fenris »

DG wrote:hows about:
<i>clanwar1.config</i>
password x
config clanwar
maybe add a g_needpass 1, tho dont think it'd be necessary.
Nope, can't load a config file from within the config file, all I get is an "unknown command" error when executing the "config clanwar" setting :(
DG
Posts: 513
Joined: Thu Jul 24, 2003 4:16 am

Post by DG »

maybe the next clanwar.config should add g_needpass 1 :(
User avatar
deej
Posts: 743
Joined: Fri Mar 19, 2004 12:44 am
Location: Belgium!
Contact:

Post by deej »

Well try my setting then...

For default_comp.cfg:

Code: Select all

g_password "whatever"
config clanwar
For default_pub.cfg

Code: Select all

g_password ""
config yourconfig
:roll:
Our servers now run on 64 bit steroids. Point your ET to:
- Forgotten Ground StopWatch Server with occasional wolfrof 1
- Fraggle Rock ETPub Server - Mix up ET/UT & Duke Nukem
User avatar
KingJackaL
Posts: 666
Joined: Thu Jan 08, 2004 3:47 pm
Location: ChCh, NZ
Contact:

Post by KingJackaL »

DG wrote:maybe the next clanwar.config should add g_needpass 1 :(
g_needpass should never be set by any .cfg or .config.

It is automatically set when g_password is set to a non-null value, and unset when g_password is set to a null value.
Post Reply