Jump to content
The Dark Mod Forums

Recommended Posts

Posted

Hey, so, how does parallelSky work? I can't get a light to shine through the portal_sky texture on a fresh 2.08 installation. "parallelSky 1" with or without "parallel 1" also in the spawnarg list do nothing, I've tried it in two different FM WIPs and the result is a regular parallel light. Does it have to be sized as big as the ambient_world light (covering the entire map)? That feels very counterintuitive to what the new feature is purported to do.

My FMs: The King of Diamonds (2016) | Visit my Mapbook thread sometimes! | Read my tutorial on Image-Based Lighting Workflows for TDM!

 

 

Posted

Alright, so I did some more testing and it's just a bug fix for a very old glitch that I've encountered a lot as well, I thought it was going to be an ease-of-use feature but I suppose you just do the same sky light setup you would've before without having to deal with glitching shadows.

My FMs: The King of Diamonds (2016) | Visit my Mapbook thread sometimes! | Read my tutorial on Image-Based Lighting Workflows for TDM!

 

 

Posted

Is there some easy way to check by script whether an AI is unconscious? I've seen people around here using something like IS_UNCONSCIOUS, if I remember correctly, but as far as I'm aware those all-capitals words are only available in coding, not in Doomscript.

Posted (edited)
29 minutes ago, Dragofer said:

Is there some easy way to check by script whether an AI is unconscious? I've seen people around here using something like IS_UNCONSCIOUS, if I remember correctly, but as far as I'm aware those all-capitals words are only available in coding, not in Doomscript.

AI_KNOCKEDOUT

EDIT:

as in

ai guard = $atdm_ai_builder_guard_lesser_1;
if (guard.AI_KNOCKEDOUT)
    {
    }

Edit 2:

One more thing, if you knock out an AI and then kill him, I think AI_KNOCKEDOUT is still true. So if you want to check that an AI is knocked out but not dead use:

if (guard.AI_KNOCKEDOUT && !guard.AI_DEAD)

 

Edited by joebarnin
  • Thanks 1
Posted

@joebarnin Thanks for the clarification via the example - I had always been trying to call AI_KNOCKEDOUT directly on the AI, in which case map loading fails because AI_KNOCKEDOUT is an unknown value. First declaring the AI as an ai and using it as a variable makes it work.

Oddly there's no listing of the AI_KNOCKEDOUT function anywhere on thedarkmod.com domain except for a forum post and a bugtracker, so I'm guessing you picked this up while browsing through the source code.

Posted
9 hours ago, Dragofer said:

Is there some easy way to check by script whether an AI is unconscious? I've seen people around here using something like IS_UNCONSCIOUS, if I remember correctly, but as far as I'm aware those all-capitals words are only available in coding, not in Doomscript.

Depending on what you want to do, you could use the objective system. There is the "AI is knocked out" type, where you can specify if you want one specific AI or any of a certain type to be knocked out. Form there you can either call a script or set objectives as completed/failed. It might be easier than scripting, depending on what you want to do.

  • 2 weeks later...
Posted

Hi everyone, absolute novice Dark Radiant user here with what may be a stupid question:

 

I made a room with some ankle-high water in it. Initially I made it a simple rectangular room but, later on, realised that was boring and changed its shape to a trapezium. I did this by manually moving some of the edges of the brushes making up the walls, ceiling, and floor of the room. However, I am not able to highlight and move the edges of the water brush. Why is that, and how do I fix it?

My missions:           Stand-alone                                                      Duncan Lynch series                              

                                      Down and Out on Newford Road              the Factory Heist

                                The Wizard's Treasure                             A House Call

                                                                                                  The House of deLisle                                                                                                  

                              

Posted

It's configured as a multi-part entity (even if only with 1 part), in which you have to navigate to the particular part you want in order to resize. So, after you select the brush overall, hit TAB. Then you can resize it. Hit TAB again to return to the normal mode.

I had the same problem when first working with water.

  • Like 1
Posted

Thanks! That worked perfectly.

I'm sure I'll have lots more to ask later.

My missions:           Stand-alone                                                      Duncan Lynch series                              

                                      Down and Out on Newford Road              the Factory Heist

                                The Wizard's Treasure                             A House Call

                                                                                                  The House of deLisle                                                                                                  

                              

Posted
21 hours ago, thebigh said:

Hi everyone, absolute novice Dark Radiant user here with what may be a stupid question:

 

I made a room with some ankle-high water in it. Initially I made it a simple rectangular room but, later on, realised that was boring and changed its shape to a trapezium. I did this by manually moving some of the edges of the brushes making up the walls, ceiling, and floor of the room. However, I am not able to highlight and move the edges of the water brush. Why is that, and how do I fix it?

Welcome to the community! Keep in mind that the water entity can overlap with the walls. So if you just made the room smaller, you would not necessarily have had to resize at all. If the room got bigger or the overlapping part can be seen in another room, it should be resized, of course, but otherwise you can save some time.

Posted
3 minutes ago, Destined said:

Welcome to the community! Keep in mind that the water entity can overlap with the walls. So if you just made the room smaller, you would not necessarily have had to resize at all. If the room got bigger or the overlapping part can be seen in another room, it should be resized, of course, but otherwise you can save some time.

I already have some raised plinths in the water made of solid brushes that overlap with the water. Good to know that won't cause me any problems. But from my experience mapping for other games I've come to prefer avoiding overlap wherever practical, mostly because bits of brushes jutting out everywhere makes the top-down view confusing. Everyone's workflow is different I guess. Maybe as I get more familiar with Dark Radiant my style will change. Who knows? For now I'm happy just to have successfully made a single room with no leaks and no Z fighting.

My missions:           Stand-alone                                                      Duncan Lynch series                              

                                      Down and Out on Newford Road              the Factory Heist

                                The Wizard's Treasure                             A House Call

                                                                                                  The House of deLisle                                                                                                  

                              

Posted
On 7/11/2020 at 5:29 PM, Dragofer said:

@joebarnin Thanks for the clarification via the example - I had always been trying to call AI_KNOCKEDOUT directly on the AI, in which case map loading fails because AI_KNOCKEDOUT is an unknown value. First declaring the AI as an ai and using it as a variable makes it work.

Oddly there's no listing of the AI_KNOCKEDOUT function anywhere on thedarkmod.com domain except for a forum post and a bugtracker, so I'm guessing you picked this up while browsing through the source code.

AI_KNOCKEDOUT isn't a function, it is a boolean. You can find its definition in tdm_ai.script, line 80.

 

 

  • 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

I want to change the font on an immobile paper sheet. When trying to change the GUI definition in the Readables editor, Dark Radiant freezes up and has to be shut off with Task Manager. How do I fix this?

My missions:           Stand-alone                                                      Duncan Lynch series                              

                                      Down and Out on Newford Road              the Factory Heist

                                The Wizard's Treasure                             A House Call

                                                                                                  The House of deLisle                                                                                                  

                              

Posted (edited)
31 minutes ago, thebigh said:

I want to change the font on an immobile paper sheet. When trying to change the GUI definition in the Readables editor, Dark Radiant freezes up and has to be shut off with Task Manager. How do I fix this?

This sounds like the crash that happened in DR version 2.7. Check which version you have and make sure you have version 2.8, as this particular crash was fixed

Edited by Amadeus
Posted

It was V 2.8 but maybe I flubbed something when I updated from the previous version, because uninstalling and reinstalling seems to have fixed the problem. Thanks for the help :)

My missions:           Stand-alone                                                      Duncan Lynch series                              

                                      Down and Out on Newford Road              the Factory Heist

                                The Wizard's Treasure                             A House Call

                                                                                                  The House of deLisle                                                                                                  

                              

Posted

The nice think about 2.08 is it reports all the ineffective visportals.

The bad thing is that then you have to fix them.😬

One question I've had, that's not clearly addressed in "Visportals/Multiple Joined Visportals": Can you "combine" 2 visportals at right angles (or more generally, non-coplaner)? That is, you have a vertical visportal, let's say across a corridor at a point that has an extensive hole in the floor. There's a horizontal visportal across the hole. Is it possible to make this arrangement work? If so, I imagine you have to make the vertical visportal's lower edge exactly touch the horizontal visportal active surface. Be good to know if this ever possible.

Posted

@Geep: If I get you correctly (and it hasn'T been changed :P ) than yes, it is possible. Visportals edges have to touch either a worldspawn brush or another visportal, whereas in the first case the VP can even reach into the Brush, although this is probably not desireable (one generally tries to keep the VP's as small as possible).

  • 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

I'm trying to get a secret swinging door to work but I can't figure out what I'm doing wrong.

The idea is to have a shelf swing open when I unlock a nearby lock on the wall. However, on a model, the hinge isn't in the right place so I made a func_static with nodraw texture that will actually control the movement, with the shelf bound to it. Here's what I have:

The Key

name   shelfkey

The amazing invisible swinging door controller

classname atdm:mover_door

frobable 0

locked 1

pickable 0

used_by shelfkey

name swingdoor

The Lock

classname atdm:mover_button

target0  swingdoor

The visible shelf

bind  swingdoor

 

As far as I can see, this should work. It's the same setup used in, eg, Mother Rose, to control the secret doors. However, when I try the key it only makes the "locked" sound (emitted by the door and not the lock) and nothing happens. What am I doing wrong?

My missions:           Stand-alone                                                      Duncan Lynch series                              

                                      Down and Out on Newford Road              the Factory Heist

                                The Wizard's Treasure                             A House Call

                                                                                                  The House of deLisle                                                                                                  

                              

Posted (edited)

The way I've done it is to make the Lock an atdm:froblock, with spawnargs: used_by=shelfkey, target=swingdoor

and then your swingdoor doesn't need used_by or locked.

Edited by joebarnin
  • Like 1
Posted

Yes, that's much simpler. Thanks :)

My missions:           Stand-alone                                                      Duncan Lynch series                              

                                      Down and Out on Newford Road              the Factory Heist

                                The Wizard's Treasure                             A House Call

                                                                                                  The House of deLisle                                                                                                  

                              

Posted

A button is no lock. So, if you use this entity, it cannot interact with a key, but you simply have to push the button to open the door.

The reason, that the shelf does not swing open like you would like, is because the origin is at the centre of the model and any operations use that as the point of action. I would suggest (if the space allows it) to just make it a sliding door. For that you simply have to enter values into the "translation" spawnarg for the direction in which you want the door to slide (and remove "the rotate" spawnarg, of course), which would avoid the complicated setup.

Posted

Well, his setup isn't really complicated. A static model bound to an invisible door. I've used similar setups in the past either if I needed a model to rotate around a point different then the origin (for example a swinging chain).

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 (edited)

Back with another daft question...

 

I'm getting a small patch of light on one of my walls. I identified which light is causing it, (a test torchflame to illuminate a cellar until I get around to lighting the level properly) and there is no direct line of sight from it to the anomalous patch: I drew a long skinny brush from the center of the torchlight to the center of the patch to guide my eye, and to get there the light has to pass through no less than two func_statics and two worldspawn brushes.

What is going on? I'm not getting any sealing leaks or even any dropped visportals, and my worldspawns are definitely fat enough not to cause the "very skinny brushes cause light leaks" issue others have encountered. How do I fix it?

Edited by thebigh

My missions:           Stand-alone                                                      Duncan Lynch series                              

                                      Down and Out on Newford Road              the Factory Heist

                                The Wizard's Treasure                             A House Call

                                                                                                  The House of deLisle                                                                                                  

                              

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