Forums Archived

The forums are being archived. See this topic for more information.

Rubygame Book Errors?

Get help and support with Rubygame

Rubygame Book Errors?

Postby makkura » Fri Jul 23, 2010 5:20 am

I've been looking at the Rubygame Book in the wiki: http://wiki.kibabase.com/The_Rubygame_Book

I'm to the point of the first run attempt and having issues.
I've fixed what I could to this point.
I believe the below corrections to dependencity.rb are correct but my understanding of what is being attempted may be faulty.
dependencity.rb:
Code: Select all
   def add_dir name
      @directories << dir
   end

to
Code: Select all
   def add_dir name
      @directories << name
   end

and
Code: Select all
         files.each do |file|
            if file.match(@patterns[step])
               puts "file: " + file.to_s
               files = move_to_front(file, counter)
            end
            counter += 1
         end

to
Code: Select all
         files.each do |file|
            if file.match(@patterns[step])
               puts "file: " + file.to_s
               files = move_to_front(file)
            end
            counter += 1
         end

Also "shoulda" is required in the environment.rb file and is not mentioned elsewhere. Perhaps a comment would clarify without derailing via a #http://github.com/thoughtbot/shoulda ?

First, if these are correct edits can they be put in or should I make an account on the wiki to do so?
Second, I continue to get errors after that point: undefined method '[]' for nil:nilClass in the first line of the move_to_front function.

I know the tutorial is incomplete but I was hoping to at least use the framework presented as it seems to be a decent organizational structure.

Is there another tutorial that presents a similar structure at an introductory level for RubyGame?
Any other advice on a good starting point would be appreciated.
I certainly do not mean any disrespect to Kiba's tutorial but as it is incomplete and may need cleaning up, it seems to be causing me more confusion than instruction in some places.

Sorry about the text wall!

Thanks all,
makkura
makkura
 
Posts: 2
Joined: Fri Jul 23, 2010 5:03 am

Re: Rubygame Book Errors?

Postby sitting » Thu Aug 12, 2010 4:33 pm

i have the same problem with the rubygame book :) i try this later :)
sitting
 
Posts: 8
Joined: Thu Jul 29, 2010 3:58 pm


Return to Help & Support

Who is online

Users browsing this forum: No registered users and 1 guest

cron