Author Topic: SDL2.dll for recent FRED2_Open 3.7.5 nightlies  (Read 6843 times)

0 Members and 1 Guest are viewing this topic.

Offline AdmiralRalwood

  • 211
  • The Cthulhu programmer himself!
    • Skype
    • Steam
    • Twitter
SDL2.dll for recent FRED2_Open 3.7.5 nightlies
Recent nightly builds of FRED (specifically, the ones since the antipodes merge) haven't been working because of a problem in SDL2. I've compiled a modified version of the DLL (using a patch originally written by m!m almost three years ago for antipodes) that allows FRED to work.

Download here. - Starting with the August 2nd nightly build, the included SDL2.dll file has been updated and this should be superfluous.

Download and extract to the same folder as FRED. I didn't really screw around with the default settings in CMake, so it's possible I missed some option that's important to let it work on some people's computers; if FRED still doesn't work with this DLL file, let me know (also let me know if it makes FSO stop working; if it runs with the regular 2.0.4 DLL but not mine, I've probably ****ed something up).
« Last Edit: August 02, 2016, 12:19:04 pm by AdmiralRalwood »
Ph'nglui mglw'nafh Codethulhu GitHub wgah'nagl fhtagn.

schrödinbug (noun) - a bug that manifests itself in running software after a programmer notices that the code should never have worked in the first place.

When you gaze long into BMPMAN, BMPMAN also gazes into you.

"I am one of the best FREDders on Earth" -General Battuta

<Aesaar> literary criticism is vladimir putin

<MageKing17> "There's probably a reason the code is the way it is" is a very dangerous line of thought. :P
<MageKing17> Because the "reason" often turns out to be "nobody noticed it was wrong".
(the very next day)
<MageKing17> this ****ing code did it to me again
<MageKing17> "That doesn't really make sense to me, but I'll assume it was being done for a reason."
<MageKing17> **** ME
<MageKing17> THE REASON IS PEOPLE ARE STUPID
<MageKing17> ESPECIALLY ME

<MageKing17> God damn, I do not understand how this is breaking.
<MageKing17> Everything points to "this should work fine", and yet it's clearly not working.
<MjnMixael> 2 hours later... "God damn, how did this ever work at all?!"
(...)
<MageKing17> so
<MageKing17> more than two hours
<MageKing17> but once again we have reached the inevitable conclusion
<MageKing17> How did this code ever work in the first place!?

<@The_E> Welcome to OpenGL, where standards compliance is optional, and error reporting inconsistent

<MageKing17> It was all working perfectly until I actually tried it on an actual mission.

<IronWorks> I am useful for FSO stuff again. This is a red-letter day!
* z64555 erases "Thursday" and rewrites it in red ink

<MageKing17> TIL the entire homing code is held up by shoestrings and duct tape, basically.

 

Offline Spoon

  • 212
  • ヾ(´︶`♡)ノ
Re: SDL2.dll for recent FRED2_Open 3.7.5 nightlies
FRED doesn't work for me with either SDL2.dll, with this version I get this error:

Error: Current GL Version of 1.1 is less than the required version of 1.2.
Switch video modes or update your drivers.
File: gropengl.cpp
Line: 1460

Error: The required OpenGL extension 'GL_ARB_multitexture' is not supported by your current driver version or graphics card.

File: gropenglextension.cpp
Line: 381


So just to be in the clear, I did update my graphics drivers (something I havent done this year) just now, to see if there was any difference. But alas, even with the most recent nvidia drivers it gives me that error. (On a GTX 760)
Urutorahappī!!

[02:42] <@Axem> spoon somethings wrong
[02:42] <@Axem> critically wrong
[02:42] <@Axem> im happy with these missions now
[02:44] <@Axem> well
[02:44] <@Axem> with 2 of them

 

Offline AdmiralRalwood

  • 211
  • The Cthulhu programmer himself!
    • Skype
    • Steam
    • Twitter
Re: SDL2.dll for recent FRED2_Open 3.7.5 nightlies
Error: Current GL Version of 1.1 is less than the required version of 1.2.
:wtf: No GTX 760 should be limited to OpenGL 1.1, and if it was, then FSO itself shouldn't run (because it performs the same OpenGL version check). Do you have an intelgrated that FRED might be trying to use instead of your GTX 760?
Ph'nglui mglw'nafh Codethulhu GitHub wgah'nagl fhtagn.

schrödinbug (noun) - a bug that manifests itself in running software after a programmer notices that the code should never have worked in the first place.

When you gaze long into BMPMAN, BMPMAN also gazes into you.

"I am one of the best FREDders on Earth" -General Battuta

<Aesaar> literary criticism is vladimir putin

<MageKing17> "There's probably a reason the code is the way it is" is a very dangerous line of thought. :P
<MageKing17> Because the "reason" often turns out to be "nobody noticed it was wrong".
(the very next day)
<MageKing17> this ****ing code did it to me again
<MageKing17> "That doesn't really make sense to me, but I'll assume it was being done for a reason."
<MageKing17> **** ME
<MageKing17> THE REASON IS PEOPLE ARE STUPID
<MageKing17> ESPECIALLY ME

<MageKing17> God damn, I do not understand how this is breaking.
<MageKing17> Everything points to "this should work fine", and yet it's clearly not working.
<MjnMixael> 2 hours later... "God damn, how did this ever work at all?!"
(...)
<MageKing17> so
<MageKing17> more than two hours
<MageKing17> but once again we have reached the inevitable conclusion
<MageKing17> How did this code ever work in the first place!?

<@The_E> Welcome to OpenGL, where standards compliance is optional, and error reporting inconsistent

<MageKing17> It was all working perfectly until I actually tried it on an actual mission.

<IronWorks> I am useful for FSO stuff again. This is a red-letter day!
* z64555 erases "Thursday" and rewrites it in red ink

<MageKing17> TIL the entire homing code is held up by shoestrings and duct tape, basically.

 

Offline Goober5000

  • HLP Loremaster
  • Administrator
  • 214
    • Goober5000 Productions
Re: SDL2.dll for recent FRED2_Open 3.7.5 nightlies
That reminds me of the old error where FSO would only check the minor version number, so it thought that 2.1 was 1.1.  But that was fixed ages ago.  (Unless it came back as a zombie.)

 

Offline Yarn

  • 210
Re: SDL2.dll for recent FRED2_Open 3.7.5 nightlies
I'm getting this same problem with my GTX 960. I use a desktop with no integrated graphics, so this isn't caused by a failure to switch away from integrated graphics.

Modifying the code so that the OpenGL lines are printed before the error is reached reveals something interesting. If I run FS2 with this code, this is what those lines look like:
Code: [Select]
  OpenGL Vendor    : NVIDIA Corporation
  OpenGL Renderer  : GeForce GTX 960/PCIe/SSE2
  OpenGL Version   : 4.5.0 NVIDIA 368.81

However, if I run FRED2, this is the result:
Code: [Select]
  OpenGL Vendor    : Microsoft Corporation
  OpenGL Renderer  : GDI Generic
  OpenGL Version   : 1.1.0

It seems like FRED2 somehow isn't initializing OpenGL properly, even though FS2 is.
"Your fighter is running out of oil.  Please check under the hood and add more if necessary"
--strings.tbl, entry 177

"Freespace is very tired.  It is shutting down to get some rest."
--strings.tbl, entry 178

 

Offline Spoon

  • 212
  • ヾ(´︶`♡)ノ
Re: SDL2.dll for recent FRED2_Open 3.7.5 nightlies
Any update on this?
Urutorahappī!!

[02:42] <@Axem> spoon somethings wrong
[02:42] <@Axem> critically wrong
[02:42] <@Axem> im happy with these missions now
[02:44] <@Axem> well
[02:44] <@Axem> with 2 of them

 

Offline AdmiralRalwood

  • 211
  • The Cthulhu programmer himself!
    • Skype
    • Steam
    • Twitter
Re: SDL2.dll for recent FRED2_Open 3.7.5 nightlies
Any update on this?
Are you still having this problem since PR 679 was merged?
Ph'nglui mglw'nafh Codethulhu GitHub wgah'nagl fhtagn.

schrödinbug (noun) - a bug that manifests itself in running software after a programmer notices that the code should never have worked in the first place.

When you gaze long into BMPMAN, BMPMAN also gazes into you.

"I am one of the best FREDders on Earth" -General Battuta

<Aesaar> literary criticism is vladimir putin

<MageKing17> "There's probably a reason the code is the way it is" is a very dangerous line of thought. :P
<MageKing17> Because the "reason" often turns out to be "nobody noticed it was wrong".
(the very next day)
<MageKing17> this ****ing code did it to me again
<MageKing17> "That doesn't really make sense to me, but I'll assume it was being done for a reason."
<MageKing17> **** ME
<MageKing17> THE REASON IS PEOPLE ARE STUPID
<MageKing17> ESPECIALLY ME

<MageKing17> God damn, I do not understand how this is breaking.
<MageKing17> Everything points to "this should work fine", and yet it's clearly not working.
<MjnMixael> 2 hours later... "God damn, how did this ever work at all?!"
(...)
<MageKing17> so
<MageKing17> more than two hours
<MageKing17> but once again we have reached the inevitable conclusion
<MageKing17> How did this code ever work in the first place!?

<@The_E> Welcome to OpenGL, where standards compliance is optional, and error reporting inconsistent

<MageKing17> It was all working perfectly until I actually tried it on an actual mission.

<IronWorks> I am useful for FSO stuff again. This is a red-letter day!
* z64555 erases "Thursday" and rewrites it in red ink

<MageKing17> TIL the entire homing code is held up by shoestrings and duct tape, basically.

 

Offline Yarn

  • 210
Re: SDL2.dll for recent FRED2_Open 3.7.5 nightlies
Any update on this?
Are you still having this problem since PR 679 was merged?
Yes, because, as I said earlier, the problem is not due to a failure to switch away from integrated graphics; even if you have a dedicated graphics card and nothing else, the problem still exists.
"Your fighter is running out of oil.  Please check under the hood and add more if necessary"
--strings.tbl, entry 177

"Freespace is very tired.  It is shutting down to get some rest."
--strings.tbl, entry 178

 

Offline AdmiralRalwood

  • 211
  • The Cthulhu programmer himself!
    • Skype
    • Steam
    • Twitter
Re: SDL2.dll for recent FRED2_Open 3.7.5 nightlies
Yes, because, as I said earlier, the problem is not due to a failure to switch away from integrated graphics; even if you have a dedicated graphics card and nothing else, the problem still exists.
I was asking Spoon because I wanted to know if Spoon was still having the problem, because if he isn't then the two of you aren't having the same problem and figuring that out is an important step in the troubleshooting process.
Ph'nglui mglw'nafh Codethulhu GitHub wgah'nagl fhtagn.

schrödinbug (noun) - a bug that manifests itself in running software after a programmer notices that the code should never have worked in the first place.

When you gaze long into BMPMAN, BMPMAN also gazes into you.

"I am one of the best FREDders on Earth" -General Battuta

<Aesaar> literary criticism is vladimir putin

<MageKing17> "There's probably a reason the code is the way it is" is a very dangerous line of thought. :P
<MageKing17> Because the "reason" often turns out to be "nobody noticed it was wrong".
(the very next day)
<MageKing17> this ****ing code did it to me again
<MageKing17> "That doesn't really make sense to me, but I'll assume it was being done for a reason."
<MageKing17> **** ME
<MageKing17> THE REASON IS PEOPLE ARE STUPID
<MageKing17> ESPECIALLY ME

<MageKing17> God damn, I do not understand how this is breaking.
<MageKing17> Everything points to "this should work fine", and yet it's clearly not working.
<MjnMixael> 2 hours later... "God damn, how did this ever work at all?!"
(...)
<MageKing17> so
<MageKing17> more than two hours
<MageKing17> but once again we have reached the inevitable conclusion
<MageKing17> How did this code ever work in the first place!?

<@The_E> Welcome to OpenGL, where standards compliance is optional, and error reporting inconsistent

<MageKing17> It was all working perfectly until I actually tried it on an actual mission.

<IronWorks> I am useful for FSO stuff again. This is a red-letter day!
* z64555 erases "Thursday" and rewrites it in red ink

<MageKing17> TIL the entire homing code is held up by shoestrings and duct tape, basically.

 

Offline Spoon

  • 212
  • ヾ(´︶`♡)ノ
Re: SDL2.dll for recent FRED2_Open 3.7.5 nightlies
Thanks to m|m making me a new fred build, can confirm that
Error: Current GL Version of 1.1 is less than the required version of 1.2.
Switch video modes or update your drivers.
File: gropengl.cpp
Line: 1460

Is still a thing.
Urutorahappī!!

[02:42] <@Axem> spoon somethings wrong
[02:42] <@Axem> critically wrong
[02:42] <@Axem> im happy with these missions now
[02:44] <@Axem> well
[02:44] <@Axem> with 2 of them

 

Offline m!m

  • 211
Re: SDL2.dll for recent FRED2_Open 3.7.5 nightlies
This may be caused by an Nvidia driver bug. The E and I have AMD GPUs and we do not experience this issue. Spoon and Axem have Nvidia GPUs and the issue occurs for them. However, DahBlount also has a Nvdia GPU and doesn't encounter this issue.

 

Offline AdmiralRalwood

  • 211
  • The Cthulhu programmer himself!
    • Skype
    • Steam
    • Twitter
Re: SDL2.dll for recent FRED2_Open 3.7.5 nightlies
Well, at the very least I can confirm that my AMD doesn't have the same problem...
Ph'nglui mglw'nafh Codethulhu GitHub wgah'nagl fhtagn.

schrödinbug (noun) - a bug that manifests itself in running software after a programmer notices that the code should never have worked in the first place.

When you gaze long into BMPMAN, BMPMAN also gazes into you.

"I am one of the best FREDders on Earth" -General Battuta

<Aesaar> literary criticism is vladimir putin

<MageKing17> "There's probably a reason the code is the way it is" is a very dangerous line of thought. :P
<MageKing17> Because the "reason" often turns out to be "nobody noticed it was wrong".
(the very next day)
<MageKing17> this ****ing code did it to me again
<MageKing17> "That doesn't really make sense to me, but I'll assume it was being done for a reason."
<MageKing17> **** ME
<MageKing17> THE REASON IS PEOPLE ARE STUPID
<MageKing17> ESPECIALLY ME

<MageKing17> God damn, I do not understand how this is breaking.
<MageKing17> Everything points to "this should work fine", and yet it's clearly not working.
<MjnMixael> 2 hours later... "God damn, how did this ever work at all?!"
(...)
<MageKing17> so
<MageKing17> more than two hours
<MageKing17> but once again we have reached the inevitable conclusion
<MageKing17> How did this code ever work in the first place!?

<@The_E> Welcome to OpenGL, where standards compliance is optional, and error reporting inconsistent

<MageKing17> It was all working perfectly until I actually tried it on an actual mission.

<IronWorks> I am useful for FSO stuff again. This is a red-letter day!
* z64555 erases "Thursday" and rewrites it in red ink

<MageKing17> TIL the entire homing code is held up by shoestrings and duct tape, basically.

 

Offline Bryan See

  • Has anyone really been far as decided to use even go want to do look more like?
  • 210
  • Trying to redeem.
    • Skype
    • Steam
    • Twitter
Re: SDL2.dll for recent FRED2_Open 3.7.5 nightlies
But, when FRED2Open is inactive for some time, it crashes. Have anyone had the same problem as me?
Bryan See - My FreeSpace Wiki User Page (Talk, Contributions)

Campaigns:
FreeSpace: Reunited - Shattered Stars

Ships:
GTS Hygeia, GTT Argo, SC Raguel

 

Offline chief1983

  • Still lacks a custom title
  • Moderator
  • 212
  • ⬇️⬆️⬅️⬅️🅰➡️⬇️
    • Minecraft
    • Skype
    • Steam
    • Twitter
    • Fate of the Galaxy
Re: SDL2.dll for recent FRED2_Open 3.7.5 nightlies
Any special requirement to reproduce this with Nvidia?  My GTX 970 runs a FRED build I made last night just fine, with the MediaVPs 2014 (pretty sure anyway, the Ulysses it starts up with looks a lot prettier than retail).  Bryan, if it makes you happy I'll try to just leave the window open for a while minimized and see if it crashes.
Fate of the Galaxy - Now Hiring!  Apply within | Diaspora | SCP Home | Collada Importer for PCS2
Karajorma's 'How to report bugs' | Mantis
#freespace | #scp-swc | #diaspora | #SCP | #hard-light on EsperNet

"You may not sell or otherwise commercially exploit the source or things you created based on the source." -- Excerpt from FSO license, for reference

Nuclear1:  Jesus Christ zack you're a little too hamyurger for HLP right now...
iamzack:  i dont have hamynerge i just want ptatoc hips D:
redsniper:  Platonic hips?!
iamzack:  lays

 

Offline AdmiralRalwood

  • 211
  • The Cthulhu programmer himself!
    • Skype
    • Steam
    • Twitter
Re: SDL2.dll for recent FRED2_Open 3.7.5 nightlies
The SDL2.dll file included with the nightlies has been updated, so I've removed the download link; this thread can probably be unpinned now.
Ph'nglui mglw'nafh Codethulhu GitHub wgah'nagl fhtagn.

schrödinbug (noun) - a bug that manifests itself in running software after a programmer notices that the code should never have worked in the first place.

When you gaze long into BMPMAN, BMPMAN also gazes into you.

"I am one of the best FREDders on Earth" -General Battuta

<Aesaar> literary criticism is vladimir putin

<MageKing17> "There's probably a reason the code is the way it is" is a very dangerous line of thought. :P
<MageKing17> Because the "reason" often turns out to be "nobody noticed it was wrong".
(the very next day)
<MageKing17> this ****ing code did it to me again
<MageKing17> "That doesn't really make sense to me, but I'll assume it was being done for a reason."
<MageKing17> **** ME
<MageKing17> THE REASON IS PEOPLE ARE STUPID
<MageKing17> ESPECIALLY ME

<MageKing17> God damn, I do not understand how this is breaking.
<MageKing17> Everything points to "this should work fine", and yet it's clearly not working.
<MjnMixael> 2 hours later... "God damn, how did this ever work at all?!"
(...)
<MageKing17> so
<MageKing17> more than two hours
<MageKing17> but once again we have reached the inevitable conclusion
<MageKing17> How did this code ever work in the first place!?

<@The_E> Welcome to OpenGL, where standards compliance is optional, and error reporting inconsistent

<MageKing17> It was all working perfectly until I actually tried it on an actual mission.

<IronWorks> I am useful for FSO stuff again. This is a red-letter day!
* z64555 erases "Thursday" and rewrites it in red ink

<MageKing17> TIL the entire homing code is held up by shoestrings and duct tape, basically.

 

Offline jg18

  • A very happy zod
  • 210
  • can do more than spellcheck
Re: SDL2.dll for recent FRED2_Open 3.7.5 nightlies
But, when FRED2Open is inactive for some time, it crashes. Have anyone had the same problem as me?
I believe this is a known issue.

 

Offline Yarn

  • 210
Re: SDL2.dll for recent FRED2_Open 3.7.5 nightlies
Any special requirement to reproduce this with Nvidia?  My GTX 970 runs a FRED build I made last night just fine, with the MediaVPs 2014 (pretty sure anyway, the Ulysses it starts up with looks a lot prettier than retail).
Which operating system are you running? (I'm running Windows 7 64-bit.)
"Your fighter is running out of oil.  Please check under the hood and add more if necessary"
--strings.tbl, entry 177

"Freespace is very tired.  It is shutting down to get some rest."
--strings.tbl, entry 178

 

Offline chief1983

  • Still lacks a custom title
  • Moderator
  • 212
  • ⬇️⬆️⬅️⬅️🅰➡️⬇️
    • Minecraft
    • Skype
    • Steam
    • Twitter
    • Fate of the Galaxy
Re: SDL2.dll for recent FRED2_Open 3.7.5 nightlies
Windows 10 x64, just upgraded a couple weeks ago, didn't remember having any FRED issues before that but maybe haven't run it in a while.
Fate of the Galaxy - Now Hiring!  Apply within | Diaspora | SCP Home | Collada Importer for PCS2
Karajorma's 'How to report bugs' | Mantis
#freespace | #scp-swc | #diaspora | #SCP | #hard-light on EsperNet

"You may not sell or otherwise commercially exploit the source or things you created based on the source." -- Excerpt from FSO license, for reference

Nuclear1:  Jesus Christ zack you're a little too hamyurger for HLP right now...
iamzack:  i dont have hamynerge i just want ptatoc hips D:
redsniper:  Platonic hips?!
iamzack:  lays

 

Offline Spoon

  • 212
  • ヾ(´︶`♡)ノ
Re: SDL2.dll for recent FRED2_Open 3.7.5 nightlies
Which operating system are you running? (I'm running Windows 7 64-bit.)
Same
Urutorahappī!!

[02:42] <@Axem> spoon somethings wrong
[02:42] <@Axem> critically wrong
[02:42] <@Axem> im happy with these missions now
[02:44] <@Axem> well
[02:44] <@Axem> with 2 of them

 

Offline Solatar

  • Supreme Admiral
  • 211
Re: SDL2.dll for recent FRED2_Open 3.7.5 nightlies
I've got a GTX 960, Windows 10 64-bit, same issue with FRED not loading (the OpenGl version err). I have one of those alienware alpha was-supposed-to-be-steam-box things. Is there any way I can be helpful other than just adding on that I'm experiencing it?

I tried it on the most recent nightly, just to be sure.