Mapcycle
#12
Posted 18 April 2012 - 09:22 PM
Romanu, on 18 April 2012 - 06:26 PM, said:
For all maps after turnpike, and all weapons for all maps after casa. On my home made server worked.
then it should look more like something like this:
ut4_turnpike
{
g_gear 0
}
ut4_dust2
{
g_gear 48
}
ut4_orbital_sl
{
g_gear 48
}
ut4_train_dl1
{
g_gear 48
}
ut4_casa
{
g_gear 0
}
ut4_....
the settings in the brackets are for that particular map to load with, some setting are reset on map load other settings stay between maps. so implicitly specifying it for each map is the best way.
This post has been edited by NITRO: 18 April 2012 - 09:23 PM
32GB DDR4 3600MHz CL15 · 2TB Seagate FireCuda 530 NMVE · 16GB Radeon RX 6900XT Liquid Cooled
#13
Posted 18 April 2012 - 10:52 PM
NITRO, on 18 April 2012 - 09:22 PM, said:
ut4_turnpike
{
g_gear 0
}
ut4_dust2
{
g_gear 48
}
ut4_orbital_sl
{
g_gear 48
}
ut4_train_dl1
{
g_gear 48
}
ut4_casa
{
g_gear 0
}
ut4_....
the settings in the brackets are for that particular map to load with, some setting are reset on map load other settings stay between maps. so implicitly specifying it for each map is the best way.
It doesn't work.
#14
Posted 19 April 2012 - 12:32 AM
"it doesnt work because when i go from turnpike to dust2 the gear changes back to..."
what doesnt work? what is it doing and what are you expecting it to do?
32GB DDR4 3600MHz CL15 · 2TB Seagate FireCuda 530 NMVE · 16GB Radeon RX 6900XT Liquid Cooled
#15
Posted 19 April 2012 - 10:07 AM
NITRO, on 19 April 2012 - 12:32 AM, said:
"it doesnt work because when i go from turnpike to dust2 the gear changes back to..."
what doesnt work? what is it doing and what are you expecting it to do?
Ok, sorry.
The gear doesn't change. Its the same on all maps (all weapons/ "g_gear 0"). In server.cfg i have it on g_gear 0.
This post has been edited by Romanu: 19 April 2012 - 10:08 AM
#16
Posted 19 April 2012 - 02:49 PM
Map Cycles
Map cycles in Urban Terror have been done to make configuring them easier. Instead of having strange commands in your server.cfg, Urban Terror loads maps and sets information from a simple text file.
By default, the map rotation file is called mapcycle.txt. This file must be placed in the q3ut4 folder of the server. You can change the name of the map cycle file by setting the g_mapcycle CVAR to the name of the alternate file. For example, to use a map rotation file called mymaps.txt, you'd go to the console and type:
/g_mapcycle " mymaps.txt"
The map rotation file is a basic text file (you can use MS Notepad, BBEdit, Word, etc to create it). In its most simple form, the file is just a list of maps, one map to a line. When the last map is finished, the first map in the file is loaded and the process repeats. So, for example, a mapcycle.txt that looks like this:
ut_ricochet
ut_swim
ut_uptown
Would load up ricochet, then swim, then uptown, and then restart.
You can also use the map rotation file to set any server CVAR. The format for
this is:
[mapname]
{
[cvar] [value]
[cvar] [value]
...
}
The [cvar] is the name of any Urban Terror server CVAR (eg: g_gametype) and the value is the value you want it set to. In the following example, the first example has been extended to set CVARs on ut_uptown:
ut_ricochet
ut_swim
ut_uptown
{
g_gametype 6
g_friendlyfire 1
g_maxteamkills 0
}
What weapons are trying to allow? Is 48 the correct value? Is it possible that this number is wrong so the server disregards it? Did you check it on the calculator here http://www.urbanterr...0-server-cvars/ ?
This post has been edited by Runamuk: 19 April 2012 - 02:52 PM
#17
Posted 19 April 2012 - 11:09 PM
Runamuk, on 19 April 2012 - 02:49 PM, said:
Map Cycles
Map cycles in Urban Terror have been done to make configuring them easier. Instead of having strange commands in your server.cfg, Urban Terror loads maps and sets information from a simple text file.
By default, the map rotation file is called mapcycle.txt. This file must be placed in the q3ut4 folder of the server. You can change the name of the map cycle file by setting the g_mapcycle CVAR to the name of the alternate file. For example, to use a map rotation file called mymaps.txt, you'd go to the console and type:
/g_mapcycle " mymaps.txt"
The map rotation file is a basic text file (you can use MS Notepad, BBEdit, Word, etc to create it). In its most simple form, the file is just a list of maps, one map to a line. When the last map is finished, the first map in the file is loaded and the process repeats. So, for example, a mapcycle.txt that looks like this:
ut_ricochet
ut_swim
ut_uptown
Would load up ricochet, then swim, then uptown, and then restart.
You can also use the map rotation file to set any server CVAR. The format for
this is:
[mapname]
{
[cvar] [value]
[cvar] [value]
...
}
The [cvar] is the name of any Urban Terror server CVAR (eg: g_gametype) and the value is the value you want it set to. In the following example, the first example has been extended to set CVARs on ut_uptown:
ut_ricochet
ut_swim
ut_uptown
{
g_gametype 6
g_friendlyfire 1
g_maxteamkills 0
}
What weapons are trying to allow? Is 48 the correct value? Is it possible that this number is wrong so the server disregards it? Did you check it on the calculator here http://www.urbanterr...0-server-cvars/ ?
48 = Snpier ; Pistol ; Spas ; Nades;
But i found what was the problem. I had to put in server.cfg the g_gear for the first map (which is 48). Now everything works properly/fine. It changes the g_gear for each map .
Thank you for your support.
Respectfully,
Romanu'