Settings.custom.cfg file loading help.

Post here if you need help setting up your server, etc.
marktoe
On Lightcycle Grid
Posts: 13
Joined: Thu Dec 01, 2011 7:23 pm

Settings.custom.cfg file loading help.

Post by marktoe »

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
User avatar
Z-Man
God & Project Admin
Posts: 11736
Joined: Sun Jan 23, 2005 6:01 pm
Location: Cologne
Contact:

Re: Settings.custom.cfg file loading help.

Post by Z-Man »

marktoe wrote:Users/<YOUR USERNAME>/AppData/Roaming/Armagetron/config
that would be the correct path, and then it would get loaded automatically when the server starts.
marktoe
On Lightcycle Grid
Posts: 13
Joined: Thu Dec 01, 2011 7:23 pm

Re: Settings.custom.cfg file loading help.

Post by marktoe »

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.
User avatar
Z-Man
God & Project Admin
Posts: 11736
Joined: Sun Jan 23, 2005 6:01 pm
Location: Cologne
Contact:

Re: Settings.custom.cfg file loading help.

Post by Z-Man »

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.
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
On Lightcycle Grid
Posts: 13
Joined: Thu Dec 01, 2011 7:23 pm

Re: Settings.custom.cfg file loading help.

Post by marktoe »

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?
User avatar
Z-Man
God & Project Admin
Posts: 11736
Joined: Sun Jan 23, 2005 6:01 pm
Location: Cologne
Contact:

Re: Settings.custom.cfg file loading help.

Post by Z-Man »

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.
marktoe
On Lightcycle Grid
Posts: 13
Joined: Thu Dec 01, 2011 7:23 pm

Re: Settings.custom.cfg file loading help.

Post by marktoe »

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?
marktoe
On Lightcycle Grid
Posts: 13
Joined: Thu Dec 01, 2011 7:23 pm

Re: Settings.custom.cfg file loading help.

Post by marktoe »

I got it, I had to use the command SINCLUDE and call it settings_custom.cfg.txt, since it was a text file.
User avatar
Z-Man
God & Project Admin
Posts: 11736
Joined: Sun Jan 23, 2005 6:01 pm
Location: Cologne
Contact:

Re: Settings.custom.cfg file loading help.

Post by Z-Man »

Ah yes, the old hidden file extension problem.
marktoe
On Lightcycle Grid
Posts: 13
Joined: Thu Dec 01, 2011 7:23 pm

Re: Settings.custom.cfg file loading help.

Post by marktoe »

It was. Thanks for the help, its up and running now.
marktoe
On Lightcycle Grid
Posts: 13
Joined: Thu Dec 01, 2011 7:23 pm

Re: Settings.custom.cfg file loading help.

Post by marktoe »

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.
User avatar
Z-Man
God & Project Admin
Posts: 11736
Joined: Sun Jan 23, 2005 6:01 pm
Location: Cologne
Contact:

Re: Settings.custom.cfg file loading help.

Post by Z-Man »

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.
marktoe
On Lightcycle Grid
Posts: 13
Joined: Thu Dec 01, 2011 7:23 pm

Re: Settings.custom.cfg file loading help.

Post by marktoe »

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?
User avatar
Z-Man
God & Project Admin
Posts: 11736
Joined: Sun Jan 23, 2005 6:01 pm
Location: Cologne
Contact:

Re: Settings.custom.cfg file loading help.

Post by Z-Man »

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.
marktoe
On Lightcycle Grid
Posts: 13
Joined: Thu Dec 01, 2011 7:23 pm

Re: Settings.custom.cfg file loading help.

Post by marktoe »

Oh, then I haven't forwarded it.
Post Reply