Thread: Item spawn dump

Page 3 of 3 FirstFirst 123
Results 21 to 26 of 26
  1. #21  
    Community Veteran

    mige5's Avatar
    Join Date
    Aug 2008
    Posts
    5,528
    Thanks given
    573
    Thanks received
    1,410
    Rep Power
    2114
    Quote Originally Posted by Rojeh View Post
    I don't understand what you mean by checking if the item spawn is within the map bounds, the data on the API is a little bit confusing, can you elaborate how it works? or I can add the mapId instead to each spawn if it saves you some time.
    Oh I noticed in the file u linked for maps, it has the bounds defined in there:

    For example for map 0:
    Code:
    "mapId": 0, "name": "RuneScape Surface", "bounds": [[1088, 2432], [3968, 4160]]
    I think the format is:
    Code:
    "mapId": Id, "name": "mapName", "bounds": [[x1, y1], [x2, y2]]
    ^So u would need to load the mapFile and then check if the coordinates for itemspawn position is actually inside the area defined by the map.

    + Also not sure if u have a way to automate all items with field spawns, but theres atleast: potato, cabbage, onion, grain.
    Last edited by mige5; 03-25-2023 at 01:57 PM.
    Number of page #1 releases with most views & posts: (Updated: 2023)
    RS2 server section: 1
    RS2 client section: 2
    Reply With Quote  
     

  2. #22  
    Community Veteran

    mige5's Avatar
    Join Date
    Aug 2008
    Posts
    5,528
    Thanks given
    573
    Thanks received
    1,410
    Rep Power
    2114
    Quote Originally Posted by Rojeh View Post
    Regarding the fields, I will take them out of the file, no worries.
    Hey not 100% sure, but I think the field spawns (and any other like that will get removed when u do this)

    Noticed that each spawn also has a description:
    Code:
    description\":\"<b>Item</b>
    Code:
    description\":\"<b>Object</b>
    ^So I guess u just need to check that the description says "Item"
    Number of page #1 releases with most views & posts: (Updated: 2023)
    RS2 server section: 1
    RS2 client section: 2
    Reply With Quote  
     

  3. #23  
    Registered Member Rojeh's Avatar
    Join Date
    Jun 2012
    Posts
    353
    Thanks given
    7
    Thanks received
    20
    Rep Power
    75
    Quote Originally Posted by mige5 View Post
    Oh I noticed in the file u linked for maps, it has the bounds defined in there:

    For example for map 0:
    Code:
    "mapId": 0, "name": "RuneScape Surface", "bounds": [[1088, 2432], [3968, 4160]]
    I think the format is:
    Code:
    "mapId": Id, "name": "mapName", "bounds": [[x1, y1], [x2, y2]]
    ^So u would need to load the mapFile and then check if the coordinates for itemspawn position is actually inside the area defined by the map.

    + Also not sure if u have a way to automate all items with field spawns, but theres atleast: potato, cabbage, onion, grain.
    Filtering spawns by the bounds of the map does treat the symptom of weird spawns like the burnt bones at Lumbridge but I don't think this is the solution.
    If you look up the spawns of said item you will find on the end of the list the one which appears to have same coordinates you mentioned earlier on the post and it validates the data is correct and doesn't require filtering out.

    My thoughts are that different maps could potentially have identical coordinates when they are not part of the surface map, if it is true then there must be a better way to approach the issue.

    The second issue is solved, it will be available in the next file update.
    • If it been done before you can do it too!
    • We're all humans, built from the same resources by different layouts and schemes.
    • Nobody is perfect, everyone has their own defects and disabilities.
    • Choose to be kind, not because you have to but because you understand how it feels to be treated bad.
    • Be against racism regardless of how you were raised because nobody loves feeling odd and not belonging.
      If any of the above inspires you make sure to pass it on
    Reply With Quote  
     

  4. #24  
    Community Veteran

    mige5's Avatar
    Join Date
    Aug 2008
    Posts
    5,528
    Thanks given
    573
    Thanks received
    1,410
    Rep Power
    2114
    Quote Originally Posted by Rojeh View Post
    Filtering spawns by the bounds of the map does treat the symptom of weird spawns like the burnt bones at Lumbridge but I don't think this is the solution.
    If you look up the spawns of said item you will find on the end of the list the one which appears to have same coordinates you mentioned earlier on the post and it validates the data is correct and doesn't require filtering out.

    My thoughts are that different maps could potentially have identical coordinates when they are not part of the surface map, if it is true then there must be a better way to approach the issue.
    Nah, if u didnt know its all just 1 big map and the non-surface areas are just way up north, u can check the map here: (the wiki just has them positioned and labeled to easily get to the map u want)
    Explv's Map

    Also thats why if u check for example Gold ring - OSRS Wiki spawn for: Hallowed Sepulchre Nothing is shown as the actual coordinates are for lumbridge.

    Also can check like this:

    Gold ring spawn:
    Code:
    coordinates: 3233,3222,0 mapID: 10187
    Map:
    Code:
    mapId: 10187, name: "Hallowed Sepulchre - Level 2", bounds: [[2368, 5824], [2688, 6144]]
    so map size for that area: 320x320

    ^So yeah the coords are simply invalid.

    I think if u really want to keep these just put them on separate list as spawns that need to be manually fixed.
    Number of page #1 releases with most views & posts: (Updated: 2023)
    RS2 server section: 1
    RS2 client section: 2
    Reply With Quote  
     

  5. #25  
    Registered Member Rojeh's Avatar
    Join Date
    Jun 2012
    Posts
    353
    Thanks given
    7
    Thanks received
    20
    Rep Power
    75
    Quote Originally Posted by mige5 View Post
    Nah, if u didnt know its all just 1 big map and the non-surface areas are just way up north, u can check the map here: (the wiki just has them positioned and labeled to easily get to the map u want)
    Explv's Map

    Also thats why if u check for example Gold ring - OSRS Wiki spawn for: Hallowed Sepulchre Nothing is shown as the actual coordinates are for lumbridge.

    Also can check like this:

    Gold ring spawn:
    Code:
    coordinates: 3233,3222,0 mapID: 10187
    Map:
    Code:
    mapId: 10187, name: "Hallowed Sepulchre - Level 2", bounds: [[2368, 5824], [2688, 6144]]
    so map size for that area: 320x320

    ^So yeah the coords are simply invalid.

    I think if u really want to keep these just put them on separate list as spawns that need to be manually fixed.

    I updated the file.
    The JSON now excludes the invalid coordinates (filtered by map bounds) and Objects
    • If it been done before you can do it too!
    • We're all humans, built from the same resources by different layouts and schemes.
    • Nobody is perfect, everyone has their own defects and disabilities.
    • Choose to be kind, not because you have to but because you understand how it feels to be treated bad.
    • Be against racism regardless of how you were raised because nobody loves feeling odd and not belonging.
      If any of the above inspires you make sure to pass it on
    Reply With Quote  
     

  6. Thankful user:


  7. #26  
    Community Veteran

    mige5's Avatar
    Join Date
    Aug 2008
    Posts
    5,528
    Thanks given
    573
    Thanks received
    1,410
    Rep Power
    2114
    Quote Originally Posted by Rojeh View Post
    I updated the file.
    The JSON now excludes the invalid coordinates (filtered by map bounds) and Objects
    Thx, I think thats probably the best it can get with automation now.
    Number of page #1 releases with most views & posts: (Updated: 2023)
    RS2 server section: 1
    RS2 client section: 2
    Reply With Quote  
     

Page 3 of 3 FirstFirst 123

Thread Information
Users Browsing this Thread

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


User Tag List

Similar Threads

  1. king-client (item spawning)
    By Rune-energy in forum Downloads
    Replies: 16
    Last Post: 06-18-2008, 11:04 AM
  2. Securing Item Spawning
    By darkest_mage in forum Tutorials
    Replies: 0
    Last Post: 09-16-2007, 07:34 AM
  3. adding item spawns my way
    By luke1105 in forum Tutorials
    Replies: 1
    Last Post: 09-08-2007, 03:45 PM
  4. ~-~-~ Item Recolor Dump ~-~-~
    By MrWicked in forum Tutorials
    Replies: 18
    Last Post: 09-01-2007, 03:41 AM
  5. making items spawn on ground
    By messiaH in forum Tutorials
    Replies: 4
    Last Post: 05-18-2007, 04:12 AM
Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •