Scrolling Game Development Kit Forum

SGDK Version 2 => Help, Errors, FAQ => Topic started by: Vincent on 2009-08-17, 12:56:22 PM

Title: OpenGL problem when running an exe
Post by: Vincent on 2009-08-17, 12:56:22 PM
Hi guys,

One of my friends is trying to run my game on his computer.  It worked fine for a while, but then he reinstalled his computer and since then, he can't get the game to work.
I don't visit him often, he lives a little far, so I can't try his computer to find the problem.  When he runs the exe (he knows where to put the files, dlls, etc), he gets this error:

System.ApplicationExeption: openGL version. 1.2 is required; your version is : 3.0.0

I don't know how to help him.  Anyone has already seen this error?

Thanks for your time! :)
Title: Re: OpenGL problem when running an exe
Post by: bluemonkmn on 2009-08-17, 01:17:16 PM
Two thoughts: 1) Try installing the latest video drivers from the video hardware manufacturer's web site.
2) Refer / post to this thread on the OpenTK forums
http://www.opentk.com/node/1040 (http://www.opentk.com/node/1040)
It talks about the code that is used to get the OpenGL version.
Title: Re: OpenGL problem when running an exe
Post by: Vincent on 2009-08-17, 01:22:04 PM
Thanks, I'll look into this. :)
Title: Re: OpenGL problem when running an exe
Post by: Vincent on 2009-08-17, 01:32:40 PM
Well, the latest drivers don't change anything.

I looked around in the OpenTK forum and I found this thread:
http://www.opentk.com/node/806 (http://www.opentk.com/node/806)
Could it be possible that I still have an old version of OpenTK?  I looked in the properties of the OpenTK dll and it says 0.9.1.  I guess that's the problem!

Is it because you never updated the SGDK2.1 version to use the 0.9.6 version of OpenTK?  Do I have an old SGDK2.1 version and I should update it?  The properties of the SGDK2.1 program says I have version 2.1.0.1.

What do you suggest bluemonkmn? :)
Title: Re: OpenGL problem when running an exe
Post by: Vincent on 2009-08-18, 07:01:26 AM
Well, the problem definitely is the version of the OpenTK.dll.  I downloaded another version of the dll (0.9.8 I think), sent it to my friend and it works now.   :)
Title: Re: OpenGL problem when running an exe
Post by: bluemonkmn on 2009-08-18, 08:49:52 AM
I suppose I should re-release SGDK2 in its current state.  The current download links lead to SGDK 2.0 because 2.1 is in beta.  But it doesn't seem to be going anywhere and I think is not worse than 2.0, so I should probably make that the main version right now.
Title: Re: OpenGL problem when running an exe
Post by: Vincent on 2009-08-21, 06:57:54 PM
Oh, I surprised to learn that 2.1 is still in beta: it works fine and it's very stable.  :surprise:
Title: Re: OpenGL problem when running an exe
Post by: Jam0864 on 2009-08-21, 08:37:04 PM
That is definitely a driver issue, I would suggest hardware but you said it used to work.

Latest drivers aren't always the best, particularly with old cards.
Title: Re: OpenGL problem when running an exe
Post by: SmartBoy16 on 2009-08-21, 08:45:32 PM
Oh, I surprised to learn that 2.1 is still in beta: it works fine and it's very stable.  :surprise:

sometimes beta means it has all the features, but may still have bugs.

i actually thought it was released too. strange...
Title: Re: OpenGL problem when running an exe
Post by: bluemonkmn on 2009-08-22, 09:18:25 AM
The reason I left it in Beta is because some of the features don't work in Linux, which is one of the main features of 2.1.  I thought we might get somewhere in resolving those issues, but I guess we haven't and maybe won't, so I might as well go with what we've got.
Title: Re: OpenGL problem when running an exe
Post by: bluemonkmn on 2009-08-29, 03:22:17 PM
I uploaded a new version of SGDK2, but they totally changed the file release process so it's going to take me a little longer than I expected (don't have time right now) to figure out how to turn that into an actual release.

Looks like you might be able to download the file anyway, though -- SGDK212.zip.  But I haven't figured yet how to fully control how/where that file is listed.
Title: Re: OpenGL problem when running an exe
Post by: SmartBoy16 on 2009-08-29, 04:30:20 PM
I uploaded a new version of SGDK2, but they totally changed the file release process so it's going to take me a little longer than I expected (don't have time right now) to figure out how to turn that into an actual release.

Looks like you might be able to download the file anyway, though -- SGDK212.zip.  But I haven't figured yet how to fully control how/where that file is listed.

i got it ;)