1

I'm translating the jMonkey tutorials to JRuby, and currently on the 8th beginner. But when I run it, it keeps complaining about how there is no settings method or local variable defined. Is settings supposed to be an instance variable, method, or what?

EDIT: I looked at the javadoc for both com.jme3.app.Application and com.jme3.app.SimpleApplication and neither of them actually define settings.

Thanks in advance!

Jwosty
  • 3,497
  • 2
  • 22
  • 50
  • 1
    Mind sharing a link when it's done? Sounds interesting... – Miguel Jun 30 '12 at 03:25
  • Do you mean a link to a translation of this in JRuby? If so, sure, I can post it on GitHub or something. :) – Jwosty Jun 30 '12 at 18:08
  • Yes, the tutorials, code, etc. I'm planning on learning Ruby soon, and I'd love to see it. – Miguel Jul 01 '12 at 01:06
  • Hmm... I just realized that I deleted all the tutorials from my computer... :( But I can dig up some other things for you :) – Jwosty Jul 01 '12 at 01:12
  • First of all, [here](http://www.rubyinside.com/video-game-ruby-tutorial-5726.html)'s a really good tutorial that shows you how to use Java's [Slick2D](slick.cokeandcode.com) library to build a simple pong game. I also found [this](https://github.com/jruby/jruby/wiki/CallingJavaFromJRuby) wiki article pretty helpful for actually calling Java. – Jwosty Jul 01 '12 at 01:17
  • You could also read some of my other questions relating to JMonkey. They might help too. – Jwosty Jul 01 '12 at 01:26

2 Answers2

0

There's not settings method defined anywhere, so I just created my own AppSettings object and used it for the SimpleApplication. Problem solved.

Jwosty
  • 3,497
  • 2
  • 22
  • 50
0

Just for other people who might get to this question.

As for newest version of jmonkey, settings are defined in Application.java line 78

protected AppSettings settings;
demoth
  • 79
  • 1
  • 6