Thread:Sylvandyr/@comment-5619126-20121014124324/@comment-5619126-20121014154222

I've used the calculator to get the breeding pair. Had to copy over the according results for each of the 57 dragons and parse according results. Was a simple script with just a lot of copy'n'paste (almost 18k entries of possible combos).

As for the breeding results: I just though a simple form for 2x input and 1x output dragon and submit button with email verification would be ok. Maybe even record level of the dragons? I'm not sure if the level has any influence. Editing on the wiki requires an account and login. With email verification you just get an email sent. The first time you enter the email it can be stored as cookie and auto-filled later. Lowers the hurdle a bit - or maybe even omit input validation at all and let them jsut add combos.

--

Your program is a good idea. It would be useful to be able to check the boxes next to which dragons you have and then show which dragons you need to breed a particular dragon.

--

That's what it does. If you hover a dragon that you don't have all requirements, it shows you a list of dragons that are missing. There is one flaw however. If one combo requires two dragons that you don't have yet, then it shows them both individually. So if you get one of the two dragons, you still might not have a valid combo to bread them.

The cookies are being used so you can check what dragons you already have. Once you set a checkbox it'll store the cookie. Current browsers should have no issues with it. Older MSIE might have. But then it's time to update anyway. Once you have checked a few dragons and reload the page, they'll be backgrounded green (haven't figured out how to alter background yet when you check it). I just though storing in cookies is a lot easier than making user account and store what dragons they have in the DB. As said, by default it should be working just fine.

For your things you noticed:

1) Ups :) will edit that.

2) My mistake :) I should fix that also

3) I made two columns now. It's much better readable. However according to your calculator some dragons have over 500 combos.... that's still a problem to display. In most cases it should be fine though.

I actually wanted to test the new JQueryUI Tooltip - hence why I built it. Info should be readily available that's why I like the hover. However for hover content, you can display any html output. So you could style it accordingly. e.g. http://dragon.sjau.ch/breed.php?id=14

Basically the hover info is made with an ajax request with according id and result page then displayed.

4) I already mentioned above that I currently just return a list of "missing" dragons that are required in combos. Of course the one that should be bread should be extempted. That should be easily fixable.

5) I only use the data from the breeeding calculator. As said, I went through the list of the 57dragons in there and got the combinations it listed. A total of close to 18k.

6) Nah, the problem here is with ajax. If you hover the mouse shortly over a link and then move to the next. The ajax is still doing the first call and displaying that as result. If you don't move over too quickly, it works all fine.