Raised This Month: $32 Target: $400
 8% 

Regarding SourceMod Menu's for Modifications.


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Skyrider
AMX Mod X Beta Tester
Join Date: May 2005
Location: Netherlands
Old 12-22-2007 , 12:36   Regarding SourceMod Menu's for Modifications.
Reply With Quote #1

I'm curious. In order for menu's to work so you can use sourcemod menu's for example ingame rather than usnig the ESC menu. What exactly do you have to add and in which files?

Example of what I am talking about:
http://www.fortress-forever.com/foru...ad.php?t=12059

This has been added in the mod (meaning, code has been added in HudLayout.res), but yet it doesn't work.. I am still getting the ESC menus when I used the admin menu of sourcemod. Any help out here? I really want to get the menu to work within Zombie Panic: Source. (new modification that soon will be released). All information is much appreciated.
__________________

Last edited by Skyrider; 12-22-2007 at 13:27.
Skyrider is offline
Send a message via AIM to Skyrider Send a message via MSN to Skyrider Send a message via Yahoo to Skyrider
BAILOPAN
Join Date: Jan 2004
Old 12-22-2007 , 13:41   Re: Regarding SourceMod Menu's for Modifications.
Reply With Quote #2

Open sourcemod/gamedata/core.games.txt and add an entry for your mod where you see this section:

Code:
	/**
	 * Which games support ShowMenu?
	 */
	"#default"
	{
		"#supported"
		{
			"game"		"cstrike"
The value should be the mod folder name.
__________________
egg
BAILOPAN is offline
Skyrider
AMX Mod X Beta Tester
Join Date: May 2005
Location: Netherlands
Old 12-24-2007 , 03:17   Re: Regarding SourceMod Menu's for Modifications.
Reply With Quote #3

Seems to be working. But when I press 1 (for player commands), nothing happens. 2 for server commands, and 3 for voting commands doesn't work either. Even though all my 1 to 0 keys are binded correctly. Any idea what might be the problem? Thanks to sslice for the info, menuselect 1, 2 or 3 through the console works fine.

EDIT:
Well, it seems I was wrong. 1 to 0 are binded correctly to the slots (1 to slot1, etc) and still they are not working. Any idea what might be the problem?

EDIT 2:
I also found out when I browse through the menu using the menuselect command in console, it works once.. But if I use it again to go to further in the menu, I heard a sound that you get when you go to another menu.. But in game it never went to another menu, it is stuck in the same menu.. Fancy helping out on this one as well?
__________________

Last edited by Skyrider; 12-24-2007 at 06:49.
Skyrider is offline
Send a message via AIM to Skyrider Send a message via MSN to Skyrider Send a message via Yahoo to Skyrider
KMFrog
Senior Member
Join Date: Oct 2007
Old 12-24-2007 , 07:35   Re: Regarding SourceMod Menu's for Modifications.
Reply With Quote #4

Menus are probably not supported by this mod.. or have not been tested at all (which seams to be the case with some other mods!)

I've run into this problem myself and the only thing you can do is revert to the esc menus. In my case it was all numbers apart from 0 working... so you could never close any menus..

Report it as a bug on the mod forums and they may be able to help
__________________
Was I helpful or not? Rate Me!
KMFrog is offline
Skyrider
AMX Mod X Beta Tester
Join Date: May 2005
Location: Netherlands
Old 12-24-2007 , 09:08   Re: Regarding SourceMod Menu's for Modifications.
Reply With Quote #5

Mod has not been released yet :p.
__________________
Skyrider is offline
Send a message via AIM to Skyrider Send a message via MSN to Skyrider Send a message via Yahoo to Skyrider
Travella
Junior Member
Join Date: Dec 2007
Old 12-29-2007 , 15:35   Re: Regarding SourceMod Menu's for Modifications.
Reply With Quote #6

its has now =)
www.zombiepanic.org
Travella is offline
berni
SourceMod Plugin Approver
Join Date: May 2007
Location: Austria
Old 12-31-2007 , 03:14   Re: Regarding SourceMod Menu's for Modifications.
Reply With Quote #7

Ahh that's nice.
The menu is fully working for me in halflife 2 deathmatch.
I just had to bind the last four number keys in the console. (7-0).

Any chance the sourcemod team can make something that it checks if the players has the cvar sm_enablemenu and then display that menu for him instead of the ESC menu ?

That would be awesome.

Last edited by berni; 12-31-2007 at 03:20.
berni is offline
BAILOPAN
Join Date: Jan 2004
Old 01-01-2008 , 13:56   Re: Regarding SourceMod Menu's for Modifications.
Reply With Quote #8

Unfortunately there is no way to do that currently, SourceMod's menu system requires binding a specific "style" across all clients. That is, you cannot have a menu that displays in style A to client 1 and style B to client 2.

It's a limitation derived from the fact that we tried to keep things as simple and optimized as possible. Changing it would require an overhaul of lots of code so I don't think we'd do it anytime soon.
__________________
egg
BAILOPAN is offline
Jezternz
Junior Member
Join Date: May 2008
Location: New Zealand - Auckland
Old 05-12-2008 , 05:40   Re: Regarding SourceMod Menu's for Modifications.
Reply With Quote #9

Okay. I did instructions above for Fistfull of frags mod.
Esc menu no longer shows. But the menu apears as a tiny box.
and the stats shows as really light, hard to read for some reason:
[IMG]http://img170.**************/img170/3049/fofsmerrorws6.jpg[/IMG]
Any ideas?
Jezternz is offline
Send a message via MSN to Jezternz Send a message via Skype™ to Jezternz
BAILOPAN
Join Date: Jan 2004
Old 05-13-2008 , 22:03   Re: Regarding SourceMod Menu's for Modifications.
Reply With Quote #10

You'll have to ask the folks who develop the mod to implement ShowMenu properly. Which shouldn't be too hard as it comes with the SDK, though it's their decision whether to support it or not.
__________________
egg
BAILOPAN 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 23:48.


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