Posted 29 May 2014 - 11:20 AM
Hello,
Inspired by the recent news of how Google is working on a driver-less car, I decided I wanted to replicate that in Minecraft, using turtles as little delivery men who can carry resources to pre-set locations, following player built roads. :)/>
However, after an hour or two of searching the web, I did find some algorithms to path-find, such as A*, but I didn't understand how:
My main questions: :wacko:/>
Extra Information:
Here is a little map of the village I setup to test my new autonomous turtles, completed with co-ordinates of each junction for both lanes, and the co-ordinates for both lanes at destinations, along with the co-ordinates for the 'parking lot':
With co-ordinate labels:
Without co-ordinate labels (easier to see layout)
Notes:
The orange, blue and green boxes are example buildings, with each red square (red wool) being a 'parking lot' and the dark-grey being 'drive-ways' (dark-grey wool). The dark green squares are grass blocks, light grey is pavement (stone slabs, level with the road), and dark grey is the road (stone).
I have also setup a GPS System with 4 Computers in the vicinity of this 'town', so you can use the co-ordinates. I would also like the Turtles to drive on the left (I'm British :P/> ).
Thanks in advance! :D/>
Inspired by the recent news of how Google is working on a driver-less car, I decided I wanted to replicate that in Minecraft, using turtles as little delivery men who can carry resources to pre-set locations, following player built roads. :)/>
However, after an hour or two of searching the web, I did find some algorithms to path-find, such as A*, but I didn't understand how:
- I could replicate this in CC, Lua.
- I could manage to only let the turtles drive on roads (and, optionally but preferred, without having to predefine long lists of information about the roads, junctions, direction of north/south or east/west.)
My main questions: :wacko:/>
- How can I create a path-finding program for my turtles to drive around on roads, and stop at requested pre-set locations (given the co-ordinates of the locations by a central computer, which can be edited to store new locations)
- I also want to have two lanes on each road.
Extra Information:
Here is a little map of the village I setup to test my new autonomous turtles, completed with co-ordinates of each junction for both lanes, and the co-ordinates for both lanes at destinations, along with the co-ordinates for the 'parking lot':
With co-ordinate labels:
Spoiler
Spoiler
Notes:
The orange, blue and green boxes are example buildings, with each red square (red wool) being a 'parking lot' and the dark-grey being 'drive-ways' (dark-grey wool). The dark green squares are grass blocks, light grey is pavement (stone slabs, level with the road), and dark grey is the road (stone).
I have also setup a GPS System with 4 Computers in the vicinity of this 'town', so you can use the co-ordinates. I would also like the Turtles to drive on the left (I'm British :P/> ).
Thanks in advance! :D/>