Jump to content
The Dark Mod Forums

Newbie DarkRadiant Questions


demagogue

Recommended Posts

Is there a way to create an "updating readable" (i.e. a journal that can have new entries added on to the end of it during various parts of a mission)? Would swapping out the xdata def of the readable do the trick? If so is that something that can be done with a script?

But you should walk having internal dignity. Be a wonderful person who can dance pleasantly to the rhythm of the universe.

-Sun Myung Moon

 

My work blog: gfleisher.blogspot.com

Link to comment
Share on other sites

"The measure of a man's character is what he would do if he knew he never would be found out."

- Baron Thomas Babington Macauley

Link to comment
Share on other sites

For a texture to translate it needs the 'translate' keyword in its material file followed by a speed in the u and v direction that depends on a shaderparm.

If you make a func_static with that texture on it you can give it a value for the shaderparm.

So, you can trigger a script function that changes the value of the shaderparm.

 

That would be one way to do it.

  • Like 1
Link to comment
Share on other sites

Is it possible to make just one room darker than others?

 

It's not possible to move the room outside of the ambient_world zone and I have tried adding a light that's resized to the room which has the ambient light info set on it and I made it really dark but the room in the game still is as normal. I didn't know if it was working and then I changed the settings to make it brighter and then the room inside TDM did get brighter.

 

Is there a way to making the room darker different than this?

Link to comment
Share on other sites

You do it with location settings

http://wiki.thedarkmod.com/index.php?title=Location_Settings#.22ambient_light.22

 

The ambient light can be altered for a specific location.

 

You might want to set the neighbouring locations lights to an intermediary value so that the shift is not too jarring.

Clipper

-The mapper's best friend.

Link to comment
Share on other sites

Awesome! I don't know how well that will work in this situation but I will give it a try. Thanks!

 

In addition is there a way to have a lantern spawn in game that starts turned off? the spawnarg "extinguished" seems to do nothing whether it is checked or not

Link to comment
Share on other sites

Extinguished is for candles/torches, "start_off" should do it for others.

 

I tried that spawnarg but it didn't work. And on the lantern an inherited spawnarg is extinguished but both start_off and extinguished do nothing... Perhaps it is a bug then in game?

 

I can pick the lantern up in game and turn it off and move it around as normal

Link to comment
Share on other sites

I tried that spawnarg but it didn't work.

 

Doh! The workaround then is to trigger it at the start of your map. If you don't have worldspawn targeting anything else, and only one lamp to do it with, you can simply have your brushes "target" it (note, not "target0" or another number, "target" itself), otherwise have them target a trigger_relay.

 

(If you've changed it's "levels" spawnarg, trigger it enough times to turn it off.)

 

PS: If it's not the type of light that responds to a trigger, like electrics (which do respond to "start_off"), then might have to set up a stim/response to douse it when triggered.

Edited by RJFerret
  • Like 1

"The measure of a man's character is what he would do if he knew he never would be found out."

- Baron Thomas Babington Macauley

Link to comment
Share on other sites

@Goldwell: what lantern entity are you using? Another option, depending exactly what kind of light it is, is to trigger a callobjectfunction entity that targets your light and has the spawnarg "call" "lightsOff". That works on light entities that spawn their light via def_attach. Some lanterns have a "frob_extinguish" function that can be called using the same method. And some come with an alternative "Off" form of the def_attached light so that you can just replace the def attachment spawnarg instead of triggering anything.

  • Like 1
Link to comment
Share on other sites

If you're trying to add a light that is outside of your sealed geometry for effect, is it possible to just make caulk tunnels out to them and seal around them so that they're actually enclosed in the "sealed" part of the map? I'm trying to do this and it seems no matter what I try I keep getting leaks during dmap. The pointfile is out in the middle of nowhere pointing to nothing.

 

Here's an example.

 

I have a light torch (close to) attached to func static geometry out in the void for 'background' buildings. Is is possible to extend a caulk tunnel (the pink lines) out to the torch and surround it so that its part of the sealed geometry?

 

The one thing I haven't tried is just making it part of the FS which now seems like it may work. This is a standard torch entity w/flame attached to it pre-built.

 

lfomUg7.jpg

Link to comment
Share on other sites

You'll need to wrap your whole FS building in a caulk cube, else the building itself will be the leaking entity out in the void. No need for it to be connected to your main map as long as you have a bit of the FS in your current visleaf (which is what the blue dot in your diagram means, I guess).

 

You might have a problem getting the model torch to show up. I had a similar problem and I haven't found a way to have both a model and a set of primitives assigned to a single FS. All models are part of an FS when included in a map, so there's apparently no way to make a model render outside of the current visleaf, becasue you can't assign a bit of wordspawn to the same FS entity as the model. Hoping someone can chip in with a solution.

 

Since the torch will never have to be seen close up, a workaround would be to replace the torch model with a simple cone patch and make it part of your FS.

Link to comment
Share on other sites

Yes the small blue box is the part of the FS distant building that is in the visleaf.

 

So you can't just put the torch on the building and make it part of the FS, and it will light when the map starts? That would clearly be the simplest solution.

Edited by Lux
Link to comment
Share on other sites

Yeah, because the torch is in front of the building, skybox rendered in front it would hide the building. Actually I did it in a test map and it worked fine so I guess I'll just rebuild all the map boundries where I have the tunnels going out to the torches and hopefully find the leak.

 

EDIT: Doh! ...when I destroyed and the rebuilt a FS ...yeah, I left the origin out in the void. Good news is... now it works fine! :)

Edited by Lux
Link to comment
Share on other sites

You'll need to wrap your whole FS building in a caulk cube, else the building itself will be the leaking entity out in the void.

 

Also, just a heads up on this experiment, the caulk tube surrounding the torch cuts right through the FS and seals as if the FS is not there. So the engine is basically disregarding it as an entity and the worldspawn tube takes priority.

 

I initially thought that intersecting the FS geometery might also cause leaks but this isn't the case.

 

j54Djlm.jpg

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

    • Petike the Taffer

      I've finally managed to log in to The Dark Mod Wiki. I'm back in the saddle and before the holidays start in full, I'll be adding a few new FM articles and doing other updates. Written in Stone is already done.
      · 4 replies
    • nbohr1more

      TDM 15th Anniversary Contest is now active! Please declare your participation: https://forums.thedarkmod.com/index.php?/topic/22413-the-dark-mod-15th-anniversary-contest-entry-thread/
       
      · 0 replies
    • JackFarmer

      @TheUnbeholden
      You cannot receive PMs. Could you please be so kind and check your mailbox if it is full (or maybe you switched off the function)?
      · 1 reply
    • OrbWeaver

      I like the new frob highlight but it would nice if it was less "flickery" while moving over objects (especially barred metal doors).
      · 4 replies
    • nbohr1more

      Please vote in the 15th Anniversary Contest Theme Poll
       
      · 0 replies
×
×
  • Create New...