Scrolling Game Development Kit Forum
Welcome, Guest. Please login or register.
2010-09-09, 05:43:24 PM

Login with username, password and session length
Search:     Advanced search
8920 Posts in 1007 Topics by 168 Members
Latest Member: mogzdogz
* Home Help Search Login Register
+  Scrolling Game Development Kit Forum
|-+  SGDK Version 2
| |-+  Help, Errors, FAQ
| | |-+  Issues running SGDK2 projects
« previous next »
Pages: [1] Print
Author Topic: Issues running SGDK2 projects  (Read 311 times)
Jam0864
Contributor
Fanatic
**
Posts: 742


marmalade0864@hotmail.com
View Profile WWW Email
« on: 2010-01-23, 07:23:11 PM »

I'm having problems running any OpenGL-based SGDK2 games on my system.

CPU - Core 2 Quad q9550
MOBO - Gigabyte EP45T-EXTREME
RAM - 4GB DDR3
GFX - ATI Radeon HD4890
OS - A fresh install of Windows 7 x64 (2 weeks old at most)



It occurs in every OpenGL game I've tried, (guitarsim, isometric sample, automatic turret sample) and it doesn't appear to matter whether the game is compiled or ran in the IDE.


When I try to use the map editor.
Code:
---------------------------
Map Editor Error
---------------------------
An error occurred while drawing the display in the map editor. In order to attempt to avoid fatal errors and data loss, the display handling in this map editor window will be disabled and you should close it yourself. Details:

System.ApplicationException: OpenGL version 1.2 is required; your version is: 3.2.9232

   at SGDK2.Display.CheckRequirements()

   at SGDK2.Display.DrawFrame(TextureRef texture, Rectangle sourceRect, Point[] corners, Int32 offsetX, Int32 offsetY)

   at SGDK2.Layer.Draw(Display Display, Size ViewSize)

   at SGDK2.frmMapEditor.MapDisplay_Paint(Object sender, PaintEventArgs e)
---------------------------
OK  
---------------------------


When I try to run a game.
Code:
---------------------------
Error
---------------------------
A fatal error occurred initializing or running the game:

System.ApplicationException: OpenGL version 1.2 is required; your version is: 3.2.9232

   at Display.CheckRequirements()

   at Display.DrawFrame(TextureRef texture, Rectangle sourceRect, PointF[] corners, Int32 offsetX, Int32 offsetY)

   at LayerBase.Draw()

   at Level_1_Map.Draw()

   at MapBase.DrawAllViews()

   at GameForm.Run()

   at Project.Main()
---------------------------
OK  
---------------------------






Correct me if I'm wrong, but as I understand it, OpenGL is included with graphics drivers and you can't just download a copy of an older version.


Graphics Software Information (According to Catalyst Control Centre (ATI Drivers))
Code:
Driver Packaging Version 8.681-091124a-092499C-ATI
Catalyst™ Version 09.12
Provider ATI Technologies Inc.
2D Driver Version 8.01.01.984
2D Driver File Path /REGISTRY/MACHINE/SYSTEM/ControlSet001/Control/CLASS/{4D36E968-E325-11CE-BFC1-08002BE10318}/0000
Direct3D Version 8.14.10.0716
OpenGL Version 6.14.10.9232
Catalyst™ Control Center Version 2009.1124.2131.38610

Graphics Hardware Information (According to Catalyst Control Centre (ATI Drivers))
Code:
Primary Adapter
Graphics Card Manufacturer Powered by ATI
Graphics Chipset ATI Radeon HD 4800 Series  
Device ID 9460
Vendor 1002

Subsystem ID 2281
Subsystem Vendor ID 1787

Graphics Bus Capability PCI Express 2.0
Maximum Bus Setting PCI Express 2.0 x16

BIOS Version 011.022.006.000
BIOS Part Number 113-BA900
BIOS Date 2009/06/18

Memory Size 1024 MB
Memory Type GDDR5

Core Clock in MHz 850 MHz
Memory Clock in MHz 975 MHz
Total Memory Bandwidth in GByte/s 124.8 GByte/s



I believe this card was working when I was using XP 32bit... (6 months ago or so) but you might have been using DirectX back then.
If there is any other information I can provide, don't hesitate to ask.
Logged
bluemonkmn
SGDK Author
Administrator
Fanatic
*****
Posts: 2146


2678251 BlueMonkMN@gmail.com
View Profile WWW Email
« Reply #1 on: 2010-01-24, 09:55:03 AM »

It seems some drivers incorrectly report support for older OpenGL interfaces or something (or maybe OpenTK incorrectly passes that information along, but I doubt that).  You could try loading a project into the IDE, opening the Display.cs file from the project's SourceCode folder, locating the CheckRequirements function, and deleting the following block of code:
Code:
         if (!GL.SupportsExtension("VERSION_1_2"))
         {
            string errString = "OpenGL version 1.2 is required";
            try
            {
               errString += "; your version is: " + GL.GetString(StringName.Version);
            }
            catch
            {
            }
            throw new ApplicationException(errString);
         }
Logged

Jam0864
Contributor
Fanatic
**
Posts: 742


marmalade0864@hotmail.com
View Profile WWW Email
« Reply #2 on: 2010-01-24, 02:49:11 PM »

Ok that runs beautifully. Thanks.
Logged
durnurd
Lead Lemming
Expert
Fanatic
*****
Posts: 1155


Games completed so far: 0

durnurd@hotmail.com
View Profile WWW
« Reply #3 on: 2010-01-24, 09:19:36 PM »

If I recall correctly, OpenTK had an issue parsing OpenGL versions of 3 or greater.  It has been fixed, but I ran into the issue not too long ago because I wasn't running the latest version of SGDK2.
Logged

Edward Dassmesser
Pages: [1] Print 
« previous next »
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.11 | SMF © 2006-2009, Simple Machines LLC Valid XHTML 1.0! Valid CSS!