Jump to content

Individual map configs


Tweek

Recommended Posts

I run silent but I use fun settings to attract a more diverse crowd. My vision is to have a little bit of everything for all players on the same server. I have individual configs for each map adjusting the settings. I have succeeded on most. My clan has voted on putting a single sniper map and a single panzer map into my voting pool. I did the same that I have on the rest of the maps made a individual config but  added g_sniperwar 1  and g_panzerwar 1 into those two configs. Neither responds you can spawn as any class and the time nor spawntmes fix did not work either. Is there a different way to do this or I'm I missing something? Any help would be appreciated.

Link to comment
Share on other sites

I did not  do as !panzerwar on  or !sniperwar on, But I tried as set g_sniperwar 1 and as just g_sniperwar 1, on both fun wars. I didn't even consider that, But if that was the problem wouldn't the timelimit fix and spawn fix have worked? I did however discuss with the founder at UJE considering they made the maps, He suggested adding the settings in the rotation. He uses gametype 2 and puts his settings there. This is the ex:

set d1 "set g_gametype 6 ; map oasis_winter ; set nextmap vstr d2"
set d2 "set g_gametype 6 ; map UJE_jungle_sniper ; set nextmap vstr d3 ;set g_sniperwar 1 ; wm_set_round_timelimit 15"
set d3 "set g_gametype 6 ; map goldrush-ga ; set nextmap vstr d4 ;set sniperwar 0"
set d4 "set g_gametype 6 ; map radar ; set nextmap vstr d5"
set d5 "set g_gametype 6 ; map railgun ; set nextmap vstr d6"
set d6 "set g_gametype 6 ; map fueldump ; set nextmap vstr d1"
vstr d1

 

I really did not want to add to rotation considering a lot of peoples expectations of silent mod and In fear of running off traffic to the sever, my thought process was If it is voted on than people at that time would like to play them. That is what brought me here. I also run Lua on my server and did find a script that is suppose to allow automatic funwars but the Lua that i run I did not configure nor do I know much about coding so I put in in a couple of spots but it did not seem to work(not sure if it is right or if the places I added was right) here is the script:

-- 
-- autosettings.lua
-- Author: morsik
--
-- this mod allows to autoset panzerwar or sniperwar
-- on specified map
--
 
-- CONFIG BEGIN
 
SNIPERMAPS = {
	'UJE_jungle_sniper'
}
 
PANZERMAPS = {
	'UJE_bathroom_sniper'
}
 
-- CONFIG END
 
custommap = 0
 
function et_InitGame(leveltime, randoomseed, restart)
	currentMap = et.trap_Cvar_Get('mapname')
 
	for n,m in pairs(PANZERMAPS) do
		if (currentMap == m) then
			et.SendConsoleCommand(et.EXEC_APPEND, '!panzerwar 1')
			custommap = 1
		end
	end
 
	for n,m in pairs(SNIPERMAPS) do
		if (currentMap == m) then
			et.SendConsoleCommand(et.EXEC_APPEND, '!sniperwar 1')
			custommap = 2
		end
	end
 
	if (custommap == 1) then
		et.SendConsoleCommand(et.EXEC_APPEND, '!panzerwar 0')
		custommap = 0
	end
 
	if (custommap == 2) then
		et.SendConsoleCommand(et.EXEC_APPEND, '!sniperwar 0')
		custommap = 0
	end
end.

I will go and give the the !commands a try in the map config and report back if successful. Meanwhile I would like some info as to whether either the rotation or the lua script would work or be the best route. Any ideas or suggestions would be appreciated.

Edited by Tweek
Link to comment
Share on other sites

Try posting your console log for the sniper map between:

------- Game Initialization -------

and

*=====INITIALISING USER DATABASE

 

That will tell us if your custom mapconfig is getting loaded.

 

I made a quick test server with UJE_jungle_sniper_b3.pk3 

default.cfg

set g_sniperwar 0

 

UJE_jungle_sniper.cfg

set g_sniperwar 1

 

That worked.

Link to comment
Share on other sites

  • Management

Try posting your console log for the sniper map between:

------- Game Initialization -------

and

*=====INITIALISING USER DATABASE

 

That will tell us if your custom mapconfig is getting loaded.

 

I made a quick test server with UJE_jungle_sniper_b3.pk3 

default.cfg

set g_sniperwar 0

 

UJE_jungle_sniper.cfg

set g_sniperwar 1

 

That worked.

 

That was my thought and it should have worked but he is reporting that it's not working for him. Now on 2nd thought, I am thinking if he has wrong name of mapconfig? 

 

tweek, mapconfig file name should be same as map bsp file name. Probably that's why that config is not getting loaded? sometimes bsp name are different then map file pk3 names. 

 

Also rather then using that time limit in rotation cycle why not fix it in mapscript and use mapscript folder for it? 

Link to comment
Share on other sites

That was my thought and it should have worked but he is reporting that it's not working for him. Now on 2nd thought, I am thinking if he has wrong name of mapconfig? 

 

tweek, mapconfig file name should be same as map bsp file name. Probably that's why that config is not getting loaded? sometimes bsp name are different then map file pk3 names. 

 

Also rather then using that time limit in rotation cycle why not fix it in mapscript and use mapscript folder for it? 

Yeah was hoping the logs could give a little more information to what is going on.

Link to comment
Share on other sites

 Sorry guys I crashed my server and spent all afternoon repairing, had to re install my Silent , Lua, and do a whole lot of testing. I will try my mapconfig and map again and submit the log, I don't have the old one. I have tried to rename according to the .bsp files and had no luck either. As I look at my server files now I notice a big difference I did have two mapconfig files. It may have been simply that but it is much more clean and organized.  I will post as soon as I do try again.

Link to comment
Share on other sites

  • Management

 Sorry guys I crashed my server and spent all afternoon repairing, had to re install my Silent , Lua, and do a whole lot of testing. I will try my mapconfig and map again and submit the log, I don't have the old one. I have tried to rename according to the .bsp files and had no luck either. As I look at my server files now I notice a big difference I did have two mapconfig files. It may have been simply that but it is much more clean and organized.  I will post as soon as I do try again.

 

That's how you learn. One day you will figure it out all. You are on right path. Most of the server admins give up but my advice would be not to give up. It takes a while to configure server as you wish when you are new server admin. 

Link to comment
Share on other sites

First of all, a big thank you for the words of wisdom and encouragement guys(much appreciated) I tried again after I ironed out my server issues and it did not work. Here is the info Zelly requested.

InitGame: \LuaESMod\v2.7.4\omnibot_playing\7\mod_url\http://mygamingtalk.com/\mod_version\0.8.2\P\11212212\g_antilagDelay\0\voteFlags\807303\g_bluelimbotime\13000\g_redlimbotime\17000\gamename\silEnT\omnibot_enable\1\g_maxGameClients\0\g_balancedteams\1\g_tyranny\1\g_damageXPLevel\50\g_damageXP\1\g_maxlivesRespawnPenalty\0\g_maxConnsPerIP\3\g_heavyWeaponRestriction\100\sv_sac\1\g_gametype\6\g_antilag\1\g_voteFlags\0\g_alliedmaxlives\0\g_axismaxlives\0\g_minGameClients\0\g_needpass\0\g_maxlives\0\g_friendlyFire\0\sv_allowAnonymous\0\sv_floodProtect\0\sv_maxPing\900\sv_minPing\0\sv_maxRate\45000\sv_hostname\^5*^8The^4Corn^8bread^4Mafia^5*\sv_privateClients\0\mapname\uje_oldskool_sniper_np\protocol\84\timelimit\18\version\ET 3.00 - TB 0.7.2  - 2.60b compatible linux-i386\sv_maxclients\22
Start of warmup. 
Cheat logfile open: cheat.log
readconfig: loaded 12 levels, 7 bans, 0 subnet bans, 27 commands, 3 warnings and 12 custom votes
Execing default.cfg mapconfig for 8 players.
  * Execed total of 26 commands from the config file.
Execing uje_oldskool_sniper_np.cfg mapconfig for 8 players.
  * Config file "mapconfigs/uje_oldskool_sniper_np.cfg" was not found.
Map changed, clearing player stats.
serverstats: loaded 78 mapstats
banners: loaded 6 banners
*=====INITIALISING USER DATABASE
Edited by Tweek
Link to comment
Share on other sites

  • 2 weeks later...

set d1 "set g_gametype 2 ; map oasis_winter ; set nextmap vstr d2"
set d2 "set g_gametype 2 ; map UJE_jungle_sniper ; !sniperwar on ; set timelimit 15 ; set nextmap vstr d3"
set d3 "set g_gametype 2 ; map goldrush-ga ; !sniperwar off ; set nextmap vstr d4"
set d4 "set g_gametype 2 ; map radar ; set nextmap vstr d5"
set d5 "set g_gametype 2 ; map railgun ; set nextmap vstr d6"
set d6 "set g_gametype 2 ; map fueldump ; set nextmap vstr d1"
vstr d1

 

I have edited your cycle to a more "working" mannor.
 

That should work good for you tweek without any problems, It will run via the objective cycle saving you from messing about with map configs and such..

Let me know if it works!

Edited by Oxyzium
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...