GithubHelp home page GithubHelp logo

Null Pointer Exception about pathfinding HOT 12 CLOSED

xaguzman avatar xaguzman commented on August 26, 2024
Null Pointer Exception

from pathfinding.

Comments (12)

xaguzman avatar xaguzman commented on August 26, 2024

Hello, sorry for the late reply.

Im very very short on time lately for personal projects (such as this). I'm afraid I don't really know when I will be able to check it up, probably not before august.

What version are you using?
Last time a bug like this was reported was because the row | column of each GridCell were not being automatically-assigned when creating the Grid. Not sure this could be your problem since you are using the gdx-bridge it seems...

from pathfinding.

Route-7 avatar Route-7 commented on August 26, 2024

Hi, I'm using libgdx 1.5.6.

from pathfinding.

xaguzman avatar xaguzman commented on August 26, 2024

I mean version of the pathfidnig library

from pathfinding.

Route-7 avatar Route-7 commented on August 26, 2024

0.2.5

from pathfinding.

xaguzman avatar xaguzman commented on August 26, 2024

Hello, are you still having this issue?

In case you are, is it possible for you to provide your tmx file?

from pathfinding.

AmazingDreams avatar AmazingDreams commented on August 26, 2024

I also have this issue. It seems to occur when no path can be found.

EDIT: never mind, was in my own code.

from pathfinding.

xaguzman avatar xaguzman commented on August 26, 2024

Glad you found solved your problem.

Since OP hasn't said anything about this...im just gonna close this and reopen it if needed...

from pathfinding.

jeltedeproft avatar jeltedeproft commented on August 26, 2024

hey i have the same problem :(

public AStarGridFinder<GridCell> finder;

tiledMap = new NavTmxMapLoader().load("orthogonale map/6v6.tmx");

NavigationTiledMapLayer navLayer = (NavigationTiledMapLayer) tiledMap.getLayers().get("navigation");
finder = new AStarGridFinder<GridCell>(GridCell.class);

System.out.println(finder.findPath( 0, 0, 5, 5, navLayer));

gives me the error : Exception in thread "LWJGL Application" java.lang.NullPointerException

from pathfinding.

xaguzman avatar xaguzman commented on August 26, 2024

Could you share your tmx file along with your tilesets?

from pathfinding.

jeltedeproft avatar jeltedeproft commented on August 26, 2024

oopsy daisy, fixed it, my problem was that i had copy pasted my old map and i was working with a copy in stead of original, your library works like a charm

from pathfinding.

jeltedeproft avatar jeltedeproft commented on August 26, 2024

sorry

from pathfinding.

xaguzman avatar xaguzman commented on August 26, 2024

from pathfinding.

Related Issues (20)

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.