Thread: EverythingRS Heatmaps Realtime [OSRS]

Page 1 of 4 123 ... LastLast
Results 1 to 10 of 32
  1. #1 EverythingRS Heatmaps Realtime [OSRS] 
    Extreme Donator

    Genesis's Avatar
    Join Date
    Sep 2010
    Posts
    3,633
    Thanks given
    1,472
    Thanks received
    1,899
    Rep Power
    4724
    EverythingRS - Realtime Heatmaps Tutorial

    EverythingRS is a free API system. Here's a quick tutorial on how to get started with adding Heatmaps.

    Getting started

    • First off download our everythingrs-api.jar from [Only registered and activated users can see links. ] and include it into your project.


    Registration and secret key

    • After adding the everything-rs.jar into your project [Only registered and activated users can see links. ], once the account is created you must register onto the toplist as we use the toplist data in many of our api's.
    • Now go to your dashboard and you should see your secret key


    What you are adding

    Heatmaps can be used to view hotspots in the game, you can view where the wilderness hotspots are, alternatively you can view non-wilderness hotspots. Either can be disabled, so if you only want to show the wilderness hotspot you can do this.

    • Red = Wilderness Hotspots
    • Blue = Non Wilderness Hotspots






    Making the Heatmaps work with your server

    This part of the tutorial is for PI & Ruse, but can easily be changed to work with any server. If you want me to add a snippet on the thread so it can work with your framework leave a comment with the server base you want the snippet for.

    Spoiler for For PI:

    In your server startup (Server.java) under

    Code:
    public static void main(
    Add this and change your secret key to the one on your account

    Code:
    		com.everythingrs.service.Service.scheduledService.scheduleAtFixedRate(new Runnable() {
    			@Override
    			public void run() {
    				com.everythingrs.heatmaps.Heatmap.getMap().clear();
    				for (Player player : PlayerHandler.players) {
    					if (player != null) {
    						com.everythingrs.heatmaps.Heatmap.getMap().put(player.getUsername(),
    								new com.everythingrs.heatmaps.Heatmap(player.getUsername(), player.absX, player.absY,
    										player.height));
    					}
    				}
    				com.everythingrs.heatmaps.Heatmap.update("secret_key");
    			}
    		}, 0, 5, java.util.concurrent.TimeUnit.SECONDS);


    Spoiler for For Ruse:

    In GameServer.java under

    Code:
    public static void main(
    Add

    Code:
    		com.everythingrs.service.Service.scheduledService.scheduleAtFixedRate(new Runnable() {
    			@Override
    			public void run() {
    				com.everythingrs.heatmaps.Heatmap.getMap().clear();
    				for (Player player : World.getPlayers()) {
    					if (player != null) {
    						com.everythingrs.heatmaps.Heatmap.getMap().put(player.getUsername(),
    								new com.everythingrs.heatmaps.Heatmap(player.getUsername(), player.getPosition().getX(),
    										player.getPosition().getY(), player.getPosition().getZ()));
    					}
    				}
    				com.everythingrs.heatmaps.Heatmap.update("secret_key");
    			}
    		}, 0, 5, java.util.concurrent.TimeUnit.SECONDS);


    Fin

    You are finished with the tutorial and can now view your heatmaps on your subdomain page

    • [Only registered and activated users can see links. ]
    • [Only registered and activated users can see links. ]
    • [Only registered and activated users can see links. ]
    • [Only registered and activated users can see links. ]
    • [Only registered and activated users can see links. ]
    • [Only registered and activated users can see links. ]
    • [Only registered and activated users can see links. ]
    • [Only registered and activated users can see links. ]


    1. [Only registered and activated users can see links. ]


    1. [Only registered and activated users can see links. ]
    2. [Only registered and activated users can see links. ]
    Reply With Quote  
     


  2. #2  
    DeadlyPkers

    Join Date
    Oct 2007
    Posts
    12
    Thanks given
    57
    Thanks received
    -70
    Rep Power
    96
    Damn, well done.

    Reply With Quote  
     

  3. Thankful user:


  4. #3  
    ALWAYS ASK FOR A PM BEFORE YOU PURCHASE!

    Join Date
    Jul 2011
    Posts
    1,716
    Thanks given
    444
    Thanks received
    402
    Rep Power
    239
    while it is a cool feature, may I ask why people would exactly want to implement this? :P I could imagine it being very nice for PvP servers, but why?


    (didn't hate btw), this is for matrix frameworks:


    Code:
    com.everythingrs.service.Service.scheduledService.scheduleAtFixedRate(new Runnable() {
    					@Override
    					public void run() {
    						com.everythingrs.heatmaps.Heatmap.getMap().clear();
    						
    						for (Player player : World.getPlayers()) {
    							if (player == null || !player.isRunning())
    								continue;
    							com.everythingrs.heatmaps.Heatmap.getMap().put(player.getUsername(),
    									new com.everythingrs.heatmaps.Heatmap(player.getUsername(), player.getX(), player.getY(),
    											player.getPlane()));
    						}
    						com.everythingrs.heatmaps.Heatmap.update("secret_key");
    					}
    				}, 0, 5, java.util.concurrent.TimeUnit.SECONDS);
    [Only registered and activated users can see links. ]

    Need to talk to me or have a question?

    Add me on skype: hassan_g3450
    Reply With Quote  
     

  5. #4  
    Server developer


    Join Date
    Jul 2010
    Posts
    853
    Thanks given
    265
    Thanks received
    53
    Rep Power
    94
    Doesnt seem to work for google chrome?


    I am the one who knocks
    - - - - -

    Reply With Quote  
     

  6. #5  
    Extreme Donator

    Genesis's Avatar
    Join Date
    Sep 2010
    Posts
    3,633
    Thanks given
    1,472
    Thanks received
    1,899
    Rep Power
    4724
    Quote Originally Posted by Hassan View Post
    while it is a cool feature, may I ask why people would exactly want to implement this? :P I could imagine it being very nice for PvP servers, but why?
    It's used to check hotspots, so for example for smaller servers it helps users find each other in the wilderness and promotes activity.

    Quote Originally Posted by klaasvaakjes View Post
    Doesnt seem to work for google chrome?
    Did you install it server-side? The server has to be online and the tutorial installed to remove the loading screen.
    • [Only registered and activated users can see links. ]
    • [Only registered and activated users can see links. ]
    • [Only registered and activated users can see links. ]
    • [Only registered and activated users can see links. ]
    • [Only registered and activated users can see links. ]
    • [Only registered and activated users can see links. ]
    • [Only registered and activated users can see links. ]
    • [Only registered and activated users can see links. ]


    1. [Only registered and activated users can see links. ]


    1. [Only registered and activated users can see links. ]
    2. [Only registered and activated users can see links. ]
    Reply With Quote  
     

  7. #6  
    口∪匕 口下 匕工爪

    lumplum's Avatar
    Join Date
    Nov 2015
    Posts
    728
    Thanks given
    148
    Thanks received
    459
    Rep Power
    3168
    looks pretty neat man, nice work!
    [Only registered and activated users can see links. ]
    [Only registered and activated users can see links. ]
    Reply With Quote  
     

  8. Thankful user:


  9. #7  
    Extreme Donator

    Genesis's Avatar
    Join Date
    Sep 2010
    Posts
    3,633
    Thanks given
    1,472
    Thanks received
    1,899
    Rep Power
    4724
    Quote Originally Posted by lumplum View Post
    looks pretty neat man, nice work!
    Thank you

    Quote Originally Posted by klaasvaakjes View Post
    Doesnt seem to work for google chrome?
    I looked into the browser compatibility issue, and that's patched now thanks again for bringing that to my attention

    Edit: Also made it so the loading screen won't hang if you didn't install it server-side (for people that want to be able to visually see the api before installing).
    • [Only registered and activated users can see links. ]
    • [Only registered and activated users can see links. ]
    • [Only registered and activated users can see links. ]
    • [Only registered and activated users can see links. ]
    • [Only registered and activated users can see links. ]
    • [Only registered and activated users can see links. ]
    • [Only registered and activated users can see links. ]
    • [Only registered and activated users can see links. ]


    1. [Only registered and activated users can see links. ]


    1. [Only registered and activated users can see links. ]
    2. [Only registered and activated users can see links. ]
    Reply With Quote  
     

  10. #8  
    Server developer


    Join Date
    Jul 2010
    Posts
    853
    Thanks given
    265
    Thanks received
    53
    Rep Power
    94
    Quote Originally Posted by Genesis View Post
    Thank you



    I looked into the browser compatibility issue, and that's patched now thanks again for bringing that to my attention

    Edit: Also made it so the loading screen won't hang if you didn't install it server-side (for people that want to be able to visually see the api before installing).
    I am still having the issue on google chrome, on firefox it does work.
    Last edited by klaasvaakjes; 03-19-2018 at 09:46 AM.


    I am the one who knocks
    - - - - -

    Reply With Quote  
     

  11. #9  
    Extreme Donator

    Genesis's Avatar
    Join Date
    Sep 2010
    Posts
    3,633
    Thanks given
    1,472
    Thanks received
    1,899
    Rep Power
    4724
    Quote Originally Posted by klaasvaakjes View Post
    I am still having the issue on google chrome, on firefox it does work.
    Must be the browsing cache, try clearing your cache or open in incognito mode (CTRL + N). I've tested it on Chrome on two different devices and it's working. Also just cleared the cache on our end.
    • [Only registered and activated users can see links. ]
    • [Only registered and activated users can see links. ]
    • [Only registered and activated users can see links. ]
    • [Only registered and activated users can see links. ]
    • [Only registered and activated users can see links. ]
    • [Only registered and activated users can see links. ]
    • [Only registered and activated users can see links. ]
    • [Only registered and activated users can see links. ]


    1. [Only registered and activated users can see links. ]


    1. [Only registered and activated users can see links. ]
    2. [Only registered and activated users can see links. ]
    Reply With Quote  
     

  12. #10  
    Server developer


    Join Date
    Jul 2010
    Posts
    853
    Thanks given
    265
    Thanks received
    53
    Rep Power
    94
    Oh yeah cleared my cache and it worked. nice


    I am the one who knocks
    - - - - -

    Reply With Quote  
     

  13. Thankful user:


Page 1 of 4 123 ... LastLast

Thread Information
Users Browsing this Thread

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

Similar Threads

  1. Osrs client?
    By geordie in forum Requests
    Replies: 0
    Last Post: 02-22-2018, 02:27 PM
  2. Replies: 484
    Last Post: 02-21-2018, 07:17 PM
  3. Replies: 20
    Last Post: 01-12-2018, 09:33 PM
  4. [2007] OSRS Client Applet
    By OnCue in forum Downloads
    Replies: 3
    Last Post: 03-01-2013, 03:43 AM
  5. [OsR]Old School Remix #317
    By Joker in forum Projects
    Replies: 10
    Last Post: 10-21-2010, 12:49 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
  •