Updating to new jME version

So I worked on a project a year ago, and am now trying to get it running again but it seems jME has updated in some ways that break my game…


What is the new way to do this, as this function seems to have been completely removed.


"LightState.OFF cannot be resolved"
Is there a new enum for this or something?


"AbstractGame.ALWAYS_SHOW_PROPS_DIALOG cannot be resolved"
Once again, anyone know how to rewrite this to conform to the newer versions of jME?



Ah, I didn't realize I was using jME 1 before.

Thanks, on the site I see potential solutions to the LightState.OFF and AbstractGame.ALWAYS_SHOW_PROPS_DIALOG.

I don't see anything related to the getParentGeom() function. Any further help there?

I believe that is a batch related method, and all batches were removed from jME 2.0; I would need a little more code before I can give you an accurate answer…

public boolean pick() {
      if (picked.getNumber() > 0) {
         for (int i = picked.getNumber()-1; i >= 0; i--) {
            Node n = picked.getPickData(i).getTargetMesh().getParentGeom().getParent();
            while (n!= rootNode) {
               if (n instanceof BoardTile) {
                  BoardTile tile = (BoardTile)n;
                  point = tile.pos;
                  return true;
               n = n.getParent();
      return false;

Here's the full function. It is for a chess game, and it tries to determine which tile you are clicking on the board.

Try just:

Node n = picked.getPickData(i).getTargetMesh().getParent();