Hi there, I'm having problems :(

1 view
Skip to first unread message

RubyFun

unread,
Nov 19, 2007, 5:18:41 AM11/19/07
to ShatteredRuby
I'm trying to run the dirty_ruby tutorial. Everything seems to be
installed fine, etc, etc. I type "shatter dirty_ruby", and that works.
When I type "ruby script/generate state observation" I get the
following:
*************************************************************************************************
C:\ruby\dirty_ruby>ruby script/generate state observation
Warning:c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:
importenv is deprecated after Ruby 1.8.1 (no replacement)
c:/ruby/lib/ruby/gems/1.8/gems/shattered_ogrerb-0.5.1/vendor/ogrerb/
lib/ogre.dll : 14001: This application has failed to start because the
application configuration is incorrect. Reinstalling the application
may fix this problem. - c:/ruby/lib/ruby/gems/1.8/gems/
shattered_ogrerb-0.5.1/vendor/ogrerb/lib/ogre.dll (LoadE
rror)
from c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in
`require'
from c:/ruby/lib/ruby/gems/1.8/gems/shattered_ogrerb-0.5.1/lib/../
vendor/ogrerb/ogre.rb:12
from c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in
`gem_original_require'
from c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in
`require'
from c:/ruby/lib/ruby/gems/1.8/gems/shattered_ogrerb-0.5.1/lib/
shattered_ogrerb.rb:19
from c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:32:in
`gem_original_require'
from c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:32:in
`require'
from c:/ruby/lib/ruby/gems/1.8/gems/shattered_ruby-0.5.1/lib/
shatter.rb:4
from c:/ruby/lib/ruby/gems/1.8/gems/shattered_ruby-0.5.1/lib/
shatter.rb:1:in `each'
from c:/ruby/lib/ruby/gems/1.8/gems/shattered_ruby-0.5.1/lib/
shatter.rb:1
from c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:32:in
`gem_original_require'
from c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:32:in
`require'
from ./script/../config/boot.rb:18:in `load_shattered_edge'
from ./script/../config/boot.rb:31
from c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in
`gem_original_require'
from c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in
`require'
from script/generate:2
*************************************************************************************************
So I tried to then use the dirty_ruby files provided on the wiki, and
that gives me similar output. Anyone know how I get things to work?

doug livesey

unread,
Nov 19, 2007, 6:13:17 AM11/19/07
to shatte...@googlegroups.com
Hi -- don't know if this will help, but...
I recently got this to work after a number of errors (& alot of help from this list!).
It turned out that I had installed shattered_ruby the wrong way.
Try uninstalling shattered_ruby (running "gem list shattered" should show you what to uninstall, I think), then installing with the command:
"gem install shattered_ruby --include-dependencies"

Hope that helps,
   Doug.

RubyFun

unread,
Nov 19, 2007, 6:55:10 AM11/19/07
to ShatteredRuby
Tried that, and a full reinstall of ruby, and I'm still getting the
same error when i try to run "ruby script/generate state observation"

Do I need to compile ogre and have it somewhere?

doug livesey

unread,
Nov 19, 2007, 7:02:09 AM11/19/07
to shatte...@googlegroups.com
I never needed to -- the install command above should give you everything.
Although the error message there does mention "ogre.dll", so that could be it.
Way out of my league if it is, sorry.

On 19/11/2007, RubyFun <JRo...@gmail.com> wrote:

JeremyW...@gmail.com

unread,
Nov 19, 2007, 12:34:12 PM11/19/07
to ShatteredRuby
Hey, try installing this and see if that helps.

http://www.microsoft.com/downloads/details.aspx?displaylang=en&FamilyID=200b2fd9-ae1a-4a14-984d-389c36f85647


Let me know.

~Jeremy

RubyFun

unread,
Nov 20, 2007, 4:16:22 AM11/20/07
to ShatteredRuby
Excellent! I now have everything up and seemingly running, and now I'm
crashing whenever I use the http://wiki.shatteredruby.com/index.php?title=Your_First_Moves#Controlling_the_actor
part of the tutorial...


Anyone see anything wrong with the following?

class DirtyRuby < ShatteredModel::Base
key :pressed => :left, :action => { :translate => :left}
key :pressed => :right, :action => { :translate => :right}
end


Anyway, the VC redistributable was the issue with the errors I was
receiving before. Once I can get some input going, I'll really be
happy :)

RubyFun

unread,
Nov 20, 2007, 4:21:53 AM11/20/07
to ShatteredRuby
c:/ruby/lib/ruby/gems/1.8/gems/shattered_pack-0.5.1/lib/shattered_view/
base.rb:2
13:in `translate': No matching function for overloaded
'Node_translate' (ArgumentError)
from c:/ruby/lib/ruby/gems/1.8/gems/shattered_pack-0.5.1/lib/
shattered_view/base.rb:213:in `translate'
from c:/ruby/lib/ruby/gems/1.8/gems/shattered_pack-0.5.1/lib/
shattered_model/base.rb:106:in `send'
from c:/ruby/lib/ruby/gems/1.8/gems/shattered_pack-0.5.1/lib/
shattered_model/base.rb:106:in `method_missing'
from c:/ruby/lib/ruby/gems/1.8/gems/shattered_pack-0.5.1/lib/
shattered_pack/keyboard_input/keyboard_input.rb:88:in `send'
from c:/ruby/lib/ruby/gems/1.8/gems/shattered_pack-0.5.1/lib/
shattered_pack/keyboard_input/keyboard_input.rb:88:in `key_action'
from c:/ruby/lib/ruby/gems/1.8/gems/shattered_pack-0.5.1/lib/
shattered_pack/keyboard_input/keyboard_input.rb:98:in `update_input'
from c:/ruby/lib/ruby/gems/1.8/gems/shattered_pack-0.5.1/lib/
shattered_pack/keyboard_input/keyboard_input.rb:97:in `each'
from c:/ruby/lib/ruby/gems/1.8/gems/shattered_pack-0.5.1/lib/
shattered_pack/keyboard_input/keyboard_input.rb:97:in `update_input'
... 15 levels...
from c:/ruby/lib/ruby/gems/1.8/gems/shattered_ruby-0.5.1/lib/
game_loader.rb:81:in `start_game'
from c:/ruby/lib/ruby/gems/1.8/gems/shattered_ruby-0.5.1/lib/
game_loader.rb:32:in `run'
from ./script/runner.rb:4:in `start_game'
from script/runner:8

That's the error I'm getting :)

Jason Roelofs

unread,
Nov 20, 2007, 7:23:10 AM11/20/07
to shatte...@googlegroups.com
Yeah, this is a known problem with the gem release. I do believe it's fixed in SVN.

Jason

Andrea O. K. Wright

unread,
Nov 20, 2007, 8:12:24 AM11/20/07
to shatte...@googlegroups.com
The temporary fix you need to move based on keyboard input is explained in this thread: 

JeremyW...@gmail.com

unread,
Nov 20, 2007, 12:38:22 PM11/20/07
to ShatteredRuby
Yeah, pretty much what you have to do is make a new method

def move(direction)
translate(direction.to_v)
end

hope that helps.


~Jeremy

RubyFun

unread,
Nov 21, 2007, 11:59:32 AM11/21/07
to ShatteredRuby
Excellent, everything works :)

I noticed that the ogre.rb samples have a default movement setup,
different for wasd and arrow keys... is there an easy way to include
that type of setup, or is it specific to the demos?

JeremyW...@gmail.com

unread,
Nov 21, 2007, 8:01:26 PM11/21/07
to ShatteredRuby
well, I don't quite follow the question, but I know you can assign
pretty much any button to do anything, so

key :pressed => :a, :action => { :move => :left }
key :pressed => :w, :action => { :move => :up }

Hope that's what you were looking for. Happy thanksgiving


~Jeremy

RubyFun

unread,
Nov 22, 2007, 2:11:03 AM11/22/07
to ShatteredRuby
Aye, I already had that working... What I was referring to was the
application class used in the ogrerb demos, which imports the input
setup... strafing with 'a' and 'd', rotation with left and right,
forward and backward with the usual suspects.

Anyway, I'm not having problems anymore, and I really appreciate the
work that's been put into both helping me and creating this project.

I will register and update the wiki as soon as I get a few spare
moments :)

Kudos!

Reply all
Reply to author
Forward
0 new messages