Shouldn't any line within the circle not be dotted, and anything outside of it is dotted?
Shouldn't any line within the circle not be dotted, and anything outside of it is dotted?
Away for awhile, life is keeping me busy. | Want to get my attention in a thread? @Kyle Undefined; me.
{ MSI Phoenix || SRL Stats Sigs || Paste || Scripts || Quotes || Graphics }
When posting a bug, please post debug! Help us, help you!
I would love to change the world, but they won't give me the source code. || To be the best, you've got to beat the rest. || Logic never changes, just the syntax.
If you PM me with a stupid question or one listed in FAQ, or about a script that is not mine, I will NOT respond.
SRL is a Library of routines made by the SRL community written for the Program Simba. We produce Scripts for the game Runescape.
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
My scripts: LunarPlanker
---
My Utilities: Cross Platform, Open Source, SPS Path Generator
Join the Unoficial SRL Skype Group by clicking here, or visiting this thread.
I really like the spot light effect, better than just a drawn circle.
The dotted line is good to. It looks really good mate
Today is the first day of the rest of your life
Ahh I see, and does the circle move with the points?
Away for awhile, life is keeping me busy. | Want to get my attention in a thread? @Kyle Undefined; me.
{ MSI Phoenix || SRL Stats Sigs || Paste || Scripts || Quotes || Graphics }
When posting a bug, please post debug! Help us, help you!
I would love to change the world, but they won't give me the source code. || To be the best, you've got to beat the rest. || Logic never changes, just the syntax.
If you PM me with a stupid question or one listed in FAQ, or about a script that is not mine, I will NOT respond.
SRL is a Library of routines made by the SRL community written for the Program Simba. We produce Scripts for the game Runescape.
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
Last edited by m34tcode; 04-17-2012 at 06:55 PM.
My scripts: LunarPlanker
---
My Utilities: Cross Platform, Open Source, SPS Path Generator
Join the Unoficial SRL Skype Group by clicking here, or visiting this thread.
This is looking so cool. CanĀ“t wait to test it when im finished with my work. =)
I will try to answer all Runescape related questions!
couple new vids demonstrating the current look of it =]
My scripts: LunarPlanker
---
My Utilities: Cross Platform, Open Source, SPS Path Generator
Join the Unoficial SRL Skype Group by clicking here, or visiting this thread.
Liking it alot
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 .
Today is the first day of the rest of your life
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
Last edited by m34tcode; 04-18-2012 at 03:28 AM.
My scripts: LunarPlanker
---
My Utilities: Cross Platform, Open Source, SPS Path Generator
Join the Unoficial SRL Skype Group by clicking here, or visiting this thread.
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.
"Previously known as Leetsxc''
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.
My scripts: LunarPlanker
---
My Utilities: Cross Platform, Open Source, SPS Path Generator
Join the Unoficial SRL Skype Group by clicking here, or visiting this thread.
Just makes things a little faster for scripters
Also you need to output what area(s) the points are in, unless I missed that ?
Edit: didn't see this until I posted.
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.And the rep is teasing me =[
One more point i think to two blocks lol
Sounds good man keep it upalso, 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.
Last edited by Jakkle; 04-18-2012 at 03:42 AM.
Today is the first day of the rest of your life
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.
Code: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; }
My scripts: LunarPlanker
---
My Utilities: Cross Platform, Open Source, SPS Path Generator
Join the Unoficial SRL Skype Group by clicking here, or visiting this thread.
Looks great
Only thing is that it uses ~400MB memory whereas mine uses ~200MB. Other than that it looks like a nice improvement.
------> Path Creator with SPS support <------
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 =\
Last edited by m34tcode; 04-19-2012 at 12:22 AM.
My scripts: LunarPlanker
---
My Utilities: Cross Platform, Open Source, SPS Path Generator
Join the Unoficial SRL Skype Group by clicking here, or visiting this thread.
Yes I wasn't very happy when I found out mine used so much memory.
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........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 =\
------> Path Creator with SPS support <------
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.
Last edited by m34tcode; 04-19-2012 at 02:40 AM.
My scripts: LunarPlanker
---
My Utilities: Cross Platform, Open Source, SPS Path Generator
Join the Unoficial SRL Skype Group by clicking here, or visiting this thread.
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
Sounds interesting... probably be pretty laggy though. It doesn't necessarily need a "solution" though since its not too bad.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.
------> Path Creator with SPS support <------
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
My scripts: LunarPlanker
---
My Utilities: Cross Platform, Open Source, SPS Path Generator
Join the Unoficial SRL Skype Group by clicking here, or visiting this thread.
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
My scripts: LunarPlanker
---
My Utilities: Cross Platform, Open Source, SPS Path Generator
Join the Unoficial SRL Skype Group by clicking here, or visiting this thread.
Copy Area only seems to copy one area for me.
like this [9_5, ] even after selecting points far away from my path.
Today is the first day of the rest of your life
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
My scripts: LunarPlanker
---
My Utilities: Cross Platform, Open Source, SPS Path Generator
Join the Unoficial SRL Skype Group by clicking here, or visiting this thread.
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
My scripts: LunarPlanker
---
My Utilities: Cross Platform, Open Source, SPS Path Generator
Join the Unoficial SRL Skype Group by clicking here, or visiting this thread.
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?
Scripting powerlevel = [||||||||]
means i need to recompile it
it didnt compile corrctly
My scripts: LunarPlanker
---
My Utilities: Cross Platform, Open Source, SPS Path Generator
Join the Unoficial SRL Skype Group by clicking here, or visiting this thread.
There are currently 1 users browsing this thread. (0 members and 1 guests)