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

Recommended Posts

Posted (edited)
14 minutes ago, nbohr1more said:

Woo!

Any chance you could add a feature that warns about spaces or special characters in file or folder names?

That way it'll be less work to upload missions to the database.

Quite possibly. I could even do this on the python version too. Spaces are easy to look for. For special characters I'll need to know more about what's supported. 

I suppose that includes the pk4 name, right?

Edited by Skaruts

My FMs: By The Cookbook

My tools: FM Packer  |  TDM Packer 2

Posted

It's easy enough to rename the mission pack on upload but I guess for new mappers they might encounter a puzzle if the pk4 fails to be read by TDM so pack naming checks would be handy.

As for special characters?

( ) { } [ ] | ! @ # $ % ^ & * , + - " ' : ; ? < > ` ~ /

Are the ones I've seen cause upload failures. I am hoping that we aren't susceptible to UTF-8 localization characters. Thus far I haven't seen any failures in that regard.

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)
1 hour ago, nbohr1more said:

( ) { } [ ] | ! @ # $ % ^ & * , + - " ' : ; ? < > ` ~ /

Are the ones I've seen cause upload failures. I am hoping that we aren't susceptible to UTF-8 localization characters. Thus far I haven't seen any failures in that regard.

Is this a problem specific to the server and not the game? I just need to know what kind of error or warning to display.

Also, I could actually enforce this, rather than just warn about it, if that would be preferable.

Edited by Skaruts

My FMs: By The Cookbook

My tools: FM Packer  |  TDM Packer 2

Posted

It impacts the SVN server as I know. The game seems to handle these without issue other than - in some file names.

I would prefer enforcement since it would make my life easier as a mission maintainer :)

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

Posted

I think I have an idea for a really useful feature this thing could have: you could parse the .map file for e.g. models and material names, and you could compare them against a list of files found in a given FM folder. You should be able to find a way to exclude models, textures, and materials that didn't make it to the final version of a map, which would be very useful for people making custom stuff. Hunting for that stuff during final stages is a chore, and may end up with unnecessary pk4 bloat when you miss something.

  • Like 1
Posted
34 minutes ago, peter_spy said:

I think I have an idea for a really useful feature this thing could have: you could parse the .map file for e.g. models and material names, and you could compare them against a list of files found in a given FM folder. You should be able to find a way to exclude models, textures, and materials that didn't make it to the final version of a map, which would be very useful for people making custom stuff. Hunting for that stuff during final stages is a chore, and may end up with unnecessary pk4 bloat when you miss something.

That does indeed sound useful.  I ran into this problem with Foreign Affairs and all the custom textures.  But I wonder if that functionality would be better placed in a DR script instead? Then everyone would benefit and not just users of this tool. Obviously it wouldn't prevent stuff getting packed in the FM, but it could identify the things not being used and the mapper could then manually remove them, leaving them with a clean source folder.  Or even delete the stuff if you want it to?

  • Like 1

TDM Community Github: https://github.com/thedarkmodcommunity

My fan missions: The Hare in the Snare, Part 1

The Lieutenant Series: In Plain Sight  High Expectations Foreign Affairs

Posted (edited)

@peter_spy @Frost_Salamander

I've actually been working on that kind of thing in the python version. I'm gonna have to do the same for this version, but some of those things are already usable in the other one in the dev branch, through the --validate command.

https://github.com/Skaruts/tdm_fm_packer/tree/dev

I've been doing this in that version because it's easier to iterate and test. Once I get to the point things seem to be going ok, I'll bring them to this one.

I forgot to update the readme, though, but you can use -h to see how it works. (EDIT: actually, I forgot to update the help too, omg... :D) (EDIT2: got that sorted.)

Beware though that the paint is still fresh. It may not be working 100% reliably. Needs more testing. :) 

Edited by Skaruts
  • Like 1

My FMs: By The Cookbook

My tools: FM Packer  |  TDM Packer 2

Posted (edited)
On 2/8/2025 at 4:23 PM, Skaruts said:

You can download the binaries here

I can't find the binaries

Edit: nevermind, it's under Releases in the right menu (but how could I know this?)

I think you should rename the binary package though. alpha_0.3_linux.tar.gz is not a good name for it.

Edited by datiswous
Posted

Yea, I should've linked directly to the releases. Sorry about that. Fixed it.

17 minutes ago, datiswous said:

I think you should rename the binary package though. alpha_0.3_linux.tar.gz is not a good name for it.

I don't know what else to call it. Or maybe you mean I should include the app name in it? I should've done that, indeed. It didn't even occur to me, for some reason.

Maybe tdm_packer_a0.3_linux.tar.gz would be an improvement.

My FMs: By The Cookbook

My tools: FM Packer  |  TDM Packer 2

Posted (edited)
On 2/8/2025 at 4:23 PM, Skaruts said:

it can pack your selected mission into the pk4 at a click of a button

This works in Linux

On 2/8/2025 at 4:23 PM, Skaruts said:

it provides an editor for a .pkignore file where you specify which files to exclude from the pk4

I guess you have to manually write down the files you want to exclude? I thought you could just double click in the file-tree, but this doesn't work. There's no save button for this it seems.

On 2/8/2025 at 4:23 PM, Skaruts said:

it gives you a handy tree view of both the included and excluded files (Shift+LMB to fully expand/contract branches)

yes. But this is not updated until you save, which you can only do when you pack, play, or edit.

On 2/8/2025 at 4:23 PM, Skaruts said:

it can launch TDM or DarkRadiant for the selected mission, or run a second installation of TDM to test your pk4 in isolation (see the menu Settings->Paths)

Works with DR, but not TDM. The console logs starting and stopping, nothing happens.

On 2/8/2025 at 4:23 PM, Skaruts said:

it automatically writes your map sequence into the appropriate file

I don't understand what this does.

Edit: Is this for campaigns?

On 2/8/2025 at 4:23 PM, Skaruts said:

all maps, except the ones in the map sequence, are auto excluded from the pk4

I don't see how this could be useful and why this isn't inside the Pack window.

Edit: Ah ok, I see.

Edited by datiswous
  • Like 1
Posted (edited)

@datiswous by the way, is the executable icon a little cardboard box? (And showing everywhere, window, filesystem, taskbar, etc?) Just wanted to be sure I set the icon properly.

 

59 minutes ago, datiswous said:

I guess you have to manually write down the files you want to exclude? I thought you could just double click in the file-tree, but this doesn't work. There's no save button for this it seems.

Yes, you need to edit by hand, for now (and save). I may do something with the trees at some point, but that will probably be a rabbit-hole of its own.

There are no handy UI buttons for now either. :) As far the text editors go, you still have all the hotkeys you might expect: ctrl-s, ctrl-z, ctrl-shift-z, etc. Including multi-cursors, if I didn't forget to turn them on.

 

1 hour ago, datiswous said:

yes. But this is not updated until you save, which you can only do when you pack, play, or edit.

Yes, you have to save the .pkignore in order for it to rebuild the trees.

 

1 hour ago, datiswous said:

Works with DR, but not TDM. The console logs starting and stopping, nothing happens.

Damn... that's a bummer. I don't know what to do about it, as I'm just using Godot's api to execute a process. Have you tried running the console version of TDM Packer? I don't know if it will show any useful information. I didn't export with debug, so probably not.  

 

1 hour ago, datiswous said:

I don't understand what this does.

Edit: Is this for campaigns?

Yes. If you have more than one map in the map sequence it will create a tdm_mapsequence.txt, instead of a startingmap.txt. This is something I still have to look deeper into, though. I've never made any campaigns, so this feature is probably not reliable as is, and I'm not even sure I'm on the right track. I only looked into the files of NHAT. 

  

1 hour ago, datiswous said:

I don't see how this could be useful and why this isn't inside the Pack window.

Edit: Ah ok, I see.

Just to clarify it, I made it this way because I tend to have lots of small test maps and even some local backups, or different versions of the main map. Excluding them all by hand in the .pkignore would be quite tedious. Since I couldn't think of a reason why one might want to include unused maps in the pack, I just went with the assumption that there probably isn't one.

 

Edited by Skaruts
  • Like 1

My FMs: By The Cookbook

My tools: FM Packer  |  TDM Packer 2

Posted (edited)
26 minutes ago, Skaruts said:

Damn... that's a bummer. I don't know what to do about it, as I'm just using Godot's api to execute a process. Have you tried running the console version of TDM Packer? I don't know if it will show any useful information. I didn't export with debug, so probably not.  

It shows this:

Spoiler
select_mission 3 crystalgrave2_1
ERROR: Attempt to disconnect a nonexistent connection from 'root:<Window#77393300089>'. Signal: 'focus_entered', callable: ''.
   at: _disconnect (core/object/object.cpp:1462)
ERROR: Attempt to disconnect a nonexistent connection from 'root:<Window#77393300089>'. Signal: 'tree_exited', callable: ''.
   at: _disconnect (core/object/object.cpp:1462)
TASK: Running TDM
TDM 2.13/64 #10932 (1435:10932) linux-x86_64 Jan 26 2025 17:32:50
/proc/cpuinfo CPU frequency: 4242.23 MHz
4242 MHz AMD CPU with SSE & SSE2 & SSE3 & SSSE3 & SSE41 & AVX
found interface lo - loopback
found interface enp8s0 - 192.168.1.64/255.255.255.0
found interface docker0 - 172.17.0.1/255.255.0.0
Found AMD CPU, features: SSE SSE2 SSE3 SSSE3 SSE41 AVX
TDM using AVX for SIMD processing.
no 'darkmod' directory in exe path /home/datiswous/Games/TDM-new, skipping
no 'darkmod' directory in cwd path /home/datiswous/Downloads/alpha_0.3_linux, skipping
WARNING: using hardcoded default base path
Found 0 new missions and 0 packages.
------ Initializing File System ------
Current search path:
  [C] /home/datiswous/Downloads/alpha_0.3_linux/
File System Initialized.
--------------------------------------
Unknown command 'vid_restart'
--------- Game Map Shutdown ----------
--------- Game Map Shutdown done -----
idRenderSystem::Shutdown()
signal caught: Segmentation fault
si_code 1
Was in fatal error shutdown: Couldn't load default.cfg
Trying to exit gracefully..
About to exit with code 0
TASK: Copying TDM logs to TDM directory
ERROR: Failed to open DarkMod.log
   at: copy (core/io/dir_access.cpp:348)
ERROR: Failed to open DarkMod.temp.log
   at: copy (core/io/dir_access.cpp:348)
INFO: TDM process ended

 

Hmm, it looks for a "darkmod" folder?

Edit: Changing the tdm folder to "darkmod" makes the play button work correctly, but this should not be required.

Edited by datiswous
Posted
11 minutes ago, datiswous said:

Hmm, it looks for a "darkmod" folder?

Edit: Changing the tdm folder to "darkmod" makes the play button work correctly, but this should not be required.

I'm inclined to believe that's some TDM or Linux sided quirk. The program just uses whatever path you give it. It only cares that the executable is in there. I can't reproduce this on windows.

Unless it has something to do with Godot not being able to set the current-working-directory (CWD) to the game's path when launching it. If that's the cause, I can't do anything about it, unfortunately.

My FMs: By The Cookbook

My tools: FM Packer  |  TDM Packer 2

Posted (edited)

I remember there was a bug about the darkmod folder a while ago..

Edit: I meant this bug, but It's probably not related.

 

What's the command you give to start tdm from your program?

Edited by datiswous
Posted
59 minutes ago, Skaruts said:

by the way, is the executable icon a little cardboard box? (And showing everywhere, window, filesystem, taskbar, etc?) Just wanted to be sure I set the icon properly.

It shows up in different places, but not the executable icon.

 

1 hour ago, Skaruts said:

Yes, you have to save the .pkignore in order for it to rebuild the trees.

But it's missing a manual save functionality.

  • Like 1
Posted (edited)
14 minutes ago, datiswous said:

But it's missing a manual save functionality.

You can press ctrl+s. The hotkey is from the text editor itself, so you must click the text editor for it to gain focus and receive input.

I've been on the fence about just having a global save functionality that just saves all mission files at once, whenever you do ctrl+s. Might make it easier on users and also on me, because individual saving is harder to work with.

Or... I could add a timer, that counts down a couple seconds and auto-saves, after you make some changes. That could work too.

Edited by Skaruts

My FMs: By The Cookbook

My tools: FM Packer  |  TDM Packer 2

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