Habitica: Hall of Heroes needs better link to item paths

Created on 4 Oct 2016  Â·  11Comments  Â·  Source: HabitRPG/habitica

For admins, the Hall of Heroes used to contain a filtered link to all possible item paths, which we could use as a reference when awarding items to users. However, now it has changed to the API's output of the content file, which is difficult to navigate.

We should have an easy-to-read reference to all the item paths in the game.

medium status in progress

All 11 comments

I can take a look into this.

While I'm working on this, something like this might help to mitigate the issue and make the file slightly more readable. https://chrome.google.com/webstore/detail/json-formatter/bcjindcccaagfpapjjmafapmmgkkhgoa?hl=en

@lemoness It's sort of the same idea, I've simply reduced it down the the key values and removed all the unnecessary data, but what do you think about this? It's definitely easier to parse with the formatter I've listed above. Here's a couple screen shots:

All Condensed

screen shot 2016-10-05 at 5 33 52 pm

Food

screen shot 2016-10-05 at 5 34 05 pm

Quest

screen shot 2016-10-05 at 5 34 17 pm

Mystery

screen shot 2016-10-05 at 5 34 28 pm

And then without a formatter it still just looks like a massive block of text:

Without a JSON Formatter

screen shot 2016-10-05 at 5 35 31 pm

@Alys @crookedneighbor if you have any thoughts about the above feel free to let me know!

Well, the important part for the mods is to know the exact path needed to add the item to the user. So while that looks nice, it doesn't actually provide the information needed for the mods.

It would also be nice if we did not need to use a JSON formatter to have it
be readable.

On Thu, Oct 6, 2016 at 3:05 PM, Blade Barringer [email protected]
wrote:

Well, the important part for the mods is to know the exact path needed to
add the item to the user. So while that looks nice, it doesn't actually
provide the information needed for the mods.

—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/HabitRPG/habitica/issues/8100#issuecomment-252102089,
or mute the thread
https://github.com/notifications/unsubscribe-auth/ADVQwfaVc-igi4Vvs7h2mjlbhD4F3id0ks5qxXCwgaJpZM4KN-iJ
.

That makes sense. What about something more like this? I've included the keys at the top to easily find a section with ctrl+f and then you can copy and paste a line into the item path field. I also kept a split between mystery and gear even though the path is the same just to make them easier to find.

Top:

screen shot 2016-10-07 at 4 45 58 pm

Gear:

screen shot 2016-10-07 at 4 45 49 pm

I can add more of the keys in (like what's equipped and current mount etc.) if that's desired as well.

No json formatter required :)

@Hus274 That looks good! Although for the gear, the paths that exist in the user's account are like these:

items.gear.owned.head_special_0
items.gear.equipped.head_special_0
items.gear.costume.head_special_0

and we'd occasionally have need for all three varieties. To make the list shorter though, we could display the owned ones and have a comment about using equipped or costume - those two are rarely needed

We also need what value they should be. I.e., gear items and mounts are booleans, while pets and quests and eggs are numbers.

I've created a pull request for this addressing the comments listed above. There are screenshots attached to the pull request to show the new formatting and design.

Was this page helpful?
0 / 5 - 0 ratings