Jump to content

Recommended Posts

Posted (edited)

Okay, so fifteen years on, I am finally tinkering with popmenus. (See: BadgeDRADIS.)

 

The 'locked' options are all but obsolete under Homecoming, since most pertain to having add-on content (earned or purchased) that is now bundled with the HC version. But the 'badges' option can still be useful.

 

I just can't make it work.

 

What's wrong with the following popmenu?

// Locked Item Test
Menu "LockTest"
{
Title "Locked Stuff"
	Option "Dance!" "em dance3"
	LockedOption
	{
		DisplayName "Cheer!"
		Command "em victory"
		Badge "KingsRowTour5: Smokey"
	}
}

 

I wrote it for an alt I knew did not have the Kings Row "Smokey" badge, logged in, sure enough that option was grayed out. Got the badge at risk of life, limb and debt for my level 19 (that's a joke, son)... and the option remains locked. Logged out and in, still locked. Got rid of the space...

Badge "KingsRowTour5:_Smokey"

...still locked.

 

Used the short form of the badge name...

Badge "Smokey"

...still locked.

 

What am I doing wrong, here?

 

 

(PS, yes, I restarted the game after every edit. Boy, popmenus are tedious to develop...)

 

 

Edited by Shenanigunner

UPDATED: v4.15 Technical Guide (post 27p7)... 154 pages of comprehensive and validated info on on the nuts and bolts!
ALSO:  GABS Bindfile  ·  WindowScaler  ·  Teleport Guide  ·  and City of Zeroes  all at  www.Shenanigunner.com

 
Posted (edited)

The syntax (referenced from https://hcwiki.cityofheroes.dev/wiki/Popmenu_(Slash_Command)) is:

 

Badge BadgeIdentifiers

 

No quotes needed. In your example, it would be:

 

Badge KingsRowTour5

 

If you need a comprehensive list of BadgeIdentifiers (also called badge tags) for all current badges, I have one available at this link:

 

https://forums.homecomingservers.com/topic/16441-badge-settitle-id-name-and-tag-master-list/

 

The HC Wiki settitle listing page also has an up-to-date list of the badge tags (in the BadgeGrant Tag column):

 

https://hcwiki.cityofheroes.dev/wiki/Settitle_(Slash_Command)/listing

Edited by AboveTheChemist
  • Thanks 1
Posted (edited)

Yeah, I have the wiki page and list and some of the other writeups at hand. As so often, this becomes a textbook example of how wiki info and Dev-minded writing is Complete. Wholly Informative... and either Wrong or Misleading. And why fifteen years in, I still persist in the effort to write docs that actually are complete, up to date and don't depend on " jest knowin' " a bunch of esoteric stuff. There are a lot of good writeups out there on a million aspects of the game... but often times the Folks Who Know aren't very good at being the Folks Who Teach. 🙂

 

Nothing in the wiki entry or badge name list says to use only the internal badge name, in this case KingsRowTour5 (without the in-game name Smokey). I guess it's another point you "just have to know."

 

(Quotes have nothing to do with it; I persistently recommend using quotes all the time, even around single words, for consistency and reliability.)

 

Thanks!

 

Edited by Shenanigunner

UPDATED: v4.15 Technical Guide (post 27p7)... 154 pages of comprehensive and validated info on on the nuts and bolts!
ALSO:  GABS Bindfile  ·  WindowScaler  ·  Teleport Guide  ·  and City of Zeroes  all at  www.Shenanigunner.com

 
Posted

And yep, that did it. Thanks again. Off to re-edit the Guide. 🙂

UPDATED: v4.15 Technical Guide (post 27p7)... 154 pages of comprehensive and validated info on on the nuts and bolts!
ALSO:  GABS Bindfile  ·  WindowScaler  ·  Teleport Guide  ·  and City of Zeroes  all at  www.Shenanigunner.com

 
Posted
13 minutes ago, Shenanigunner said:

Nothing in the wiki entry or badge name list says to use only the internal badge name, in this case KingsRowTour5 (without the in-game name Smokey). I guess it's another point you "just have to know."

 

(Quotes have nothing to do with it; I persistently recommend using quotes all the time, even around single words, for consistency and reliability.)

True, but I also don't see anything from either source that would lead me to believe that anything other than the badge tag would be required.

 

I agree and also recommend the liberal use of quotes. I've certainly erred on the side of using quotes in the many menus and bind files I have made. But, as I said earlier, they are not needed, even in cases where multiple badge tags are chained to create an 'OR' clause.

 

Glad you got everything working!

  • Thumbs Up 1
Posted
8 minutes ago, AboveTheChemist said:

True, but I also don't see anything from either source that would lead me to believe that anything other than the badge tag would be required.

 

Eh. I've been writing software and equipment docs too long to allow such passive assumptions to stand. The wiki entry (admittedly one of the esoteric and technical, and frankly not very useful any more to most players) is as terse as it can get, and the link to the text file of badge names doesn't even have column headers. If someone stumbling on this (even less useful) game feature sees a list like this (an actual snippet from the file):

 

Cruiserweight: Cruiserweight Champion
Crystallized: Crystallized
DarkAstoriaTour1: Dark Mystic
DarkAstoriaTour2: Seeker of the Unknown
DarkAstoriaTour3: Cairn Warder
DeadHead: Dead Head
Deathless: Deathless
DeathSurge: Electrician

 

...there's not really much that says you should only use the internal name before the colon... but NOT the colon, space or game-name.

 

Just sayin' this, like a lot of technical writeups by folks who "just know," tend to have invisible walls and cliffs that don't need to be there.

 

But all good now, and I don't think there are any other game tech areas I haven't already explored, sorted out and covered. Onward.

UPDATED: v4.15 Technical Guide (post 27p7)... 154 pages of comprehensive and validated info on on the nuts and bolts!
ALSO:  GABS Bindfile  ·  WindowScaler  ·  Teleport Guide  ·  and City of Zeroes  all at  www.Shenanigunner.com

 

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...