Mapping (Pathing etc.) menu

User Tag List

Page 2 of 5 FirstFirst 12345 LastLast
Results 16 to 30 of 69
  1. #16
    Apoc's Avatar Angry Penguin
    Reputation
    1388
    Join Date
    Jan 2008
    Posts
    2,750
    Thanks G/R
    0/13
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by UnknOwned View Post
    Seem like you got it right.


    Now the only problem with that being that it is 2D and imagine you going up stairs that overlap each other or go into caves that are "under" the terrain..
    This was also a weakness of OpenBot with a 2D mesh.
    OB used a 3d mesh.

    Mapping (Pathing etc.)
  2. #17
    luciferc's Avatar Contributor
    Reputation
    90
    Join Date
    Jul 2008
    Posts
    373
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    So is my idea right Apoc? The Only problem now is to find a good code example for A*/Dijistrika's. That hopefully is in c# XD

  3. #18
    lanman92's Avatar Active Member
    Reputation
    50
    Join Date
    Mar 2007
    Posts
    1,033
    Thanks G/R
    0/1
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    There was one on codeproject in C#. It was very general though.

  4. #19
    suicidity's Avatar Contributor
    Reputation
    207
    Join Date
    Oct 2006
    Posts
    1,439
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Haha, I was thinking of more dynamic ways of pathing for my bot;

    My net was out so I opened up notepad, jotted some notes and wrote some functions and code just to find out I replicated Dijkstra's method.

    But my question is, I want to reliably be able to save and read from nodes of "waypoints" live when pathing.

    For example, say I've mapped out 100 "waypoints" in a square area, How could I save that information effectively; ONLY to run the method to the 10 immediate nodes around me?

    EDIT:

    I just took a crap and I think I have a fairly reliable way of saving information that could easily be scanned through very quickly. It would save information in the form of nodes, which would have and ID, and 5 waypoints within them. It would allow for smaller calculations without much sacrifice and you would have the ease of format.
    Last edited by suicidity; 01-17-2009 at 08:10 AM.


  5. #20
    akh's Avatar Member
    Reputation
    4
    Join Date
    Mar 2008
    Posts
    39
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I had a look at an article at gamesutra: Link

    It proposes that you can use sectors for marking the walkable areas, and portals describe how the sectors are connected.

    Each sector is defined by two points. The portals are pretty simple to calculate, it is just a part of an edge that is shared by two sectors.



    It seems quite logic and simple, but I have a hard time figuring out which sector you are in given a x,y coordinate.

    A trivial solution would be to loop though all the sectors in the map and figure out which sector you are in. Another solution is to have some kind of lookup table, or maybe to sort the sectors according to x coordinates and use binary search on them.

    Anyone have some thoughts about this?

  6. #21
    Xarg0's Avatar Member
    Reputation
    61
    Join Date
    Jan 2008
    Posts
    389
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by akh View Post
    I had a look at an article at gamesutra: Link

    It proposes that you can use sectors for marking the walkable areas, and portals describe how the sectors are connected.

    Each sector is defined by two points. The portals are pretty simple to calculate, it is just a part of an edge that is shared by two sectors.



    It seems quite logic and simple, but I have a hard time figuring out which sector you are in given a x,y coordinate.

    A trivial solution would be to loop though all the sectors in the map and figure out which sector you are in. Another solution is to have some kind of lookup table, or maybe to sort the sectors according to x coordinates and use binary search on them.

    Anyone have some thoughts about this?
    You could use a simple STL Container to store the sectors and use the stl sort algorithm on them, you'll have to overload the > or < operator for your sectors in order to make the algorithm function, you can then use the STLs search algorithms they've implemented a binary_search and some other search algorithms.
    I hacked 127.0.0.1

  7. #22
    luciferc's Avatar Contributor
    Reputation
    90
    Join Date
    Jul 2008
    Posts
    373
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    So i've gotten it so i can log my Actions.

    Aka heres what i've done so far


    Code:
            loc = new byte[500, 500, 1000]; //500 by 500 Grid w/ 1000 Z
    
            /// <summary>
            /// Checks the Location
            /// </summary>
            /// <param name="_x">Your X</param>
            /// <param name="_y">Your Y</param>
            /// <returns>-2 = Not in bounds, -1 No Pass, 0 Not Sure, 1 OKAY</returns>
            public int checkLocation(int _x, int _y, int _z)
            {
            ##CODE
            }
    
            /// <summary>
            /// Adds the Location of a XYZ Location
            /// </summary>
            /// <param name="_x">X - Coord</param>
            /// <param name="_y">Y - Coord</param>
            /// <param name="_z">Z - Coord</param>
            /// <returns></returns>
            public bool addLocation(int _x, int _y, int _z)
            {
            ##CODE
            }
    A Basic Add Coordinate / Check Thing

    Now i am still trying to figure out

    #1 How to store the 3d Array <.<
    #2 Since i am storing the Z it would take Forever to find a good path. I think

    So how do you guys do it?

    I was thinking maybe like path Segments but i want to to be more free and find unique paths to go each place by randomizing it some.

    Well if anyone has any commens post belowth.
    Last edited by luciferc; 01-17-2009 at 04:54 PM.

  8. #23
    UnknOwned's Avatar Legendary
    Reputation
    713
    Join Date
    Nov 2006
    Posts
    583
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by Apoc View Post
    OB used a 3d mesh.
    Funny, Cypher told me it was 2D.

  9. #24
    luciferc's Avatar Contributor
    Reputation
    90
    Join Date
    Jul 2008
    Posts
    373
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    So i made another picture to illustrate my ideas b/c i love pictures alot.





    For Last Pic: the 9 steps is acually 8 if i did Diaginoal walking but i didn't b/c there were red squares.

    Been spending about 3 days just working on pathing XD. Super fun :O.

    I even made a grid display XD. That has colors n stuff.
    Last edited by luciferc; 01-17-2009 at 08:07 PM.

  10. #25
    luciferc's Avatar Contributor
    Reputation
    90
    Join Date
    Jul 2008
    Posts
    373
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    What do you mean by that? Lol


    Btw

    I did something cool.

    I printed out my Map. XD

    Its in a Text file that is 500x500.

    -'s = A Unknown Spot
    •'s = A Traveled Spot

    U have to scroll to about the Center and go down its in the center Area. Over 600 + •'s

    Download PathMap.txt
    Last edited by luciferc; 01-17-2009 at 09:50 PM.

  11. #26
    Apoc's Avatar Angry Penguin
    Reputation
    1388
    Join Date
    Jan 2008
    Posts
    2,750
    Thanks G/R
    0/13
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by UnknOwned View Post
    Funny, Cypher told me it was 2D.
    Cypher is also an idiot. It used a 3D mesh.

    Code:
    	method MapLocation(float X, float Y, float Z)
    	{
    		variable float X1
    		variable float X2
    		variable float Y1
    		variable float Y2
    		variable float Z1
    		variable float Z2
    		variable string RegionName
    
    		; Dont map if we are flying (On a flight path)
    		if ${Me.Flying} || ${This.MappingDisabled}
    		{
    			return
    		}
    		X1:Set[${X}-2.5]
    		X2:Set[${X}+2.5]
    		Y1:Set[${Y}-2.5]
    		Y2:Set[${Y}+2.5]
    		Z1:Set[${Z}-3]
    		Z2:Set[${Z}+3]
    
    		RegionName:Set["${CurrentZone.FQN}${Time.Timestamp}${CurrentZone.ChildCount}"]
    		CurrentZone:AddChild[box,${RegionName},-unique,${X1},${X2},${Y1},${Y2},${Z1},${Z2}]
    		This:Output["Area not found, mapping!  Added (${RegionName} ${X}, ${Y}, ${Z})."]
    		;Connect To Previous and Current
    		This:ConnectNeighbours[${RegionName}]
    	}
    3D boxes. And it did just fine with stairs and overlapping regions.

  12. #27
    luciferc's Avatar Contributor
    Reputation
    90
    Join Date
    Jul 2008
    Posts
    373
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Apoc is my thinking Right?

    The Pretty Picture above.

    >Also whats the best way to save it?

    I tried serializing but it wasn't working for a 3d Array.
    Last edited by luciferc; 01-18-2009 at 12:11 PM.

  13. #28
    Apoc's Avatar Angry Penguin
    Reputation
    1388
    Join Date
    Jan 2008
    Posts
    2,750
    Thanks G/R
    0/13
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by luciferc View Post
    Apoc is my thinking Right?

    The Pretty Picture above.

    >Also whats the best way to save it?

    I tried serializing but it wasn't working for a 3d Array.
    You can't serialize a multi-dimensional array.

    Try making a simple struct/class to hold your region info, and use a List<MyRegion>. Make sure you have the struct/class able to be serialized. (I suggest using a class, serialization sometimes has a shitfit with structs)

  14. #29
    luciferc's Avatar Contributor
    Reputation
    90
    Join Date
    Jul 2008
    Posts
    373
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    How would i be able to make sure it is enabled to be Serialized?

    Also for Lists wouldn't i have to search thru the whole list instead of Calling [x,y] etc.

  15. #30
    Apoc's Avatar Angry Penguin
    Reputation
    1388
    Join Date
    Jan 2008
    Posts
    2,750
    Thanks G/R
    0/13
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by luciferc View Post
    How would i be able to make sure it is enabled to be Serialized?

    Also for Lists wouldn't i have to search thru the whole list instead of Calling [x,y] etc.
    You would, yes. Although, if you were using .NET 3.5, it really wouldn't be a problem considering LINQ.

    Also, [Serializable]

Page 2 of 5 FirstFirst 12345 LastLast

Similar Threads

  1. Path of exile Rare map groups
    By dbsalinas89 in forum Path of Exile
    Replies: 0
    Last Post: 02-06-2013, 01:28 AM
  2. [Selling] Ranger lvl80/100% map completed etc..
    By gladwyn in forum GW2 Buy Sell Trade
    Replies: 0
    Last Post: 10-22-2012, 11:35 PM
  3. [Selling] Ranger lvl80/100% map completed etc..
    By gladwyn in forum General MMO Buy Sell Trade
    Replies: 0
    Last Post: 10-22-2012, 11:31 PM
  4. PlayerBase, Map, etc. Need some help.
    By berlinermauer in forum WoW Memory Editing
    Replies: 3
    Last Post: 07-22-2010, 11:18 AM
  5. ArcEmu Compiles With ArcScripts.... DBC,Maps , Vpams,Restarter,DBs,etc
    By Fantomass in forum WoW EMU General Releases
    Replies: 22
    Last Post: 12-14-2008, 03:37 PM
All times are GMT -5. The time now is 03:02 PM. Powered by vBulletin® Version 4.2.3
Copyright © 2025 vBulletin Solutions, Inc. All rights reserved. User Alert System provided by Advanced User Tagging (Pro) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
Google Authenticator verification provided by Two-Factor Authentication (Free) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
Digital Point modules: Sphinx-based search