mortiisjedi Posted April 8, 2002 Share Posted April 8, 2002 Does anybody know how to change the password of a server from inside the game? I have tried: rcon password "blah", and that didnt seem to work. Would anyone happen to know the command? Link to comment Share on other sites More sharing options...
MatrixCPA Posted April 8, 2002 Share Posted April 8, 2002 I've never actually tried it, since I have full access to my servers. However, if anything will work it's: /rcon seta rconpassword newpass Now, that assumes the following: 1) you've previously used /set rconpassword oldpass 2) the server won't be reset. The reason for #2 is that if the server.cfg file contains a line that sets the rconpassword (which I would assume it must if you have rcon access at all), then if the server is restarted for any reason, it will revert right back to the old pass. Given that this will work in the first place, at least you'll have it set to the new pass for a while. Why do you want to change the rcon password when you don't have access to the server? Link to comment Share on other sites More sharing options...
mortiisjedi Posted April 8, 2002 Author Share Posted April 8, 2002 oops...i dont think i was too clear, I want to change the password of the actual server, through rcon. For example, I am playing in my locked server, but then I want to unlock it so the public can play. How would I go about taking off/changing the server password through rcon? I hope that makes sense hehe. Link to comment Share on other sites More sharing options...
mortiisjedi Posted April 8, 2002 Author Share Posted April 8, 2002 ok i found out I could change the server password in-game typing: seta g_password "mypass", in the console. what i would like to do is pass and un-pass the server in game. The above command wont work to unpass the server because it needs some sort of character in the quotes. I tried: seta g_needpass "0", in the console, but that wont work...its says its read-only. Anyone know how to get around that? So the server can be passed and un-passed at will? Thanks. Link to comment Share on other sites More sharing options...
MatrixCPA Posted April 8, 2002 Share Posted April 8, 2002 To password the server via rcon (as you know already): /rcon seta g_password passwd To remove the server password via rcon: /rcon seta g_password none You have have to use none because the rcon system strips out "". Thus if you put "" to remove it, the server just gets /rcon seta g_password and thinks you're asking what the password is now. Regarding g_needpass. The only real function of this cvar is to let people know if your server is locked or not. It's really for informational purposes. When you set it, use this: /rcon sets g_needpass 1 (or 0 as the case may be) You use sets to make that setting "public". The 'a' in seta means "archive" and the cvar is saved to the jk2mpconfig.cfg but that doesn't directly make it public. Some settings are public by default. Others require sets to be made public. Enjoy. Link to comment Share on other sites More sharing options...
mortiisjedi Posted April 9, 2002 Author Share Posted April 9, 2002 Sweet! Thats exactly what I was looking for. Yeah those quotes were screwing me up...I knew there had to be some work-around. Thanks! Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.