Raised This Month: $51 Target: $400
 12% 

Menu Based Rules (1.5.1, Updated: 10/29/08)


Post New Thread Reply   
 
Thread Tools Display Modes
XARIUS
SourceMod Donor
Join Date: May 2008
Location: Atlanta, GA
Old 07-23-2008 , 11:43   Re: Menu Based Rules (Updated, v1.2, 7/23/08)
Reply With Quote #11

Updated to version 1.2. Probably the final version (minus bugfixes). Now works with GunGame, CSSDM and other mods which like to pop-up their own menus.
XARIUS is offline
darkranger
Senior Member
Join Date: Apr 2006
Location: dod_hinterland
Old 07-23-2008 , 16:26   Re: Menu Based Rules (Updated, v1.2, 7/23/08)
Reply With Quote #12

i have some problems with this script on DODS Orange box.

when i start the server and join the menu comes up. i say yes and its ok.
then i leave the server and reconnect the menu also comes up.
but...
when i leave the server and change map and then connect again, no menu is showing.

i have testet it serveral times and always the same. so what could be the problem?
darkranger is offline
XARIUS
SourceMod Donor
Join Date: May 2008
Location: Atlanta, GA
Old 07-23-2008 , 19:23   Re: Menu Based Rules (Updated, v1.2, 7/23/08)
Reply With Quote #13

Quote:
Originally Posted by darkranger View Post
i have some problems with this script on DODS Orange box.

when i start the server and join the menu comes up. i say yes and its ok.
then i leave the server and reconnect the menu also comes up.
but...
when i leave the server and change map and then connect again, no menu is showing.

i have testet it serveral times and always the same. so what could be the problem?
That is infact the intended behaviour currently.

At the end of the map, the plugin makes a cache of all the steam id's currently on the server. When the map changes and clients reconnect, it compares the connecting clients steam id's to those previously cached just before the map change.

I intentionally did not start caching steam id's on connect due to a few reasons (things like VERY long maps, servers that never change map etc..)

Sorry if this does not work the way you had hoped!

EDIT: After re-reading your post, I may have misunderstood. The squence of events is like so:

You connect to the server
You disconnect from the server
Change maps (thru console I assume)
Re-connect to server
No Menu?

X

Last edited by XARIUS; 07-23-2008 at 19:27.
XARIUS is offline
XARIUS
SourceMod Donor
Join Date: May 2008
Location: Atlanta, GA
Old 07-23-2008 , 19:30   Re: Menu Based Rules (Updated, v1.2, 7/23/08)
Reply With Quote #14

Downloading DOD:S to test with. I never tested against it, only CS:S & TF2

If I'm misunderstanding you, and you just want it to display on map change, you need to set:

sm_showrules_showonmapchange 1

That can go anywhere.. end of sourcemod.cfg, server.cfg etc..

EDIT: I setup a DOD:S test server and wasn't able to duplicate what you had described. I assume you were just talking about how the rules don't get displayed again (by default) on map change. To have the rules shown on every connect, including map change, just set the convar I listed above.

X

Last edited by XARIUS; 07-23-2008 at 20:13.
XARIUS is offline
darkranger
Senior Member
Join Date: Apr 2006
Location: dod_hinterland
Old 07-26-2008 , 11:10   Re: Menu Based Rules (Updated, v1.2, 7/23/08)
Reply With Quote #15

let me say it as you write above:

I connect and the menu comes up.
I disconnect.
then I re-connect menu also comes up.
I disconnect.
I change map on server through HLSW.
I re-connect. NO menu is showing.

after mapchange the menu NEVER comes up again..
i doesnt matter if i change 1 map or more.

EDIT:
seems to be running now:

sm_showrules_menutime 120
sm_showrules_showonjoin 1
sm_showrules_showtoadmins 0 <---- had forgotten to set this to "1" to see it..
sm_showrules_showonmapchange 1
sm_showrules_displayattempts 60
sm_showrules_displayfailurekick 1


sorry for my stupid question. had to look better next time.

but 1 question: the players are stored only at the end of the map. when the join next day, even if "sm_showrules_showonmapchange 0" ,the must agree again? is this right?

Last edited by darkranger; 07-26-2008 at 13:32.
darkranger is offline
XARIUS
SourceMod Donor
Join Date: May 2008
Location: Atlanta, GA
Old 07-26-2008 , 17:39   Re: Menu Based Rules (Updated, v1.2, 7/23/08)
Reply With Quote #16

Quote:
Originally Posted by darkranger View Post
but 1 question: the players are stored only at the end of the map. when the join next day, even if "sm_showrules_showonmapchange 0" ,the must agree again? is this right?
Correct, the steam id's are NOT stored in a file or anything permanant. It was written to be somewhat "Session" based. You come in, play for awhile, you only get prompted once. Leave and come back the next day, you will get prompted again.

X
XARIUS is offline
darkranger
Senior Member
Join Date: Apr 2006
Location: dod_hinterland
Old 07-27-2008 , 04:31   Re: Menu Based Rules (Updated, v1.2, 7/23/08)
Reply With Quote #17

thank you. and very good script..
darkranger is offline
XARIUS
SourceMod Donor
Join Date: May 2008
Location: Atlanta, GA
Old 07-27-2008 , 15:45   Re: Menu Based Rules (Updated, v1.2, 7/23/08)
Reply With Quote #18

Quote:
Originally Posted by darkranger View Post
thank you. and very good script..
You're welcome. Hope it works well for you
XARIUS is offline
imported_sparky
Member
Join Date: Dec 2004
Old 07-28-2008 , 16:56   Re: Menu Based Rules (Updated, v1.2, 7/23/08)
Reply With Quote #19

Is there anyway to keep the menu open till someone makes a choice???
__________________
Longisland Game Servers
www.ligs.us
imported_sparky is offline
XARIUS
SourceMod Donor
Join Date: May 2008
Location: Atlanta, GA
Old 07-28-2008 , 17:26   Re: Menu Based Rules (Updated, v1.2, 7/23/08)
Reply With Quote #20

Quote:
Originally Posted by imported_sparky View Post
Is there anyway to keep the menu open till someone makes a choice???
There is a lot of code in the plugin to handle various reasons a menu could be cancelled. Many other plugins that generate menus (such as gungame) cancel the rules menu. The plugin will automatically handle redisplaying the rules menu until they choose an option.

If you want to extend the time the menu stays open, modify the sm_showrules_menutime convar to whatever value you wish. There MUST be a value, putting 0 would probably error, or close the menu right away. By default, it's 2 minutes, or 120 seconds.
XARIUS is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 11:24.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode