Author Topic: g_layouts does not work when map is started from callvote [SOLVED]  (Read 2842 times)

WoGoMo

  • Posts: 95
  • Turrets: +6/-6
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.
« Last Edit: November 16, 2010, 07:24:04 am by WoGoMo »
There is no sig...

UniqPhoeniX

  • Spam Killer
  • *
  • Posts: 1376
  • Turrets: +66/-32
Re: g_layouts does not work when map is started from callvote
« Reply #1 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.
« Last Edit: November 14, 2010, 06:01:40 pm by UniqPhoeniX »

WoGoMo

  • Posts: 95
  • Turrets: +6/-6
Re: g_layouts does not work when map is started from callvote
« Reply #2 on: November 14, 2010, 10:47:28 am »
Thanks! That really helped.
There is no sig...

Undeference

  • Tremulous Developers
  • *
  • Posts: 1254
  • Turrets: +122/-45
Re: g_layouts does not work when map is started from callvote
« Reply #3 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.
Need help? Ask intelligently. Please share solutions you find.

Thats what we need, helpful players, not more powerful admins.