Blockland Forums > Modification Help
Can you make pathfinding AI's in BlockLand?
<< < (2/3) > >>
Gamefandan:
A pathfinding AI wouldn't be too hard. I can imagine it working something like this:


Step one - /recordpath || This would record the path you walk in a way I will explain in a moment.

Step two - Walk the path you want || This is self explanatory.

Step three - /stoprecordpath || This would stop recording your path.

Step four - /createpathbot || This would create a bot in the place where you typed /recordpath.

Step five - /startfollowpath || The bot would follow the path we mentioned before.

Step six - Enjoy mindless bot walk back and forth along an invisible path || Ditto.

Step seven - /stopfollowpath || The bot is told to stop following the path.

Step eight - /deletepath || This will delete the path and the pathbot.

Step nine - Think about another path || Ditto.

Step ten - Repeat || Ditto.


Now, the way a path would be recorded is simple. For every movement the player makes after typing /recordpath invisible objects will be placed below where the player walks. These objects will each be added into a group where using a loop it would be easy to make a bot go to each object in the order of their creation.

I really like this idea and may add it to Copymod or another future mod.

(The ideas portrayed here were in no way viable commands that can currently be used.)
Space Guy:
I think it means "pathfinding" as in it actually working out a path to use e.g. building a level map of the bricks and calculating possible routes to destinations like "capture flag" or "follow X person through a maze"
Gamefandan:

--- Quote from: Space Guy on July 28, 2010, 03:30:46 PM ---I think it means "pathfinding" as in it actually working out a path to use e.g. building a level map of the bricks and calculating possible routes to destinations like "capture flag" or "follow X person through a maze"

--- End quote ---

As in a bot that thinks for itself?

I make my bots mindless for a reason.
ZSNO:
Trader's TD Pathfinding Bots
Amade:

--- Quote from: ZSNO on July 28, 2010, 05:56:20 PM ---Trader's TD Pathfinding Bots
--- End quote ---
That's still on a 2d grid with no holes the bots can't fit through. A more varied environment would be extremely hard to code for.

Is it possible to do? Yes.
Is it simple/easy to make? Not at all.

Even big games with actual budgets and teams use premade nodes that the AI is programmed to move to, simplifying pathfinding greatly.
Navigation
Message Index
Next page
Previous page

Go to full version