Jump to content
The Dark Mod Forums

Recommended Posts

Posted
40 minutes ago, Jnon said:

I did read that, but unfortunately it assumes the existence of an Objectives Editor, and for reasons I'm not entirely certain, my installation of DarkRadiant does not have one.

so your 'Map' menu doesn't look like this? Is that the only entry missing?

image.png.e5fcf026e20ab1e3ac00dd073321d42f.png

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

I just noticed that 'Edit Package Info' option for the first time just now.  I tried it out, and I think it might be putting stuff in the wrong order in darkmod.txt.

@nbohr1more you told me once that the order of the top 3 lines in darkmod.txt should be:

Title

Description

Version

in that exact order.  Using the utility in DR does this:

Title: Test Maps
Description: Test maps to play around with
Author: Frost_Salamander
Version: 0.1
Required TDM Version: 2.11

i.e. it puts 'Author' before version.  Is this worth raising a bug report about?

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
7 minutes ago, Frost_Salamander said:

I just noticed that 'Edit Package Info' option for the first time just now.  I tried it out, and I think it might be putting stuff in the wrong order in darkmod.txt.

@nbohr1more you told me once that the order of the top 3 lines in darkmod.txt should be:

Title

Description

Version

in that exact order.  Using the utility in DR does this:

Title: Test Maps
Description: Test maps to play around with
Author: Frost_Salamander
Version: 0.1
Required TDM Version: 2.11

i.e. it puts 'Author' before version.  Is this worth raising a bug report about?

Yes, we should get this sorted out since it contradicts the wiki:

https://wiki.thedarkmod.com/index.php?title=How_to_pack_your_Mission

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
3 minutes ago, nbohr1more said:

Yes, we should get this sorted out since it contradicts the wiki:

https://wiki.thedarkmod.com/index.php?title=How_to_pack_your_Mission

okay - I'll raise it.  Thanks.

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

Hmm...

https://github.com/stgatilov/darkmod_src/blob/e8d098981b602e354da2ade79ff3d3629c57f4a5/game/Missions/ModInfo.cpp

As I can tell, the parser ignores the "Version" value in darkmod.txt . We only care about the required tdm version string and we are order agnostic:

 
int titlePos = modFileContent.Find("Title:", false);
int descPos = modFileContent.Find("Description:", false);
int authorPos = modFileContent.Find("Author:", false);
int versionPos = modFileContent.Find("Required TDM Version:", false);

int missionTitlesPos = modFileContent.Find("Mission 1 Title:", false); // grayman #3733

 

as long as you don't go crazy add add duplicate Title, Author ( etc ), line prefixes it should just find a match somewhere in the file and populate the vars.

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
11 minutes ago, nbohr1more said:

Hmm...

https://github.com/stgatilov/darkmod_src/blob/e8d098981b602e354da2ade79ff3d3629c57f4a5/game/Missions/ModInfo.cpp

As I can tell, the parser ignores the "Version" value in darkmod.txt . We only care about the required tdm version string and we are order agnostic:

 
int titlePos = modFileContent.Find("Title:", false);
int descPos = modFileContent.Find("Description:", false);
int authorPos = modFileContent.Find("Author:", false);
int versionPos = modFileContent.Find("Required TDM Version:", false);

int missionTitlesPos = modFileContent.Find("Mission 1 Title:", false); // grayman #3733

 

as long as you don't go crazy add add duplicate Title, Author ( etc ), line prefixes it should just find a match somewhere in the file and populate the vars.

ok - won't raise it then.  The one thing I do remember though is that the order seemed to affect whether the version appeared in the 'new mission available' popup.  Like here: https://drive.proton.me/urls/QN4S59DS8G#XRGDsGiMFJI8

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
9 hours ago, Frost_Salamander said:

so your 'Map' menu doesn't look like this? Is that the only entry missing?

image.png.e5fcf026e20ab1e3ac00dd073321d42f.png

My Map menu looks like this. I'm running 3.8.0 on Ubuntu focal, installed from Matthew Mott's orbweaver PPA

DarkRadiantMenu.png

DarkRadiantVersion.png

Posted
5 hours ago, Jnon said:

My Map menu looks like this. I'm running 3.8.0 on Ubuntu focal, installed from Matthew Mott's orbweaver PPA

DarkRadiantMenu.png

DarkRadiantVersion.png

that is strange.  Sounds like one for @greebo or @OrbWeaver

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

For the record, based on @grodenglaive's assistance, I was successfully able to add the property obj#_enabling_objs with a value of # AND # AND # etc. to atdm:target_addobjectives and it worked in my test map. The escape objective now does not trigger merely by entering the area before objectives are completed.

It went a lot smoother than I thought, actually.. I was given to believe it was going to be difficult to enable based on the A to Z tutorial and other comments, but it seems relatively easy to implement so far.

Posted (edited)
On 5/4/2023 at 2:52 PM, Frost_Salamander said:

The one thing I do remember though is that the order seemed to affect whether the version appeared in the 'new mission available' popup. 

As far as I can see from looking at the source code (and in agreement with @nbohr1more that FM "Version" is not parsed), the New Missions popup is just showing lines* associated with FM darkmod.txt "Title:" fields. So I guess what's happening is that you edit your darkmod.txt like this:

Title: In Plain Sight  <enough spaces here to wordwrap to next line when displayed> Version 1.3

Then, in the main mission list, because of all the spaces, the "Version 1.3" won't appear due to clipping. Assuming that's what you want.

*It also starts with #str_02143,  "New Mission(s) Available" in English, and if there's more than 3 new missions, stops listing them and just says so.

Edited by Geep
typo
Posted (edited)
40 minutes ago, Geep said:

As far as I can see from looking at the source code (and in agreement with @nbohr1more that FM "Version" is not parsed), the New Missions popup is just showing lines* associated with FM darkmod.txt "Title:" fields. So I guess what's happening is that you edit your darkmod.txt like this:

Title: In Plain Sight  <enough spaces here to wordwrap to next line when displayed> Version 1.3

Then, in the main mission list, because of all the spaces, the "Version 1.3" won't appear due to clipping. Assuming that's what you want.

*It also starts with #str_02143,  "New Mission(s) Available" in English, and if there's more than 3 new missions, stops listing them and just says so.

Are you saying I forgot the EOL character?  That doesn't appear to be the case:

image.png.91afb438fd5d3b19b288a5926a998ec4.png

 

Edited by Frost_Salamander
update image with actual file from .pk4

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

I don't know exactly how the parsing determines where a string like "Title:" ends. I was guessing it looks for a EOL character, but maybe not.

Posted

OK, I stared at the code some more. It doesn't care about EOL. It just divides the text into blocks based on where the known keyword strings are. (It's a bit complicated. It uses a sorted associative set of starting locations (plus end-of-text), and manipulates an iterator over that set is such a way that the block order is not important. That's in ModInfo.cpp's LoadMetaData() function.)

So in the example above, a block begins at the start of "Title:..." and stops right before the beginning of "Author". Because "Version:" is not a parsed keyword, it's just more content for the title block.

  • Like 1
Posted (edited)
On 5/5/2023 at 6:01 AM, Jnon said:

My Map menu looks like this. I'm running 3.8.0 on Ubuntu focal, installed from Matthew Mott's orbweaver PPA

Maybe try renaming the config file (so it's recreated to default values)? I had some weird issues that were solved by recreating that file.

 

Did you know there's a Flatpack version now? You could try that.

https://flathub.org/apps/net.darkradiant.DarkRadiant

Edited by datiswous
Posted
On 5/4/2023 at 8:39 PM, nbohr1more said:

As I can tell, the parser ignores the "Version" value in darkmod.txt .

16 hours ago, Geep said:

Because "Version:" is not a parsed keyword, it's just more content for the title block.

Why is it not a parsed keyword? I guess because tdm has it's own versioning? But still I think it's useful if "Version" is always displayed, for consistency.

Posted (edited)
20 minutes ago, datiswous said:

Why is it not a parsed keyword? I guess because tdm has it's own versioning? But still I think it's useful if "Version" is always displayed, for consistency.

Version is displayed in the mission info page (missions list -> click on any mission and look at the page displayed on the left).

But as you say TDM uses its own internal versioning which only an integer (e.g. version 1, 2, 3, etc.).  If you look at the missions list on the TDM website you can see them. For example, for In Plain Sight it says it's version 5, but the darkmod.txt for that FM is version 1.5).  So it's debatable what value that field brings.  I guess it is useful, but people need to be aware that the mission DB doesn't care about it.

I'm not sure what happens if you have say version 1, and then version 2 appears in the mission database.  Do you get a popup that says a new version is available? What would be useful here is if it said what the new version was, but it would be weird if that version wasn't the same as the mission DB version like in the version 5 vs. version 1.5 example above.

Maybe the mappers should just stick to the integer versioning in their darkmod.txt as a convention.

Edited by Frost_Salamander

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)

I think one type of versioning should be used. So maybe the "version" should be parsed, but instead use internal version in that place. The current versioning creates a lot of confusion.

13 minutes ago, Frost_Salamander said:

I'm not sure what happens if you have say version 1, and then version 2 appears in the mission database.

I think you just see it listed again in the mission dowloader as an update, but you don't get a notification.

Often the updated version still has the same old version specified in the darkmod.txt file. Which adds confusion. Players don't know if they've installed the update or not.

Edited by datiswous
Posted
6 minutes ago, datiswous said:

I think one type of versioning should be used. So maybe the "version" should be parsed, but instead use internal version in that place. The current versioning creates a lot of confusion.

I think you just see it listed again in the mission dowloader as an update, but you don't get a notification.

Often the updated version still has the same old version specified in the darkmod.txt file. Which adds confusion. Players don't know if they've installed the update or not.

Yeah I agree, one type of versioning would be best.  I guess the problem is the dev team needs to control this, not the FM author because it's not always the author that does the releases (for example patching older FMs to work with newer versions of TDM).

I'm not sure what the best solution is to be honest.  I like the 'version' field because it's useful for beta testing and you can make it clear what version the testers are playing.  But once it's released that field becomes useless. 

I'm sure it's been debated extensively already though.  I think for my next FM I will just try and stick to integer version with the hope they will match!  It just feels weird because it's not semantic versioning which I'm used to (but that's not a good excuse).

 

  • 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

Currently, to see the Downloadable Version number from the TDM menus, well, it's kinda buried. You have to go to the Downloadable Missions list, select an entry, and in the popup left screen, under details, select More....  That shows you info in the internal local "mods" array. Including the Release Date.

When you select from Available Missions instead, the info in the left screen comes pretty much from darkmod.txt

Proposal - make that display code smarter: if the selection is one that was earlier downloaded (e.g., is in mods[] ), instead of displaying "Version: ..." from darkmod.txt, instead show "Downloaded Version ## Released on <date>"

Posted

To elaborate on that idea further, this would make "Version:" into a keyword, indicating the start of the block that could be ignored during display, and replaced by download info. That info would have to be locally persisted. I think the file "missions.tdminfo" already does this, but content would have to change somewhat (e.g., to include release date of locally downloaded FMs).

Pre-release FMs could use whatever versioning scheme desired in darkmod.txt, e.g., "Version: 0.2", "Version: A", "Version: Dec 4", and rely on suppression of that when the official releases/updates occur.

As with other keyword blocks, "Version:" could be in any order with respect to other blocks.

If you didn't want this new display-override feature, use a non-keyword, e.g., "Vers #3". Just like "Version:" is treated currently.

[An alternative implementation of this idea would just auto-edit the "Version:" block of darkmod.txt during upload to the distribution site. So all the change happens on the backend. Might be issues with site mirrors.]

Posted

While I'm currently taking a break from TDM mapping and not requiring this yet, it's an option I was thinking of using and would like to know whether it's possible. I was wondering if there's a way to have an AI which another AI that's an enemy to it would be too scared to attack, meaning the weaker AI flees even if armed but only from specific enemies: Can AI have a "scary" value that prevents weaker characters from picking a battle?

A simple example: Let's say you have a city watch guard, a thief, and a skeleton... all set as enemies to each other. If the guard and thief see each other, they will start fighting. If however they see the skeleton, they will be so scared they flee as if unarmed instead of attempting any fights at that time.

Posted

Personally I really don't know if that is available or not but that does sound too a specific guard behavior, so perhaps is not defined? 

If is possible to have that? Yes, if is not available already, unfortunately there's no other way but code it into the guard AI, in c++ or script yourself, if you know how to code....

Btw the civilian AI does have "fear" and runs away from danger, is that AI type really entirely separate from the guard AI, or the guard behavior is just "dormant" on the civilian AI and vice versa?

If all AI's are done through the same AI system then perhaps is just a matter of turning some stuff on or off.

If they are totally separate AI's, they are still so similar in parts that perhaps so you could adapt/transfer the civilian fear behavior into the guard AI for specific types of danger.  But all of this requires coding.

Sorry for not being more helpful than this, I really don't know much about TDM or even Doom 3 AI stuff.

  • Like 1
  • Thanks 1
Posted
19 hours ago, MirceaKitsune said:

Can AI have a "scary" value that prevents weaker characters from picking a battle?

Maybe that can be faked somehow. Create an AI that looks like a guard, but is really a civilian, and swap that character in to replace a real guard when the skeleton appears?

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

    • jivo

      I just uploaded a new version of the Visible Player Hands mod. It's been updated for TDM 2.13 and has new animations. Check out the post if you're interested!
      · 0 replies
    • datiswous

      I moved from Manjaro Linux (rolling release) to Linux Mint (LTS). One of the reasons was that I found the updates a bit too often and long. But now on Mint I get updates every day, although they're usually small updates.
      · 3 replies
    • 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!
      · 5 replies
×
×
  • Create New...