![]() |
|
NightWind's Card Searcher - Printable Version +- ADV, AFH, CMC, ETC (http://107.170.157.187:8000/forum) +-- Forum: Cardmaster Conflict (/forumdisplay.php?fid=7) +--- Forum: CMC-Related Projects (/forumdisplay.php?fid=13) +--- Thread: NightWind's Card Searcher (/showthread.php?tid=6612) |
NightWind's Card Searcher - *NightWind* - 01-25-2008 11:24 PM NightWind's Card Searcher has moved here About NightWind's CMC Card Searcher Due to special request, I've developed a CMC Card Searcher here. It allows you to search for cards under lots of criteria. For example, you can search for all slime cards, or all Mechanical Chaos effects or have it display all voucher cards. There's two screenshots of an example search is at the bottom of this post. The searcher runs reasonably fast and even large searches should take less than 20 seconds to return the results. Note that depending on your bandwidth, it might take longer to completely load all the card images. The number of cards returned is shown at the top of the second column of the results table, so you can decide if you want to narrow down you search before you have to load all the cards. Speaking of bandwidth, there is an option just above the search button which makes the search only return text results (as opposed to text results *and* the card image). For each full display result, there is a wiki link, store searcher link and the card image. If there are no cards matching your search criteria, it will display "No cards found". Searches by card text can span multiple lines. Thus you can search for cards with text such as this: evil is like oranges And it will return the Dark Lord Khrima with that text. Other notes: To lessen the load on the actual CMC server, I'm compiling the card images on my own server - so there might be undiscovered errors. Also, I've compiled the database from scratch using the csc files. A previous bug I had was display the "S" speed symbol when a card had an automatically activated ability. That bug in particular has been fixed now, but I'm not sure if there's others. If you come across any, please let me know and I'll fix it up. The account I'm using to host it is a free account. There should be no downtime and no ads. If there does happen to be any ads, downtime and/or other hosting issues, please let me know. I don't plan to develop my card searcher any more further from what I have hosted on the site. I will however, try to fix bugs and update the database every week. I've developed my card searcher for Firefox. It should also work in IE, but it might not look as good. Please let me know if there's any display problems. Slight issues Currently, there is no method to look for all cards with bounce or counters because of the various methods they are implemented. You can search for "bounce" cards by typing "bounce" in the card text field. Some cards will be returned, but not all. I don't have a feasible solution for this, so I guess you might have to rely on wiki. Bug List If you spot any bugs, can you please let me know. Just either posting here or PMing me is cool. You can also Email me, though put "Cardmaster Conflict" in the subject line so that your email doesn't get treated as spam. I don't check Cmail or Email frequently, so responses could be delayed. Known (and collected) bugs ^_^ *Searching for Can't Attack doesn't return Negazor R and DLK (now hardcoded) *Face down search should not return #863 When notifying me about bugs, please mention the search parameters you used. They can be found to the side of the results page or just by clicking back to return to the form. Mentioning the card ID or or card group you were looking for might help too. Confimation please? Can I please get confirmation on the following things (even if the answer is just a 'yes')? 1)Is there anything wrong with the card display 2)There are no advertisements (apart from the obligatory AspSpider link), popups or the like 3)There is no downtime 4) It doesn't hang there for more than 1 minute. (As even large searchers should take less than 20 seconds) Oh and I has a little wiki page now! Yays! ^_^ Link to NightWind's CMC Card Searcher An example slime search and the results with between 4 and 15 and attack between 10 and 90:
RE: NightWind's CMC Card Searcher - sXeAndriex - 01-25-2008 11:42 PM Wow, that's... actually really cool. Thanks. RE: NightWind's CMC Card Searcher - *NightWind* - 01-25-2008 11:48 PM You're welcome ^_^. I'll be updating the database around once a week - especially if there's new cards released or posted balance changes. Unless something goes wrong with my web host, it should be up there for an indefinite amount of time ^^. RE: NightWind's CMC Card Searcher - masamunemaniac - 01-26-2008 12:02 AM Excellent! Plenty of features over Tamdrik's My only suggestions right this minute are to allow search ranges for rarity and card ID, rather than just single values, maybe? Oh, and a favicon :3 RE: NightWind's CMC Card Searcher - *NightWind* - 01-26-2008 12:09 AM Thanks ^_^. That I can do - I'll work on that now Edit: working on it now. RE: NightWind's CMC Card Searcher - masamunemaniac - 01-26-2008 01:20 AM One issue I've noticed is that the searches for properties seem to be doing basically a card text check; they don't find hidden abilities, and they don't find abilities written slightly differently - such as (Can't Atk) on Mount Mason isn't found when searching for the Can't Attack property. It also comes up with cards that refer to the property but don't have it (Like Starship Drive, Mage Nog or Open Heart), though this part could be passed off as a feature There is a part of each line in the cards.csc which lists most of the properties listed (the part with the words between exclamation marks, called "Othflag" in the editor). Though Touch of Death, Second Life, Fleeting and Bounce aren't in the cards.csc, while Sneaking and Lifebar are booleans elsewhere in the cards.csc... and then there's the odd cards like the Entrenching on Kelar Shadow :/ Not a major issue for the most part, but I thought you might want to know RE: NightWind's CMC Card Searcher - *NightWind* - 01-26-2008 01:32 AM masamunemaniac Wrote:One issue I've noticed is that the searches for properties seem to be doing basically a card text check; Yeah, that's how I do the searches. I wasn't really sure about the flags bit. masamunemaniac Wrote:they don't find hidden abilities, Yeah, sort of intentional on my part. I thought that because they were hidden, then they probably shouldn't be searchable. Though if you want, I can probably code it so that cards with hidden abilities are returned as well. If so, I might have to look into this further... masamunemaniac Wrote:and they don't find abilities written slightly differently - such as (Can't Atk) on Mount Mason isn't found when searching for the Can't Attack property. For Mount Mason in particular I can fix it by reducing the search term to "(Can't At". masamunemaniac Wrote:It also comes up with cards that refer to the property but don't have it (Like Starship Drive, Mage Nog or Open Heart), though this part could be passed off as a feature Could you please clarify on this issue? What cards were you looking for, which cards were returned, and which cards wasn't returned? What were your search parameters? I'm not sure I know what you mean by "refer to the property". Thanks masa ^^. masamunemaniac Wrote:There is a part of each line in the cards.csc which lists most of the properties listed (the part with the words between exclamation marks, called "Othflag" in the editor). Though Touch of Death, Second Life, Fleeting and Bounce aren't in the cards.csc, while Sneaking and Lifebar are booleans elsewhere in the cards.csc... and then there's the odd cards like the Entrenching on Kelar Shadow :/ Yep, I'll look into the booleans. Not too sure about the flags though... Edit: Oh and I'll be adding a speed range search too. RE: NightWind's CMC Card Searcher - Blue_Elite - 01-26-2008 02:02 AM I gotta say this is great NightWind. Thank you so, so much. I use Tamdrik's site a lot for finding card comparisons and it has always been a helpful tool. RE: NightWind's CMC Card Searcher - *NightWind* - 01-26-2008 02:13 AM You're welcome - I developed this as request and it has also let me learn a new programming language, so it's a win-win situation ^_^. RE: NightWind's CMC Card Searcher - Serith - 01-26-2008 02:14 AM Shouldn't the search criteria in your example return Gloopzilla as a possibility? (Slime, 15, 75 attack)Also, I see your search has a way to search for only Uniques, but is there a way to search for only non-Uniques? Might be helpful. Just a few observations. RE: NightWind's CMC Card Searcher - *NightWind* - 01-26-2008 02:21 AM Serith Wrote:Shouldn't the search criteria in your example return Gloopzilla as a possibility? (Slime, Oh, that's because my example was searching for all cards with "slime" in their name as opposed to a "slime entity". So in the end, the results are correct for the search criteria, but meta-data wise, I should be searching for "slime" as part of entity. I'll update the screenshot. Serith Wrote:Also, I see your search has a way to search for only Uniques, but is there a way to search for only non-Uniques? Might be helpful. Yeah, good suggestion - I'll incorporate that into the next update (coming soon). RE: NightWind's CMC Card Searcher - *NightWind* - 01-26-2008 04:39 AM Version 1.6 The newly updated version now comes with the following features: Card ID can now be searched as a range of values. Rarity can now be searched as a range of values. Allows searching of cards that are non-unique. E.g. Cards of type hero such as Legendary Hero. As with the older version, the entity type can be left blank. Mount Mason now appears under a search for all cards that have the can't attack tag. To be done: Figuring out how to identify the other "can't attack" cards like DLK (War-classic) and Negazor R. Wondering if I should just hardcode cards that have "can't attack" and update accordingly. I'm only using cards.csc, and the way my system's designed means that I can't rely on abilities.csc Edit: Speed can now be searched as a range too. Still a little bit buggy, but should be fixed soon. RE: NightWind's CMC Card Searcher - masamunemaniac - 01-26-2008 08:19 AM Search criteria Wrote:Lowest Attack Points: 60This search basically returned all results for monsters with 60 or more attack - it ignored the Total Mana criteria. Searching for just Lowest Total Mana 0 and Highest Total Mana 10 similarly returned the entire cardlist as its results (I can confirm that it took less than 30 seconds to process this though RE: NightWind's CMC Card Searcher - *NightWind* - 01-26-2008 08:27 AM Ah ok - I think I spotted the cause of the bug. Fixing it now. It also seems to happen with total (life and attack), so I might fix that too. RE: NightWind's CMC Card Searcher - masamunemaniac - 01-26-2008 09:29 AM Rarity searches seem to work backwards: 60-70 gives no results, but 70-60 gives the expected results. Searches involving rarity 101 don't seems to work at all. Also, might be worth making the Unique/Non-Unique checkboxes into radio buttons, as they're mutually exclusive? RE: NightWind's CMC Card Searcher - *NightWind* - 01-26-2008 09:39 AM Yeah - thanks for the suggestions. I have an idea of where the bugs are coming from so I'll work on them. ^_^ Thing is, this project has quite a lot of search parameters so it's a bit hard for me to test completely. So yeah, it's neat to for you guys to find bugs so that I can fix them. I'll get a bug list started... Bug collecting is a healthy exercise Known (and collected) bugs ^_^ *Searching for Can't Attack doesn't return Negazor R and DLK (now hardcoded) *Face down search should not return #863 RE: NightWind's CMC Card Searcher - *NightWind* - 01-26-2008 11:16 AM I've updated the current version so that it: *displays all cards of rarity 101 (57 cards total) *searching for rarity ranges works (e.g. 60-70 rather than 70-60) I've updated my database to include the new Nova cards 988 and 989, but they don't seem to be showing up in the results. For now, I'm going to assume it's a server issue - their database system is probably bogged down. Hope it clears up tomorrow when I log in again. I'm still working on the other bugs, but I'll have to leave some for tomorrow. Going to go to sleep soon. RE: NightWind's CMC Card Searcher - Tamdrik - 01-26-2008 04:40 PM Great work!  Seems to run pretty fast for me, like ~1 second, so that doesn't appear to be an issue.  "Check Stores" seems a bit slower (~2 seconds) but still not a problem, though for a bit it wasn't working (gave a "can't contact servlet on 127.0.0.1" or something error).  You may have been doing some maintenance at that moment or something.  Now I don't have to worry about pulling my server offline in May. :) RE: NightWind's CMC Card Searcher - *NightWind* - 01-26-2008 10:50 PM Thanks ^_^. Yeah, the 20 second searches are only for searches which include over 900 cards such as when the form is accidentally left empty. I might put in an alert box for that. But then that's for a later release. I'm not sure about this, but he "Check Stores" feature probably takes longer because it's a GET/POST difference (my cardsearcher being a GET). You can now see the cardid displayed in the url. The 127.0.0.0 error for my store searcher happens when myjavaserver server's connection pool is all used up. Myjavaserver does offer fast servers (compared to other free services), but there's a limitation in that it can't process too many jsp requests across the company's entire server. ^_^ RE: NightWind's CMC Card Searcher - *NightWind* - 01-27-2008 01:40 AM The current version has now been updated with the following bugfixes: *Search by speed range now fully working *Both "Unique" and "Non-Unique" can't be selected at the same time, but both can be completely deselected. I'll be working on the "Totals" section, which is rather buggy at the moment. Oh and the Nova cards are now showing up as intended. Edit: I've now hardcoded the "Can't Attack" results to include DLK(War-Classic) and Negazor R. Edit2: Tweaking "Can't attack"... |