dirty_ruby tutorial error and deprecation warning

3 views
Skip to first unread message

bio...@gmail.com

unread,
Nov 5, 2007, 4:36:50 AM11/5/07
to ShatteredRuby
Hallo -- I'm just trying the First Moves (dirty_ruby) tutorial, and I
have an error that won't even let me get past the first call of ruby
script/runner!
When I try to run the code, I get the following error:
<ERROR>
c:/ruby/lib/ruby/gems/1.8/gems/shattered_pack-0.5.1/lib/
shattered_state/base.rb:95:in `create_viewport': undefined method `[]'
for #<Ogre::Camera:0x2d8b7e0> (NoMethodError)
from ./script/../config/../app/states/observation_state.rb:
17:in `initialize'
from c:/ruby/lib/ruby/gems/1.8/gems/shattered_pack-0.5.1/lib/
shattered_pack/base.rb:19:in `send'
from c:/ruby/lib/ruby/gems/1.8/gems/shattered_pack-0.5.1/lib/
shattered_pack/base.rb:19:in `new'
from c:/ruby/lib/ruby/gems/1.8/gems/shattered-0.5.0.1/lib/
game_loader.rb:40:in `create_state'
from c:/ruby/lib/ruby/gems/1.8/gems/shattered-0.5.0.1/lib/
game_loader.rb:30:in `run'
from ./script/runner.rb:4:in `start_game'
from script/runner:8
</ERROR>

Also, I don't know if these are related, but I get a couple of other
weird things.
One is a deprecation warning:
<WARNING>
Warning:c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:
importenv is deprecated after Ruby 1.8.1 (no replacement)
</WARNING>

The other is a "OGRE Engine Rendering Setup" dialog (that the tut
doesn't mention) with only a Direct3D9 option in the drop-down box (no
mention of OGL).

Can anyone help me past these?
I'm dying to get playing properly!
Cheers,
Doug.

Martyn Garcia

unread,
Nov 5, 2007, 12:04:59 PM11/5/07
to shatte...@googlegroups.com
Sure can!
First, don't worry about the deprecation error. We will fix this soon

Not sure about the other one, which ogrerb version do you have
installed?

Martyn

Sent from my iPhone

On Nov 5, 2007, at 2:36 AM, "bio...@gmail.com" <bio...@gmail.com>
wrote:

doug livesey

unread,
Nov 6, 2007, 5:30:36 AM11/6/07
to shatte...@googlegroups.com
> which ogrerb version do you have installed?

Ah. I suspect I'm about to look very redfaced.
Um... None?
I just installed the Shattered Ruby gem -- do I need to install Ogre, too?
Or a brain transplant?
Cheers, man.
   Doug.

JeremyW...@gmail.com

unread,
Nov 6, 2007, 1:19:44 PM11/6/07
to ShatteredRuby
You should have everything you need if you run

C:\>gem install shattered_ruby --include-dependencies


Maybe try uninstalling it and reinstall it.

~Jeremy

On Nov 6, 2:30 am, "doug livesey" <biot...@gmail.com> wrote:
> > which ogrerb version do you have installed?
>
> Ah. I suspect I'm about to look very redfaced.
> Um... None?
> I just installed the Shattered Ruby gem -- do I need to install Ogre, too?
> Or a brain transplant?
> Cheers, man.
> Doug.
>

> On 05/11/2007, Martyn Garcia <martyn.gar...@gmail.com> wrote:
>
>
>
> > Sure can!
> > First, don't worry about the deprecation error. We will fix this soon
>
> > Not sure about the other one, which ogrerb version do you have
> > installed?
>
> > Martyn
>
> > Sent from my iPhone
>

> > On Nov 5, 2007, at 2:36 AM, "biot...@gmail.com" <biot...@gmail.com>

doug livesey

unread,
Nov 7, 2007, 5:22:19 AM11/7/07
to shatte...@googlegroups.com
I'll give that a bash, cheers.
   Doug.

doug livesey

unread,
Nov 7, 2007, 9:02:12 AM11/7/07
to shatte...@googlegroups.com
Nope, that didn't work!
For the record I "gem uninstall"ed: shattered, shatterred_ogrerb, shattered_pack, and shattered_support.
I then ran "gem install shattered --include-dependencies", and rebuilt the tutorial project from scratch.
All to no avail, sadly!
The version of the shattered_ogrerb gem I have is 0.5.1 -- all my shattered gems should be the latest.
Is there anything else I can check?
Cheers,
   Doug.

JeremyW...@gmail.com

unread,
Nov 7, 2007, 1:08:06 PM11/7/07
to ShatteredRuby
There are two versions of shattered gems out there you can either
A) "gem install shattered --include-dependencies"

or

B) "gem install shattered_ruby --include-dependencies"

The one that you want to do is B. Or at least that is the way it was a
month ago :) I'm not sure if Mikkel or Martyn changed it or not. In
any case, looks like you chose option A, so try option B and give that
a go. If you want, I will zip up my dirty_ruby project and send it
over. Mine works fine, you can use that to gauge what you are doing
through the tutorial.


~Jeremy


On Nov 7, 6:02 am, "doug livesey" <biot...@gmail.com> wrote:
> Nope, that didn't work!
> For the record I "gem uninstall"ed: shattered, shatterred_ogrerb,
> shattered_pack, and shattered_support.
> I then ran "gem install shattered --include-dependencies", and rebuilt the
> tutorial project from scratch.
> All to no avail, sadly!
> The version of the shattered_ogrerb gem I have is 0.5.1 -- all my shattered
> gems should be the latest.
> Is there anything else I can check?
> Cheers,
> Doug.
>

> On 07/11/2007, doug livesey <biot...@gmail.com> wrote:
>
>
>
> > I'll give that a bash, cheers.
> > Doug.
>

doug livesey

unread,
Nov 8, 2007, 5:29:44 AM11/8/07
to shatte...@googlegroups.com
Cheers, man -- I'll try that.
I just followed the instructions on the front page of the shattered ruby website (under the lovely Web 2.0 "Get Shattered" section), and that said to use the first command.
I'll let you know how I get on clearing my current installation and trying the other.
& thanks again everyone for taking the time to reply.
   Doug.

doug livesey

unread,
Nov 8, 2007, 12:20:43 PM11/8/07
to shatte...@googlegroups.com
That's another hurdle down, cheers, man!
   Doug.

JeremyW...@gmail.com

unread,
Nov 8, 2007, 1:08:19 PM11/8/07
to ShatteredRuby
Yeah, that page is pretty messed up right now. The only tutorial that
actually works is the dirty ruby, but even then there are still some
problems. Let me know how it goes.

~Jeremy

On Nov 8, 2:29 am, "doug livesey" <biot...@gmail.com> wrote:
> Cheers, man -- I'll try that.
> I just followed the instructions on the front page of the shattered ruby
> website (under the lovely Web 2.0 "Get Shattered" section), and that said to
> use the first command.
> I'll let you know how I get on clearing my current installation and trying
> the other.
> & thanks again everyone for taking the time to reply.
> Doug.
>

doug livesey

unread,
Nov 8, 2007, 1:46:14 PM11/8/07
to shatte...@googlegroups.com
Yeah, I got the dirty_ruby one working, thanks largely to your help!
So does the tetris tut not work?
I was about to try that -- I'm wondering if maybe holding off Shattered Ruby for a bit (maybe to learn Ogrerb?) might not be an idea.
Won't be easy, as I've been looking for something that resembles what SR promises to be for a lo-o-o-ong time, but I'm sure it would be worth the wait!
As a poll of the community here, would waiting for the next release be an idea, do you think?
& cheers,
   Doug.
Reply all
Reply to author
Forward
0 new messages