Jump to content
The Dark Mod Forums

Newbie DarkRadiant Questions


demagogue

Recommended Posts

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!

 

 

Link to comment
Share on other sites

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!

 

 

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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
Link to comment
Share on other sites

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

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

  • 2 weeks later...

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                                                                                                  

                              

Link to comment
Share on other sites

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
Link to comment
Share on other sites

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                                                                                                  

                              

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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                                                                                                  

                              

Link to comment
Share on other sites

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

Link to comment
Share on other sites

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                                                                                                  

                              

Link to comment
Share on other sites

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
Link to comment
Share on other sites

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                                                                                                  

                              

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

@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

Link to comment
Share on other sites

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                                                                                                  

                              

Link to comment
Share on other sites

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                                                                                                  

                              

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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

Link to comment
Share on other sites

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                                                                                                  

                              

Link to comment
Share on other sites

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

    • Sotha

      WIP mission name confirmed: "The Last Offering"
       
      · 5 replies
    • Sotha

      Today I started writing readables for my WIP mission.
      I wrote my usual text and then crammed it into AI and boom, high quality stuff comes out.
      I used to say that clipper is the mappers best friend, but now it seems it is more like "AI is the mappers best friend."
      · 2 replies
    • The Black Arrow

      Just saw further into 2.13 development, or is it 2.14? Anyway, proper Parallax Mapping...Absolutely fuck yes, please!
      · 2 replies
    • nbohr1more

      Happy Halloween! "Gem of Souls" is out:
       
      Psst, someone let Darkfate know...
      · 1 reply
    • The Black Arrow

      Is there a thread for "Moving Day 2: Look Who's Moving Now"? If not, could someone hint me on what is Dick's birthday? This mission is quite enjoyable on its disturbing creepy implications.
      · 3 replies
×
×
  • Create New...