Tremulous Forum

General => Troubleshooting => Topic started by: WoGoMo on November 14, 2010, 09:19:51 am

Title: g_layouts does not work when map is started from callvote [SOLVED]
Post by: WoGoMo on November 14, 2010, 09:19:51 am
Note: This is a GPP1 server which i recompiled from svn://svn.icculus.org/tremulous/tags/RELEASE_GPP1

Hi,

I'm wondering if anyone out there faces this problem (and of course found the solution). I have the following setting in server.cfg:

Code: [Select]
g_layouts "mylayout"

and my maprotation.cfg contains the following (example atcs):

Code: [Select]
  atcs
  {
    layouts "mylayout"
    set g_humanBuildPoints 100
    set g_alienBuildPoints 150
  }

It works fine when u let the rotation change maps by itself, but when the map is changed via callvote, the layout falls back to *BUILTIN*. Is there a way to force the layout to always be "mylayout" even when the map is callvoted?

Any help would be much appreciated.
Title: Re: g_layouts does not work when map is started from callvote
Post by: UniqPhoeniX on November 14, 2010, 10:25:57 am
In server.cfg:
Code: [Select]
g_mapConfigs "mapconfigs"
to have settings loaded before every map from mapconfigs/default.cfg and mapconfigs/mapname.cfg.
Apparently creating base/mapconfigs/atcs.cfg with g_layouts set in there causes it to be set for the NEXT map... Setting it in mapconfigs/default.cfg will set it for next map every time, so if all your layouts have the same name, it will work. In case a map does not have a layout with that name, it will load the default.
Title: Re: g_layouts does not work when map is started from callvote
Post by: WoGoMo on November 14, 2010, 10:47:28 am
Thanks! That really helped.
Title: Re: g_layouts does not work when map is started from callvote
Post by: Undeference on November 14, 2010, 05:51:57 pm

I'm wondering if anyone out there faces this problem (and of course found the solution). I have the following setting in server.cfg:

Code: [Select]
g_layouts "mylayout"
g_layouts is used internally and reset every map; settings it only makes sense in map configs.

Quote
It works fine when uyou let the rotation change maps by itself, but when the map is changed via callvote, the layout falls back to *BUILTIN*
Map votes ignore the map rotation, so maprotation.cfg features are not available with map votes.

Code: [Select]
g_mapConfigs "mapconfigs"
g_mapConfigsLoaded 1
g_mapConfigsLoaded is used internally and reset every map; do not use it.