View Full Version : Wiki FashionQuest Just Got Even Better
loramin
01-07-2018, 06:00 PM
TLDR
If you want to find items that are in 2-3 categories (eg. all Shaman-wearable, head slot items with the "Leather" fashion appearance) you can now do so at:
http://wiki.project1999.com/Item_Category_Search. BE SURE to read the warning at the top.
Details
If you missed it I added fashion categories to the wiki a few months back (https://www.project1999.com/forums/showthread.php?t=284689). While they're better than what we had before (nothing) they do have significant limits.
For instance if you want to see all the "Leather" fashion items in the wiki you can go to the "Fashion: Leather" category page (http://wiki.project1999.com/index.php?title=Category:Fashion:_Leather). But what if you want to see all Shaman-wearable head-slot items that have that look? Until now, there was no real way to do such a "multi-category search".
(Side Note: A better way to solve this would have been the official wiki multi-category search extension, but I could never figure out who to bribe to get it added to our wiki, so you're stuck with my ghetto version.)
The wiki now has a new page, http://wiki.project1999.com/Item_Category_Search, which you can use to search for items across 2-3 categories. Continuing my previous example, you could use the page to search for the categories "Shaman Equipment", "Head" and "Fashion: Leather", and you will be given a list of only Shaman-wearable leather-looking hats.
However there is a big caveat: the search runs via Javascript, which means it runs on your machine, not the wiki's. To do the search it has to make your browser go to every page in each of the categories you picked (most categories have at least a few pages, and ones like "Shaman Equipment" have a ton). This means the search takes a few seconds to work, but more importantly it means that if your browser just looked up (say) 40 pages, from the wiki's perspective that was like 40 people all trying to get a page at once.
Because of this PLEASE restrict your use of this tool to one search every minute or two, especially for the next few days when there are likely to be a bunch of people using it at once. As long as everyone limits themselves the wiki should be able to handle this new tool without slowing things down noticeably for anyone.
In any case, enjoy the new tool and happy FashionQuesting!
loramin
01-07-2018, 06:09 PM
Wiki hosted by p99 staff. Ping Rogean, bribe with cs:go weapon skins.
Thanks I'll try PMing him directly. I was kinda hoping there might be someone else I could bother since the dude must get a million PMs a day, but I guess it can't be helped.
Canelek
01-07-2018, 06:12 PM
Nice! Good work!
loramin
01-07-2018, 06:43 PM
Hmmm, the forums seem unusually slow all of the sudden. Since I'm not sure whether or not it is because of the new tool (the wiki seems just fine, but if it and the forums share machine the tool still might be to blame) I've temporarily disabled the tool. Will try again when things seem normal.
EDIT: The forums still seem slow even after I disabled the tool, so it doesn't seem responsible, but I'll leave it disabled for a bit to be safe.
d3r14k
01-07-2018, 07:45 PM
You're doing good work, Loramin. FashionQuest = BestQuest, and this made it a lot easier.
Baler
01-07-2018, 09:35 PM
Super Cool!
I love your work on fashion quest Loramin.
loramin
01-07-2018, 09:48 PM
Thanks for the appreciation all. I put the search back up since the forums seem normal now (and since they seemed slow long after I disabled the search). If anything slows down again I'll disable it, but for now enjoy.
Pyrocat
01-08-2018, 12:13 AM
this is pretty awesome, thank you!
d3r14k
01-08-2018, 12:26 PM
Question for you, Loramin: Who decides what "color" some of the armor tints are? For example, the Scaled Knight's Armor is labeled as "Scampi". What the hell color is that? Can we not say light red or dark red or whatever the heck it may be?
Reminds me of shopping for curtains with a female.
Female: I'm looking for a soft peach color. Not quite a natural beige or camel, more closer to a light apricot.
Me: Woman, what the actual fuck are you on about?
Reminds me of shopping for curtains with a graphic designer.
Graphic designer: I'm looking for a soft peach color. Not quite a natural beige or camel, more closer to a light apricot.
Me: Dude, what the actual fuck are you on about?
ftfy
Also none of those are even close to the same color, whoever you're shopping with is clearly color blind.
Pale Peach: https://www.pantone.com/color-finder/12-0915-TPX
Apricot: https://www.pantone.com/color-finder/15-1153-TPX
Beige: https://www.pantone.com/color-finder/14-1118-TPX
Camel: https://www.pantone.com/color-finder/17-1224-TPX
d3r14k
01-08-2018, 02:21 PM
Your attention to detail in my off the cuff example is admirable. They're all some variable of "skin" color, with the exception of apricot, I guess. I'd like to point out that I'm the "me" in this scenario, with no idea what any of these colors should actually be.
It could 100% be that I'm in the wrong here, and I need to use this "pantone" or similar site to just look at whatever color is on the wiki.
Your attention to detail in my off the cuff example is admirable. They're all some variable of "skin" color, with the exception of apricot, I guess. I'd like to point out that I'm the "me" in this scenario, with no idea what any of these colors should actually be.
It could 100% be that I'm in the wrong here, and I need to use this "pantone" or similar site to just look at whatever color is on the wiki.
Here are all the pantones for human skin colors. (http://www.angelicadass.com/humanae-work-in-progress/)
I remember the old thread in which Loramin mentioned all the weird color names. It's here: https://www.project1999.com/forums/showpost.php?p=2608273&postcount=8
Not sure if that's something he could fix now that it's all been generated.
loramin
01-08-2018, 02:56 PM
Question for you, Loramin: Who decides what "color" some of the armor tints are? For example, the Scaled Knight's Armor is labeled as "Scampi". What the hell color is that? Can we not say light red or dark red or whatever the heck it may be?
Ok boring details time. Tints are defined as six-digit hexadecimal numbers (eg. #5959AB), which means that a tint could be any one of 16777217 different colors. Now there aren't that many tints, but there are still way too many for me to name by hand (they're the the majority of the fashion categories listed here: http://wiki.project1999.com/index.php?title=Special:Categories&offset=&limit=500). Therefore I had to automate.
Programmers don't believe in re-inventing the wheel, so I used an existing library: https://github.com/zeke/color-namer. It has the ability to use any of the following color schemes:
roygbiv
basic
html
x11
pantone
ntc
BUT the more popular ones (eg. html) don't have that many colors in them. Let's say they have a "light blue", "blue", and "dark blue": if the tint color isn't an exact match, the best I can do is say "pick the closest color to this." If two tint colors happened to both be closest to "light blue" they'd wind up in the same category ... even if they were different tints.
Instead I went with one of the color schemes that had a ton of unique individual color names, which all but guaranteed that I wouldn't have that problem. However as you (and several others) have noted, this resulted in some "interesting" color names. They probably make sense if you're looking at fifty different shades of green and want the best name possible for a particular shade, but they make less sense when used as names for fashion categories. That's just an unfortunate side effect of trying to have unique, human-readable but machine-generated, names for every tint code.
The good news is, it's a wiki! To rename a color category all you have to do is:
Go to its page
Edit each item in that category (this sounds like a lot but most tint categories only have a few items in them)
Change "[Category:Fashion: Scampi]" (at the bottom) to "[Category:Fashion: Faded Blue]" (or whatever you want to call it).
If the original ("Scampi") category page was empty then you're all done. If not and it has some screenshots simply edit the page, copy everything, edit the new category page ("Faded Blue"), and paste the code in.
Not sure if that's something he could fix now that it's all been generated.
Hypothetically I can tweak my code to change anything, but I still have the same issue as before: to get "good" color names someone needs to actually look at the color (ideally how it looks on a piece of armor and not just how the raw color looks), and then they need to come up with a proper name for it. If I just re-ran the code with a different color scheme we'd either risk combining tints (if I use a scheme with fewer colors) or else we'd get similarly "weird" color names (if I use a scheme with lots of colors).
But if every person who found these names annoying renamed just a single poorly-named category (again, most tint categories have only a few items, so we're usually talking about less than ten super quick one-word edits, always in the same place, ie. the bottom of the page) we'd have all of the really bad names replaced in no time.
It could 100% be that I'm in the wrong here, and I need to use this "pantone" or similar site to just look at whatever color is on the wiki.
I'd argue that the best solution isn't to make anyone leave to look a color up: the best solution would be for people to upload at least one screenshot of armor from every tint. Then you'd go to the "Scampi" category and know what color it is by seeing what Scampi-colored armor looks like.
d3r14k
01-08-2018, 03:21 PM
I knew this was going to be a complicated (and likely justified) answer, I just didn't know what it was. Thanks for providing it! Also, it wasn't my intention to diminish any of the work you're doing here if it came off that way. I use it a lot and definitely appreciate the detail that people put into the wiki.
Thanks again!
loramin
01-08-2018, 03:31 PM
I knew this was going to be a complicated (and likely justified) answer, I just didn't know what it was. Thanks for providing it! Also, it wasn't my intention to diminish any of the work you're doing here if it came off that way. I use it a lot and definitely appreciate the detail that people put into the wiki.
Thanks again!
No worries. The wiki is communal property so I'm always happy to explain why I did things the way I did. On top of that I'm certainly not infallible, so these conversations could totally result in better ways to solve problems, which absolutely makes them worth having.
skarlorn
01-08-2018, 03:32 PM
Your attention to detail in my off the cuff example is admirable. They're all some variable of "skin" color, with the exception of apricot, I guess. I'd like to point out that I'm the "me" in this scenario, with no idea what any of these colors should actually be.
It could 100% be that I'm in the wrong here, and I need to use this "pantone" or similar site to just look at whatever color is on the wiki.
smiled at the simpsons image
Jimjam
01-09-2018, 03:41 AM
Man, Rygar was in the lead with his bind wound bug reporting, but I think Loramin just took the biscuit with this as most moistmaking forumquester!
Hypothetically I can tweak my code to change anything
Can you make my foot fur 10% fuzzier?
Lhancelot
01-09-2018, 12:19 PM
Loramin is a wiki-genius. It's official now.
Nice job on completing work in a system that sounds tedious and awful. Sounds like being in a foxhole all the while trying to create a life sized sculpture of an elephant.
Baler
01-09-2018, 02:30 PM
Bump super cool
sylfi
01-09-2018, 03:14 PM
You can search for the color here:
https://github.com/zeke/color-namer/blob/master/lib/colors/ntc.js
For example "Woodrush" = 302a0f
And look up 302a0f here: http://www.colorhexa.com/
That'll give you your color!
This sends out a shit-ton of requests. You'd be better off crawling the pages it searches once every few months so that you could reject images and scripts with your requests.
loramin
01-09-2018, 04:03 PM
This sends out a shit-ton of requests. You'd be better off crawling the pages it searches once every few months so that you could reject images and scripts with your requests.
Agreed ... and what would be even better is if I could just made direct database calls, or if I could use the pre-made extension (https://www.mediawiki.org/wiki/Extension:Multi-Category_Search) which makes direct database calls so I don't have to dirty my hands with filthy PHP code ;)
However, I currently only have access to the front-end, so short of constructing a mini-db in local storage on each user's computer I'm stuck with the current mass-crawl approach.
You can crawl the item pages, store them in a large (huge) json file, host the file on aws/heroku, and make the search requests to that server as a hood rat/duct taped api.
vBulletin® v3.8.11, Copyright ©2000-2025, vBulletin Solutions Inc.