The magic of the POPMENU command


Aggelakis

 

Posted

[ QUOTE ]
it's the texts that was tripping me up, it seems.

[/ QUOTE ]
Same here. The OP just shows \text\, but the wiki entry Zombie_Man posted has the correct \texts\. After I found that, it works like a charm. Got all the teleporters, all the sprints, and all the accolades on popmenu buttons. Pretty groovy stuff. Masterminds next. Things look so much cleaner


 

Posted

OMG this is so cool and useful!
Does that mean it's going to get nerfed in the next issue!?


We don' need no stinkin' signatures!

 

Posted

I think I see a popupmenu in my near future using
Target_Custom_Next

Thanks.

BC


 

Posted

[ QUOTE ]
I think I see a popupmenu in my near future using
Target_Custom_Next

Thanks.

BC

[/ QUOTE ]

Now that is a great idea for my tankers/debuffers. A popup menu with the AV/Monster names for the Task Forces I normally run.

Gotta make this tonight!


Tech Support Rule #1 - They will lie to you. Usually intentionally.

 

Posted

Hmmm... I went home and started to work on this and it works for some slash commands but others seem to bomb.

In particular binding or loading bind files. Below is what I tried. It claims the bind files are loaded when the appropriate menu item is selected, but the current key bind is not changed.

// POPMENU File for Main Selection pop-up menu
//
Menu "Main"
{
Title "Main"
Divider
Option "ITF &1" "bindloadfile c:\binds\itfmenu.txt"
Option "STF 1 &2" "bindloadfile c:\binds\stf1menu.txt"
Option "STF 2 &3" "bindloadfile c:\binds\stf2menu.txt"
Option "STF 3 &4" "bindloadfile c:\binds\stf3menu.txt"
}

For example itfmenu.txt contains:

T "popmenu ITF"

Menu ITF certainly exists and works, because I can manually bind it to T and it functions properly as well as manually load itfmenu.txt and have it work.

Using the Bind command in the menu structure does not work either. Or at least I have been unable to make it work.

My thought here was to make a comprehensive list of Task Force related menus that target enemies or display information in the chat window. I would have one main menu structure to rebind the T key to the particular sub menu for each TF with a return menu on each sub menu.


Tech Support Rule #1 - They will lie to you. Usually intentionally.

 

Posted

I'm pretty sure that's not the problem. The ITF menu has "ITF" in both places and it works fine other than the portion of the menu where it binds back to the main menu.

I should have added that I tried it on multiple menus and couldn't get anything that loads a bind file or a key bind to work. Still not giving up on this idea, but for now it looks broken unless someone has a gem of an idea or comes up with new info.


Tech Support Rule #1 - They will lie to you. Usually intentionally.

 

Posted

There's a good idea. I'll try that tonight after work.

Edit: Fail yet again. Binds still do not function after loading. Again chat states the file loaded properly, testing and saving the binds out to a temp file show that it did not.


Tech Support Rule #1 - They will lie to you. Usually intentionally.

 

Posted

[ QUOTE ]
This is the single best QOL improvement EVER.

[/ QUOTE ]And it's been available to us for almost that long, we just didn't know it


http://www.fimfiction.net/story/36641/My-Little-Exalt

 

Posted

[ QUOTE ]
[ QUOTE ]
This is the single best QOL improvement EVER.

[/ QUOTE ]And it's been available to us for almost that long, we just didn't know it

[/ QUOTE ]

Woops! This is a fabulous QOL improvement, no doubt.

However, I posted this in the wrong thread!

I meant to say that in the How to silence specific game sounds thread.

Which makes my note on Super Speed make sense.

Running over there to make my post.


 

Posted

[ QUOTE ]
Woops! This is a fabulous QOL improvement, no doubt.

However, I posted this in the wrong thread!

I meant to say that in the How to silence specific game sounds thread.

Which makes my note on Super Speed make sense.

Running over there to make my post.

[/ QUOTE ]
Bliss please don't link a 250+ post thread as a link. If you are talking about a single post, link to that, otherwise a simple link to the start of the thread should suffice.

http://boards.cityofheroes.com/showflat.php?Cat=0&Number=3796307&page=0&fpart=all&vc=1

Highlighted the problem section of the link.

Edit:
The reason for posting this instead of sending a PM was to let others know that there was a 250+ post thread beyond the link above.




Triumph: White Succubus: 50 Ill/Emp/PF Snow Globe: 50 Ice/FF/Ice Strobe: 50 PB Shi Otomi: 50 Ninja/Ninjistu/GW Stalker My other characters

 

Posted

[ QUOTE ]
[ QUOTE ]
[ QUOTE ]
[ QUOTE ]
This is the single best QOL improvement EVER.

[/ QUOTE ]And it's been available to us for almost that long, we just didn't know it

[/ QUOTE ]

Woops! This is a fabulous QOL improvement, no doubt.

However, I posted this in the wrong thread!

I meant to say that in the How to silence specific game sounds thread.

Which makes my note on Super Speed make sense.

Running over there to make my post.

[/ QUOTE ]
Bliss please don't link a 250+ post thread as a link. If you are talking about a single post, link to that, otherwise a simple link to the start of the thread should suffice.

http://boards.cityofheroes.com/showflat.php?Cat=0&Number=3796307&page=0&fpart=all&vc=1

Highlighted the problem section of the link.

[/ QUOTE ]

Snow Globe, please don't take an off topic post even further off topic. Take it to PM's. That's what they're for.


Tech Support Rule #1 - They will lie to you. Usually intentionally.

 

Posted

[ QUOTE ]
For anyone who wants them, I made a RAR file with MM Primary Menus. Just download it, and extract it. If you don't have the folders that are needed to make Custom Menus work, this should make them for you (provided I zip'd it right...).

[/ QUOTE ]

Problem with the Robotics menu in your file:
//Build Bots To BASH!!
//
Menu "Robotics"
{
Title "Building Bots"
Option "&1 Battle Drones" "powexec_name Battle Drones"
Option "&2 Protector Bots" "powexec_name Protector Bots"
Option "&3 Assault Bot" "powexec_name Assault Bot"
Divider
Title "Upgrading Bots"
Option "&4 Equip Robot" "powexec_name Upgrading Bots"
Option "&5 Upgrade Robot" "powexec_name Upgrade Robot"
}

Should be:
powexec_name Equip Robot




Triumph: White Succubus: 50 Ill/Emp/PF Snow Globe: 50 Ice/FF/Ice Strobe: 50 PB Shi Otomi: 50 Ninja/Ninjistu/GW Stalker My other characters

 

Posted

Awesome guide! Thanks.


 

Posted

Looking forward to messing with this at some point.

Could those posters that have made their own menus please post screenshots with the files?

A picture is worth a thousand lines of code.

OP Question: I see in the guide where you have the pic of the robotics mm popmenu. Are the numbers alternate triggers that may be used instead of clicking on the item in the menu? If so, can you use any of the triggers that CoH recognizes in popmenu files?

I play almost exclusively with keyboard. Thinking of doing something like using a keybind to pop a menu, then pressing a trigger to have it use the command within the menu.

Thanks!


@Cannonfodder
Victory: The Hall of Justice Virtue: The Hall of Doom
Slash Commands, Binds and Macros, Oh My!, CoV Stat Booster Accolade Cheat-Sheet, Don't Let Me Make Money Off Your Ignorance!!!, Day Job Acquisition Guide, "Tricky" TA

 

Posted

The white letters/numbers are hotkeys. You can use any character once per menu.

Menu "Example"
{
Option "&1 Do something" "something"
Option "&2 Something else" "Something else"
}

If the "/popmenu example" is up you can select which thing on pressing 1 or 2.




Triumph: White Succubus: 50 Ill/Emp/PF Snow Globe: 50 Ice/FF/Ice Strobe: 50 PB Shi Otomi: 50 Ninja/Ninjistu/GW Stalker My other characters

 

Posted

[ QUOTE ]
Looking forward to messing with this at some point.

Could those posters that have made their own menus please post screenshots with the files?

A picture is worth a thousand lines of code.

[/ QUOTE ]

I did post a pic with for my Gladiator Menu. I don't have one for my MM Pets menu, but I'll see about getting one.




[ ProTip: The banner is a link to art refs!! | The Khellection | The HBAS Repository | Brute Guides (4/16/10) | How To Post An Image - A Quick Guide ]
Biggest Troll on the forums? I'll give you a hint:

 

Posted

[ QUOTE ]
This is great! And, you can make a macro, or bind it to a key. I'm now using TILDE "popmenu [MM_MENU]" for my Masterminds. I have a seperate binds file for each character, so I just went into my various bind files my MMs, and put the file for their Primary where [MM_MENU] is.

For anyone who wants them, I made a RAR file with MM Primary Menus. Just download it, and extract it. If you don't have the folders that are needed to make Custom Menus work, this should make them for you (provided I zip'd it right...).

Contents:
CrabPets.mnu - 1 Serving of Arachnos Crab Soldier Pets PopMenu.
Mercs.mnu - 1 Serving of Mercenaries PopMenu.
Ninjas.mnu - 1 Serving of Ninjas PopMenu. No Pirates.
Robotics.mnu - 1 Serving of Bots PopMenu.
Thugs.mnu - 1 Serving of Thugs PopMenu. Includes Bonus Serving of Gang War!
Zombies.mnu - 1 Serving Of Zombies PopMenu. Includes Bonus Serving of Soul Extraction!

I've set them up as [NUMBER] [PET_SUMMON], with a divider, then [NUMER] [PET_UPGRADE], so that it looks uniform.

Happy Masterminding!

[/ QUOTE ]
I've made some modifications... You can grab them here.

Improvements:
* Added Bodyguard option.
* Added dismiss options for All and each type of pet.
* Added menu for each type of pet.
* Added an automatic macro creation bind file for each power set. These bind files create 4 macros in tray 8: one for the set in general, and one for each of the three tiers of pets.

Use:
The correct directory structure should be in the archive, so all you should have to do is extract to the City of Heroes folder.

In game to load the macros:
Robotics - /bindloadfile MMBots.txt
Thugs - /bindloadfile MMThugs.txt
Ninjas - /bindloadfile MMNinjas.txt
Mercs - /bindloadfile MMMercs.txt
Zombies - /bindloadfile MMZombies.txt

Additional:

Costume Changes:
<font class="small">Code:[/color]<hr /><pre>Menu "Cost&amp;ume Changes"
{
Menu "&amp;1 Backflip"
{
Option "Costume &amp;1" "cc_e 0 CCBackflip"
Option "Costume &amp;2" "cc_e 1 CCBackflip"
Option "Costume &amp;3" "cc_e 2 CCBackflip"
Option "Costume &amp;4" "cc_e 3 CCBackflip"
Option "Costume &amp;5" "cc_e 4 CCBackflip"
}
Menu "&amp;2 Salute"
{
Option "Costume &amp;1" "cc_e 0 CCSalute"
Option "Costume &amp;2" "cc_e 1 CCSalute"
Option "Costume &amp;3" "cc_e 2 CCSalute"
Option "Costume &amp;4" "cc_e 3 CCSalute"
Option "Costume &amp;5" "cc_e 4 CCSalute"
}
Menu "&amp;3 Howl"
{
Option "Costume &amp;1" "cc_e 0 CCHowl"
Option "Costume &amp;2" "cc_e 1 CCHowl"
Option "Costume &amp;3" "cc_e 2 CCHowl"
Option "Costume &amp;4" "cc_e 3 CCHowl"
Option "Costume &amp;5" "cc_e 4 CCHowl"
}
Menu "&amp;4 Evil Laugh"
{
Option "Costume &amp;1" "cc_e 0 CCEvilLaugh"
Option "Costume &amp;2" "cc_e 1 CCEvilLaugh"
Option "Costume &amp;3" "cc_e 2 CCEvilLaugh"
Option "Costume &amp;4" "cc_e 3 CCEvilLaugh"
Option "Costume &amp;5" "cc_e 4 CCEvilLaugh"
}
Menu "&amp;5 Peacebringer"
{
Option "Costume &amp;1" "cc_e 0 CCPeacebringer"
Option "Costume &amp;2" "cc_e 1 CCPeacebringer"
Option "Costume &amp;3" "cc_e 2 CCPeacebringer"
Option "Costume &amp;4" "cc_e 3 CCPeacebringer"
Option "Costume &amp;5" "cc_e 4 CCPeacebringer"
}
Menu "&amp;6 Warshade"
{
Option "Costume &amp;1" "cc_e 0 CCWarshade"
Option "Costume &amp;2" "cc_e 1 CCWarshade"
Option "Costume &amp;3" "cc_e 2 CCWarshade"
Option "Costume &amp;4" "cc_e 3 CCWarshade"
Option "Costume &amp;5" "cc_e 4 CCWarshade"
}
Menu "&amp;7 Vanguard Sigil"
{
Option "Costume &amp;1" "cc_e 0 CCVanguardSigil"
Option "Costume &amp;2" "cc_e 1 CCVanguardSigil"
Option "Costume &amp;3" "cc_e 2 CCVanguardSigil"
Option "Costume &amp;4" "cc_e 3 CCVanguardSigil"
Option "Costume &amp;5" "cc_e 4 CCVanguardSigil"
}
Divider
Menu "&amp;Cast"
{
Option "Costume &amp;1" "cc_e 0 ccCast"
Option "Costume &amp;2" "cc_e 1 ccCast"
Option "Costume &amp;3" "cc_e 2 ccCast"
Option "Costume &amp;4" "cc_e 3 ccCast"
Option "Costume &amp;5" "cc_e 4 ccCast"
}
Menu "&amp;Lightning"
{
Option "Costume &amp;1" "cc_e 0 cclightning"
Option "Costume &amp;2" "cc_e 1 cclightning"
Option "Costume &amp;3" "cc_e 2 cclightning"
Option "Costume &amp;4" "cc_e 3 cclightning"
Option "Costume &amp;5" "cc_e 4 cclightning"
}
Menu "&amp;Presto Chango"
{
Option "Costume &amp;1" "cc_e 0 ccPrestoChango"
Option "Costume &amp;2" "cc_e 1 ccPrestoChango"
Option "Costume &amp;3" "cc_e 2 ccPrestoChango"
Option "Costume &amp;4" "cc_e 3 ccPrestoChango"
Option "Costume &amp;5" "cc_e 4 ccPrestoChango"
}
Menu "&amp;Spin"
{
Option "Costume &amp;1" "cc_e 0 ccSpin"
Option "Costume &amp;2" "cc_e 1 ccSpin"
Option "Costume &amp;3" "cc_e 2 ccSpin"
Option "Costume &amp;4" "cc_e 3 ccSpin"
Option "Costume &amp;5" "cc_e 4 ccSpin"
}
}</pre><hr />




Triumph: White Succubus: 50 Ill/Emp/PF Snow Globe: 50 Ice/FF/Ice Strobe: 50 PB Shi Otomi: 50 Ninja/Ninjistu/GW Stalker My other characters

 

Posted

Quote:
OP Question: I see in the guide where you have the pic of the robotics mm popmenu. Are the numbers alternate triggers that may be used instead of clicking on the item in the menu? If so, can you use any of the triggers that CoH recognizes in popmenu files?

I play almost exclusively with keyboard. Thinking of doing something like using a keybind to pop a menu, then pressing a trigger to have it use the command within the menu.

Thanks!
Quote:
The white letters/numbers are hotkeys. You can use any character once per menu.

Menu "Example"
{
Option "&1 Do something" "something"
Option "&2 Something else" "Something else"
}

If the "/popmenu example" is up you can select which thing on pressing 1 or 2.
Exactly! You can pick whatever you want as the Hotkey by using the character you want and putting a & in front of it. You should also be able to use hotkeys for submenus as well so you could have multiple levels of menus accessible by a keybind and then just hotkey through the submenus until you get to the power you want.

Unfortunately, it looks like "&1" and other number hotkeys only work for the top row numbers on the keyboard and NOT the number pad numbers. Anyone figured out how to use the number pad numbers for the hotkeys?


 

Posted

[ QUOTE ]
OK, how about placing the bind files into the main CoH folder, so that it's just bindloadfile itfmenu.txt instead of bindloadfile c:\binds\itfmenu.txt?

[/ QUOTE ]
After playing with POPMENU and adding a DATA folder into my COH folder structure, I've noticed that the default folder for bind files (saving or loading) is the DATA folder (if it exists), not the main COH folder. On my computer, I've relocated all my bind files to "C:\Games\COH\Data" and I can load them just by typing BINDLOADFILE HERO1BINDS.TXT.

[ QUOTE ]
Edit: Fail yet again. Binds still do not function after loading. Again chat states the file loaded properly, testing and saving the binds out to a temp file show that it did not.

[/ QUOTE ]
I tried a very simple menu with a BINDLOADFILE command also and was able to get it to work, sort of. Oddly though, the FIRST time I loaded COH after creating the menu file and the bind file, I ran the menu and the bound key did NOT work. After exiting and restarting COH another time the bound key seemed to work like it should have. I unbound the key and then tried the POPMENU-loaded Bind file again and got the same results: Key did not work but did AFTER I exited and restarted COH.

It appears that if you use a BINDLOADFILE command in a menu then the bound keys will NOT take effect until after you exit and restart COH. Unfortunately, that's probably not going to work for what you had in mind.

Also unfortunately, the POPMENU command is somewhat unsupported so we're at the mercy of the UI as it is now unless we can snare a developer into helping out "off the record".

Also, don't forget that you cannot nest quotes in a Menu. That means that the BIND command won't often work for anything complicated in a menu since the bind command requires quotes around many command strings.

With the flexibility of the Menu structure though, you should be able to just make a complicated menu containing all the commands you want and then just activate the proper one using the POPMENU command to load the .mnu file for the right taskforce.


 

Posted

[ QUOTE ]
After playing with POPMENU and adding a DATA folder into my COH folder structure, I've noticed that the default folder for bind files (saving or loading) is the DATA folder (if it exists), not the main COH folder. On my computer, I've relocated all my bind files to "C:\Games\COH\Data" and I can load them just by typing BINDLOADFILE HERO1BINDS.TXT.

[/ QUOTE ]
That is good to know. I've had 2 dozen various bindfiles sitting in my root C:\ for the past 5 years now and *never* liked them there, but the idea of having to type out the folder structure to make them load wasn't something I wanted to do.

So this saves me 3 key presses AND cleans up my root directory


I've already forgotten about most of you