KandyFLip Posted April 18, 2002 Share Posted April 18, 2002 Hi all, Im running 2 servers on the same machine. They use different ports (which i can't remember now.. xxx70 and xxx90 or something like that). To try ot avoid any problems, I put a 2nd copy of the game in a different directory and run it from there. (OK, we're getting to the problem now) 1 server is public (g_needpass "0" and g_password "") and the other is passworded. Problem is, my public server for some reason is picking up the password settings. I have no idea how or why it does this, considering it's being run from a dif. dir with a dif config file. all the other differences are there (dif name, dif max rate). SuSe 7.3 jk2ded 1.02c Link to comment Share on other sites More sharing options...
MatrixCPA Posted April 18, 2002 Share Posted April 18, 2002 It could be pulling that info from the jk2mpconfig.cfg in your ~/.jkii/base directory. I think the best solution would be to run each server as a different user. An alternative is to use set instead of seta for the password info and go into the jk2mpconfig.cfg and remove the password info there. As a last resort, remove the password info from the jk2mpconfig.cfg and then make it read only. Link to comment Share on other sites More sharing options...
Novus Posted April 18, 2002 Share Posted April 18, 2002 Nope, you just need two different server configs. Make sure that the two configs have the same c/svars in them so that they do not reset each other through the jk2mpconfig.cfg file (lame). You'll need this in one file : seta g_password "" seta g_needpass "0" and this in the other seta g_password "blah" seta g_needpass "1" You don't need two seperate directories or users. Link to comment Share on other sites More sharing options...
MatrixCPA Posted April 18, 2002 Share Posted April 18, 2002 Originally posted by KandyFLip 1 server is public (g_needpass "0" and g_password "") and the other is passworded. Problem is, my public server for some reason is picking up the password settings. I have no idea how or why it does this, considering it's being run from a dif. dir with a dif config file. all the other differences are there (dif name, dif max rate). Ok, based on what he's saying here...he has 2 seperate config files with the settings you're specifying. While I admit that your solution should work, that doesn't mean that something screwy isn't going on here. Now, if his statement is inaccurate, I agree that your solution is the most simple. However, if it doesn't work, I think my alternatives are valid. Link to comment Share on other sites More sharing options...
Novus Posted April 18, 2002 Share Posted April 18, 2002 or delete the jk2mpconfig.cfg touch a new empty one and make it read only The damn file is useless anyways. Link to comment Share on other sites More sharing options...
David Icke Posted April 18, 2002 Share Posted April 18, 2002 Novus what does that damn jk2mpconfig.cfg file actualy do anyway? and i agree running it as a seperate user with copied binaries and config files in 2 users home directories, there should be no problem......... Link to comment Share on other sites More sharing options...
MatrixCPA Posted April 18, 2002 Share Posted April 18, 2002 The jk2mpconfig.cfg is basically a "backup" copy of the most recently used settings. The server will load that backup before it loads the other config files. It includes a number of the default settings as well. I'd put it on the same level as your tonsils--they can be helpful at times and they can be more trouble than they are worth at times and need to be removed. However, like your tonsils, I don't recommend removal unless there's no other working alternative. Link to comment Share on other sites More sharing options...
Novus Posted April 18, 2002 Share Posted April 18, 2002 As far as I know absolutely nothing. It stores the c/svars of the last run server. I'd make it read only if I knew for sure it wouldn't break something. As it is, I haven't had a problem with the 5 servers currently running on my box. If it ain't broke don't fix it. Link to comment Share on other sites More sharing options...
KandyFLip Posted April 20, 2002 Author Share Posted April 20, 2002 Thanx (again) for the help. I denied all access to that other evil config for my user. The server complains on startup that it can't write to it, but then goes along on it's merry lil way Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.