Jump to content
The Dark Mod Forums

Recommended Posts

Posted

Strange: When there's an AAS error like guards placed in walls, it will usually just say "AAS out of date" when spawning for that specific AAS type. Never seen that error before and wouldn't have known what it meant: Must be a rare circumstance.

Posted (edited)
44 minutes ago, MirceaKitsune said:

Strange: When there's an AAS error like guards placed in walls, it will usually just say "AAS out of date" when spawning for that specific AAS type. Never seen that error before and wouldn't have known what it meant: Must be a rare circumstance.

I'm good at causing uncommon errors🙃. I found this thread about it (there was nothing in the wikki): 

and this in the idtech4 modwikki: 

Error: i >= MAX_REACH_PER_AREA

Severe : An error issued by the AAS compiler. An Area that has been created has more than 256 adjoining Areas . You should simplify the map’s brush geometry (which the aas compiler uses as input) using monster clip to block off areas that the AI won’t/shouldn’t go.

This error may also be caused by surrounding the map with a large caulk hull with leaks between the map and hull.

Edited by grodenglaive
Posted
2 hours ago, grodenglaive said:

what have I done?

image.thumb.jpeg.4503f32ab23d1a0e3dc72b35bedd92af.jpeg

Yeah, if I recall correctly, this happens when the game detects too large an area for AIs to walk/fly around.  You have to limit the aas area calculation with vertical/horizontal MC for guards/elementals.

  • Thanks 1
Posted

I was wondering if there's a way to chain sounds in a sound shader, including randomized sounds. What I want is when a speaker is triggered, it plays a fixed sound, plays another random sound, then plays another fixed sound: I'm only aware of "leadin", but that's intended as a prefix to a single looped sound plus there's no "leadout" equivalent. I can use fixed delays to chain 3 speakers, but those wouldn't respect the length of the individual sounds and rely on me defining a fixed delay that won't line up with every possible choice... unless the speaker entity knows to trigger its targets when its audio finishes playing?

Posted
32 minutes ago, MirceaKitsune said:

I was wondering if there's a way to chain sounds in a sound shader, including randomized sounds. What I want is when a speaker is triggered, it plays a fixed sound, plays another random sound, then plays another fixed sound: I'm only aware of "leadin", but that's intended as a prefix to a single looped sound plus there's no "leadout" equivalent. I can use fixed delays to chain 3 speakers, but those wouldn't respect the length of the individual sounds and rely on me defining a fixed delay that won't line up with every possible choice... unless the speaker entity knows to trigger its targets when its audio finishes playing?

If you don't rely on speakers, you could try the convo system for that. However, I do not know how that would work with random sound files, you might have to figure out a way for that:

1. Create a ghost actor in a blue room. Mute the ghost actor and give it an invalid vocal set. Then give the ghost actor  a "snd_global - 1" property.

2 Create a convo with the ghost actor only. Then add commands, for example:

   a - ghost actor - play sound shader x1 (tick property: wait till sound shaders finishes)

  b - ghost actor- play sound shader x2 (tick property: wait till sound shaders finishes)

By doing so, the sound shaders will be played one after the other. However, the problem remains with your random sound files.


Alternatively, you could try so script that (and I think it would be easier to implement some random sound file through scripting). Maybe somethink like that:

0. Choose sound shader (defined or random)

1. Get length of sound shader x1

2. Activate sound shader x1

3. Wait (lenght of sounder shader x1)

4. etc....


I have never tried that and I do not know whether it works...

 

 

 

 

 

 

 

  • Thanks 1
Posted
5 hours ago, MirceaKitsune said:

Thanks. For what I wanted to do I settled for something simpler which was ultimately good enough.

 

I have to say, your Deux Ex Steampunk Mod (=DESM) is really taking shape! :)

  • Like 1
Posted

Something I just figured out:

How to move in tdm to a conversation:

  1. Open in DR the conversation editor (menu Map > Conversations...
  2. Note the conversation entity name
  3. Open TDM in mission and in console type teleport "conversation entity name"

It might be good to type notarget before teleporting to the location.

The conversation might not always start there, because maybe the trigger is elswhere. Also the entity doesn't strictly need to be near where the conversation takes place, but often is. Also, it seems that multiple conversations can be listed under such entity, while they are not all in specified location. So it might not always work.

  • Like 1
Posted

Is it possible to define a custom lantern that activates an overlay GUI when on then turns it off when no longer active? Zoom is optional, but if it's possible without needing a custom script just for that, I was thinking to combine the lantern and spyglass into a special item that does both functionalities. Is that much doable with the builtin script objects and just a custom player tool entity?

Posted
2 hours ago, datiswous said:

The conversation might not always start there, because maybe the trigger is elswhere. Also the entity doesn't strictly need to be near where the conversation takes place, but often is. Also, it seems that multiple conversations can be listed under such entity, while they are not all in specified location. So it might not always work.

Yep, I cannot speak for the others, but I am always defining all conversations in one entity.

Posted (edited)
18 hours ago, datiswous said:

Oh ok that's a bummer. I guess I have no clue about mapper's structure.

I just wonder how one would go if they want to test conversations. In my case that's for showing subtitles.

I am afraid there are a few more problems.

info_conversation is only used to define conversations and the "director's commands" (talk, walk, look, talk, etc.) with allocation of the required sound files. The entity does not have any other purpose and thus its location is uncritical. Some may also place the entity in a blue room.

The conversations themselves get activated via "atdm:target_startconversation" entities. Mappers can go on with the suggested names "[...]...conversation_X", but mappers can, of course, choose better fitting names like "start_convo_builder". Location of these entities does not matter as well.

On top, you need some sort of trigger - trigger_once for example or maybe a trigger_count if the mission maker wants the convo only to start when several other actions have been completed and counted.

So, to find out where a certain convo is located one must maybe know where and how triggers have to be activated to get the "start_convo" entity activated. Probably a non trivial task if you are not familiar with the map structure.

 

Edited by JackFarmer
Posted

Can still use an answer on my previous question: Is there any way to make a custom player lantern that adds a GUI overlay when active, possibly combine the functionality of both the Lantern and Spyglass so there's a bit of zoom while using it? I know it's possible with a script at worst, but I was wondering if a custom definition alone can do it too.

Posted
On 12/5/2024 at 9:55 PM, MirceaKitsune said:

I know it's possible with a script at worst, but I was wondering if a custom definition alone can do it too.

Spyglass functionality itself is a script in tdm.

Posted
18 hours ago, datiswous said:

Spyglass functionality itself is a script in tdm.

Right. An item can't run two scripts at once I take it, so you could have a custom spyglass also toggle a light attached to the player? May leave that one for another project when I'll take a proper look at scripting the item I had in mind.

Posted

I think you can use some of the code from the spyglass script inside of your own version for whatever you want to make.

I don't really know what you want to make, but I'm sure you know more about such things.

Posted
3 hours ago, datiswous said:

I don't really know what you want to make, but I'm sure you know more about such things.

Spoiler

Night-vision goggles... or spyglass? I guess it's not a big spoiler since I'm not saying which FM and it's not story relevant, but hope to have it as a surprise if I ever do it. It's easy to do with a custom scriptobject, but I was wondering if I could do without. The idea was to have an item that works the same as the spyglass just a different overlay and less zoom (green filter with horizontal lines), it must also turn on a bright light when active which doesn't affect the lightgem.

Posted
Spoiler

Btw. have you thought of x-ray goggles? I think you can also show lights through x-ray, that without the x-ray would be off. I'm not sure if that could affect your visibility though. Haven't tested with it enough.

 

Posted (edited)
Spoiler
Quote

Lights: currently no way to manipulate these with the xray feature.

https://wiki.thedarkmod.com/index.php?title=Xrays#Supported_entity_types

bummer.

I guess you can just switch a green (ambient?) light on when activating the goggles which has Spawnarg ai_see set to 0.

 

Spoiler

Although spawnarg suppressInSubview contradicts this:
 

Quote

suppressInSubview: specific to lights, setting this to "1" makes the light visible only in normal vision while "2" makes it visible only in xray vision. Note that this affects other subviews like mirrors and camera screens, too.

🤔

 

Edited by datiswous
  • Thanks 1
  • 2 weeks later...
Posted (edited)

Hey I just found out what ALT-V does (or Edit > Paste to Camera). You can copy something in the map and then with that command it pasts it where the camera view is in your map. I didn't see this before, sorry if it's very basic info.

 

Oh and this might be a useful filter (sorry for double posting, but it seems a better place):

image.thumb.png.3bae4a43a08e5902712935da8d2ce984.png

Edited by datiswous
  • 2 weeks later...
Posted (edited)

From the Ambient Light Wiki:

Properties: No shadows, No specular, Bumpmapping or Directionality (Note: The "Enhance Ambient" does add Bumpmapping )

I don't see any place to enable this Enhance Ambient effect. Has that been deprecated?

also, Happy New Year!

Edited by grodenglaive
Posted (edited)

A question about using a cubemap for ambient lighting... It looks great outside, but unfortunately the lighting also appears inside buildings, which does not look good.  I tried toggling the cubelight off when you inside, but that is terribly jarring. Is there any way around that?  

(edit) Of course: instead of using an ambientCube use a regular Cubic Light.

 

Edited by grodenglaive
solved

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

    • taffernicus

      My First time trying dromEd and DR. It's quite intimidating lmao 
      I'm starting to get the big picture
      Hope i get enough time , juggling multiple interests has never been easy
      · 7 replies
    • The Black Arrow

      Well, this is just sad...I was not able to play any Thief or TDM whatsoever, why? Too busy the past 2 months, this month I'm not as busy BUT it's also very heaty in my place.
      I can't play Thief when it's not at least 15c or lower, the game demands to be played when it's cold for...Well, may sound stupid but I'll just say it, for that "immersion".
      It's kinda like playing Quake during Summer, which unless it's the Summer Jam mod, I don't think it's as fun.
      · 6 replies
    • STiFU

      Oh my gosh, I just realized, I will have my 20 year Dark Mod anniversary this year. 😮 I've literally spent half my life with The Dark Mod. That's crazy!!
      · 8 replies
    • Arcturus

      I need money. Anyone wanna hire a 3d artist?
      · 4 replies
    • Petike the Taffer

      The preliminary working titles for the missions in my now-in-development Partners in Crime series: 
      - Partners in Crime 1: A Mere Trinket
      - Partners in Crime 2: Beacon Burglary
      - Partners in Crime 3: In the Bleak Midwinter
      - Partners in Crime 4 (5 ?): Fishy Dealings
      - Partners in Crime 5 (4 ?): A Thief in the Night

      No title stealing, please.  In return, I promise to finish these. I do stress the preliminary part. Beyond the broad strokes storyline, plot, objectives, briefings and the (currently built) layouts of these FMs, I haven't fully decided about every single detail yet, including the exact order of the missions (4 and 5 might switch places, with the story adjusted accordingly). I want the overall plot to be plotted out a bit in advance and not suffer too much from inserting prequels later. I also prefer to let my FM building fill out part of the details naturally.

      Currently working on the second FM, and once I do enough work on the current prototype, I'll work on the first one, until I get that one released. Then complete the second one, get that one ready for release (hopefully) a few months later, and so on. I want most of the early missions to be fairly small and confined, and get a bit bigger as I grow more confident in my FM making skills.

      Though there is an overarching storyline to this series, the missions themselves are mostly episodic in nature. They factor into the character development of the two main characters I'll have in the series, but it's the kind of continuity where the mission's own plot and story wouldn't depend on it. 
      · 2 replies
×
×
  • Create New...