NEw SPS Path Gen, open source, cross platform
m34tcode
2012-04-17 03:55:36
Update 9/1/2016My utility may not work well with the new updates to SPS, however someone( I think TheMayor) updated mine, and has released the source and jar executable
here—-
I've been working on a new version of wolygons path maker. This one is written, in java, so it is cross platform.
Features:
- Copies the generated path and area declaration directly to your clipboard.
- Can load different maps into the program.
- Can manually tell the program to repaint itself, in-case something weird happens.
- Can Reorder,move, and remove points previously created.
- A mini-map for easy navigation. Click where you want the view to move to.
- Holding control down, while dragging to move the view, will make it drag 5x faster, so you can move the view more efficiently. Don't need to spend 10 minutes dragging across to the other side of the map.
- A list of locations you can jump to
- Fully configureable
- save paths for later use or editing
- jump view to any point in list by right clicking
The program is also fully configurable, and you can set the color for the points and lines, the distance at which two points are considered to far apart, the darkness for the 'spotlight effect' around the selected point(s)
It will now also remember all of your settings,and the path to the last image file you loaded, so you can work much faster.
This program also features a 'minimap', for quick navigation across the rs map. Just click anywhere on the minimap, and the program will move the view to that location.


Straight from the Programs Help screen:
Navigation
You can move the view around by clicking or dragging the mouse on the minimap, in the top right corner, or you can drag the map view around with the right mouse button.
Adding points to your path
To add a point, click in the view area. You can adjust the location of any point in your path, by right clicking it in the list, and clicking the new point on the view. You can also reorder your points by right clicking a point in the list, and entering its new index. You can also clear all points from your path by choosing Path -> Clear Path
Loading your map
To load a map, choose Image -> Load different map. If changes are made to the map externally, you can update it by choosing Image -> Reload map
Saving your paths
You can save your path by choosing Path -> Save Path, and load them later, with the Path -> Load Path menu item.
Settings
- Max Line Length: This controls how far apart two points can be, before they are considered too far apart and displayed as dotted lines
- Fog Opacity: The density of the fog, surrounding the selected point(s)
- Line Color: The color of lines between points that are not too distant,as determined by the Max Line Length value
- Warning Line color: The color of lines between points that are too distant, as determined by the Max Line Length value
- Point color: The color of all points, excluding the currently selected point
- Selected Point Color: The color of the selected point
- Include surrounding areas in generation: This will force the generator to include all possible areas, if a point lies on more than one map segment.
- dynamically filters the included areas, to those that exist, based on the files list in the sps img folder
begginer
2012-04-17 04:01:58
Wow, hope this perfects. +rep.
m34tcode
2012-04-17 04:02:53
Ill have the jar up so you can try it out tommorow ;]
Sirenia
2012-04-17 04:55:05
m34tcode
2012-04-17 10:30:25
copy and paste the link to your browser. seemed to work for me?
EDIT: nvm it works now
nice! rep+
is this recreating the wheel though?
m34tcode
2012-04-17 11:02:08
No. Many people couldnt run wolygons path creator because they had old computers. This one will run on any pc that has java. Also allows you to manipulate your paths, which you cannot do in wolygons. you cannot delete a point, so if you have too many points your stuck
From: m34tcode
No. Many people couldnt run wolygons path creator because they had old computers. This one will run on any pc that has java. Also allows you to manipulate your paths, which you cannot do in wolygons. you cannot delete a point, so if you have too many points your stuck
Im in full support of this as, yes, many people do not have Wolygon support. Just one question, will this be slower than wolygon's (lagwise) because I find Wolygons quite slow
m34tcode
2012-04-17 11:09:44
I found it laggy a little, but this one is instant. it only loads the visible rectangle section of the map so its just like dragging something in real life. instant
Sir R. M8gic1an
2012-04-17 11:22:16
Looks really good and well made, efficient. Rep+
I do have two suggestions: painting the minimap circle around the latest point, so that you know what the limit for the next point is, (like it was in Sumillion's path maker I believe), and making the dot go a different colour if it is too far away to click.
It's easy to find out the radius u need for this, just open up Simba and do MMX2 - MMCX, that'll give you the MM's radius.
-RM
Kyle Undefined
2012-04-17 11:28:50
The link just redirects me to the logo…
Sir R. M8gic1an
2012-04-17 11:31:44
From: Kyle Undefined
The link just redirects me to the logo…
I just fixed that, give it a go
-RM
Kyle Undefined
2012-04-17 11:34:04
From: Sir R. M8gic1an
I just fixed that, give it a go
-RM
It still did it, so I just copied link and pasted into new tab. That worked :p
I like it though, and how the whole map is visible too.
m34tcode
2012-04-17 11:53:28
From: Sir R. M8gic1an
Looks really good and well made, efficient. Rep+
I do have two suggestions: painting the minimap circle around the latest point, so that you know what the limit for the next point is, (like it was in Sumillion's path maker I believe), and making the dot go a different colour if it is too far away to click.
It's easy to find out the radius u need for this, just open up Simba and do MMX2 - MMCX, that'll give you the MM's radius.
-RM
Ah two great ideas =D
I think you meant wolygons path maker? Wasn't aware sumilion wrote one too
Adding the circle right now,and I can change the color of a line between two points if its too far? Same effect.
not entirely sure what col would be best =\
also thanks for the link fix, i couldnt figure it out =\
Kyle Undefined
2012-04-17 11:57:28
Sumillion built the original Radial Walk tool, iirc.
m34tcode
2012-04-17 12:18:56
ohhh that. I was thinking he meant the path maker
EDIT: made the changes. Also added anti aliasing, so it looks cleaner
Result:

Sir R. M8gic1an
2012-04-17 12:52:58
From: Kyle Undefined
Sumillion built the original Radial Walk tool, iirc.
Nah I think yakman did that. Sumillion wrote one for when it was still reflection walking.
-RM
Kyle Undefined
2012-04-17 12:54:50
From: Sir R. M8gic1an
Nah I think yakman did that. Sumillion wrote one for when it was still reflection walking.
-RM
Ahh, I wasn't around much for reflection. I just remember seeing a RW tool by him :p
Why do your pictures just say "freehostingcloud" :S
From: Ollybest
Why do your pictures just say "freehostingcloud" :S
If you read through the topic you would've found the answer already. Just quote his post and copy&paste the link in your browser.
Looks interesting, by the way! Unfortunately there aren't any SPS maps available for the Great Orb Project yet. Working on my own hehe
Jakkle
2012-04-17 13:06:04
Very nice m34tcode, I will look forward to using it.
m34tcode
2012-04-17 13:16:38
Modified it so it isnt so dark outside the minimap, and made the current point get painted last, so that if multiple points are on top of each other, it wont get buried.
Also will paost a jar and source zip in a few mins. Any more suggestions?
BTW, dotted line means it is a bad line, longer than 70 pixels, so there is a good chance sps will fail

you can see the distance that i set as acceptable, between the two lines branching from the middle of the mm circle. the dotted one is too long, the non dotted is fine
edit wth D= my pic is gone o.O
it works, then it doesnt =\
Jakkle
2012-04-17 13:27:37
I can't see the images you have posted. It only shows the free hosting cloud pic and the last pic don't show at all :S
Edit: No need for the pic i put up m34tcode sorted it :)
m34tcode
2012-04-17 13:29:52
Yea i think im going to move to a dif host 3:
They dont seem to work well, but maybe its me =\
I moved the pic to a dif host so it should work now
Jakkle
2012-04-17 13:33:59
Doh, just posted your pic :p it was obviously that host lol.
Kyle Undefined
2012-04-17 13:34:23
Shouldn't any line within the circle not be dotted, and anything outside of it is dotted?
m34tcode
2012-04-17 14:05:27
no, because you get the warning when two points are so far away, it will never be able to click them. new pic to explain that lol
good path

bad path:

The last point extends beyond the minimap edge, so you cannot walk to it
Jakkle
2012-04-17 14:14:46
I really like the spot light effect, better than just a drawn circle.
The dotted line is good to. It looks really good mate :thumbsup:
Kyle Undefined
2012-04-17 14:21:15
Ahh I see, and does the circle move with the points?
m34tcode
2012-04-17 14:25:11
what do you mean? if you change which point is selected, then the circle appears around that point. Is that what you meant?
Also never thought of it as a spotlight, just thought i didn't like the circle lol
EDIT: ill upload source and jar soon, i know i said that like 3 hours ago lol. fixing a selection problem. not actually a problem but im changing the behavior.
After you delete a point , the circle disappears because there is no longer a selection. just making it so that there will always be a selected point, if there are any points
EDIT: uploaded src and jar, both zipped
Imanoobbot
2012-04-17 15:11:54
This is looking so cool. Can“t wait to test it when im finished with my work. =)
m34tcode
2012-04-17 15:27:50
couple new vids demonstrating the current look of it =]
Jakkle
2012-04-17 21:44:23
Liking it alot :thumbsup:
I like how you can maximize the window and that you can move the main screen map by holding down the right mouse button and also on the full/mini map with the left mouse. Very easy to use :)
One thing tho. Could you put a copy reverse path button ? So that you only make one path but can get 2 path arrays to copy (there and back).
So far so good, thanks alot.
I would give you Rep+ for this but I got to give to others first :mad:.
m34tcode
2012-04-17 22:18:15
haha that's an amazing idea
Instead of doing a direct path copy, i will flip the points array.
And the rep is teasing me =[
One more point i think to two blocks lol
also, i added a settings dialog. Most of the settings are changeable.
the point color, selected node col, line color, warning lin col(the ones that get dotted because they are too long)
along with the fog density, for the spot like effect.


Edit: you can now flip the whole path. =] Fairly easy to implement
Sir Ducksworthy
2012-04-17 23:07:06
Sweet we really needed an updated one of these so many people have been trying to use the other one with Sps 2.0 and failing hardcore.
m34tcode
2012-04-17 23:33:27
Well, I havent added the area declaration, because 2.0 doesn't need. this did work with 1.0 though. Im not aware of any changes that will make it work with 2.0 o.O thought they were same lol.
Ill make sure it does work though.
And ill continue developing until I get it rebuilt and open source. Ill have a git repo up at some point.
My big problem is structure. Im not entirely sure what the best way to structure this would be.
Jakkle
2012-04-17 23:37:14
From: m34tcode
haha that's an amazing idea
Instead of doing a direct path copy, i will flip the points array.
Just makes things a little faster for scripters :p
Also you need to output what area(s) the points are in, unless I missed that ?
Edit: didn't see this until I posted.
From: m34tcode
Well, I havent added the area declaration, because 2.0 doesn't need. this did work with 1.0 though. Im not aware of any changes that will make it work with 2.0 o.O thought they were same lol.
And the rep is teasing me =[
One more point i think to two blocks lol
Thats a shame :( I really want to give you another rep. I only like to give it to people that deserve it ;) hence why I can't just go and give rep now lol, if you get what I mean, anyway.
also, i added a settings dialog. Most of the settings are changeable.
the point color, selected node col, line color, warning lin col(the ones that get dotted because they are too long)
along with the fog density, for the spotlike effect.
Sounds good man keep it up :thumbsup:
m34tcode
2012-04-18 00:32:36
Now added the copy area declaration, for users of SPS one =]
It should work, but i havent tested yet.
this is the code for generating the area declaration string, if anyone is intweresed. I beleive I calculated it right by taking the x and y, and dividing by 500 and rounding down.
public String getAreaDecleration(){
Point[] points = sidePane.getPoints();
java.util.List<String> areaList = new ArrayList<String>();
String currArea;
Boolean foundMatch = false;
for (Point p : points){
currArea = getArea(p);
for (String s : areaList){
if (s.equals(currArea)) {
foundMatch = true;
break;
}
if (foundMatch)
break;
areaList.add(s);
}
}
StringBuilder sb = new StringBuilder("myAreas := [");
for (int i = 0 ; i < areaList.size(); i++){
sb.append(areaList.get(i));
if (i < points.length - 1 && points.length > 0){
sb.append(", ");
}
}
return sb.toString();
}
public String getArea(Point p){
int areaX = (int)Math.floor(p.x / 500);
int areaY = (int)Math.floor(p.y / 500);
return "" + areaX + "_" + areaY;
}
Wolygon
2012-04-18 02:22:21
Looks great :)
Only thing is that it uses ~400MB memory whereas mine uses ~200MB. Other than that it looks like a nice improvement.
m34tcode
2012-04-18 19:02:29
ah i hadnt looked at memory. I didn't originally want to use java, but the vm may be what is using so much memory. will check that out. Thanks for letting me know =]
My profiling results:
Before loading a map image, this is the memory usage.

after loading the runescape map:

Memory is unaccounted for so far. the map tself showed as 40 mb, leaving over a hundred left to find. I dont see why the vm would take so much
Heap space graph. I spent forever drgaging around the map to get the heap usage up, until if FINALLY called Garbage Colection. First drop is the automatic call, second i called manually. Both, as they should have, dropped memory to about the same level as was before i started moving the window around. The heap size not going up shows there shouldnt be any memory leaks, which is good. obviously =\

completely stumped as to why profiling does not give the full memory usage 0.o
according to profiling this is usage, at less than one mb, when task man says about 200 megs

Wolygon, were did you get the idea that this uses twice the mem yours does? i get about equal o.o
They both just load the rs map into memory and draw =\
Wolygon
2012-04-18 22:26:11
Yes I wasn't very happy when I found out mine used so much memory.
Wolygon, were did you get the idea that this uses twice the mem yours does? i get about equal o.o
They both just load the rs map into memory and draw =\
I don't know why but I just load the map from Includes\SPS\img\runescape_surface. It starts at 29MB then goes to 380MB. Maybe its just me……..
m34tcode
2012-04-18 22:31:03
wow, thats weird. I ran yours, and got a near identical mem usage, at 170-180 o.O
What java version are you running? My program runs off of jre 6 but maybe your is running 7 some how? i hear many problems with jre 7 =\
Also, would you like to help out with developing this one? =]
the memory solution i have been thinking of, is to allow the program to dynamically load the different sps map segments. This would slow down the program when moving though, as when you move it will need to load and unload maps =\
also, if the sps map segments arent exactly correct it will show seams. I dont think that will be a problem as the segments are generated by a script.
Anyone who would like to help is welcome. I can create a git for this, and start a re write, if anyone would like to help out.
Wolygon
2012-04-22 08:03:56
Yeah I'm running 6.
I've got a fair bit of stuff going on at the moment but I'd probably be interested. I'll see in a week or two.
Thanks
the memory solution i have been thinking of, is to allow the program to dynamically load the different sps map segments. This would slow down the program when moving though, as when you move it will need to load and unload maps =\
also, if the sps map segments arent exactly correct it will show seams. I dont think that will be a problem as the segments are generated by a script.
Sounds interesting… probably be pretty laggy though. It doesn't necessarily need a "solution" though since its not too bad.
m34tcode
2012-04-22 08:59:03
computers with little memory may have a hard time with an app holding 200mb, as that is alot. Full fledged Ides hold that much but the prog should be small. hopefully I can get it to work though. I suspect it will impede moving around so it may not end up in the program, judgeing by how long it takes the prog to load normal segments. Almost instant, but it adds up
m34tcode
2012-05-17 15:41:39
Aware of double post.
I just uploaded the newest version. not sure that i had done that before, as i made some small changes, and fixed a few minor glitches.
Also, the previous version, i hadn't added the areas button to the form
Jakkle
2012-05-18 13:17:35
Copy Area only seems to copy one area for me.
like this [9_5, ] even after selecting points far away from my path.
m34tcode
2012-05-18 14:21:04
Hmm, I will check that when I get home. Thought ithad worked, but I didn't test in a wide enough area I guess :3
m34tcode
2012-06-04 03:47:52
Updated the program, and the first post. It is beastly now, is packed with locations and settings, and i honestly cant think of any more stuff that could be added :3
area, and path, generation is working, along with optional extra area generation
ssshhhaaa
2012-06-04 04:39:09
When i try to open the generator this is what it says:
Count not find the main class:
sps.path.generator.SPSPathGenerator. Program will exit.
What does this mean lol?
m34tcode
2012-06-04 13:48:46
means i need to recompile it
it didnt compile corrctly
ssshhhaaa
2012-06-04 15:47:27
From: m34tcode
means i need to recompile it
it didnt compile corrctly
oh :/
m34tcode
2012-06-05 15:29:06
still havent been able to get it to correctly compile. something is wrong with java or something :3
And my thread asking for help hasnt been replied to =[
ssshhhaaa
2012-06-06 02:19:01
From: m34tcode
still havent been able to get it to correctly compile. something is wrong with java or something :3
And my thread asking for help hasnt been replied to =[
When do you think your going to have finished recompiling it?
m34tcode
2012-06-06 02:52:56
i cant say, i can run the program perfectly, it just doesnt compile correctly. have no idea whats wrong
Recursive
2012-06-06 04:19:05
V nice, well done on this! Wish I had that much knowledge about…(whatever you call someone who codes applications). It is definitely a step up from the original path maker
m34tcode
2012-06-06 16:33:35
completely configurable, i need someone who has jdk to compile for me. my install is failing =[
m34tcode
2012-06-07 03:59:19
finally figured it out. the compiled file will now run, and everything works
This program is the shit, enjoy the rep :)
Jakkle
2012-06-07 15:14:47
From: m34tcode
finally figured it out. the compiled file will now run, and everything works
Sweet just downloaded it and had a look. It's looking really good, plenty of nice features in there. I haven't tested it just yet but I will be testing it soon and I will get back to you with any problems (if any).
Just wondering what was the problem you was having that you got sorted in the end ?
m34tcode
2012-06-07 16:09:16
it was set to run off jre 7, but i only had jre 6 installed. i have jdk 7 without jre somehow. had to run the program through console to see the actual error output, since the message was completely uninformative
and please do test it. I went all through it looking for bugs
syn acid
2013-03-24 08:47:12
[Error] C:\Simba\Includes\SRL-OSR/SRL/misc/SmartParams.Simba(229:203): Invalid number of parameters at line 228
???
From: syn acid
[Error] C:\Simba\Includes\SRL-OSR/SRL/misc/SmartParams.Simba(229:203): Invalid number of parameters at line 228
???
You just bumped a 8 month old thread to post a irrelevant problem, but ill help you anyway: You either tried to edit smart for 07 incorrectly or you dont have smart 8 and the script your using has smart8, you need to removed 8 from
{$DEFINE SMART8}
WWFranco
2013-03-27 16:55:37
Attached Files
SPS Path Generator - src.zip (138.9 KB, 113 views)
SPS_Path_Generator.zip (29.6 KB, 352 views)
where i put both the files?
Rhiot
2013-03-27 18:17:17
If you're trying to generate a new path, you'll only need SPS_Path_Generator.zip (29.6 KB, 352 views). The program is within that zip file.
The other file is the source code, in case you're wondering how it works and/or want to modify it.
footballjds
2013-12-03 02:57:01
just used this to create a perfect custom path. Thank you very much!
lilianjie
2013-12-06 02:26:09
very well
srlMW
2015-06-03 23:29:04
Doing The Mayor's SRL6 scripting tutorial and he says we should use this program, I'm just wondering if this is still current?
E: I know the last post was years ago but I promise this isn't for post count :biggrin:
Yep, can confirm this works still. I use it whenever I need to make an SPS path or get simply get coords from an SPS map.
srlMW
2015-06-03 23:53:30
From: J_R
Yep, can confirm this works still. I use it whenever I need to make an SPS path or get simply get coords from an SPS map.
I appreciate the quick reply!
Rep+
m34tcode
2015-06-06 06:38:26
Glad to hear this is still functional. If you have any suggestions let me know. I have been out of the loop for a while and haven't looked at the changes with SRL-6.