Jump to content
The Dark Mod Forums

Windows 11 and TDM


lowenz

Recommended Posts

Lastest dev build (dev16358-9588): UNABLE TO INITIALIZE OPENGL :D

 

The same for the Intel AND the Nvidia GPUs. Problem with the ICD?

Edited by lowenz

Task is not so much to see what no one has yet seen but to think what nobody has yet thought about that which everybody see. - E.S.

Link to comment
Share on other sites

6 hours ago, stgatilov said:

How about other games?

No problems in DirectX or Vulkan.

Edited by lowenz

Task is not so much to see what no one has yet seen but to think what nobody has yet thought about that which everybody see. - E.S.

Link to comment
Share on other sites

2 hours ago, lowenz said:

Of course, are you asking me to build my own TDM on that machine? :D

First let me install Visual Studio....

Yes, it would be great if you look through initialization and see why it shows that message.

Of course, I can answer all your questions about code.

Link to comment
Share on other sites

Installed.

i5 10300H (I use only 4 thread) + HM 470 + 4 GB DDR4 2933 x2

GeForce 1660 Ti

Win 11 x64 Home Edition with lastest drivers.

Please explain the procedure you want done from getting the code (git?) to the debugging of the failed intialization.

If you want the debugging only (of the lastest dev version of TDM) let me know how.

Edited by lowenz

Task is not so much to see what no one has yet seen but to think what nobody has yet thought about that which everybody see. - E.S.

Link to comment
Share on other sites

19 minutes ago, lowenz said:

Please explain the procedure you want done from getting the code (git?) to the debugging of the failed intialization.

If you want the debugging only (of the lastest dev version of TDM) let me know how.

Take the latest revision from SVN trunk: https://svn.thedarkmod.com/publicsvn/darkmod_src/trunk/
Put it to darkmod_src directory.

Take the latest dev build from tdm_installer.
Put it to darkmod directory nearby.
UPDATE: Perhaps you don't even need assets, since everything fails very early.

Open darkmod_src/TheDarkMod.sln in Visual Studio.
Select Debug With Inlines and x64 configuration, build solution.

Find function R_InitOpenGL, set breakpoint at its beginning.
Start With Debugging (usually F5), and after breakpoint hits, go step by step (Step Over).
You'll probably have to go inside GLimp_Init (Step Into) to see what failed there.

Link to comment
Share on other sites

Damn, it was simply the config file from another machine.

Maybe the *borderless* windowed mode tied to another monitor resolution (set to 2560x1440 vs 1920x1080 of this machine)

Edited by lowenz
  • Like 1

Task is not so much to see what no one has yet seen but to think what nobody has yet thought about that which everybody see. - E.S.

Link to comment
Share on other sites

17 hours ago, lowenz said:

Please explain the lastest line!

When you are stepping through R_InitOpenGL, there are some calls to other functions.
If you are doing "step over", then you skip what happens inside.
But for some functions, it might be worth to "step into", because the reason why you see the error might be there.


Anyway, I have reviewed the code, and I think there must be some message/warning in console in case of OpenGL initialization failure, which says what went wrong.

If you still have that bad config file, could you please reproduce the issue again and see what's printed in game console? Perhaps you'll need "logFile 2" for that.
 

Also, I have changed the so-called "safe mode" in svn rev 9613.

When renderer cannot initialize OpenGL with user settings, it reverts some of them to basic values which should always work. Previously "safe settings" were fullscreen with non-specified width/height, which is not safe at all 😁 Now it is 800 x 600 windowed mode, which should be the safest to set up.

So if you update from SVN, build TDM and run it with bad config, you should get 800x600 window and some warnings in game console instead of fatal error.

  • Like 1
Link to comment
Share on other sites

The "bad" in the config file was only a resolution not supported by the monitor of that machine. With the "borderless" option enabled.

 

And yes, I've seen the issue going step by step with the debugger.

Edited by lowenz

Task is not so much to see what no one has yet seen but to think what nobody has yet thought about that which everybody see. - E.S.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recent Status Updates

    • Petike the Taffer  »  DeTeEff

      I've updated the articles for your FMs and your author category at the wiki. Your newer nickname (DeTeEff) now comes first, and the one in parentheses is your older nickname (Fieldmedic). Just to avoid confusing people who played your FMs years ago and remember your older nickname. I've added a wiki article for your latest FM, Who Watches the Watcher?, as part of my current updating efforts. Unless I overlooked something, you have five different FMs so far.
      · 0 replies
    • Petike the Taffer

      I've finally managed to log in to The Dark Mod Wiki. I'm back in the saddle and before the holidays start in full, I'll be adding a few new FM articles and doing other updates. Written in Stone is already done.
      · 4 replies
    • nbohr1more

      TDM 15th Anniversary Contest is now active! Please declare your participation: https://forums.thedarkmod.com/index.php?/topic/22413-the-dark-mod-15th-anniversary-contest-entry-thread/
       
      · 0 replies
    • JackFarmer

      @TheUnbeholden
      You cannot receive PMs. Could you please be so kind and check your mailbox if it is full (or maybe you switched off the function)?
      · 1 reply
    • OrbWeaver

      I like the new frob highlight but it would nice if it was less "flickery" while moving over objects (especially barred metal doors).
      · 4 replies
×
×
  • Create New...