Not logged inGosu Forums
Forum back to libgosu.org Help Search Register Login
Up Topic Gosu / Gosu Exchange / Resolution Issue
- - By Maimer Date 2014-09-02 20:48 Edited 2014-09-02 21:53
So I just updated my version of Gosu, I was using 0.7.5 and now I have 0.8.3.

Now, all of my projects the resolution is all screwed up.  The window still renders fine.  It still renders the correct window size based on what i have input.  However, the graphics and everything else that I have coded no longer displays properly.  It renders everything from the bottom left corner, but the resolution of the images is all wrong.  I am not sure what to do to fix it, so hopefully someone can help me.

I have attached a screenshot of what it's looking like now.  It's supposed to be a 16x16 board with player 1 and 2 on the bottom.

It happens in all my Gosu projects.

This is my current project:



Here is my older project Ruby Racer:



Edit:  To make things even more weird, I uninstalled all versions of Gosu (so I could do a fresh install), but I tried my games afterwards and they still worked without gosu installed.
Parent - - By Maimer Date 2014-09-02 22:35
Here is a bit more detail on the situation that may help solve the issue.

I was making a gemfile for a recent game I made.  I did a bundle command after making it to create the Gemfile.lock.

Doing this attempted to update my version of Gosu from 0.7.50 to 0.8.3.  It gave me that error of "failed to build native extensions".
I went to the Gosu page on installed on OS X and did brew install sdl2 libogg libvorbis.
After installing those 3 extensions, I was then able to install the upgraded version of Gosu (0.8.3).

This is when my problems started with the resolution.

I then uninstalled all versions of Gosu and also did a brew uninstall sdl2 libogg libvorbis.
However, my games would still run as somehow Gosu 0.8.3 was still running even though I uninstalled it.

I then manually went into my ruby folder and manually deleted Gosu 0.8.3 and reinstalled 0.7.50.

Everything is "back to normal" now in terms of how the games look, but now whenever I run a ruby program with Gosu in it it says "Ignoring gosu-0.8.3 because its extensions are not built.  Try: gem pristine gosu-0.8.3", which I assume is due to some remaining pieces of Gosu 0.8.3 lying around in my system.

I really want to update my Gosu to the latest version, but as of right now it makes my games unusable.

Please advise.
Parent - - By jlnr (dev) Date 2014-09-03 12:44
I would suggest running gem uninstall gosu until all versions are gone, then installing Gosu 0.8.2, which should hopefully fix this issue.

There is a tiny bug in Gosu 0.8.3 that can cause this issue on a Retina MacBook Pro. In related news, I've just spent all of this morning trying to get some advanced features of Gosu to work on a Retina Mac: https://github.com/jlnr/gosu/issues/244 :) But your issue should already be fixed, and I'll try to push 0.8.4 ASAP.
Parent - - By Maimer Date 2014-09-03 16:09
I will try what you mentioned, but just so you are aware, when this originally happened I did run gem uninstall gosu and I had 3 versions installed.  I uninstalled all versions yet my programs still ran that needed gosu.  There was definitely an issue where Gosu 0.8.3 was staying installed even though I had given the command to uninstall.

Anyway, let me try 0.8.2 and see how it goes.
Parent - - By jlnr (dev) Date 2014-09-03 17:25 Edited 2014-09-03 17:31
Hmm. Did you maybe run bundle --deployment (which will install the gem in a local .bundle subfolder), or do you use several versions of Ruby with rvm/rbenv? Uninstalling gems is the pretty much the only thing that gem developers are not responsible for :) Should have been a bug somewhere else...

0.8.4 is out now, as well. One thing that I've noticed is that brew install sdl2 --HEAD works a lot better here than the current stable version.
Parent - - By Maimer Date 2014-09-03 22:13
Nope, never ran bundle --deployment and I only use one version of Ruby, which is 2.0.0p451.  I actually had to go into this folder:

/Users/<myusername>/.rubies/ruby-2.0.0-p451/lib/ruby/gems/2.0.0/gems/

and then delete the gosu-0.8.3 folder manually even though if I typed "gem uninstall gosu" it would tell me that no gem named gosu was installed.

So I am assuming that it's safe to use 0.8.4 now?  I am going to update and hopefully all goes well!

By the way, thanks for the great gem!  I know you probably deal with people and their issues all day and probably don't have enough people telling you how much fun it is to use.
Parent - - By Maimer Date 2014-09-04 00:15
So I updated to 0.8.4 and it works great!  Everything is back to normal and working well.

I have attached some screenshots to give you a better idea of what's going on with version 0.8.3.

This is what it says when I run any program that uses Gosu (even after upgrading to 0.8.4):







You can see the contradiction here between the gem list and when I try to uninstall.
Parent - - By jlnr (dev) Date 2014-09-04 12:11
Hmm, what does "gem which gosu" or "gem which gosu.bundle" say in the ruby_racer directory? Does it find anything at all after you uninstall the other gem versions?

In recent Ruby setups, there is an extensions/ folder next to gems/. Maybe something got stuck there?

If nothing else helps, there is always rvm implode ;)
Parent - By Maimer Date 2014-09-05 00:37
So I uninstalled all versions of Gosu and ran the commands you listed.  Even when I tried to run the command it listed it doesn't seem to want to do anything.



I think I will stay away from rvm implode for now...
Parent - By jlnr (dev) Date 2014-09-04 12:10
Thanks! It's not too bad actually. Probably one "support request" per game that is posted to the Showcase. :)
Up Topic Gosu / Gosu Exchange / Resolution Issue

Powered by mwForum 2.29.7 © 1999-2015 Markus Wichitill