[MOD] Pathfinder (EXPERIMENTAL)

sapier
Member
 
Posts: 763
Joined: Tue Aug 16, 2011 18:17

[MOD] Pathfinder (EXPERIMENTAL)

by sapier » Sun Mar 17, 2013 20:47

This mod adds a function to do pathfinding in pure lua.

http://www.mediafire.com/download.php?r99wagbeqs641zp

it's quite slow but as long as core version isn't added it's better than nothing.
DON'T mention coding style!
(c) sapier all rights reserved
 

Captain_AuXiL
Member
 
Posts: 26
Joined: Fri Feb 01, 2013 09:44

by Captain_AuXiL » Sun Mar 17, 2013 21:58

what's pathfinding?
 

User avatar
10twenty4
Member
 
Posts: 40
Joined: Tue Mar 12, 2013 20:54

by 10twenty4 » Sun Mar 17, 2013 22:02

Captain_AuXiL wrote:what's pathfinding?

Exactly what it sounds like: algorithms to find the best path between two points. It would allow a zombie to go around obstacles instead of always moving in a straight line and getting stuck, for instance
 

User avatar
Calinou
Member
 
Posts: 3124
Joined: Mon Aug 01, 2011 14:26
GitHub: Calinou
IRC: Calinou
In-game: Calinou

by Calinou » Sun Mar 17, 2013 22:03

Last edited by Calinou on Sun Mar 17, 2013 22:09, edited 1 time in total.
 

User avatar
jojoa1997
Member
 
Posts: 2890
Joined: Thu Dec 13, 2012 05:11

by jojoa1997 » Mon Mar 18, 2013 02:35

I might figure out a way to ad this maybe to my npc mod.
Coding;
1X coding
3X debugging
12X tweaking to be just right
 

User avatar
jordan4ibanez
Member
 
Posts: 1865
Joined: Tue Sep 27, 2011 18:44
GitHub: jordan4ibanez
IRC: jordan4ibanez
In-game: jordan4ibanez

by jordan4ibanez » Thu Mar 21, 2013 01:55

Oh nice, how does it work?
If you can think it, you can make it.
 

User avatar
jojoa1997
Member
 
Posts: 2890
Joined: Thu Dec 13, 2012 05:11

by jojoa1997 » Thu Mar 21, 2013 02:58

jordan4ibanez wrote:Oh nice, how does it work?
I haven't been able to get to coding lately I am hoping to do it next week cause I am off for break
Coding;
1X coding
3X debugging
12X tweaking to be just right
 

User avatar
jordan4ibanez
Member
 
Posts: 1865
Joined: Tue Sep 27, 2011 18:44
GitHub: jordan4ibanez
IRC: jordan4ibanez
In-game: jordan4ibanez

by jordan4ibanez » Wed Mar 27, 2013 02:26

How do you even use this?
If you can think it, you can make it.
 

User avatar
Jonathan
Member
 
Posts: 119
Joined: Tue Apr 02, 2013 14:07

by Jonathan » Tue Apr 02, 2013 14:37

Would the pathfinder take into account doors? Meaning would it look at a door the same as a wall? I would think a pathfinder would be a lot more interesting if a mob, for example, knew it had to open a certain number of doors in a building in order to reach the player. Because most buildings have doors.

This would also be very nice to be able to be set as an option for a mob. So only certain mobs could open wood doors, and could also have the option for a mob to open a steel door. This however, might take a lot of work coding wise, and I am not that good at lua (and pathfinding, I would say, is probably one of the hardest things to code).

- Jonathan
By perseverance the snail reached the ark.
- Charles Spurgeon
 


Return to WIP Mods

Who is online

Users browsing this forum: Google [Bot] and 52 guests

cron