Jump to content
The Dark Mod Forums

Beta testing 2.12


stgatilov

Recommended Posts

Getting a bunch of warnings on map start, I think related to subtitles?  It happens when I put the AI entity 'atdm:ai_townsfolk_female' in my map.

 

WARNING:Couldn't load SRT file                                                 
'subtitles/lady02//tdm_ai_lady_alertdown_to_idle_heard08.srt' for sound        
'sound/voices/lady02/tdm_ai_lady_alertdown_to_idle_heard08.ogg' according to   
decl 'tdm_ai_lady02'                                                           
WARNING:Couldn't load SRT file                                                 
'subtitles/lady02//tdm_ai_lady_alertdown_to_idle_seen_evidence04.srt' for sound
 'sound/voices/lady02/tdm_ai_lady_alertdown_to_idle_seen_evidence04.ogg'       
according to decl 'tdm_ai_lady02'                                              
WARNING:Couldn't load SRT file 'subtitles/lady02//tdm_ai_lady_idle09.srt' for  
sound 'sound/voices/lady02/tdm_ai_lady_idle09.ogg' according to decl           
'tdm_ai_lady02'                                                                
WARNING:Couldn't load SRT file 'subtitles/lady02//tdm_ai_lady_idle11.srt' for  
sound 'sound/voices/lady02/tdm_ai_lady_idle11.ogg' according to decl           
'tdm_ai_lady02'  

 

Link to comment
Share on other sites

On 1/28/2024 at 6:37 PM, nbohr1more said:

( Would be cool if we had an automated tester / screenshot comparison tool like Dolphin Emulator uses to automatically test if engine updates affect visuals in multiple games. )

How about using TDM  automation framework (and maybe pcem/qemu)?

More info see:

https://forums.thedarkmod.com/index.php?/topic/19828-automation-features-and-discussion/

Edited by freyk
  • Like 1

Info: My portfolio and darkmod graphical installer
Amnesty for Bikerdude!

Link to comment
Share on other sites

2 hours ago, stgatilov said:

I committed a fix in svn rev 10636.

Let's hope it does not break something else in player movement.

Fix confirmed. No other issues seen thus far ( swimming works, climbing, no hanging in the air when jumping, etc).

  • Like 1

Please visit TDM's IndieDB site and help promote the mod:

 

http://www.indiedb.com/mods/the-dark-mod

 

(Yeah, shameless promotion... but traffic is traffic folks...)

Link to comment
Share on other sites

The new subtitle audio locator widget is nifty but it only seems to update every nth frame, so it looks a little bit laggy. Can we make it per-frame or smoothen it out?

  • Like 1
Link to comment
Share on other sites

1 hour ago, freyk said:

How about using TDM  automation framework (and maybe pcem/qemu)?

Yeah I guess you could make a script that loads missions, then teleports to different area's and makes screenshots (actually I made a similar script for envshot a while back), but then you have to review all those screenshots?

Maybe just a script that changes calc in something else and don't look back (maybe this is dumb)?

Link to comment
Share on other sites

8 hours ago, datiswous said:

Yeah I guess you could make a script that loads missions, then teleports to different area's and makes screenshots (actually I made a similar script for envshot a while back), but then you have to review all those screenshots?

Yeah, I wanted to implement some kind of testing framework on top of automation but did not.

Link to comment
Share on other sites

11 hours ago, Frost_Salamander said:

Getting a bunch of warnings on map start, I think related to subtitles?  It happens when I put the AI entity 'atdm:ai_townsfolk_female' in my map.

I deleted double-slashes in svn rev 16957.
I think they were causing the issue.

I believe it only happens on Linux, Windows side somehow reduces the double-slash to single directory separator.

  • Like 1
Link to comment
Share on other sites

12 hours ago, Daft Mugi said:

I found the setting that causes it. The glitch happens when anti-aliasing (r_multiSamples) is enabled.

EDIT: Bisecting shows that rev 10384 is the first commit to introduce this glitch.

Antialiasing mostly affects some backend logic, while the commit changed data structures in frontend. It is very hard to believe they are linked in any way.

Maybe the bug is not reliably reproducible?
Maybe antialiasing is an important condition when it happens, but otherwise it is timing-specific, so accelerating frontend made it pop up. Or maybe antialiasing is just one way to slow gown backend and using maximum soft shadow quality or r_fboResolution 2 would make it happen too.

Maybe the particular behavior is driver-dependent (e.g. NVIDIA masks the error away).
Which GPU do you have? Which drivers do you use?
Which CPU do you have BTW?

I cannot reproduce it myself, even on Linux VM.
Does it happen in the very specific viewpos and goes away if you move away slightly?
Maybe someone else can reproduce it?

Link to comment
Share on other sites

3 hours ago, stgatilov said:

I cannot reproduce it myself, even on Linux VM.

Does it happen in the very specific viewpos and goes away if you move away slightly?
Maybe someone else can reproduce it?

Also unable to reproduce, Linux Mint 21.3 Virginia. Nvidia Geforce RTX 2060 latest non-free 535 drivers.

Please visit TDM's IndieDB site and help promote the mod:

 

http://www.indiedb.com/mods/the-dark-mod

 

(Yeah, shameless promotion... but traffic is traffic folks...)

Link to comment
Share on other sites

10 hours ago, stgatilov said:

I believe it only happens on Linux, Windows side somehow reduces the double-slash to single directory separator.

I was actually using Windows - so maybe not?

  • Haha 1
Link to comment
Share on other sites

I don't think this counts as a bug but maybe it's something to look at...

Nvidia GPU, Intel CPU

Linux: Scroll of Remembrance - Shadowmaps ( size 1440 ) 70+ FPS / Stencil 58+ FPS

Windows: Shadowmaps ( size 1440 ) 52+ FPS / Stencil 30+ FPS

I am guessing we can mostly attribute this to Windows CPU usage bloat. Can any other dual-booters confirm?

Edit:

I went back to check my Windows security "Exploit Protections" area for "TheDarkModx64.exe" to see if it still existed and still had most of the protections disabled and found some new protections were added. I disabled "Heap Protection" and:

Shadowmaps 58+ ( mostly 60+ ) / Stencil 38+ ( mostly 40+ )

( All the FPS are at the start of the mission facing the manor, eg worst case scenario ).

Please visit TDM's IndieDB site and help promote the mod:

 

http://www.indiedb.com/mods/the-dark-mod

 

(Yeah, shameless promotion... but traffic is traffic folks...)

Link to comment
Share on other sites

On 2/1/2024 at 2:24 AM, stgatilov said:

Antialiasing mostly affects some backend logic, while the commit changed data structures in frontend. It is very hard to believe they are linked in any way.

Yeah, I don't know what to say. Rev 10383 works fine and 10384 does not.

On 2/1/2024 at 2:24 AM, stgatilov said:

Maybe the bug is not reliably reproducible?

It is always reproducible for me, meaning that every time I try to reproduce it, I can reproduce it.

On 2/1/2024 at 2:24 AM, stgatilov said:

Maybe antialiasing is an important condition when it happens, but otherwise it is timing-specific, so accelerating frontend made it pop up. Or maybe antialiasing is just one way to slow gown backend and using maximum soft shadow quality or r_fboResolution 2 would make it happen too.

After some more testing, I found that r_multiSamples set at 2 or 4 has the glitch most often at that viewpos. When set to 8 or 16, it is still possible but less likely.

Setting r_fboResolution 2 made no difference.

If com_maxFPS is set to something lower, such as 30, the glitched frames display for a longer period of time.

On 2/1/2024 at 2:24 AM, stgatilov said:

Maybe the particular behavior is driver-dependent (e.g. NVIDIA masks the error away).
Which GPU do you have? Which drivers do you use?
Which CPU do you have BTW?

Yeah, I also wonder if it driver dependent or GPU dependent. I discovered the glitch while using graphics drivers Mesa 22.0.5, so I updated my OS and graphics drivers to Mesa 23.3.2 today as a test, and the problem is still there. It's strange that rev 10384 exposed this problem.

My machine specs and settings:

  • Linux, Ubuntu 22.04
  • AMD Ryzen 9 5900X
  • AMD Radeon RX 6700 XT (Mesa 22.0.5 & Mesa 23.3.2 both exhibit the glitch)
  • com_fixedTic 1
  • com_maxFPS 60
  • Anti-Aliasing 2x (r_multiSamples 2)
On 2/1/2024 at 2:24 AM, stgatilov said:

Does it happen in the very specific viewpos and goes away if you move away slightly?

The video I shared shows the viewpos. Even at the same viewpos, the glitched frame will pop in and out. I've only seen this glitch happen in this single room in Accountant 1. If I move around the room at that viewpos, I can find other view positions that also expose the glitch.

Here's another viewpos for Anti-Aliasing 4x, 8x, and 16x. It requires moving the mouse slightly to get into the exact viewpos to expose the glitch. (1.7 -166.4 0.0) is not precise enough.

-1460.29 1425.48 172.25 1.7 -166.4 0.0

Glitched frame (Shows the curtain texture, covering most of the frame. Also, a hint of the red carpet texture?):

ac1(2024-02-0616-02-11)(-1460.291425.48172.25).thumb.jpg.ddc602adda48ac1463ab154f897da7bd.jpg

Good frame (Same viewpos and Anti-Aliasing settings, when the glitched frame disappeared for a moment.):

ac1(2024-02-0616-03-15)(-1460.291425.48172.25).thumb.jpg.ee290e36154ecb7701e0bc7bebdeaa7e.jpg

 

(Before and after rev 10384) I wonder if this might also be related to:

 

(Before and after rev 10384) Also, sometimes on the loading screen with Anti-Aliasing enabled, I get a glitched background, which does not show with Anti-Aliasing disabled. See left side of screenshot:

Screenshotfrom2024-02-0616-59-41.thumb.jpg.a9cce40b55d42f7be21fa30201206708.jpg

 

I don't know if the last two examples (distorted first frame on launch & loading screen distorted background) are related, but I thought I'd mention them just in case it helps track down the issue.

Link to comment
Share on other sites

In case you're still tracking and fixing light leaks, I found the following in Poets and Peasants:

 

poets(2024-02-0713-03-03)(1768_476_9760.25).thumb.jpg.838c204218b12ba2ae2a9b7e5b3ef5e0.jpgpoets(2024-02-0713-00-49)(1770_7757_7161.4).thumb.jpg.dcb053badaa842831fb1cb329bc84cf6.jpg

 

The first picture is dev16814-10408. The second picture is dev16809-10394. Something must have changed between those two devs.

  • Like 1
  • Thanks 1

My missions:           Stand-alone                                                      Duncan Lynch series                              

                                      Down and Out on Newford Road              the Factory Heist

                                                                                                  A House Call

                                                                                                  The House of deLisle                                                                                                  

                              

Link to comment
Share on other sites

Regarding worldspawn "forceAllShadowsBehindOpaque" set to "1", it doesn't seem to get restored on game load.

To reproduce (works with any fixed mission using "forceAllShadowsBehindOpaque"):

  1. Add "forceAllShadowsBehindOpaque" "1" to the worldspawn in the map file.
  2. From main menu, "Start this Mission" or "Restart Mission".
  3. setviewpos
  4. Notice that the light leak is fixed (not present).
  5. Save game.
  6. Load game.
  7. Notice that the light leak is present (not fixed).

Example

1. From main menu, "Start this Mission" or "Restart Mission".
2. Run setviewpos.
3. Save game.

heart(2024-02-0622-32-04)(1736.483691.68-137.75).thumb.jpg.8d5741937a4d291be421b7590ab8465b.jpg

4. Load game.

heart(2024-02-0622-31-45)(1736.483691.68-137.75).thumb.jpg.e821d105119b55d3c6dea2e48f8d411f.jpg

  • Like 1
Link to comment
Share on other sites

9 hours ago, Daft Mugi said:

Glitched frame (Shows the curtain texture, covering most of the frame. Also, a hint of the red carpet texture?):

 

I'm seeing the same thing in Dragons Claw, a big chunk of skybox right here:

 

claw1_31 (2024-02-07 18-41-29) (183.68 -1210.86 -418.81).jpg

  • Like 1

My missions:           Stand-alone                                                      Duncan Lynch series                              

                                      Down and Out on Newford Road              the Factory Heist

                                                                                                  A House Call

                                                                                                  The House of deLisle                                                                                                  

                              

Link to comment
Share on other sites

Playing Tears of St. Lucia, I noticed really bad framestutter in the church. It seems to happen around the builder guards. The game starts to micro freeze at a short interval (every second roughly). I don't know if this a beta or a mission issue.

Link to comment
Share on other sites

10 hours ago, thebigh said:

I'm seeing the same thing in Dragons Claw, a big chunk of skybox right here:

I can reproduce this one.
Enable noclip and execute: "setviewpos 207 -1212 -408".
Tiny movement by Y and you get proper view, but here exactly at visportal it gets closed.

@Daft Mugi, does it look like the issue you have?
I bet it does not.

Link to comment
Share on other sites

I looked closer at the problem in Dragon's Claw, and this is caused by some kind of precision issue in dmap.

The .proc file contains imprecise BSP plane:

/* node 18377 */ ( 0.0399680398 1 0 1202.8780517578 ) -38 18378

And also there is a visportal stored there:

/* iap 62 */ 4 37 50 ( -96 -1200 -488 ) ( 304 -1216 -488 ) ( 304 -1216 300 ) ( -96 -1200 300 )

The game loads the visportal polygon and computes portal plane from it, which is:

plane	(a=-0.0399680398, b=-0.999200940, c=0.00000000, d=-1202.87805)

As you see, the plane normals are different by 0.2%.
The visportal plane computed from polygon is almost perfectly unit, but the BSP plane is not unit (length slightly greater than unit). This makes the game think it is on the left of visportal in one place, but on the right of visportal in another place.


I tried to re-dmap but the data is the same.
I'll try to see what is going on.
Indeed, making the portal axis-aligned would have most likely fixed the issue.

Link to comment
Share on other sites

Ok, here is the source of the goddamn precision issue:

static void WriteFloat( idFile *f, float v )
{
	if ( idMath::Fabs(v - idMath::Round(v)) < 0.001 ) {
		f->WriteFloatString( "%i ", (int)idMath::Round(v) );
	}
	else {
		f->WriteFloatString( "%f ", v );
	}
}

I guess I'll never stop finding more weird tolerance stuff in this codebase 😭

Anyway, I'll fix this after 2.12: never know the consequences.

UPDATE: Here is issue in bugtracker 6480

  • Like 2
Link to comment
Share on other sites

New fresnel mod:

https://www.moddb.com/mods/the-dark-mod/addons/fresnel-mod-212-beta-3

Probably not needed. I don't think anything in the previous base pk4 changed but I built it just in case.

  • Like 4

Please visit TDM's IndieDB site and help promote the mod:

 

http://www.indiedb.com/mods/the-dark-mod

 

(Yeah, shameless promotion... but traffic is traffic folks...)

Link to comment
Share on other sites

I cannot load saves/quicksave in one of my project maps anymore. When starting quickload/load the mission loads a tiny bit, but crashes to desktop then.

Can't say whether this was already a problem with the previous beta versions.

Checked all other WIPs and it works fine there.

qconsole.log Darkmod.cfg

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

    • The Black Arrow

      I was playing Skyrim, got bored fast. Got back to The Dark Mod just for one mission, played "Somewhere above the City" which is not really a great mission but still good, as in above-average.
      My biggest regret is living in this country, where there's a heat wave, I am sweating at 20c and I really wish for temperatures below 5c.
      · 10 replies
    • Skaruts

      Is there something wrong with the forums lately, or is it my browser? I've been having trouble formatting posts, and just now I couldn't format anything at all.
      I'm using Vivaldi.
      Usually I have to: select text, click bold, nothing happens, select again, click bold, then it works. 
      Same for other stuff, like creating spoilers, bullet points, links. Nothing works the first time. 
      · 1 reply
    • STiFU

      Back from a spontaneous 1-week trip to Lanzarote with wife and son. I hope beta testing has been going well...
      · 1 reply
    • datiswous

      Whenever I eat fried chicken these days I think of this scene in The Black Mage..

      · 1 reply
    • Mortem Desino

      Even though I've been absent a long while, I still find myself dreamily wishing for the free time to do TDM mission development. When working on new research projects I'll find myself involuntarily thinking, "hee hee this could be a fun texture or readable or bit of map architecture." Or I find myself absentmindedly responding out loud to odd noises with a drunkguard-like "must've been rats!"
      · 3 replies
×
×
  • Create New...