Code Monkey home page Code Monkey logo

pathfinder's People

Contributors

markubu avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

pathfinder's Issues

bug: get_neighbor_ground_level() changes parameter neighbor_pos

The function get_neighbor_ground_level() alters the pos parameter that was passed as a table. That changes neighbor_pos in find_path(), which causes undesirable behavior.

The quickest fix is to create a local pos and don't change the parameter.

local function get_neighbor_ground_level(npos, jump_height, fall_height, current_pos)
        local pos = { x=npos.x, y=npos.y, z=npos.z }
	local node = minetest.get_node(pos)
	local height = 0
	if walkable(node, pos, current_pos) then
   ...

Release under a FOSS license

Please add a license to your mod, preferably a FOSS license so it can actually be used by the Minetest community.

Because in its current form, it is unfortunately useless for the community.

mobs_redo crash

I tried this with mobs_redo the way you recommended in the forum and I got this:

2017-06-15 02:17:29: WARNING[Server]: Assignment to undeclared global "dist" inside a function at /home/leo/.minetest/mods/mobs_redo/api.lua:1232.
2017-06-15 02:17:32: ERROR[Main]: ServerError: AsyncErr: ServerThread::run Lua: Runtime error from mod 'mobs_mc' in callback luaentity_Step(): /home/leo/.minetest/mods/pathfinder/init.lua:317: attempt to perform arithmetic on local 'dtime' (a nil value)
2017-06-15 02:17:32: ERROR[Main]: stack traceback:
2017-06-15 02:17:32: ERROR[Main]:       /home/leo/.minetest/mods/pathfinder/init.lua:317: in function 'find_path'
2017-06-15 02:17:32: ERROR[Main]:       /home/leo/.minetest/mods/mobs_redo/api.lua:994: in function 'smart_mobs'
2017-06-15 02:17:32: ERROR[Main]:       /home/leo/.minetest/mods/mobs_redo/api.lua:1777: in function 'do_states'
2017-06-15 02:17:32: ERROR[Main]:       /home/leo/.minetest/mods/mobs_redo/api.lua:2456: in function </home/leo/.minetest/mods/mobs_redo/api.lua:2349>

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.