thankyou
Donate to the B3 fund!

"even a small donation helps!"
Donate with PayPal!
The creator of these plugins has not shown activity in a while. Posting in this board may not result in a fast reply or a reply at all. [ Read the full Support Disclaimer here ]
Most of the plugins here are made by B3 users and the authors may not visit frequently. If you need support for plugins or if questions remain unanswered, you will have to contact the author directly. Read the full Support Disclaimer here

NOTE: Do not attach plugins to your forumtopics! Attachements are periodically removed by maintenance tasks. Upload your plugins to our Downloads section instead!

Author Topic: Map specific rules  (Read 1689 times)

Offline JackOfAllTrades

  • Jr. Member
  • **
  • Posts: 16
Map specific rules
« on: February 16, 2015, 01:54:34 PM »
Hi all,

I've been looking for a way to make map specific rules.
Antinoob seems like a perfect choice for this, the only downside is.. I have no clue how ;-)

First of, lets start with my goal;
For our WaW server, we have certain map rules;
for example on dome, we only allow shotguns, while on other another map makin, we only allow bolt action.
I can see in the various examples on this forum, it's no problem to make a weapon rule for all maps, but what if I want it map specific?

Any help would be greatly appreciated!

Offline MordyT

  • Support Hero
  • Hero Member
  • *
  • Posts: 3644
  • Over $300 Donated to B3!
    • MordyT
Re: Map specific rules
« Reply #1 on: February 16, 2015, 04:22:19 PM »
I don't think the plugin can do this. It can however not use rules for maps defined, but I don't think natively it can hold multiple rule sets.

In the past, I think people have (done all of this)...

1) Use multiple copies of the plugin (some editing required so they don't conflict)
2) Set each copy to use map specific rules
3) when that maps loads, only that copy is actually used.
Help will be given to those with a b3.log

If drop off the map it is due to RL becoming busy :)

System: Python 2.7.3 - Deb 7 - B3 Source Code - 128MB RAM box (rented at $5 a year) - remote MySQL - Remote Web Services

Offline JackOfAllTrades

  • Jr. Member
  • **
  • Posts: 16
Re: Map specific rules
« Reply #2 on: February 16, 2015, 04:50:19 PM »
Thanks for the quick response!
I was affraid I would receive this answer. couldn't find an if map = option :-)

I'll try it with multiple instances.

Online 82ndAB.Bravo17

  • Dev. Team
  • Hero Member
  • *
  • Posts: 2503
Re: Map specific rules
« Reply #3 on: February 17, 2015, 05:27:28 AM »
Do you want the rules to be enforced, or just make sure players know what they are?

If the latter I can see if I can find a plugin that I started writing a coupe of years back, but not sure how far it got.

Offline JackOfAllTrades

  • Jr. Member
  • **
  • Posts: 16
Re: Map specific rules
« Reply #4 on: February 18, 2015, 02:49:28 PM »
My goal is to enforce them (warn or kick) and also a message for specific maps.
Does anybody have a hint where I can find a weapon list for WaW. My google skills seem to fail me ;-)
« Last Edit: February 18, 2015, 03:06:25 PM by JackOfAllTrades »

Offline JackOfAllTrades

  • Jr. Member
  • **
  • Posts: 16
Re: Map specific rules
« Reply #5 on: February 18, 2015, 03:23:20 PM »
Code: [Select]
150218 15:14:48	VERBOSE	'Queueing event Game Round Start : <b3.game.Game object at 0x039E6B50>'
150218 15:14:48 VERBOSE 'Parsing event: Game Round Start: AntinoobPlugin'
150218 15:14:48 DEBUG 'AntinoobPlugin: New Map: mp_dome'
150218 15:14:48 DEBUG 'AntinoobPlugin: ^3 No nades, airstrike, tubes or heli ^5first 5 seconds of the round!!!'
150218 15:14:48 VERBOSE "RCON sending (173.199.79.5:28960) 'say ^0(^2b3^0)^7: ^3 No nades, airstrike, tubes or heli ^5first 5'"
150218 15:14:48 DEBUG "AntinoobPlugin: ^3 Please, No marty/last stand, GL's or RPG's !!!"
150218 15:14:48 VERBOSE 'RCON: more data to read in socket'
150218 15:14:48 VERBOSE 'RCON: more data to read in socket'
150218 15:14:48 VERBOSE 'RCON: more data to read in socket'
150218 15:14:48 VERBOSE 'RCON: more data to read in socket'
150218 15:14:48 VERBOSE 'RCON: more data to read in socket'
150218 15:14:48 VERBOSE 'RCON: more data to read in socket'
150218 15:14:48 VERBOSE 'RCON: more data to read in socket'
150218 15:14:48 VERBOSE 'RCON: more data to read in socket'
150218 15:14:48 VERBOSE 'RCON: more data to read in socket'
150218 15:14:48 VERBOSE 'RCON: more data to read in socket'
150218 15:14:48 VERBOSE 'RCON: more data to read in socket'
150218 15:14:48 VERBOSE 'RCON: more data to read in socket'
150218 15:14:48 VERBOSE 'RCON: more data to read in socket'
150218 15:14:48 VERBOSE 'RCON: more data to read in socket'
150218 15:14:48 VERBOSE 'RCON: more data to read in socket'
150218 15:14:48 VERBOSE 'RCON: more data to read in socket'
150218 15:14:48 VERBOSE 'RCON: more data to read in socket'
150218 15:14:49 VERBOSE "RCON sending (173.199.79.5:28960) 'say ^3>^5seconds of the round!!!'"
150218 15:14:50 VERBOSE 'RCON sending (173.199.79.5:28960) "say ^0(^2b3^0)^7: ^3 Please, No marty/last stand, GL\'s or RPG\'s !!!"'
150218 15:14:54 DEBUG 'AntinoobPlugin: ^3 5 seconds passed - ^3all weapons unlocked!!!'
150218 15:14:54 VERBOSE "RCON sending (173.199.79.5:28960) 'say ^0(^2b3^0)^7: ^3 5 seconds passed - ^3all weapons unlocked!!!'"
This Is what I get in the b3 log (the only thing I added within the antinoob xml is the map name (mp_dome).
No message showed up. (b3 started 3 minutes before).

Offline MordyT

  • Support Hero
  • Hero Member
  • *
  • Posts: 3644
  • Over $300 Donated to B3!
    • MordyT
Re: Map specific rules
« Reply #6 on: February 18, 2015, 04:23:51 PM »
Code: [Select]
150218 15:14:48 VERBOSE 'Queueing event Game Round Start : ' 150218 15:14:48 VERBOSE 'Parsing event: Game Round Start: AntinoobPlugin' 150218 15:14:48 DEBUG 'AntinoobPlugin: New Map: mp_dome' 150218 15:14:48 DEBUG 'AntinoobPlugin: ^3 No nades, airstrike, tubes or heli ^5first 5 seconds of the round!!!' 150218 15:14:48 VERBOSE "RCON sending (173.199.79.5:28960) 'say ^0(^2b3^0)^7: ^3 No nades, airstrike, tubes or heli ^5first 5'" 150218 15:14:48 DEBUG "AntinoobPlugin: ^3 Please, No marty/last stand, GL's or RPG's !!!" 150218 15:14:48 VERBOSE 'RCON: more data to read in socket' 150218 15:14:48 VERBOSE 'RCON: more data to read in socket' 150218 15:14:48 VERBOSE 'RCON: more data to read in socket' 150218 15:14:48 VERBOSE 'RCON: more data to read in socket' 150218 15:14:48 VERBOSE 'RCON: more data to read in socket' 150218 15:14:48 VERBOSE 'RCON: more data to read in socket' 150218 15:14:48 VERBOSE 'RCON: more data to read in socket' 150218 15:14:48 VERBOSE 'RCON: more data to read in socket' 150218 15:14:48 VERBOSE 'RCON: more data to read in socket' 150218 15:14:48 VERBOSE 'RCON: more data to read in socket' 150218 15:14:48 VERBOSE 'RCON: more data to read in socket' 150218 15:14:48 VERBOSE 'RCON: more data to read in socket' 150218 15:14:48 VERBOSE 'RCON: more data to read in socket' 150218 15:14:48 VERBOSE 'RCON: more data to read in socket' 150218 15:14:48 VERBOSE 'RCON: more data to read in socket' 150218 15:14:48 VERBOSE 'RCON: more data to read in socket' 150218 15:14:48 VERBOSE 'RCON: more data to read in socket' 150218 15:14:49 VERBOSE "RCON sending (173.199.79.5:28960) 'say ^3>^5seconds of the round!!!'" 150218 15:14:50 VERBOSE 'RCON sending (173.199.79.5:28960) "say ^0(^2b3^0)^7: ^3 Please, No marty/last stand, GL\'s or RPG\'s !!!"' 150218 15:14:54 DEBUG 'AntinoobPlugin: ^3 5 seconds passed - ^3all weapons unlocked!!!' 150218 15:14:54 VERBOSE "RCON sending (173.199.79.5:28960) 'say ^0(^2b3^0)^7: ^3 5 seconds passed - ^3all weapons unlocked!!!'" 
This Is what I get in the b3 log (the only thing I added within the antinoob xml is the map name (mp_dome). No message showed up. (b3 started 3 minutes before).
First, in the b3.xml, turn the log level to 8 for better troubleshooting. Also you can join the server, hit someone with the weapons you want to ban, and they will show their names in the log.

next, what do you mean: No message showed up. What messages did you expect to show up?
Help will be given to those with a b3.log

If drop off the map it is due to RL becoming busy :)

System: Python 2.7.3 - Deb 7 - B3 Source Code - 128MB RAM box (rented at $5 a year) - remote MySQL - Remote Web Services

Offline JackOfAllTrades

  • Jr. Member
  • **
  • Posts: 16
Re: Map specific rules
« Reply #7 on: February 18, 2015, 06:13:22 PM »
Smart advise for the weapon list ;-) thnx!
The message i wanted and expected to see is the default; 
Code: [Select]
	<settings name="settings">
<set name="warn_duration">5</set>
<set name="warning_rule">rule2</set>
<set name="banned_warning_rule">rule2</set>
<set name="unlock_message">^3 %s seconds passed - ^3all weapons unlocked!!!</set>
<set name="info_message">^3 No nades, airstrike, tubes or heli ^5first %s seconds of the round!!!</set>
<set name="bannedonly_info_message">^3 Please, No second chance, GL's or RPG's !!!</set>
</settings>
 The message I received in the b3 log; more data to read in socket.. does that ring a bell?

Offline MordyT

  • Support Hero
  • Hero Member
  • *
  • Posts: 3644
  • Over $300 Donated to B3!
    • MordyT
Re: Map specific rules
« Reply #8 on: February 19, 2015, 01:59:28 AM »
Smart advise for the weapon list ;-) thnx! The message i wanted and expected to see is the default;
Code: [Select]
  5 rule2 rule2 ^3 %s seconds passed - ^3all weapons unlocked!!! ^3 No nades, airstrike, tubes or heli ^5first %s seconds of the round!!! ^3 Please, No second chance, GL's or RPG's !!! 
The message I received in the b3 log; more data to read in socket.. does that ring a bell?
I think you misunderstand what those settings are for.
I could be wrong, but IIRC, it should be like: (i wrote this a long time ago)
Read the comments I left to understand how the settings are used! Don't use this xml file...

Code: [Select]
<!-- Comments by MordyT-->
<!-- Plesae read the README for config help -->
<!-- There are 2 main modes here: timed and all map. In short, the timed one is if you only want the weapons to be punished during the first x seconds (see warn_duration) and the all map one is if you want to punish regardless of how long it has been since the map started. You can have both at the same time if you want.-->
<!-- You will need the names of the weapons as they appear in the games_mp.log -->

<configuration plugin="antinoob">
<settings name="settings">
<set name="warn_duration">10</set>
<!-- The amount of time to watch for weapons. If you want to only ban RPG for the first 10 seconds, set this to 10, then set RPG in the timed_kick below. info_message is sent when this time starts and unlock_message gets sent when time is up. -->
<set name="warning_rule">rule1</set>
<!-- What rule should we use when warning people if weapon is warned/banned below? rule2 is in the admin plugin -->
<set name="banned_warning_rule">rule1</set>
<!-- What rule should we use when warning people if weapon is banned below -->
<set name="unlock_message">^3 %s seconds passed - ^3all weapons unlocked!!!</set>
<!-- If using this in "timed" mode, what should the message say when the time is up? See README -->
<set name="info_message">^3rule1</set>
<!-- If using this in timed mode, the above warning will be sent to the server to let people know about restrictions? -->
<set name="bannedonly_info_message">^3 Please, No marty/last stand, GL's or RPG's on players !!!</set>
<!-- What message should be sent to the server at round start? -->
<!--
IMPORTANT - if you don't want a message to sent to the server, just delete the message, not the set_name!
Removing the set name as well will cause the plugin NOT to work and B3 WON'T start!
-->
</settings>

<!-- If you want a map to be excluded from the timed settings, enter it's name here (and uncomment it). -->
<maps>

<!-- EXAMPLE: <map name="mp_citystreets">15</map> -->
</maps>


<!-- Enter the weapon names as they appear in the log file here to have warnings issued (timed) -->
<weapon_timed_warn>
<!-- EXAMPLE: <weapon mod="MOD_GRENADE_SPLASH"></weapon> -->
</weapon_timed_warn>

<!-- Enter the weapon names as they appear in the log file here to have kicks issued (timed) -->
<weapon_timed_kick>
<!-- EXAMPLE: <weapon mod="MOD_GRENADE_SPLASH"></weapon> -->
</weapon_timed_kick>

<!-- Enter the weapon names as they appear in the log file here to have kicks issued (un-timed) -->
<weapon_banned_kick>
<!-- EXAMPLE: <weapon mod="MOD_GRENADE_SPLASH"></weapon> -->
</weapon_banned_kick>

<!-- Enter the weapon names as they appear in the log file here to have warnings issued un-timed) -->
<weapon_banned_warn>
<!-- EXAMPLE (RPG for CoD4): <weapon mod="">rpg_mp</weapon> -->
</weapon_banned_warn>
</configuration>
« Last Edit: February 19, 2015, 02:01:39 AM by MordyT »
Help will be given to those with a b3.log

If drop off the map it is due to RL becoming busy :)

System: Python 2.7.3 - Deb 7 - B3 Source Code - 128MB RAM box (rented at $5 a year) - remote MySQL - Remote Web Services

 


Rate this page +1 at Google Search

anything