Jump to content
System downtime for updates - Monday 21 April 2025 ×
The Dark Mod Forums

Recommended Posts

Posted (edited)

Done, and I still have the same problem. But I could narrow it down a bit! Before I moved my fms folder over everything worked fine, but once I did the error occurred when switching e.g. between the two official missions. Copying only my missions.tdminfo didn't cause it. So one of the other missions must have introduced the problem, but I wasn't aware that TDM does even look at other missions besides the one you have selected. Or does it?

 

Edited by wesp5
  • Thanks 1
Posted (edited)

I have done some experiments now, moving missions to another folder and then moving them back until the error happens. I suspect that 2.13 has a limit on how many pk4 files it can handle and once you are over the limit, the game crashes. In my current setup this happens as soon as there are more than 210 mission pk4s. Normally this would have not been a problem as I believe there are only about 100 missions, but many of these now have additional small pk4 due to translations or updates.

Edited by wesp5
  • Thanks 1
Posted

About those Stone 24pt artifacts... I've finally had a quiet hour to figure this out.

I made a mistake in my 2025_Jan_Cumulative_2024_Font_Updates.zip release. That had 2 subfolders

  1. tdm_fonts01_updates_only
  2. tdm_fonts01_updates_plus _unchanged_from 2.12

Of interest here are stone 24pt font files, particularly: stone_0_24.dds, stone_1_24.dds, fontimage_24.dat

In (1) these Stone 24pt files are the correct updated and tested ones, originally packaged in my June 20, 2024 release.

In (2), these files are older, of 2.12 vintage; I evidently missed replacing them when merging old and new files.

@Amadeus or @nbohr1more, please correct this for the next beta (or final) of 2.13. Thanks.

@snatcher, @wesp5, kudos for catching this.

  • Like 1
Posted
6 hours ago, Geep said:

About those Stone 24pt artifacts... I've finally had a quiet hour to figure this out.

I made a mistake in my 2025_Jan_Cumulative_2024_Font_Updates.zip release. That had 2 subfolders

  1. tdm_fonts01_updates_only
  2. tdm_fonts01_updates_plus _unchanged_from 2.12

Of interest here are stone 24pt font files, particularly: stone_0_24.dds, stone_1_24.dds, fontimage_24.dat

In (1) these Stone 24pt files are the correct updated and tested ones, originally packaged in my June 20, 2024 release.

In (2), these files are older, of 2.12 vintage; I evidently missed replacing them when merging old and new files.

@Amadeus or @nbohr1more, please correct this for the next beta (or final) of 2.13. Thanks.

@snatcher, @wesp5, kudos for catching this.

Committed at Rev 17318 ( @stgatilov )

  • Like 3

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...)

Posted
On 3/19/2025 at 9:01 PM, wesp5 said:

I have done some experiments now, moving missions to another folder and then moving them back until the error happens. I suspect that 2.13 has a limit on how many pk4 files it can handle and once you are over the limit, the game crashes. In my current setup this happens as soon as there are more than 210 mission pk4s. Normally this would have not been a problem as I believe there are only about 100 missions, but many of these now have additional small pk4 due to translations or updates.

I have 193 folders in the fms folder (therefore 193 missions / pk4). I duplicated 30 missions bringing the number of pk4 up to 223 and I cannot reproduce your issue.

You really should download a 100% fresh copy of the game, including all missions, and see if the issue persists.

TDM_Modpack_Thumb_50.png

Posted (edited)
2 hours ago, snatcher said:

I have 193 folders in the fms folder (therefore 193 missions / pk4). I duplicated 30 missions bringing the number of pk4 up to 223 and I cannot reproduce your issue.

Copying the same missions will probably not trigger this bug, as the game won't count them as new pk4s. Have you all translations included? Why do you have 7 less missions than I have? I know I have 4 beta missions that were never added to the main list, like graymans last work, but what are the other 3?

Edited by wesp5
  • Thanks 1
Posted
5 hours ago, wesp5 said:

 [...] but what are the other 3?

I don't know.

I just deleted all folders inside the fms folder. I launched the game and selected all missions for download.

The game says: 190 missions successfully downloaded. I have: 190 folders / 190 pk4.

I then selected all translations for download.

The game says: 109 missions successfully downloaded. I have: 192 folders / 299 pk4.

I then restored newjob, stlucia, and training_mission.

I have: 195 folders / 302 pk4.

And indeed the game (often but not always) crashes when switching fms.

Well spotted, @wesp5

  • Like 2

TDM_Modpack_Thumb_50.png

Posted
4 hours ago, snatcher said:

I don't know.

I just deleted all folders inside the fms folder. I launched the game and selected all missions for download.

The game says: 190 missions successfully downloaded. I have: 190 folders / 190 pk4.

I then selected all translations for download.

The game says: 109 missions successfully downloaded. I have: 192 folders / 299 pk4.

I then restored newjob, stlucia, and training_mission.

I have: 195 folders / 302 pk4.

And indeed the game (often but not always) crashes when switching fms.

Well spotted, @wesp5

2.12 doesn't crash with these steps?

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...)

Posted (edited)

I did a quick test by installing 2.12 and moving the fms folder over and the same happens! I guess nobody noticed this before as only between 2.12 and 2.13 the critical number of pk4s were reached due to more missions and translations.

Edited by wesp5
Posted

Please create a bug tracker.

It's too late in 2.13 development to work on such a deep issue but we can prioritize it for 2.14.

It would be helpful to see whether the same happens on 2.10, 2.06, or 2.0.

If it goes back to the 2.0, then it's probably a very fundamental problem but if it is newer we can bisect the code changes that caused it.

  • Like 2

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...)

Posted (edited)
20 hours ago, nbohr1more said:

Please create a bug tracker.

Done! It's not really critical as you can play any mission if you actually start it after selection, but the crash still looks ugly.

Edited by wesp5
  • Thanks 1
Posted
On 3/16/2025 at 1:52 PM, nbohr1more said:

How do uncompressed textures get their mipmaps ? We auto-generate them on mission load.

How does this work for textures in jpg or png? Or maybe we should never use these formats for textures?

Posted
On 3/16/2025 at 1:52 PM, nbohr1more said:

https://en.wikipedia.org/wiki/Mipmap

Mipmaps are lower resolution versions of textures that are used by your graphics driver when objects are further away. Uncompressed textures typically don't include them because the default uncompressed formats don't support them ( not designed for 3D game engines ). DDS textures can include them in either uncompressed or DXT \ BC compressed formats and we typically do "generate mipmaps" when encoding DDS. How do uncompressed textures get their mipmaps ? We auto-generate them on mission load. ( That used to be painfully slow until stgatilov changed the mipmap generation code to use SIMD instructions and multi-core. )

What does the texture quality slider do?

For uncompressed textures, it downscales the images before uploading to the GPU. For compressed images, it simply omits loading higher mipmap levels. It works perfectly as long as you properly encode your DDS with mipmaps.

Maybe it's too much to ask, but if you can, can you update the following info on the wiki with some info on mipmaps:

https://wiki.thedarkmod.com/index.php?title=File_formats#DDS

Posted
18 minutes ago, datiswous said:

How does this work for textures in jpg or png? Or maybe we should never use these formats for textures?

DDS is the only "special" format which has its own special code path.
All the other image formats are read to produce RGBA 8-bit buffer on CPU, and after that their treatment is the same regardless of which format they came to (TGA/BMP/JPG/PNG / maybe I forgot something).

  • Like 1
  • stgatilov unpinned and unfeatured this topic
Posted

By the way, the 2.13 is finally released.

I'd like to thank everyone for taking part in the testing!
This is very important for making releases stable.

  • Like 3
Posted
26 minutes ago, stgatilov said:

All the other image formats are read to produce RGBA 8-bit buffer on CPU, and after that their treatment is the same

So the mipmaps are not generated ingame for jpg and png, but it's not necesaary?

Posted
37 minutes ago, datiswous said:

So the mipmaps are not generated ingame for jpg and png, but it's not necesaary?

The mipmaps are generated automatically when necessary.
I believe there is some keyword which can block generation of mipmaps.
In a sense, mipmaps is implementation detail.

But DDS is sort of "engine-internal" image format, it works differently.

  • Like 1

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

    • JackFarmer

      "Hidden Hands: Vitalic Fever" - new update available including subtitles & compressed briefing video (thanks to @datiswous) and several fixes.
      · 0 replies
    • Wolfmond

      🇬🇧

      2025-04-20
      I'd like to track my level design progress a bit more often now, so I'm using the feed in my profile here.
      I've been working intensively on Springheel's YouTube course over the past few days. I'm currently up to lesson 8. There is so much information that needs to be processed and practiced. 
      I have started to create my own house. As I don't have the imagination to create a good floor plan, I grabbed a floor plan generator from Watabou and experimented with it. I chose a floor plan that I will modify slightly, but at least I now have an initial idea. 
      I used two guards as a measuring tape: The rooms are two guards high. It turned out that I can simply double the number of boxes in DarkRadiant in grid size 8 that are drawn in the floor plan. 
      I practiced the simplest things on the floor plan first. Drawing walls, cutting walls, inserting doors, cutting out frames, creating VisPortals, furnishing rooms.
      I have had my first success in creating a book. Creating a book was easier than I thought. I have a few ideas with books. The level I'm creating will be more or less a chill level, just for me, where I'll try out a few things. I don't have an idea for my own mission yet. I want to start small first.
      For the cellar, I wanted to have a second entrance, which should be on the outside. I'm fascinated by these basement doors from the USA, I think they're called Bilco basement doors. They are very unusual in Germany, but this type of access is sometimes used for deliveries to restaurants etc., where barrels can be rolled or lifted into the cellar. 
      I used two Hatch Doors, but they got completely disoriented after turning. I have since got them reasonably tamed. It's not perfect, but it's acceptable. 
      In the cellar today I experimented with a trap door that leads to a shaft system. The rooms aren't practically finished yet, but I want to continue working on the floor plan for now. I'll be starting on the upper floor very soon.

      __________________________________________________________________________________
      🇩🇪

      2025-04-20

      Ich möchte nun mal öfters ein bisschen meinen Werdegang beim Leveldesign tracken, dazu nutze ich hier den Feed in meinem Profil.
      Ich habe mich in den vergangenen Tagen intensiv mit dem Youtube-Kurs von Springheel beschäftigt. Aktuell bin ich bis zu Lektion 8 gekommen. Das sind so viele Informationen, die erstmal verarbeitet werden wollen und trainiert werden wollen. 

      Ich habe mich daran gemacht, ein eigenes Haus zu erstellen. Da mir die Fantasie fehlt, einen guten Raumplan zu erstellen, habe ich mir einen Grundrissgenerator von Watabou geschnappt und damit experimentiert. Ich habe mich für einen Grundriss entschieden, den ich noch leicht abwandeln werde, aber zumindest habe ich nun eine erste Idee. 

      Als Maßband habe ich zwei Wächter genommen: Die Räume sind zwei Wächter hoch. Es hat sich herausgestellt, dass ich in DarkRadiant in Gittergröße 8 einfach die doppelte Anzahl an Kästchen übernehmen kann, die im Grundriss eingezeichnet sind. 

      Ich habe bei dem Grundriss erstmal die einfachsten Sachen geübt. Wände ziehen, Wände zerschneiden, Türen einsetzen, Zargen herausschneiden, VisPortals erstellen, Räume einrichten.

      Ich habe erste Erfolge mit einem Buch gehabt. Das Erstellen eines Buchs ging leichter als gedacht. Ich habe ein paar Ideen mit Bücher. Das Level, das ich gerade erstelle, wird mehr oder weniger ein Chill-Level, einfach nur für mich, bei dem ich ein paar Sachen ausprobieren werde. Ich habe noch keine Idee für eine eigene Mission. Ich möchte erst einmal klein anfangen.

      Beim Keller wollte ich gerne einen zweiten Zugang haben, der sich außen befinden soll. Mich faszinieren diese Kellertüren aus den USA, Bilco basement doors heißen die, glaube ich. Diese sind in Deutschland sehr unüblich, diese Art von Zugängen gibt es aber manchmal zur Anlieferung bei Restaurants etc., wo Fässer dann in den Keller gerollt oder gehoben werden können. 
      Ich habe zwei Hatch Doors verwendet, die allerdings nach dem Drehen vollkommen aus dem Ruder liefen. Inzwischen habe ich sie einigermaßen gebändigt bekommen. Es ist nicht perfekt, aber annehmbar. 
      Im Keller habe ich heute mit einer Falltür experimentiert, die zu einem Schachtsystem führt. Die Räume sind noch quasi nicht eingerichtet, aber ich möchte erstmal am Grundriss weiterarbeiten. In Kürze fange ich das Obergeschoss an.



      · 2 replies
    • JackFarmer

      On a lighter note, thanks to my cat-like reflexes, my superior puzzle skills and my perfect memory, I was able to beat the remastered version of "Tomb Raider: The Last Revelation" in a new superhuman record time of 23 h : 35 m, worship me!
      · 3 replies
    • Goblin of Akenash

      My mapping discord if anyone is interested, its more of a general modding thing rather than just for TDM 
      https://discord.gg/T4Jt4DdmUb

       
      · 0 replies
    • nbohr1more

      2.13 Moddb Article is up: https://www.moddb.com/mods/the-dark-mod/news/the-dark-mod-213-is-here
      · 1 reply
×
×
  • Create New...