Hi,
I've tried to follow the tutorial, had 'issues', uninstalled,
reinstalled, recreated and had more issues. I eventually found the
mail here:
http://groups.google.com/group/shatteredruby/browse_thread/thread/eb40e5544354aba/727ebd64e14430d2?lnk=gst&q=%5Bcreate_viewport#727ebd64e14430d2
... on this group. I uninstalled again, used the specified install
command and was doing much better until I got to the Actor section.
My actor is created, and I have added the @ruby = DirtyRuby.new line
to my state. When I run it, it then throws a Segmentation fault:
=============================================================================================
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_ruby-0.5.1/lib/game_loader.rb:
93: [BUG] Segmentation fault
ruby 1.8.6 (2007-03-13) [i386-mswin32]
This application has requested the Runtime to terminate it in an
unusual way.
Please contact the application's support team for more information.
=============================================================================================
As you can see, I'm running Ruby 1.8.6, Shattered 0.5.1, on Windows
XP. I am using the OpenGL renderer. Using the DirectX renderer (the
default) gives me
=============================================================================================
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_ruby-0.5.1/lib/game_loader.rb:
74:in `initialise': OGRE EXCEPTION(3:): Failed to create Direct3D9
Device: Not available in D3D9RenderWindow::createD3DResources
at ..\src\OgreD3D9RenderWindow.cpp (line 471) (OgreError)
from c:/ruby/lib/ruby/gems/1.8/gems/shattered_ruby-0.5.1/lib/
game_loader.rb:74:in `setup_ogre'
from c:/ruby/lib/ruby/gems/1.8/gems/shattered_ruby-0.5.1/lib/
game_loader.rb:49:in `load_environment'
from c:/ruby/lib/ruby/gems/1.8/gems/shattered_ruby-0.5.1/lib/
game_loader.rb:27:in `run'
from ./script/runner.rb:4:in `start_game'
from script/runner:8
=============================================================================================
I do have DX9c installed.
Any ideas? I've tried the advice on the tutorial about the mesh, but
my mesh diffs to zero against the downloaded one.
Cheers,
Jamie