Settings.custom.cfg file loading help.
Settings.custom.cfg file loading help.
I'm trying to make a server. I'm using windows 7 to start, I tried linux but I'll move to that after getting the hang of this. Now I made a settings_custom.cfg file and placed it in Users/AppData/Roaming/Armagetron/config. Now I can access my server through the LAN, but I don't know how to have it load the settings I made in settings_custom.cfg
Re: Settings.custom.cfg file loading help.
that would be the correct path, and then it would get loaded automatically when the server starts.marktoe wrote:Users/<YOUR USERNAME>/AppData/Roaming/Armagetron/config
Re: Settings.custom.cfg file loading help.
It won't show. It still says unnamed server are has default settings. I'm not supposed to enter anything into the server window (terminal looking thing)? I don't see how it can know that I have the file automatically.
Re: Settings.custom.cfg file loading help.
Nope, no extra action should be needed. It's included via sinclude from settings_dedicated.cfg, which means the system looks whether the file is there, if it is, it is included, if not, well, nothing is done. Have you replaced <YOUR USERNAME> in the path with the username running the server? Have you named the file correctly (settings_custom.cfg, not settings.custom.cfg as the title says)?marktoe wrote:It won't show. It still says unnamed server are has default settings. I'm not supposed to enter anything into the server window (terminal looking thing)? I don't see how it can know that I have the file automatically.
Re: Settings.custom.cfg file loading help.
Well how it knows I have it now makes sense, thanks, but yes, the path is under my username. And it is also the correct file name. It should be in the Armagetron folder, and not a folder for the dedicated server? I also have my map file in the config folder(I created the config folder) would having the map do anything?
Re: Settings.custom.cfg file loading help.
Yeah, apparently we don't separate the userdatadirs on Windows like we do on the other platforms. Surprised me, too, I'll have that changed when I implement proper rebranding.
And no, only specific files are checked; not all .cfg files are read, either, just the default ones. Maps don't belong into the config folder at all, by the way.
Could it be that you have another settings_custom.cfg file that is read in instead of the one you want? In the var subdirectory, for example? That's about the last error cause I can think of.
And no, only specific files are checked; not all .cfg files are read, either, just the default ones. Maps don't belong into the config folder at all, by the way.
Could it be that you have another settings_custom.cfg file that is read in instead of the one you want? In the var subdirectory, for example? That's about the last error cause I can think of.
Re: Settings.custom.cfg file loading help.
No, I even searched for files names settings_custom.cfg, and only the one I made came up. What did you mean not all are read, only the default ones? It could be that this one isn't read. I can find my user.cfg file, would I want them together?
Re: Settings.custom.cfg file loading help.
I got it, I had to use the command SINCLUDE and call it settings_custom.cfg.txt, since it was a text file.
Re: Settings.custom.cfg file loading help.
Ah yes, the old hidden file extension problem.
Re: Settings.custom.cfg file loading help.
It was. Thanks for the help, its up and running now.
Re: Settings.custom.cfg file loading help.
One more thing. It will appear in the master server list sometimes, but when I was even playing on my server and tried to connect with a different computer it couldn't find it. It will connect through LAN, but if I'm in LAN and I type talk_to_master, it will tell me that it is set to 0. I'll set it to one, and then it will be in the master again, for a short time.
Re: Settings.custom.cfg file loading help.
You'll need to put talk_to_master 1 into your configuration file and possibly also set up port forwarding to your server on your router.
Re: Settings.custom.cfg file loading help.
I have the talk_to_master 1, thats why its confusing. I opened port 4635(or whatever the right one is), is that what you mean?
Re: Settings.custom.cfg file loading help.
Odd, then watch the server's output closely, maybe it tells you when talk_to_master gets reset to 0?
And whether what you did is right depends on what you mean by 'open' a port. You need to both tell your firewall(s) to let UDP packages through in the first place (maybe, usually that's done automatically) and instruct your router to forward them to your server. If you haven't entered your server's local IP in some form, you haven't forwarded the port.
And whether what you did is right depends on what you mean by 'open' a port. You need to both tell your firewall(s) to let UDP packages through in the first place (maybe, usually that's done automatically) and instruct your router to forward them to your server. If you haven't entered your server's local IP in some form, you haven't forwarded the port.
Re: Settings.custom.cfg file loading help.
Oh, then I haven't forwarded it.