Jump to content
The Dark Mod Forums

Recommended Posts

Posted (edited)

Well, now, talk about early-onset dementia , I have my Project Setup and everything else as it should, but something about your reply made me realize I had encountered a related (if not the same) problem almost 1-2 years ago when I first tried mapping something, and I had even found the solution and I might have mentioned it under one of Springheels01 tutorials! I just had forgotten about it. Correct me if I'm wrong, but my confusion stems from, I believe, two ways (or more, actually) of dmapping something and, generally speaking, "organizing" (yeah, well... 😅) your stuff: just lazily dropping your .map in darkmod/maps and type dmap mymission, which can be done without selecting the mission first (you could be playing some other mission and just load up your map whenever you want,) and the /fms/... way, where you actually have to select it first, which is kind of obvious when you think about it because how else would the computer know where to look, but I didn't do it because I never had to do it before. Stupid mistake, really—but at least it's not because of a typo.

Thanks, your comment actually helped. I'm still a bit confused by other things, but they are mostly that more advanced stuff with custom assets, so it's not that important and I'll get around that eventually. At least I got that nagging confusion out of the way, which was really driving me nuts.

 

Edited by xlm
Minor grammar mistake
  • Like 1
Posted

Your post helped me understand the darkmod/maps use case (evidently called the "non-project" method), which my tiny, tidy brain [🧠] couldn't quite grasp before. That will help inform my rewrite of the beginning part of A to Z Beginners Guide Page 1 that probably led you astray. Given the confusing shortcomings of non-project for non-trivial FMs, I'm going to steer the reader towards the "project" method (i.e., darkmod/fms/<FM>/maps) instead... what Destined may have intended with his "File Structure" section.

  • Like 2
Posted

OK, I've updated parts of Page 1 (and a bit of Page 5) of the A - Z Beginners Guide, to cover a choice of using project and non-project file structures. That part's hopefully clearer and certainly longer, but I shortened the intro.

No plans to revisit rest of that guide. That would be Labors of Hercules.

  • Like 2
Posted (edited)

I've further revised this. I've had to make some assumptions about the "non-project" form of file organization, where you place your .map file in <darkmod>/maps/, and any custom resources in sibling folders, for instance, <darkmod>/materials/.

The assumptions are:

1) That the current TDM version still supports non-project custom resources in this way

2) That DR will not be able to find the custom resources, because it can't set a Game Project location for those resources.

3) That a custom resource placed in a folder like <darkmod>/materials/ becomes global and visible to all FMs within <darkmod>, not just those in <darkmod>/maps/, but also those in:

a) <darkmod>/fms/<FM>/maps/ in non-pk4 form

b) <darkmod>/fms/<FM>/maps/ in pk4 form

Anyone, are any of those assumptions wrong?

 

 

Edited by Geep
  • 2 weeks later...
Posted

I'm trying to create a 'door controller' for a locked door as described here: https://wiki.thedarkmod.com/index.php?title=Doors#Door_Controllers

I can't get it to work when the door is locked though. I want to have a 'lock plate' nearby that requires a key.  Basically any unlocking operation (lock pick, key) performed on the controller gets ignored and the door doesn't unlock.  I have put the usual lock properties on the door, and expected them to 'transfer to the controller' as described in the Wiki article.  This doesn't seem to happen in my case for some reason.

Has anyone got this working?  If so, another question: which entity to use for the 'controller'?  To test it initially, I used atdm:mover_button, but that isn't ideal because I don't want it to translate and disabling the translation creates a console warning and disables any interaction sounds.

 @Geep I noticed you added a separate section for this exact scenario, but using an older method: https://wiki.thedarkmod.com/index.php?title=Doors#Alternative_Method:_Door_with_a_Separate_.22Froblock.22_Lock_Plate.  Is that because you didn't have any luck with the door controller method?

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

I noticed you added a separate section for this exact scenario, but using an older method: https://wiki.thedarkmod.com/index.php?title=Doors#Alternative_Method:_Door_with_a_Separate_.22Froblock.22_Lock_Plate.  Is that because you didn't have any luck with the door controller method?

No, it's because Away 0 used that method, which was inherited from _Atti_'s original construction from a decade and a half earlier. So I don't have anything against the door controller method, but alas no real insight about it to share with you either.

Posted

Just looked at the wiki writeup. Maybe the "transfer of locking info" happens ONLY you use the alternative method with door_controller1 specified.
 

Quote

 

(Alternatively, you can give the door these spawnargs: "door_controller1" "<name of controller 1>", "door_controller2" "<name of controller 2>".)

When the game starts, it will transfer any locking information from the door to the controllers.

 

I'm thinking for a controller, just create a func_static plate, make it frobbable, have it trigger the door. There's a texture of a keyhole you can use on its face.

Posted
24 minutes ago, Geep said:

Just looked at the wiki writeup. Maybe the "transfer of locking info" happens ONLY you use the alternative method with door_controller1 specified.
 

I'm thinking for a controller, just create a func_static plate, make it frobbable, have it trigger the door. There's a texture of a keyhole you can use on its face.

Just tried the alternative method with the spawnargs (e.g. door_controller1, etc), and it doesn't work at all - even if the door is unlocked.

Will keep playing with it. If I ever figure it out I will update the Wiki!

  • 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

  • 4 weeks later...
Posted

So about the newspaper GUIs: How do I fix them?

(I'm talking about these four warnings for each newspaper in the map:

WARNING:Window BackgroundFadeIn in gui guis/readables/sheets/newspaper_bridgeport01.gui: a transition does not have a valid destination var leftPageCurl::matcolor
WARNING:Window BackgroundFadeIn in gui guis/readables/sheets/newspaper_bridgeport01.gui: a transition does not have a valid destination var rightPageCurl::matcolor
WARNING:Window BackgroundFadeOut in gui guis/readables/sheets/newspaper_bridgeport01.gui: a transition does not have a valid destination var leftPageCurl::matcolor
WARNING:Window BackgroundFadeOut in gui guis/readables/sheets/newspaper_bridgeport01.gui: a transition does not have a valid destination var rightPageCurl::matcolor

)

I figure they're packed in some .pk4 file, which I don't know how to unpack, but I figure that instead of doing that, smart languages will usually let you replace a piece of scripting by writing a script outside the packed file, which will replace just that part.

...but since I can't look at the newspaper GUI scripts, I don't know what to write.

...and I don't know why this "bug" has been around for at least four years either. Come on, devs, just add the vars...

Posted

Update:

I've learned that pk4 files are just zipped, and that gui files are just plain text scripts, and so I'm now confident that I'll resolve the matter myself.

Posted
On 5/2/2022 at 10:10 PM, Frost_Salamander said:

I'm trying to create a 'door controller' for a locked door as described here: https://wiki.thedarkmod.com/index.php?title=Doors#Door_Controllers

I can't get it to work when the door is locked though. I want to have a 'lock plate' nearby that requires a key.  Basically any unlocking operation (lock pick, key) performed on the controller gets ignored and the door doesn't unlock.  I have put the usual lock properties on the door, and expected them to 'transfer to the controller' as described in the Wiki article.  This doesn't seem to happen in my case for some reason.

Has anyone got this working?  If so, another question: which entity to use for the 'controller'?  To test it initially, I used atdm:mover_button, but that isn't ideal because I don't want it to translate and disabling the translation creates a console warning and disables any interaction sounds.

 @Geep I noticed you added a separate section for this exact scenario, but using an older method: https://wiki.thedarkmod.com/index.php?title=Doors#Alternative_Method:_Door_with_a_Separate_.22Froblock.22_Lock_Plate.  Is that because you didn't have any luck with the door controller method?

 

On 5/3/2022 at 12:04 AM, Frost_Salamander said:

Just tried the alternative method with the spawnargs (e.g. door_controller1, etc), and it doesn't work at all - even if the door is unlocked.

Will keep playing with it. If I ever figure it out I will update the Wiki!

The entity you are searching for is atdm:froblock.

  • Thanks 1

FM's: Builder Roads, Old Habits, Old Habits Rebuild

Mapping and Scripting: Apples and Peaches

Sculptris Models and Tutorials: Obsttortes Models

My wiki articles: Obstipedia

Texture Blending in DR: DR ASE Blend Exporter

Posted
2 hours ago, Obsttorte said:

 

The entity you are searching for is atdm:froblock.

Thanks! That is indeed what I was looking for.  I've updated that section of the Wiki.  I've removed the 'alternative' method of using the 'door_controllerN' spawnargs because as described, it doesn't work.  If someone thinks it's valuable and knows how to communicate it in a manner that actually works, they can add it back.

  • Like 3

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

Your edit makes sense to me, given your findings. Since you've now folded in atdm:froblock under the Door Controllers method, I've moved the section about "...Door with a Froblock Lock Plate", previously at page end (and that you had linked to in your post above), to just be a child and continuation of Door Controllers.

Posted
24 minutes ago, Geep said:

Your edit makes sense to me, given your findings. Since you've now folded in atdm:froblock under the Door Controllers method, I've moved the section about "...Door with a Froblock Lock Plate", previously at page end (and that you had linked to in your post above), to just be a child and continuation of Door Controllers.

To be honest, I didn't even realise they were the same thing.  Mentioning doors and lids and highlighting separately makes it sound complicated. If that method predates the controller method and is a different thing, then I still don't understand how to use locks with controllers!

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'm thinking that door controllers is mostly a generalization and repurposing of the earlier froblock/chest/lid way of looking at things. As to the highlighting, whether you want a door to highlight when to frob the separate lock, or vice versa, I guess is up to the mapper. That's mainly what the method discussed under Chests brings to the table, I suspect.

Posted
13 hours ago, Frost_Salamander said:

Mentioning doors and lids and highlighting separately makes it sound complicated.

It is, the printable version of this wiki section is 19 pages long!!! I mean, it's doors. If that needs such a wall of text to be explained, you probably need a whole book to describe optimization. ;)

 

  • Like 1

FM's: Builder Roads, Old Habits, Old Habits Rebuild

Mapping and Scripting: Apples and Peaches

Sculptris Models and Tutorials: Obsttortes Models

My wiki articles: Obstipedia

Texture Blending in DR: DR ASE Blend Exporter

Posted

Is there a reason for the default eating animations not attaching any food and then destroying it? This is how it looks:

Quote

    anim idle_eat               models/md5/chars/guards/proguard/idle_eat.md5anim
    {
        no_random_headturning
        frame 90    sound_voice tdm_chew
    }

Otherwise, I can probably implement default food very easily, in a patch. Just let me know, or protest.

Posted

IIRC the default setup is to attach an entity (like an apple) to the ai, which then overrides the respective animations.

 

EDIT: It seems there are no such props defined for food, although there is a wine bottle prop and I though I would have seen eating ai in the past. Probably mappers set the up on themselves everytime, which is cumbersome. So yeah, having some of these might be useful.

FM's: Builder Roads, Old Habits, Old Habits Rebuild

Mapping and Scripting: Apples and Peaches

Sculptris Models and Tutorials: Obsttortes Models

My wiki articles: Obstipedia

Texture Blending in DR: DR ASE Blend Exporter

Posted
18 minutes ago, Obsttorte said:

IIRC the default setup is to attach an entity (like an apple) to the ai, which then overrides the respective animations.

 

EDIT: It seems there are no such props defined for food, although there is a wine bottle prop and I though I would have seen eating ai in the past. Probably mappers set the up on themselves everytime, which is cumbersome. So yeah, having some of these might be useful.

 

New animations can be defined in the user model definitions when needed, so it's actually only useful to know a reference at which frame one should attach and destroy the food.

...so I'll add it to my patch list. Soon everyone will be eating apples all over the place. ;)

Posted (edited)
4 hours ago, Nort said:

 

New animations can be defined in the user model definitions when needed, so it's actually only useful to know a reference at which frame one should attach and destroy the food.

...so I'll add it to my patch list. Soon everyone will be eating apples all over the place. ;)

I did an animation, but I chickened out at the last second and named it "eat_apple_lefthand" in accordance with a placeholder script. Now all you need to do, is add the line

Quote

"replace_anim_idle_eat" "eat_apple_lefthand"

on an entity definition.

My mages will use that animation now, but neither nobles, wenches, nor female rogues, eat at all, so it's not added to anything else. It's going to be a bit strange with apple eating mages - lol.

Edited by Nort
Posted (edited)

I ran into some bugs with the animation, but instead of bothering you with the details, I'm just gonna say that everything is fixed now. :)

Edited by Nort
Posted (edited)

I ran into some new issues with the apples:

Update

Never mind. Apparently those are the wrong type of quotation marks. I didn't know Geany didn't convert those. Sneaky.

Edited by Nort

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