DataTools

Ruby base classes for data gathering. Currently contains base classes for wowdb. They are inteded asa base class setup for writing your own formatting of extracted data and to provide basic mining capabilites.

You must login to post a comment. Don't have an account? Register to get one!

  • 9 comments
  • Avatar of kagaro kagaro Sun, 17 May 2009 14:43:29

    I added in some baseline wowhead stuff today. wowhead data for gathermate should parse now if you want to use it.

  • Avatar of Ackis Ackis Wed, 22 Oct 2008 22:24:08

    With the issues I'm having with wowdb, someone suggested getting data from both wowhead and wowdb... how hard would that be to do comparisons?

  • Avatar of Ackis Ackis Mon, 06 Oct 2008 20:10:43

    I got the sorting done I think, may use some optimization however :)

  • Avatar of Ackis Ackis Fri, 03 Oct 2008 20:14:18

    Hey Kagaro, can you take a look at this pastey for me:

    http://ace.pastey.net/97450

    Also, this pastey:

    http://ace.pastey.net/97452

    Just some optimizations that I'm not sure how to do.

    Thanks.

  • Avatar of kagaro kagaro Sat, 27 Sep 2008 02:46:03

    should be fixed now.

  • Avatar of Ackis Ackis Fri, 26 Sep 2008 20:48:44

    Getting this error:

    ARLDataminer.lua:223:in `sort_by': comparison of Fixnum with nil failed (ArgumentError)

           from ARLDataminer.lua:223:in `create_profession_db'
           from ARLDataminer.lua:933
    

    In a loop that worked in a previous revision:

    ordered_keys = recipes.keys.sort_by do |name|

    if count == 50

    print "\n" count = 0

    end

    print "."

    count = count + 1 STDOUT.flush db.add_recipe_details(recipes[name]) recipes[name][:spellid]

    end

  • Avatar of Ackis Ackis Fri, 19 Sep 2008 22:45:07

    Hey if you're around, just commit your code as an overwrite to my stuff I did, all I did was change a few of the text things around.

  • Avatar of Ackis Ackis Fri, 19 Sep 2008 04:22:22

    Kagaro, for the locations, I'm having a bit of trouble with them.

    I have the hash/array of:

    {"Zone" => [[x,y], [x1,y1], ..., [xn,yn]]}

    I'm not sure how to get it into something usable.

    So I do locs = maps.get_npc_locations(k)

    Which gives me that structure, now is there an easy way to print out the following: Zone, average(x1,...,xn), average(y1,...,yn)

    I also have a bunch of arrays which I'm trying to sort:

    An example of what I do with the unsorted stuff is:

    trainers.each_pair do |k,v|

    locs = maps.get_npc_locations(k) # Trainer: ID, Name, Location, Coords, Faction $stdout.puts "\tself:addLookupList(TrainerDB, #{k}, L[\"#{v[:name]}\"], nil, nil, #{v[:faction]})"

    end

    How can I sort it by the value k (id)?

  • Avatar of Ackis Ackis Tue, 16 Sep 2008 20:05:30

    Hi Kagaro, with all the tickets I've added I think I've gotten all the filter flags I have defined for Ackis Recipe List requested. Thanks again for your assistance.

  • 9 comments

Facts

Date created
11 Aug 2008
Category
Last update
18 Jun 2009
Development stage
Release
Language
  • enUS
License
MIT License
Curse link
DataTools
Reverse relationships
4
Recent files
  • A: r87 for 3.1.0 on 18 Jun 2009
  • A: r86 for 3.1.0 on 08 Jun 2009
  • A: r85 for 3.1.0 on 05 Jun 2009
  • A: r84 for 3.1.0 on 05 Jun 2009
  • R: 1.4 for 3.1.0 on 17 May 2009

Authors

© 2008-2009 Curse Inc.