Forums Archived

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

So many files in gfx

Get help and support with Rubygame

So many files in gfx

Postby sitting » Thu Jul 29, 2010 4:07 pm

Hello! :)

I following the guide for installing rubygame on windows, and now I'm unpacking all the rar files for the dlls. But i don't know what file to take from SDL_gfx-2.0.18.rar, it have alot of files, not only dlls files. Hm should i copy everything in the folder from gfx into system32 or should i just take SDL_gfx.dll that is in: C:\Users\jonathan\Desktop\Rubygame\SDL_gfx-2.0.18\bin\Release folder :)

Thanks for all the help, and sorry for bad eng :)

// Jonathan
PS: Im totally new at this, i was so inspired by all the games people have showed at the forums here! :)


Edit #1
Also are there any guids out there how to make your first game? like those hello world guides, but with rubygame, like make your first sprite move or something :)
sitting
 
Posts: 8
Joined: Thu Jul 29, 2010 3:58 pm

Re: So many files in gfx

Postby tyler » Thu Jul 29, 2010 6:27 pm

Hey!

I think you only need to copy over SDL_gfx.dll, but I'm not 100% sure.

As for guides, there are some listed here: http://rubygame.org/wiki/Guides_and_tutorials
Kiba has one here: http://wiki.kibabase.com/The_Rubygame_Book
I'm working on some video tutorials, but they aren't finished yet, the videos I've made are listed here: http://manwithcode.com/making-games-with-ruby/
And the scripts for the videos I'm working on (which read pretty much like a regular tutorial) are at this link: http://devel.manwithcode.com/making-games-with-ruby.html

I hope this helps! :) If you have any more questions I'm sure me or someone else around here will be able to answer them.
Tyler
tyler
 
Posts: 25
Joined: Sat Feb 28, 2009 6:10 am

Re: So many files in gfx

Postby sitting » Thu Jul 29, 2010 8:11 pm

tyler wrote:Hey!

I think you only need to copy over SDL_gfx.dll, but I'm not 100% sure.

As for guides, there are some listed here: http://rubygame.org/wiki/Guides_and_tutorials
Kiba has one here: http://wiki.kibabase.com/The_Rubygame_Book
I'm working on some video tutorials, but they aren't finished yet, the videos I've made are listed here: http://manwithcode.com/making-games-with-ruby/
And the scripts for the videos I'm working on (which read pretty much like a regular tutorial) are at this link: http://devel.manwithcode.com/making-games-with-ruby.html

I hope this helps! :) If you have any more questions I'm sure me or someone else around here will be able to answer them.
Tyler


Thanks for the help! Answers like this make you feel like a part of the community, thank you! :)
sitting
 
Posts: 8
Joined: Thu Jul 29, 2010 3:58 pm

Re: So many files in gfx

Postby sitting » Wed Aug 11, 2010 5:20 am

Okay so im following the rubygame book - starter guide.
i get some error when loading the dependencity system from the book, i get following error:

Code: Select all
C:\Users\jonathan\Desktop\Ruby\Projekt\RbPong>rbpong.rb
C:/Users/jonathan/Desktop/Ruby/Projekt/RbPong/lib/dependencity/dependencity.rb:18:in `add_rule': undefined method `<<' for nil:NilClass (NoMethodError)
        from C:/Users/jonathan/Desktop/Ruby/Projekt/RbPong/config/enviroment.rb: 10:in `<top (required)>'
        from C:/Users/jonathan/Desktop/Ruby/Projekt/RbPong/rbpong.rb:1:in `require'
        from C:/Users/jonathan/Desktop/Ruby/Projekt/RbPong/rbpong.rb:1:in `<main>'

and this is how line 18 looks like in dependencity.rb:
Code: Select all
   def add_rule name
      @patterns << name
   end

line 10 from enviroment.rb:
Code: Select all
loader.add_rule("top") #Add the rules first!


i dont know what the problem is, im looking back and so on, but i cant see the error =/ help plz :)
sitting
 
Posts: 8
Joined: Thu Jul 29, 2010 3:58 pm

Re: So many files in gfx

Postby jacius » Wed Aug 11, 2010 7:58 am

Hrm, it seems the @patterns variable is not being initialized. Make sure you have initialization code in your Dependicity class, like this:

Code: Select all
def initialize
  @directories = Array.new()
  @ignore_list = Array.new()
  @patterns = Array.new()
end
User avatar
jacius
Site Admin
 
Posts: 131
Joined: Fri Feb 06, 2009 11:13 pm

Re: So many files in gfx

Postby sitting » Thu Aug 12, 2010 3:05 am

thanks! :) i missed that ^^


Found another thread that "fix" this problem, i will try that later see if it works :)
sorry for being a pain in the ass, i get this now:
Code: Select all
C:\Users\jonathan\Desktop\Ruby\Projekt\RbPong>rbpong.rb
C:/Users/jonathan/Desktop/Ruby/Projekt/RbPong/lib/dependencity/dependencity.rb:15:in `add_dir': undefined local variable or method `dir' for #<Dependencity:0x299e620> (NameError) from C:/Users/jonathan/Desktop/Ruby/Projekt/RbPong/config/enviroment.rb:11:in `<top (required)>'


line 15:
Code: Select all
def add_dir name
      @directories << dir
end


hm i have looked back and forward, but i cant find the problem, if i understand the error right, i have missed setting dir to something. sorry for my bad english =)

Found another thread that "fix" this problem, i will try that later see if it works :)
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