[Fixed] (Mac) When I try to open or test something in the engine...

Description: It's archive, posting new is here http://wohlsoft.ru/forum/viewforum.php?f=11

MightyMerlinStyle M
Topic author, Honourable citizen
Honourable citizen
Avatar
MightyMerlinStyle M
Topic author, Honourable citizen
Honourable citizen
Reputation: 3
Posts: 37
Joined: 13 Dec 2015
Location: Chocolate Island

Post #1by MightyMerlinStyle » 14 Dec 2015, 5:15

...this happens.

Image
An extra you say?

Wohlstand M
Lead Developer
Lead Developer
Avatar
Wohlstand M
Lead Developer
Lead Developer
Age: 30
Reputation: 493
Posts: 1747
Joined: 15 Feb 2014
English Pronouns: he/him
Location: Moscow, Russia
Website Youtube channel URL Skype Tencent QQ

Post #2by Wohlstand » 14 Dec 2015, 10:49

Which version of OS X you have?
You would have no support of necessary version of OpenGL, minimum supported version is OpenGL 3.x. Later I will implement reserve rendering system to provide software render for systems where is no OpenGL or hardware render is shit (for example, video cards like ATI Radeon 9200 PRO and older which are has 128 MB VRAM and has no support of non-pow-of-2 textures).

Don't worry, SDL's software render gives ability to render had alpha-blending and most of OpenGL possible tricks are can be done with it ;-)

MightyMerlinStyle M
Topic author, Honourable citizen
Honourable citizen
Avatar
MightyMerlinStyle M
Topic author, Honourable citizen
Honourable citizen
Reputation: 3
Posts: 37
Joined: 13 Dec 2015
Location: Chocolate Island

Post #3by MightyMerlinStyle » 15 Dec 2015, 0:02

I have 10.10.5 (Yosemite).
An extra you say?

Wohlstand M
Lead Developer
Lead Developer
Avatar
Wohlstand M
Lead Developer
Lead Developer
Age: 30
Reputation: 493
Posts: 1747
Joined: 15 Feb 2014
English Pronouns: he/him
Location: Moscow, Russia
Website Youtube channel URL Skype Tencent QQ

Post #4by Wohlstand » 15 Dec 2015, 22:09

MightyMerlinStyle wrote:I have 10.10.5 (Yosemite).
That wired... Okay, I will apply something and then you can try to take nightly build to test it

MightyMerlinStyle M
Topic author, Honourable citizen
Honourable citizen
Avatar
MightyMerlinStyle M
Topic author, Honourable citizen
Honourable citizen
Reputation: 3
Posts: 37
Joined: 13 Dec 2015
Location: Chocolate Island

Post #5by MightyMerlinStyle » 17 Dec 2015, 5:32

Okay, so I tried the new build from here, but I am still getting the error.

Not only that, but the editor now says I have an outdated configuration pack, even though I have the latest version...
An extra you say?

Wohlstand M
Lead Developer
Lead Developer
Avatar
Wohlstand M
Lead Developer
Lead Developer
Age: 30
Reputation: 493
Posts: 1747
Joined: 15 Feb 2014
English Pronouns: he/him
Location: Moscow, Russia
Website Youtube channel URL Skype Tencent QQ

Post #6by Wohlstand » 17 Dec 2015, 7:58

MightyMerlinStyle wrote:Okay, so I tried the new build from here, but I am still getting the error.

Not only that, but the editor now says I have an outdated configuration pack, even though I have the latest version...
Right, because new version has some updates in config pack and when I will felease it, I will update all configs too. I wasnt applied fix yet, I will notify you and when you can re-download that build again (it updating automatically every github commit)

MightyMerlinStyle M
Topic author, Honourable citizen
Honourable citizen
Avatar
MightyMerlinStyle M
Topic author, Honourable citizen
Honourable citizen
Reputation: 3
Posts: 37
Joined: 13 Dec 2015
Location: Chocolate Island

Post #7by MightyMerlinStyle » 18 Dec 2015, 5:55

Oh, I just assumed since it was called a "nightly build", it would have been updated by then. Whoops!
An extra you say?

telequillo
Citizen
Citizen
telequillo
Citizen
Citizen
Reputation: 0
Posts: 5
Joined: 29 Dec 2015

Post #8by telequillo » 29 Dec 2015, 18:04

I have the exactly same issue!

"Error initializing OpenGL! invalid operation" just after selecting a game ( I am trying with any of the 4 available SMBX configs)

My OS is El Capitan 10.11.2 and I am running a Hackintosh build with a Radeon 280 card, but every other game is working just fine!

Wohlstand M
Lead Developer
Lead Developer
Avatar
Wohlstand M
Lead Developer
Lead Developer
Age: 30
Reputation: 493
Posts: 1747
Joined: 15 Feb 2014
English Pronouns: he/him
Location: Moscow, Russia
Website Youtube channel URL Skype Tencent QQ

Post #9by Wohlstand » 29 Dec 2015, 19:05

telequillo wrote:I have the exactly same issue!

"Error initializing OpenGL! invalid operation" just after selecting a game ( I am trying with any of the 4 available SMBX configs)

My OS is El Capitan 10.11.2 and I am running a Hackintosh build with a Radeon 280 card, but every other game is working just fine!
So, wait, I will append some debug code into that place and message should be more detail. When I can fix issue

EDIT: Just added, wait ~45 min while PGE will be rebuilt, then redownload and tell me error which was been spawned (so, I would fix that)

MightyMerlinStyle M
Topic author, Honourable citizen
Honourable citizen
Avatar
MightyMerlinStyle M
Topic author, Honourable citizen
Honourable citizen
Reputation: 3
Posts: 37
Joined: 13 Dec 2015
Location: Chocolate Island

Post #10by MightyMerlinStyle » 31 Dec 2015, 17:46

It's different this time.

phpBB [youtube]

Original link: https://youtu.be/oIFEXslIJSY

An extra you say?

Wohlstand M
Lead Developer
Lead Developer
Avatar
Wohlstand M
Lead Developer
Lead Developer
Age: 30
Reputation: 493
Posts: 1747
Joined: 15 Feb 2014
English Pronouns: he/him
Location: Moscow, Russia
Website Youtube channel URL Skype Tencent QQ

Post #11by Wohlstand » 1 Jan 2016, 3:00

MightyMerlinStyle, Thanks, now I know where look for a trouble. And trouble is: you are has OpenGL 3.2 while PGE Engine still use some legacy incompatible functions which I should remove to allow that. When I edited SDL's OpenGL Version to 3.2, I getting those errors myself, on Linux. Now I almost fixed that and so, next commit will contain a fix for OpenGL >3.1 and you will be able use PGE Engine right ;-)

MightyMerlinStyle M
Topic author, Honourable citizen
Honourable citizen
Avatar
MightyMerlinStyle M
Topic author, Honourable citizen
Honourable citizen
Reputation: 3
Posts: 37
Joined: 13 Dec 2015
Location: Chocolate Island

Post #12by MightyMerlinStyle » 1 Jan 2016, 5:36

Thank you so much! :biggrin:
An extra you say?

ASCII
Passerby
Passerby
ASCII
Passerby
Passerby
Reputation: 0
Posts: 1
Joined: 2 Jan 2016

Post #13by ASCII » 2 Jan 2016, 18:02

So I've been following this thread along, since I was having the exact same issues.
Now that you said you've fixed it I downloaded the latest nightly build and the error has changed again slightly.

first_error.png


Then after clicking OK:

second_error.png


After clicking OK again the error message closes and the engine window does too.

Wohlstand M
Lead Developer
Lead Developer
Avatar
Wohlstand M
Lead Developer
Lead Developer
Age: 30
Reputation: 493
Posts: 1747
Joined: 15 Feb 2014
English Pronouns: he/him
Location: Moscow, Russia
Website Youtube channel URL Skype Tencent QQ

Post #14by Wohlstand » 2 Jan 2016, 18:16

Sorry, I wasn't fixed that error, because it is not an error:
PGE Engine tries to use OpenGL 3.1, but on the Mac OS X is a thing that if you will request OpenGL 3.x, really will be ranned latest OpenGL which you have on your Mac, OR will be ranned OpenGL 2.1.

Inside PGE Engine are used functions glEnableClientState(), glVertexArray(), etc. which are removed from OpenGL 3.2. New versions of OpenGL are completely uses shaders. So, I need a some time to upgrade my code to usage of the shaders. I will notify here when I will implement a fix.

telequillo
Citizen
Citizen
telequillo
Citizen
Citizen
Reputation: 0
Posts: 5
Joined: 29 Dec 2015

Post #15by telequillo » 5 Jan 2016, 0:13

Wohlstand wrote:Sorry, I wasn't fixed that error, because it is not an error:
PGE Engine tries to use OpenGL 3.1, but on the Mac OS X is a thing that if you will request OpenGL 3.x, really will be ranned latest OpenGL which you have on your Mac, OR will be ranned OpenGL 2.1.

Inside PGE Engine are used functions glEnableClientState(), glVertexArray(), etc. which are removed from OpenGL 3.2. New versions of OpenGL are completely uses shaders. So, I need a some time to upgrade my code to usage of the shaders. I will notify here when I will implement a fix.

Thanks a lot for looking into the issue! I will patiently wait for updates on this :)

Wohlstand M
Lead Developer
Lead Developer
Avatar
Wohlstand M
Lead Developer
Lead Developer
Age: 30
Reputation: 493
Posts: 1747
Joined: 15 Feb 2014
English Pronouns: he/him
Location: Moscow, Russia
Website Youtube channel URL Skype Tencent QQ

Post #16by Wohlstand » 8 Apr 2016, 9:32

GOOD NEWS!
I finally implemented ability to use OpenGL 2 as backup render module, therefore on old video cards (which are has no OpenGL 3 and even has no support of non-pow-of-two textures!), and I finally fixed running on OS X (currently with OpenGL 2 usage, but I need to work more to resolve compatibility with OpenGL 3.2 and use modern OpenGL version on OS X)

Update in the laboratory

MightyMerlinStyle M
Topic author, Honourable citizen
Honourable citizen
Avatar
MightyMerlinStyle M
Topic author, Honourable citizen
Honourable citizen
Reputation: 3
Posts: 37
Joined: 13 Dec 2015
Location: Chocolate Island

Post #17by MightyMerlinStyle » 9 Apr 2016, 21:27

Just saw this now, this is amazing! Thank you so much!
An extra you say?


Return to “Troubleshooting”

Who is online (over the past 5 minutes)

Users browsing this forum: 1 guest