Thread: [530] Item Overlay

Results 1 to 4 of 4
  1. #1 [530] Item Overlay 
    Registered Member
    Join Date
    Nov 2018
    Posts
    4
    Thanks given
    0
    Thanks received
    0
    Rep Power
    0
    Trying to draw item names over ground items (name and quantity), client is GitHub - Pazaz/RT4-Client: RT4 client originally compiled on Jan 28, 2009 (530) and the server is a locally hosted 2009scape server.

    Been messing around with the render function in ObjStack but no luck so far, any help is appreciated
    Reply With Quote  
     

  2. #2  
    Registered Member
    Join Date
    Nov 2018
    Posts
    4
    Thanks given
    0
    Thanks received
    0
    Rep Power
    0
    Bump
    Reply With Quote  
     

  3. #3  
    Forum Moderator




    Join Date
    Oct 2013
    Posts
    53
    Thanks given
    99
    Thanks received
    166
    Rep Power
    692
    I haven't found a good place to hook into (if you draw 2d text while in that render method it will probably result in some of the scenery disappearing), but you would call something like this:

    Code:
    Fonts.p11Full.renderCenter(
        JagString.concatenate(new JagString[] {
            ObjTypeList.get(objStack.type).name, JagString.parse(" "), JagString.parseInt(objStack.amount)
        }),
        x,
        y,
        color,
        -1
    );
    The next part is converting the 3D-space coordinates into a suitable 2D-screen coordinate above the item (easier said than done but the calling function does expose "xFine" and "zFine" that you'd use here). The 2009scape guys have a plugin system but I don't think this area is exposed much at all.
    I've seen someone do a port of RuneLite to 530 (based on one of the 530s clients I worked on) where they had something like what you want after integrating the necessary API calls. Unfortunately they didn't release anything publicly, just screenshots and help requests.

    ---EDIT---
    Found a screenshot of that guy's port. No code unfortunately.
    https://media.discordapp.net/attachm...72/unknown.png
    [530] Item Overlay Attached Images
    Reply With Quote  
     

  4. Thankful user:


  5. #4  
    Registered Member
    Join Date
    Nov 2018
    Posts
    4
    Thanks given
    0
    Thanks received
    0
    Rep Power
    0
    Quote Originally Posted by Pazaz View Post
    I haven't found a good place to hook into (if you draw 2d text while in that render method it will probably result in some of the scenery disappearing), but you would call something like this:

    Code:
    Fonts.p11Full.renderCenter(
        JagString.concatenate(new JagString[] {
            ObjTypeList.get(objStack.type).name, JagString.parse(" "), JagString.parseInt(objStack.amount)
        }),
        x,
        y,
        color,
        -1
    );
    The next part is converting the 3D-space coordinates into a suitable 2D-screen coordinate above the item (easier said than done but the calling function does expose "xFine" and "zFine" that you'd use here). The 2009scape guys have a plugin system but I don't think this area is exposed much at all.
    I've seen someone do a port of RuneLite to 530 (based on one of the 530s clients I worked on) where they had something like what you want after integrating the necessary API calls. Unfortunately they didn't release anything publicly, just screenshots and help requests.

    ---EDIT---
    Found a screenshot of that guy's port. No code unfortunately.
    https://media.discordapp.net/attachm...72/unknown.png

    I've had a look at how RuneLite does it and the 3d to 2d conversations (the world 2 canvas stuff I believe) but I'm not even sure where to start in the RT4 client. I am indeed playing using the offline/singleplayer version of 2009 and had a look at the plugin system but it's still very WIP and like you said not much is currently exposed.

    That 530 screenshot looks interesting, obviously a full RL port would be ideal but gotta start somewhere, seems that not that many are interested in the 530-around-ish-client which is a shame, thanks for sharing the picture and I appreciate the information, if you find something else feel free to let me know/post it.
    Reply With Quote  
     


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. 530 Underlay/Overlay Flo
    By Richard1992 in forum Downloads
    Replies: 11
    Last Post: 08-11-2015, 12:23 AM
  2. Replies: 11
    Last Post: 08-13-2013, 12:10 AM
  3. Replies: 38
    Last Post: 08-04-2013, 05:34 PM
  4. 525/530 Items
    By Kaiser Btw in forum Requests
    Replies: 0
    Last Post: 03-17-2013, 07:36 AM
  5. [PI] Item overlay instead of wear
    By Spencer4678 in forum Help
    Replies: 1
    Last Post: 04-23-2012, 03:17 AM
Tags for this Thread
530

View Tag Cloud

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