SRL Archive - Java Help and Tutorials

Capturing map data from rs


o0Matthius0o

2015-03-06 14:39:17

I am wanting to write a program in java that can capture the map data from the minimap before it is displayed to the user. I want to make this in java to make SPS maps without the minimap icons and dots. Which shift along with the map making it near impossible to stitch together.

If anyone could walk me through this or point me in the right direction that would be great. Or you can give me the name of what this technique is called so i can search it myself.

I have heard this can be done using opengl hooks(not sure what that means) in c++.

But i know java has JOGL so i should be able to use that. (if not please explain why)

Clarity

2015-03-06 14:56:56

From: o0Matthius0o
I have heard this can be done using opengl hooks(not sure what that means) in c++.

Have you seen this? https://villavu.com/forum/showthread.php?t=111234

Hoodz

2015-03-06 15:25:09

if you want it for osr, i got a snippet for you

Harrier

2015-03-06 16:38:33

From: hoodz
if you want it for osr, i got a snippet for you

Not sure if you've seen this; https://github.com/WarPie/RSWalker/blob/master/maps/MapGrabber.simba

Hoodz

2015-03-06 16:42:35

From: Hawker
Not sure if you've seen this; https://github.com/WarPie/RSWalker/blob/master/maps/MapGrabber.simba


yes i saw that

o0Matthius0o

2015-03-06 16:51:02

From: Clarity
Have you seen this? https://villavu.com/forum/showthread.php?t=111234


I was looking for that. Thanks. But I would still like to learn to make things like that. Could help me developed some programming skills

KeepBotting

2015-03-06 17:58:36

From: o0Matthius0o
I was looking for that. Thanks. But I would still like to learn to make things like that. Could help me developed some programming skills


That thread contains a snippet & instructions on using Brandon's OpenGL plugin to accomplish exactly what BMWxi did with his SPS World Map project, check them out if you want to learn

Brandon

2015-03-06 18:18:45

From: o0Matthius0o
I want to write a program in java..



Take a look at (Java client that hooks OpenGL): http://rs-hacking.com/forum/index.php?/topic/881-old-rs3-opengl-client-source/

The word you are looking for is "Detouring".

To hook the map you need to hook 4 functions:

- glBindTexture
- glTexImage2D
- glPixelStoreI
- glVertex2f

The Simba plugin already provides such mechanisms. You can write a port to load it in Java and just use that as your underlying base.. Unless you truly want a pure Java solution.