AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   General (https://forums.alliedmods.net/forumdisplay.php?f=58)
-   -   Regarding SourceMod Menu's for Modifications. (https://forums.alliedmods.net/showthread.php?t=64718)

Skyrider 12-22-2007 12:36

Regarding SourceMod Menu's for Modifications.
 
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.

BAILOPAN 12-22-2007 13:41

Re: Regarding SourceMod Menu's for Modifications.
 
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.

Skyrider 12-24-2007 03:17

Re: Regarding SourceMod Menu's for Modifications.
 
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?

KMFrog 12-24-2007 07:35

Re: Regarding SourceMod Menu's for Modifications.
 
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

Skyrider 12-24-2007 09:08

Re: Regarding SourceMod Menu's for Modifications.
 
Mod has not been released yet :p.

Travella 12-29-2007 15:35

Re: Regarding SourceMod Menu's for Modifications.
 
its has now =)
www.zombiepanic.org

berni 12-31-2007 03:14

Re: Regarding SourceMod Menu's for Modifications.
 
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 ? :o

That would be awesome.

BAILOPAN 01-01-2008 13:56

Re: Regarding SourceMod Menu's for Modifications.
 
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.

Jezternz 05-12-2008 05:40

Re: Regarding SourceMod Menu's for Modifications.
 
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?

BAILOPAN 05-13-2008 22:03

Re: Regarding SourceMod Menu's for Modifications.
 
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.


All times are GMT -4. The time now is 07:14.

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