[MOD] Pathfinder (EXPERIMENTAL)

Post Reply
sapier
Developer
Posts: 763
Joined: Tue Aug 16, 2011 18:17

[MOD] Pathfinder (EXPERIMENTAL)

by sapier » Post

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 » Post

what's pathfinding?

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

by 10twenty4 » Post

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
Moderator
Posts: 3169
Joined: Mon Aug 01, 2011 14:26
GitHub: Calinou
IRC: Calinou
In-game: Calinou
Location: Troyes, France
Contact:

by Calinou » Post

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
Location: Earth

by jojoa1997 » Post

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: 1923
Joined: Tue Sep 27, 2011 18:44
GitHub: jordan4ibanez
IRC: jordan4ibanez
In-game: jordan4ibanez

by jordan4ibanez » Post

Oh nice, how does it work?
hello, am program. do language in rust. make computer do. okay i go now.

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

by jojoa1997 » Post

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: 1923
Joined: Tue Sep 27, 2011 18:44
GitHub: jordan4ibanez
IRC: jordan4ibanez
In-game: jordan4ibanez

by jordan4ibanez » Post

How do you even use this?
hello, am program. do language in rust. make computer do. okay i go now.

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

by Jonathan » Post

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

Post Reply

Who is online

Users browsing this forum: Ahrefs [Bot], Bing [Bot], Skamiz Kazzarch and 32 guests