Page 1 of 3 123 LastLast
Results 1 to 25 of 53

Thread: BMP database?

  1. #1
    Join Date
    Sep 2008
    Location
    New Zealand
    Posts
    157
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default BMP database?

    Ok on runescape pro's suggestion I have changed the idea to a DTM database. DTM's aren't hard to make but when you are not on runescape or don't have the item you want a DTM of it can get a little frustrating.

    Wouldn't it be nice to just jump on srl and be confronted with a database of tested DTM's ready for your use? This is my suggestion.

  2. #2
    Join Date
    Oct 2006
    Location
    Texas
    Posts
    1,450
    Mentioned
    1 Post(s)
    Quoted
    1 Post(s)

    Default

    like

    LoadDTMFromDB("Net");

    and it loads a dtm from srl's database?

    if so, wouldn't that become laggy to people on dial up or slow connections and cost SRL alot of money from people constantly downloading the dtm's and bmp's over and over because I believe alot of scripters release their resources right after their done.

  3. #3
    Join Date
    Jun 2007
    Location
    Greenville, SC
    Posts
    1,149
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    I think he means just a database with bmp's of everything available for download. So you wont have to make one if one is already made. That's just my guess and i think this would be rejected due to the fact the bmp's aren't very reliable for item finding. A DTM database would be cool though.

  4. #4
    Join Date
    Sep 2008
    Location
    New Zealand
    Posts
    157
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by Runescape Pro View Post
    I think he means just a database with bmp's of everything available for download. So you wont have to make one if one is already made. That's just my guess and i think this would be rejected due to the fact the bmp's aren't very reliable for item finding. A DTM database would be cool though.
    Yeah that's what I meat. You're right, DTM's are more reliable, having a database of DTM's would mean that for those people who aren't on rs at the time or don't have the item they want a DTM of they could simply navigate through a few main categories to find the DTM's they want. The database would be filled very quickly too as those who didn't find the DTM they want could just make it themselves and post it once they are done.

    This would make script making just that little bit quicker, and scripters know that when you are on a roll you don't want to be stopping every time you need another DTM.

  5. #5
    Join Date
    Jun 2007
    Location
    Greenville, SC
    Posts
    1,149
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by tank phobia View Post
    Yeah that's what I meat. You're right, DTM's are more reliable, having a database of DTM's would mean that for those people who aren't on rs at the time or don't have the item they want a DTM of they could simply navigate through a few main categories to find the DTM's they want. The database would be filled very quickly too as those who didn't find the DTM they want could just make it themselves and post it once they are done.

    This would make script making just that little bit quicker, and scripters know that when you are on a roll you don't want to be stopping every time you need another DTM.
    Wow... That's a great idea. Also, for a newcomer, you are very sophisticated. Having a DTM section under a sub forum such as scripting help would be a great idea IMO.

  6. #6
    Join Date
    Nov 2006
    Location
    NSW, Australia
    Posts
    3,487
    Mentioned
    1 Post(s)
    Quoted
    0 Post(s)

    Default

    There's already a bitmap database as part of the SRL include...
    [CENTER][img]http://signatures.mylivesignature.com/54486/113/4539C8FAAF3EAB109A3CC1811EF0941B.png[/img][/CENTER]
    [CENTER][BANANA]TSN ~ Vacation! ~ says :I Love Santy[/BANANA][/CENTER]

    [CENTER][BANANA]Raymond - Oh rilie? says :Your smart[/BANANA][/CENTER]

  7. #7
    Join Date
    Sep 2006
    Location
    include srl/srl.scar ( aussie)
    Posts
    2,875
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Yes there is but a bigger DTM one would be nice...

  8. #8
    Join Date
    Sep 2008
    Location
    New Zealand
    Posts
    157
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by Runescape Pro View Post
    Wow... That's a great idea. Also, for a newcomer, you are very sophisticated. Having a DTM section under a sub forum such as scripting help would be a great idea IMO.
    Thanks Runescape Pro.

    Quote Originally Posted by Santa_Clause View Post
    There's already a bitmap database as part of the SRL include...
    Sorry have edited my original post to make this clearer now, I have changed the idea to a database of DTMs instead. As far as there being a database of BMPs in the srl include I was completely oblivious to that so thanks for enlightening me!

  9. #9
    Join Date
    Jan 2007
    Posts
    45
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    DTMs are a great idea, they would be easy to store in a database as you could have a max of say 20 points, so you would need 21 colums, quite easyly ahievable with mysql

  10. #10
    Join Date
    Feb 2006
    Location
    Amsterdam
    Posts
    13,692
    Mentioned
    146 Post(s)
    Quoted
    130 Post(s)

    Default

    Nice idea. Maybe it would be better to collect information like the items Outline pixels count. (Black outline), it's reference color, approximate tolerance and approximate colors that should be found to identify the item.
    Also Width and Height based on outline. And what about the item's total pixel count?



    The best way to contact me is by email, which you can find on my website: http://wizzup.org
    I also get email notifications of private messages, though.

    Simba (on Twitter | Group on Villavu | Website | Stable/Unstable releases
    Documentation | Source | Simba Bug Tracker on Github and Villavu )


    My (Blog | Website)

  11. #11
    Join Date
    Mar 2008
    Location
    ::1
    Posts
    915
    Mentioned
    0 Post(s)
    Quoted
    1 Post(s)

    Default

    Quote Originally Posted by Wizzup? View Post
    Nice idea. Maybe it would be better to collect information like the items Outline pixels count. (Black outline), it's reference color, approximate tolerance and approximate colors that should be found to identify the item.
    Also Width and Height based on outline. And what about the item's total pixel count?
    Ooh I like the colors idea. I always just close rs and then find I need to find colors again!

    EDIT: Make sure to state the standard brightness though...

    Records and Types Save Code (and make you look better)
    Quote Originally Posted by Wizzup? View Post
    Is it possible to make Runescape a 2D game with this?... That would greatly simplify... Just about anything.

  12. #12
    Join Date
    Sep 2007
    Location
    Michigan
    Posts
    3,862
    Mentioned
    2 Post(s)
    Quoted
    1 Post(s)

    Default

    Quote Originally Posted by Wizzup? View Post
    Nice idea. Maybe it would be better to collect information like the items Outline pixels count. (Black outline), it's reference color, approximate tolerance and approximate colors that should be found to identify the item.
    Also Width and Height based on outline. And what about the item's total pixel count?
    Isn't there a way to get all the colors found in an area? Also couldn't we designate that area by using the Black color of the outline then you have the inner parts still?
    (Scripts outdated until I update for new SRL changes)
    AK Smelter & Crafter [SRL-Stats] - Fast Fighter [TUT] [SRL-Stats]
    If you PM me with a stupid question or one listed in FAQ I will NOT respond. -Narcle
    Summer = me busy, won't be around much.

  13. #13
    Join Date
    Apr 2007
    Location
    Perth, Australia
    Posts
    3,926
    Mentioned
    3 Post(s)
    Quoted
    2 Post(s)

    Default

    Whats faster? Comparing colour count and colours at certain points or using a DTM?

  14. #14
    Join Date
    Feb 2006
    Location
    Amsterdam
    Posts
    13,692
    Mentioned
    146 Post(s)
    Quoted
    130 Post(s)

    Default

    Quote Originally Posted by ZephyrsFury View Post
    Whats faster? Comparing colour count and colours at certain points or using a DTM?
    Comparing outlines, then determine further is easier, faster and better than DTM's. DTM's are all encrypted, and this is just plain data.
    Also, TPA's > DTM's. They are faster, more dynamic and you can principally do anything with it.



    The best way to contact me is by email, which you can find on my website: http://wizzup.org
    I also get email notifications of private messages, though.

    Simba (on Twitter | Group on Villavu | Website | Stable/Unstable releases
    Documentation | Source | Simba Bug Tracker on Github and Villavu )


    My (Blog | Website)

  15. #15
    Join Date
    Apr 2007
    Location
    Perth, Australia
    Posts
    3,926
    Mentioned
    3 Post(s)
    Quoted
    2 Post(s)

    Default

    Rightio its a good idea then.

  16. #16
    Join Date
    Mar 2007
    Posts
    4,810
    Mentioned
    3 Post(s)
    Quoted
    3 Post(s)

    Default

    Oh what I thought of was make it link to a website to find the picture of the item then create a bitmap or dtm from it like

    SCAR Code:
    Function CreateItems(Item : String; WhatType : String) : Integer;
    Begin
      Case Lowercase(WhatType) Of
        'Bitmap' : Begin
                       //OpenWebPage    ('www.runescapeitems.com/' + lowercase(Item));
      //MakeBitmap 5*5 pixels
       Result := //thing? bitmap              
        end;
       'DTM' : //Same as bitmap except makedtm instead of makebitmap
       Result := //thing? dtm    
    end;

    Procedure FindNet;
    Begin
      If FindBitmap(CreateItems('net', 'dtm'),x, y) Then
         WriteLn('Found');
    end;

    ^ example..

  17. #17
    Join Date
    Sep 2006
    Posts
    6,089
    Mentioned
    77 Post(s)
    Quoted
    43 Post(s)

    Default

    Quote Originally Posted by Wizzup? View Post
    Nice idea. Maybe it would be better to collect information like the items Outline pixels count. (Black outline), it's reference color, approximate tolerance and approximate colors that should be found to identify the item.
    Also Width and Height based on outline. And what about the item's total pixel count?
    What about runes or other common stacks?
    Hup Holland Hup!

  18. #18
    Join Date
    Apr 2007
    Location
    Perth, Australia
    Posts
    3,926
    Mentioned
    3 Post(s)
    Quoted
    2 Post(s)

    Default

    Quote Originally Posted by nielsie95 View Post
    What about runes or other common stacks?
    Use a pixel or several pixels from the middle of the rune or something to identify them.

    EDIT: Or are you talking about the text covering part of the image?

  19. #19
    Join Date
    Sep 2006
    Posts
    6,089
    Mentioned
    77 Post(s)
    Quoted
    43 Post(s)

    Default

    Yes, it would be nice if the system also worked in a store or bank.
    Hup Holland Hup!

  20. #20
    Join Date
    Mar 2008
    Location
    ::1
    Posts
    915
    Mentioned
    0 Post(s)
    Quoted
    1 Post(s)

    Default

    Ok guys, I've got a new idea. There should be a new section of the website where we have a database of 4-5 colors from every object in the game. Everyone would have to help in order to complete the project, and it would be incomplete almost always. For example, if you want to use willow logs in your script and it isn't in the database, then you could add it yourself! Sorry if I didn't explain it too well...

    Records and Types Save Code (and make you look better)
    Quote Originally Posted by Wizzup? View Post
    Is it possible to make Runescape a 2D game with this?... That would greatly simplify... Just about anything.

  21. #21
    Join Date
    Sep 2007
    Location
    Michigan
    Posts
    3,862
    Mentioned
    2 Post(s)
    Quoted
    1 Post(s)

    Default

    Logs would be a problem as well... Very close in color. TPA count of the black outline would be good. Problem is now identifying similar shapes that have same count? You think also having the color inside the item that is most abundant & best average?

    Edit: TPA count of both colors. With near perfect color counts +-1?
    (Scripts outdated until I update for new SRL changes)
    AK Smelter & Crafter [SRL-Stats] - Fast Fighter [TUT] [SRL-Stats]
    If you PM me with a stupid question or one listed in FAQ I will NOT respond. -Narcle
    Summer = me busy, won't be around much.

  22. #22
    Join Date
    Feb 2006
    Location
    Amsterdam
    Posts
    13,692
    Mentioned
    146 Post(s)
    Quoted
    130 Post(s)

    Default

    Quote Originally Posted by nielsie95 View Post
    What about runes or other common stacks?
    A simple color (count) will be able to distinguish them. I'll make an example later.



    The best way to contact me is by email, which you can find on my website: http://wizzup.org
    I also get email notifications of private messages, though.

    Simba (on Twitter | Group on Villavu | Website | Stable/Unstable releases
    Documentation | Source | Simba Bug Tracker on Github and Villavu )


    My (Blog | Website)

  23. #23
    Join Date
    Sep 2006
    Posts
    6,089
    Mentioned
    77 Post(s)
    Quoted
    43 Post(s)

    Default

    I meant the outline length differs also.
    Hup Holland Hup!

  24. #24
    Join Date
    Sep 2008
    Location
    New Zealand
    Posts
    157
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Wow guys you have really expanded the idea much further than I thought. I'm not going to lie and say I understand what you guys are talking about for the most part, will go and read up on TPA's etc now so I can be a little more helpful .

  25. #25
    Join Date
    Apr 2007
    Location
    Perth, Australia
    Posts
    3,926
    Mentioned
    3 Post(s)
    Quoted
    2 Post(s)

    Default

    Quote Originally Posted by tank phobia View Post
    Wow guys you have really expanded the idea much further than I thought. I'm not going to lie and say I understand what you guys are talking about for the most part, will go and read up on TPA's etc now so I can be a little more helpful .
    They're talking about using things that make the image of the item unquie such as the number of black pixels surrounding the item image, the maximum width and height of the item and colours that make similar images (such as logs, runes, cooked, uncooked and burnt fish) different.

Page 1 of 3 123 LastLast

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. DTM Database
    By Dervish in forum Research & Development Lounge
    Replies: 40
    Last Post: 09-10-2009, 11:46 PM
  2. Online Database
    By Simtoon in forum Web Development
    Replies: 6
    Last Post: 02-03-2009, 11:41 PM
  3. Yay!! No more database errors :D
    By JAD in forum SRL Site Discussion
    Replies: 9
    Last Post: 06-11-2007, 10:39 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •