Game mechanicsNewbie guideIn developmentDDO StoreSocial Media


ChallengesClassesCollectablesCraftingEnhancementsEpic DestiniesFavorFeats

GlossaryItemsMapsMonstersPlacesQuestsRacesReincarnationSkillsSpells


Please create an account or log in to build a reputation and unlock more editing privileges, and then visit DDO wiki's IRC Chat/Discord if you need any help!

Talk:YourDDO

From DDO wiki
(Redirected from Talk:DDOCrafting.info)
Jump to: navigation, search

Feedback on myddo lite tool latest version[edit]

Hey I've checked your tool since your recent update.. Some updates on what I mentioned before:

  • Tooltips work awesome now, both ingame and out.. Nice job on those.
  • Dropdown getting caught under the pic issue remains.

Issue not your faults but turbines you may be able to improve:

  • Clicking nearly any item sends you to some crazy URL on the compendium, and the compendium being the piece of crap that it is, redirects you to the homepage for 99% of items..
    • Perhaps theres some way you could instead simply capture the item name from the tooltip, and link it to our wiki instead?
      • EG: link to https://ddowiki.com/page/{{itemname}} (as our naming policy is quite simple, that should work for 99.9% of items).
Shade (ContributionsMessage) 09:06, April 8, 2012 (EDT)


I have actually been thinking about doing that. I now have all item clicks redirected to the wiki. The only problem is that un-named items (+3 Item of Something or Other) takes the user to a "Page Doesn't Exist" page. I'll try to find a workaround for it, something maybe like splitting the item name up and giving the user the option to look up just the prefix or just the suffix of what-have-you. But that is something that will take some time to perfect. Wish me luck... Ague (ContributionsMessage) 20:45, April 9, 2012 (EDT)

Thanks for this guys... It looks really good. Big Grin As far as the dropdown issue, it should be fixed now. I have a couple other ideas that I'm going to be adding to the site, so keep your eyes peeled. Ague (ContributionsMessage) 12:44, April 9, 2012 (EDT)


I agree it would be more efficient to link back to the wiki. So, let's break this down.. The API returns:
<inventory>
     <item id="1879081969" name="Minos Legens" slot="Head" link="http://compendium.ddo.com/wiki/Special:DdoResource?
id=1879081969&name=Minos+Legens" icon="http://compendium.ddo.com/icon.php?type=item&id=1879081969"/>
     <item id="1879085381" name="Supreme Tyrant Green Steel Goggles of Negative Energy" slot="Eyes" link="http://compendium.ddo.com/wiki/Special:DdoResource?
id=1879085381&name=Supreme+Tyrant+Green+Steel+Goggles+of+Negative+Energy" icon="http://compendium.ddo.com/icon.php?type=item&id=1879085381"/>
     <item id="1879088971" name="Life Shield Outfit of Superior Stability" slot="Armor" link="http://compendium.ddo.com/wiki/Special:DdoResource?
id=1879088971&name=Life+Shield+Outfit+of+Superior+Stability" icon="http://compendium.ddo.com/icon.php?type=item&id=1879088971"/>
     <item id="1879102634" name="Mantle of the Worldshaper" slot="Cloak" link="http://compendium.ddo.com/wiki/Special:DdoResource?
id=1879102634&name=Mantle+of+the+Worldshaper" icon="http://compendium.ddo.com/icon.php?type=item&id=1879102634"/>
     <item id="1879061723" name="Underwater Action Ring of Persuasion" slot="Finger1" link="http://compendium.ddo.com/wiki/Special:DdoResource?
id=1879061723&name=Underwater+Action+Ring+of+Persuasion" icon="http://compendium.ddo.com/icon.php?type=item&id=1879061723"/>
     <item id="1879061724" name="Feather Falling Ring of Greater False Life" slot="Finger2" link="http://compendium.ddo.com/wiki/Special:DdoResource?
id=1879061724&name=Feather+Falling+Ring+of+Greater+False+Life" icon="http://compendium.ddo.com/icon.php?type=item&id=1879061724"/>
     <item id="1879085378" name="Supreme Tyrant Green Steel Bracers of Concordant Opposition" slot="Wrists" link="http://compendium.ddo.com/wiki/Special:DdoResource?
id=1879085378&name=Supreme+Tyrant+Green+Steel+Bracers+of+Concordant+Opposition" icon="http://compendium.ddo.com/icon.php?type=item&id=1879085378"/>
     <item id="1879068173" name="Pink and Green Ioun Stone" slot="Trinket" link="http://compendium.ddo.com/wiki/Special:DdoResource?
id=1879068173&name=Pink+and+Green+Ioun+Stone" icon="http://compendium.ddo.com/icon.php?type=item&id=1879068173"/>
     <item id="1879057723" name="Health +6 Necklace " slot="Neck" link="http://compendium.ddo.com/wiki/Special:DdoResource?
id=1879057723&name=Health+%2B6+Necklace+" icon="http://compendium.ddo.com/icon.php?type=item&id=1879057723"/>
     <item id="1879057717" name="Dexterous +6 Gloves " slot="Hands" link="http://compendium.ddo.com/wiki/Special:DdoResource?
id=1879057717&name=Dexterous+%2B6+Gloves+" icon="http://compendium.ddo.com/icon.php?type=item&id=1879057717"/>
     <item id="1879057722" name="Ogre Power +6 Belt " slot="Waist" link="http://compendium.ddo.com/wiki/Special:DdoResource?
id=1879057722&name=Ogre+Power+%2B6+Belt+" icon="http://compendium.ddo.com/icon.php?type=item&id=1879057722"/>
     <item id="1879057721" name="Striding (+25%) Boots " slot="Feet" link="http://compendium.ddo.com/wiki/Special:DdoResource?
id=1879057721&name=Striding+%28%2B25%25%29+Boots+" icon="http://compendium.ddo.com/icon.php?type=item&id=1879057721"/>
     <item id="1879110223" name="Cacophonic Verge" slot="Weapon1" link="http://compendium.ddo.com/wiki/Special:DdoResource?
id=1879110223&name=Cacophonic+Verge" icon="http://compendium.ddo.com/icon.php?type=item&id=1879110223"/>
     <item id="1879072501" name="Superior Potency IV Dagger of Greater Fire Lore" slot="Weapon2" link="http://compendium.ddo.com/wiki/Special:DdoResource?
id=1879072501&name=Superior+Potency+IV+Dagger+of+Greater+Fire+Lore" icon="http://compendium.ddo.com/icon.php?type=item&id=1879072501"/>
     <item id="1879093957" name="Wide Quiver" slot="Quiver" link="http://compendium.ddo.com/wiki/Special:DdoResource?
id=1879093957&name=Wide+Quiver" icon="http://compendium.ddo.com/icon.php?type=item&id=1879093957"/>
</inventory>

as the inventory for my main toon..

id and icon seem totally useless for what we want to do. link is not very useful unless we want to try and strip the &name= section out. Slot may be useful, but I think we will want to focus primarily on name. To find non-named items, it could be set up to look for specific possible types based on slot. Such as, if it finds the string " outfit " (non-case-sensitive) in the name of an slot="Armor", then it is likely non-named. Secondly, if it can find the string " of " in anything, then it is likely non-named. Those string searches would also be able to break apart prefix - item - of - suffix. You could also set up something similar to #ifexist parser function to search through created pages on the wiki and see if you can find an item.. I'm currently in discussions with Xevo (Contribs • Message) to get an Item: namespace which would actually make this process MUCH easier.. ShoeMaker (ContributionsMessage) 21:36, April 9, 2012 (EDT)


The basic functionality is already set up (find's the majority of named items with ease). What I will likely do, is (server side) ping the wiki and see if the page exists. I'll dig through the raw output of the 404 page and see if I can find something in particular that is only found on any other page. Perhaps something like:
[[Category:PageNotFound]]

which is specific to only the 404 template. I could try to use "404", but being that it's a number, but the problem I foresee is that somewhere down the road the 404 template gets edited and perhaps the file name get's changed. Stranger stuff has happened...→ Ague (ContributionsMessage) 21:55, April 9, 2012 (EDT)

You're talking about MediaWiki:Noarticletext changing.. Hrrmmm.. I could set a hidden flag in there for you if you want.. Just tell me what you want.. Perhaps a specific hidden XML tag? Some kind of meta-tag somehow.. I've not completed those classes in school yet, so not 100% sure what might work (Hoping to take PHP in the Fall.. I have web graphics and JavaScript lined up for this summer). ShoeMaker (ContributionsMessage) 22:09, April 9, 2012 (EDT)
I have dabbled with the source of Media Wiki before so I have a pretty good understanding of how everything works and in order to add a <meta /> tag and still be compliant with W3C standards, you would have to have access to the actual php source and make several edits. And if you don't know what you're doing the whole wiki could go Kabloom... So, weeding that option out, I think something as simple as an HTML comment with specific content would be perfect. It wouldn't be seen to the everyday user, won't mess anything up at all layout or content-wise. How about......

<!-- YourDDO - Item Not Found -->

That is simple and for future editors, it will make them wonder and do some research before removing it. It doesn't matter where, because the 404 page is pretty small and I would just parse the entire raw output and do a quick search for that string. And when finding the string, it would trigger code on my end to break the item name down and link it out that way.

SIDE NOTE: If you ever need help with PHP, JS, HTML/XHTML, CSS, SOAP, MySQL, let me know... The actual site ddocrafting.info is a stripped down (very stripped down) version of a CMS that I've been working on lately...→ Ague (ContributionsMessage) 22:22, April 9, 2012 (EDT)

Done, verbatim, end of file:

<!-- YourDDO - Item Not Found --> I will tell you it is not on it's own line though to prevent unwanted excess line feeds. Big Grin ShoeMaker (ContributionsMessage) 22:28, April 9, 2012 (EDT)


That's fine. The function that I'll use won't care if it has its own line of not. What will happen is the entire source output (what you would see if you right-clicked and Viewed Source) will get tossed into a variable and then be searched by this: <?php strpos($whateverIendUpNamingTheVariable, "<!-- YourDDO - Item Not Found -->"); ?>. If that returns FALSE the I'll let the page show (Item exists), if it returns TRUE then use more string functions to break up the string and link to it.

It sounds more complex than it really is, but it's one of the first things youll learn in PHP class more than likely is string manipulations. Big GrinAgue (ContributionsMessage) 22:39, April 9, 2012 (EDT)

Hrmm.. The # in {{SUBST:Post|#|~~~~| }} you are copy pasting (which is why it is there until I can make a button the you click and it inserts it for you) should be replaced with the depth of the post you are making (Normally, previous post +1, unless you are not responding to the previous post, in which case it is whichever post you are responding to +1, unless it is the first post, in which case use "0"). The breakdown would likely be a ReGex search of something like "(\+\d)? (\w) [switch for item based on slot] of (\w)" although I'm not sure exactly how the switch would work; I might assume it to be a loooong (helm|hat|bandana|...|outfit|...|heavy armor|...|dagger|...) type thing with all the possible item types.. Or perhaps set it up as a case before it does the ReGex to define it has Helm, Ring(1|2), Belt, Armor, Weapon(1|2), etc.. and then (...|...|...) based on slot.. ShoeMaker (ContributionsMessage) 22:56, April 9, 2012 (EDT)
I'm throwing together a quick example PHP code for you to make it easier to wrap your head around it. Gimme a few minutes. Ague (ContributionsMessage) 23:15, April 9, 2012 (EDT)

Hey checked out the update: -Dropdown box works correctly ingame now, nice job. -Item links are not changed.. They all still point to the compendium, named or not.

re: Tech13.. Adding a comment into that page wont do anything for him. Comments are not preserved when pages are transcluded, so its not showing up anywhere but the interface page itself. Wont work for random name item pages.

What you could check for ague, is if 404.png shows up. As thats always there, and that image is not used on any other pages.

re: Chances of it getting changed later?

Really unlikely.. the filename matchs our namingpolicy, so no need to change it. If we want to update it, we would use the same filename. Thought its hard to be sure as our wiki merged from another network recently, pretty sure we used that same image for the last 6 years.

Shade (ContributionsMessage) 09:02, April 10, 2012 (EDT)

<!-- YourDDO - Item Not Found --> is confirmed to have gotten parsed out. <span style="display: none;">YourDDO - Item Not Found</span> is confirmed to not be parsed out. ShoeMaker (ContributionsMessage) 09:27, April 10, 2012 (EDT)
@Shade - The links were there, but I switched them back temporarily at Tech's request. He didn't want to risk a ton of new pages being created when the user lands on a 404 page. And check this link out, it kind of explains my idea for breaking down the item name and linking to the wiki if the item is not found.

http://ddocrafting.info/test.php

NOTE: Once this feature is finished, this page will be removed. But until then it will be my sand box for testing this and will likely change often. Ague (ContributionsMessage) 09:50, April 10, 2012 (EDT)

It's a good start, you probably will not want to filter the +6 of the suffix like you currently have for seeker. It would be cool if we could create a form that your tool could use that would create a "virtual" page of the wiki and use the appropriate templates.. hrmm.. let me think about how this can be accomplished and I'll let you know what I come up with. ShoeMaker (ContributionsMessage) 10:33, April 10, 2012 (EDT)

um what, when a user visits a redlink, it doesnt auto create the page. It gives a 404 the same as any site. Theres no risk there, no idea whats techs on about. → Shade (ContributionsMessage) 10:53, April 10, 2012 (EDT)

It brings them to:

404.png We don't currently have an article called "YourDDO"

You can search for "YourDDO" in other articles here on DDO wiki.

Wrote an article that isn't appearing? DDO wiki may be experiencing a delay, or it might have been deleted. Wait a few minutes, try reloading the page, and then check the deletion log.

YourDDO - Item Not Found


Of which one for the options is "Start this article".. A person that has never been to the wiki might think, "Oh, no one has made anything about this, let me make this page. Everyone will love me." No need for that. ShoeMaker (ContributionsMessage) 11:25, April 10, 2012 (EDT)

lol..

People are not that dumb. Making rules based on innane assumptions is ........... Making them before the case even exsited ? lol.

People smart enough to use an alernate myddo are not the type to do really dumb things. Dumb people use the regular myddo. → Shade (ContributionsMessage) 11:44, April 10, 2012 (EDT)

I've been designing web apps for years Shade and the number one thing that got me in my early years was not planning for the dumb stuff. How many people who might use the tool play while drinking their favorite alcoholic beverage? Probably more than you and I think. And leave it to drunk people to click stuff. Regardless, working around something that is rather trivial could (and likely will) save time of patrollers and sysops from having to flag and delete erroneous pages. Ague (ContributionsMessage) 00:46, April 11, 2012 (EDT)

heh I certainly do. And I think I speak for all drunk people when I say this is the last set of things I would do while drunk playing: 1. Click on some random item. 2. Click on a wiki link that says to create a page. 3. Type something into said form 4... Confirm an annoying capcha. 5. Submit page.

I mean yea i can see a random misclick happening.. Thats not this, this is a pretty involved process.

So yea, Sure plan for the dumb stuff.. Dont plan for the --never gona happen in a million years-- scenarios. Especially ones that will do no real harm (deleting a few invalid page titles isn't gona ruffle any feathers). At worse i see 1 out of a million users doing that, and well sadly your tool just doesnt have that many users yet for it to a concern. Maybe once you start getting millions of view a day....

Shade (ContributionsMessage) 15:42, April 12, 2012 (EDT)

Suggestion for "Character Stats" Tool[edit]

You are now linking the items in characters' inventory. That's nice. You could also link the character sheet concepts to wiki articles, e.g., Sorcerer, Strength, Damage Reduction, Ki; basically, everything. --Cru121 (ContributionsMessage) 04:01, May 23, 2012 (EDT)

The only problem with that is that the actual words (Str, Dex, BAB, etc) are all hard coded into the image. Ague (ContributionsMessage) 18:45, May 24, 2012 (EDT)
Imagemap a possibility? ShoeMaker (Contributions Message) 22:17, May 24, 2012 (EDT)
I am not really a big fan of using imagemaps. I'll add the idea to my list of things to do, but it's not going to be a high priority just yet. I have my guild roster project that I'm tweaking right now, and another project for YourDDO that's in the development phase right now. Ague (ContributionsMessage) 16:13, May 25, 2012 (EDT)