Page 2 of 4 FirstFirst 1234 LastLast
Results 26 to 50 of 84

Thread: NEw SPS Path Gen, open source, cross platform

  1. #26
    Join Date
    Oct 2008
    Location
    C:\Simba\Includes\
    Posts
    7,566
    Mentioned
    19 Post(s)
    Quoted
    180 Post(s)

    Default

    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.


  2. #27
    Join Date
    Dec 2011
    Posts
    733
    Mentioned
    2 Post(s)
    Quoted
    7 Post(s)

    Default

    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.

  3. #28
    Join Date
    Aug 2007
    Location
    England
    Posts
    1,038
    Mentioned
    0 Post(s)
    Quoted
    6 Post(s)

    Default

    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

  4. #29
    Join Date
    Oct 2008
    Location
    C:\Simba\Includes\
    Posts
    7,566
    Mentioned
    19 Post(s)
    Quoted
    180 Post(s)

    Default

    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.


  5. #30
    Join Date
    Dec 2011
    Posts
    733
    Mentioned
    2 Post(s)
    Quoted
    7 Post(s)

    Default

    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.

  6. #31
    Join Date
    Dec 2011
    Location
    Berlin
    Posts
    795
    Mentioned
    0 Post(s)
    Quoted
    5 Post(s)

    Default

    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!

  7. #32
    Join Date
    Dec 2011
    Posts
    733
    Mentioned
    2 Post(s)
    Quoted
    7 Post(s)

    Default

    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.

  8. #33
    Join Date
    Aug 2007
    Location
    England
    Posts
    1,038
    Mentioned
    0 Post(s)
    Quoted
    6 Post(s)

    Default

    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

  9. #34
    Join Date
    Dec 2011
    Posts
    733
    Mentioned
    2 Post(s)
    Quoted
    7 Post(s)

    Default

    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.

  10. #35
    Join Date
    Jul 2008
    Location
    NSW, Australia
    Posts
    881
    Mentioned
    0 Post(s)
    Quoted
    3 Post(s)

    Default

    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.

  11. #36
    Join Date
    Dec 2011
    Posts
    733
    Mentioned
    2 Post(s)
    Quoted
    7 Post(s)

    Default

    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.

  12. #37
    Join Date
    Aug 2007
    Location
    England
    Posts
    1,038
    Mentioned
    0 Post(s)
    Quoted
    6 Post(s)

    Default

    Quote Originally Posted by m34tcode View Post
    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
    Also you need to output what area(s) the points are in, unless I missed that ?

    Edit: didn't see this until I posted.
    Quote Originally Posted by m34tcode View Post
    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
    Last edited by Jakkle; 04-18-2012 at 03:42 AM.
    Today is the first day of the rest of your life

  13. #38
    Join Date
    Dec 2011
    Posts
    733
    Mentioned
    2 Post(s)
    Quoted
    7 Post(s)

    Default

    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.

  14. #39
    Join Date
    Jun 2008
    Location
    Australia
    Posts
    111
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Looks great

    Only thing is that it uses ~400MB memory whereas mine uses ~200MB. Other than that it looks like a nice improvement.

  15. #40
    Join Date
    Dec 2011
    Posts
    733
    Mentioned
    2 Post(s)
    Quoted
    7 Post(s)

    Default

    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.

  16. #41
    Join Date
    Jun 2008
    Location
    Australia
    Posts
    111
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    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........

  17. #42
    Join Date
    Dec 2011
    Posts
    733
    Mentioned
    2 Post(s)
    Quoted
    7 Post(s)

    Default

    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.

  18. #43
    Join Date
    Jun 2008
    Location
    Australia
    Posts
    111
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    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.

  19. #44
    Join Date
    Dec 2011
    Posts
    733
    Mentioned
    2 Post(s)
    Quoted
    7 Post(s)

    Default

    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.

  20. #45
    Join Date
    Dec 2011
    Posts
    733
    Mentioned
    2 Post(s)
    Quoted
    7 Post(s)

    Default

    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.

  21. #46
    Join Date
    Aug 2007
    Location
    England
    Posts
    1,038
    Mentioned
    0 Post(s)
    Quoted
    6 Post(s)

    Default

    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

  22. #47
    Join Date
    Dec 2011
    Posts
    733
    Mentioned
    2 Post(s)
    Quoted
    7 Post(s)

    Default

    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.

  23. #48
    Join Date
    Dec 2011
    Posts
    733
    Mentioned
    2 Post(s)
    Quoted
    7 Post(s)

    Default

    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.

  24. #49
    Join Date
    Dec 2011
    Location
    Behind you...
    Posts
    345
    Mentioned
    0 Post(s)
    Quoted
    4 Post(s)

    Default

    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 = [||||||||]

  25. #50
    Join Date
    Dec 2011
    Posts
    733
    Mentioned
    2 Post(s)
    Quoted
    7 Post(s)

    Default

    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.

Page 2 of 4 FirstFirst 1234 LastLast

Thread Information

Users Browsing this Thread

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

Posting Permissions

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