Jump to content

  • Log in with Facebook Log in with Twitter Log In with Google Log In with Steam Sign In
  • Create Account
Photo

Individual map configs


  • Please log in to reply
17 replies to this topic

#1
OFFLINE   Tweek

Tweek

    Member

  • Members
  • PipPip
  • 26 posts
12
A step in the right direction

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.



#2
OFFLINE   hellreturn

hellreturn

    Management

  • Management
  • PipPipPipPip
  • 2693 posts
158
On the road to fame

Have you tried adding !panzerwar on command in mapconfig? and then in default config try !panzerwar off ? I haven't tried such scenario myself.



#3
OFFLINE   Tweek

Tweek

    Member

  • Members
  • PipPip
  • 26 posts
12
A step in the right direction

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, 02 March 2015 - 02:20 PM.


#4
OFFLINE   Zelly

Zelly

    Regular Member

  • Coders
  • PipPipPip
  • 141 posts
73
Getting Better

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.



#5
OFFLINE   hellreturn

hellreturn

    Management

  • Management
  • PipPipPipPip
  • 2693 posts
158
On the road to fame

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? 



#6
OFFLINE   Zelly

Zelly

    Regular Member

  • Coders
  • PipPipPip
  • 141 posts
73
Getting Better

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.



#7
OFFLINE   Tweek

Tweek

    Member

  • Members
  • PipPip
  • 26 posts
12
A step in the right direction

 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.



#8
OFFLINE   hellreturn

hellreturn

    Management

  • Management
  • PipPipPipPip
  • 2693 posts
158
On the road to fame

 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. 



#9
OFFLINE   clan DIABOLIK

clan DIABOLIK

    Advanced Member

  • Members
  • PipPipPipPip
  • 322 posts
36
Getting Better

Good luck Tweek  :unsure:



#10
OFFLINE   Tweek

Tweek

    Member

  • Members
  • PipPip
  • 26 posts
12
A step in the right direction

Erased!


Edited by Tweek, 03 March 2015 - 08:47 AM.


#11
OFFLINE   Tweek

Tweek

    Member

  • Members
  • PipPip
  • 26 posts
12
A step in the right direction

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, 03 March 2015 - 08:55 AM.


#12
OFFLINE   Aciz

Aciz

    Member

  • Members
  • PipPip
  • 38 posts
7
A step in the right direction

 

 

* Config file "mapconfigs/uje_oldskool_sniper_np.cfg" was not found.

 

There's your problem. Check if you have saves the mapconfig in the right directory.



#13
OFFLINE   Tweek

Tweek

    Member

  • Members
  • PipPip
  • 26 posts
12
A step in the right direction

My spawnfixes and timelimits work on all the other mapconfigs I have saved in my map voting pool.



#14
OFFLINE   Tweek

Tweek

    Member

  • Members
  • PipPip
  • 26 posts
12
A step in the right direction

My problem has been fixed thanks to Mr.Martinez and DEDICATED HOSTING it seems Hellreturns advice was on the money. Me and my clan would like to give a Salute to all the advice and help from everyone. It is refreshing to see people get together and support each other. Many thanks to all!



#15
OFFLINE   Dragonji

Dragonji

    Advanced Member

  • Members
  • PipPipPipPip
  • 514 posts
142
On the road to fame
  • LocationPoland
If your server is hosted on *nix all config/mapscript names must contain only lowercase letters to make it work, even if .bsp mapnames contain uppercase letter. That's what was the issue most probably.

#16
OFFLINE   Tweek

Tweek

    Member

  • Members
  • PipPip
  • 26 posts
12
A step in the right direction

Yes In the end that was the problem as well. It' s crazy how the simple little things cause so much trouble.Hopefully this post will save someone a lot of trouble in the future.



#17
OFFLINE   Oxyzium

Oxyzium

    Regular Member

  • Banned
  • PipPipPip
  • 66 posts
5
A step in the right direction

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, 17 March 2015 - 02:34 PM.


#18
OFFLINE   Tweek

Tweek

    Member

  • Members
  • PipPip
  • 26 posts
12
A step in the right direction

Thank you sir I do appreciate the work and effort as well as the help.






0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users