PropertiesIO Help

I'm brand new to jME with relatively little experience in Java.



So, I finally get jME to install right and get the SimpleGame tutorial done. Yay.  Now I'm trying to go through the flagrush tutorial.  I read through lesson one, and I'm trying to do lesson2.  When I put in all the code, even copy-paste from the wiki, I get errors saying it can't find the properties symbol  i.e:



   protected void initSystem() {
      //store the properties information
      width = properties.getWidth();
      height = properties.getHeight();
      depth = properties.getDepth();
      freq = properties.getFreq();
      fullscreen = properties.getFullscreen();



It also doesn't like the setDialogBehaviour in

 app.setDialogBehaviour(ALWAYS_SHOW_PROPS_DIALOGesson2.class.getClassLoader()
            .getResource("jmetest/data/images/FlagRush.png"));



I was looking through the Javadoc and the wiki.  PropertiesIO should be handled by Abstract Game, which is handled in BaseGame, so when I include import com.jme.app.BaseGame I should have access then to PropertiesIO by default right?  Even if that were true I went looking at the AbstractGame.java and it doesn't import PropertiesIO, and doesn't seem to link to it in anyway.  So basically I'm running around in circles with no freaking idea of what's going on.

Also if I try to import PropertiesIO directly, it tells me that it's a unused import.  I'd so greatly appreciate if someone could point me in a direction to run.  Thanks!

I think you want:


...
settings.isFullScreen()
...



and


setConfigShowMode( ConfigShowMode.AlwaysShow );


(Although you have a missing comma in your arguments)

If that is wrong in the wiki will you please confirm that this is right and either change it yourself or let me know and I will :).

(These issue are developing due to having a new version of jME and still trying to support the old, and alot of the tutorials need to be updated to reflect that.)

Awesome!  That was it.  Thank you sir.  So how would I find out the difference in revisions?  NetBeans doesn't like



MM_LINEAR_LINEAR  or FM_LINEAR either



ts.setTexture(TextureManager.loadTexture(Main.class.getClassLoader()
            .getResource("jmetest/data/images/Monkey.jpg"),
            Texture.MM_LINEAR_LINEAR, Texture.FM_LINEAR));



Since it's a similar format to the ALWAYS_SHOW_PROPS_DIALOG, I assume it's jME 1, so how would I find out the jME2 equivalent?

Thanks in advance.

My brain just exploded.



Time to start working through those Java tutorials. . .



Thanks again.

There is also the JME to JME2 page in the wiki which lists a lotof the changes -



http://www.jmonkeyengine.com/wiki/doku.php?id=jme_to_jme2_changes

Beautiful.  Is that comprehensive?



I see all the issues I've hit so far. . .like that's worth anything  XD

I figured out the TerrainBlock, the tut calls for an extra boolean variable at the end which isn't shown in the Javadocs.  Tut says it's for CLOD, which I see no reference to in Javadocs.  Problem I'm seeing now is :




tb = new TerrainBlock("Terrain", heightMap.getSize(), terrainScale, heightMap.getHeightMap(), new Vector3f(0, 0, 0));



tb = new TerrainBlock(etc.)   

It doesn't want to initialize tb...

says it can't find the variable tb, but I thought I was defining it here.

I don't suppose that TerrainBlock is one of those changes not covered?

that

TerrainBlock tb = new TerrainBlock(etc.)   


should work, but if that was a problem, i would suggest starting with basic java tutorials first, before using a api like jme  :)

I tried that, which initializes it as a local variable right?  The problem is that in another method it doesn't recognize tb.    I'll start on the java tutorials anyhow. . .



protected void initGame() {
      scene = new Node("Scene graph node");
      buildTerrain();
                scene.attachChild(tb);    <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<doesn't recognize
      
                       
      //update the scene graph for rendering
      scene.updateGeometricState(0.0f, true);
      scene.updateRenderState();
   }
 
   /**
    * will be called if the resolution changes
    *
    */
        private void buildTerrain(){
            // Generate a random terrain Data
            MidPointHeightMap heightMap = new MidPointHeightMap(64, 1f);
            // Scale the data
            Vector3f terrainScale = new Vector3f(20, 0.5f, 20);
        // create a terrainblock
            TerrainBlock tb = new TerrainBlock("Terrain", heightMap.getSize(), terrainScale, heightMap.getHeightMap(), new Vector3f(0, 0, 0));
            tb.setModelBound(new BoundingBox());
            tb.updateModelBound();
               
        }
       



Thanks!