Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Game Crash #4

Open
DoktorHibiskus opened this issue Dec 27, 2020 · 5 comments
Open

Game Crash #4

DoktorHibiskus opened this issue Dec 27, 2020 · 5 comments

Comments

@DoktorHibiskus
Copy link

Hi Spajus!
Thank you for this great game! But for me it's not working. I tried to install it according to you,
but it says:

/var/lib/gems/2.7.0/gems/gosu_texture_packer-0.1.8/lib/gosu_texture_packer/tileset.rb:12:in `read': no implicit conversion of GameWindow into String (TypeError)

Do you have a clue?
With dear greetings
Hibiscus

@spajus
Copy link
Owner

spajus commented Dec 28, 2020

Hey, thank you for reporting! I made a mistake of not locking the dependencies when I created this, so newer dependencies changed the API. I'll find some time to fix this in following days.
Happy holidays!

@DoktorHibiskus
Copy link
Author

Hi, thank you so much! Have a happy new years eve and happy holidays!

@Willardgmoore
Copy link
Contributor

Willardgmoore commented Apr 19, 2021

I'm starting to look into this. There were a number of deprecation warnings that I have gotten past now.

Now I am trying to figure out which versions I need for things right now based on this message or if I just need to update the depreciation issue?

 fs=1 w=1200 h=800 tank_island
Traceback (most recent call last):
	22: from /Users/admin/.rbenv/versions/2.6.5/bin/tank_island:23:in `<main>'
	21: from /Users/admin/.rbenv/versions/2.6.5/bin/tank_island:23:in `load'
	20: from /Users/admin/.rbenv/versions/2.6.5/lib/ruby/gems/2.6.0/gems/tank_island-1.0.5/bin/tank_island:82:in `<top (required)>'
	19: from /Users/admin/.rbenv/versions/2.6.5/lib/ruby/gems/2.6.0/gems/gosu-1.2.0/lib/gosu/patches.rb:64:in `tick'
	18: from /Users/admin/.rbenv/versions/2.6.5/lib/ruby/gems/2.6.0/gems/gosu-1.2.0/lib/gosu/patches.rb:64:in `tick'
	17: from /Users/admin/.rbenv/versions/2.6.5/lib/ruby/gems/2.6.0/gems/tank_island-1.0.5/lib/misc/game_window.rb:28:in `button_down'
	16: from /Users/admin/.rbenv/versions/2.6.5/lib/ruby/gems/2.6.0/gems/tank_island-1.0.5/lib/game_states/menu_state.rb:47:in `button_down'
	15: from /Users/admin/.rbenv/versions/2.6.5/lib/ruby/gems/2.6.0/gems/tank_island-1.0.5/lib/game_states/menu_state.rb:47:in `new'
	14: from /Users/admin/.rbenv/versions/2.6.5/lib/ruby/gems/2.6.0/gems/tank_island-1.0.5/lib/game_states/play_state.rb:9:in `initialize'
	13: from /Users/admin/.rbenv/versions/2.6.5/lib/ruby/gems/2.6.0/gems/tank_island-1.0.5/lib/game_states/play_state.rb:9:in `new'
	12: from /Users/admin/.rbenv/versions/2.6.5/lib/ruby/gems/2.6.0/gems/tank_island-1.0.5/lib/entities/map.rb:19:in `initialize'
	11: from /Users/admin/.rbenv/versions/2.6.5/lib/ruby/gems/2.6.0/gems/tank_island-1.0.5/lib/entities/map.rb:119:in `generate_trees'
	10: from /Users/admin/.rbenv/versions/2.6.5/lib/ruby/gems/2.6.0/gems/tank_island-1.0.5/lib/entities/map.rb:119:in `new'
	 9: from /Users/admin/.rbenv/versions/2.6.5/lib/ruby/gems/2.6.0/gems/tank_island-1.0.5/lib/entities/tree.rb:6:in `initialize'
	 8: from /Users/admin/.rbenv/versions/2.6.5/lib/ruby/gems/2.6.0/gems/tank_island-1.0.5/lib/entities/tree.rb:6:in `new'
	 7: from /Users/admin/.rbenv/versions/2.6.5/lib/ruby/gems/2.6.0/gems/tank_island-1.0.5/lib/entities/components/tree_graphics.rb:7:in `initialize'
	 6: from /Users/admin/.rbenv/versions/2.6.5/lib/ruby/gems/2.6.0/gems/tank_island-1.0.5/lib/entities/components/tree_graphics.rb:52:in `load_sprite'
	 5: from /Users/admin/.rbenv/versions/2.6.5/lib/ruby/gems/2.6.0/gems/tank_island-1.0.5/lib/entities/components/tree_graphics.rb:66:in `trees'
	 4: from /Users/admin/.rbenv/versions/2.6.5/lib/ruby/gems/2.6.0/gems/gosu_texture_packer-0.1.8/lib/gosu_texture_packer.rb:8:in `load_json'
	 3: from /Users/admin/.rbenv/versions/2.6.5/lib/ruby/gems/2.6.0/gems/gosu_texture_packer-0.1.8/lib/gosu_texture_packer/tileset.rb:7:in `load_json'
	 2: from /Users/admin/.rbenv/versions/2.6.5/lib/ruby/gems/2.6.0/gems/gosu_texture_packer-0.1.8/lib/gosu_texture_packer/tileset.rb:7:in `new'
	 1: from /Users/admin/.rbenv/versions/2.6.5/lib/ruby/gems/2.6.0/gems/gosu_texture_packer-0.1.8/lib/gosu_texture_packer/tileset.rb:12:in `initialize'
/Users/admin/.rbenv/versions/2.6.5/lib/ruby/gems/2.6.0/gems/gosu_texture_packer-0.1.8/lib/gosu_texture_packer/tileset.rb:12:in `read': no implicit conversion of GameWindow into String (TypeError)

@Willardgmoore
Copy link
Contributor

I looked back through the Gosu versions and figured out which one is the right version. I'll make a PR.

@Willardgmoore
Copy link
Contributor

This issue is solved by the recent merge.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants