Jump to content
The Dark Mod Forums

Dragofer

Development Role
  • Posts

    2626
  • Joined

  • Last visited

  • Days Won

    157

Posts posted by Dragofer

  1. 2 hours ago, snatcher said:

    This is a nightmare for both mappers and modders, and not only in the audio department. As far as I can tell, and unless you employ elaborated tricks, it is all or nothing.

    Things can change, though.

    Since 2.10 or so FM defs will always override core defs if they both have the same name. FM files override core files of the same name and path.

    • Like 1
  2. 7 hours ago, cvlw said:

    Hello all.

    I have a hopefully easy question.  I just can't seem to search it properly.

    I want the player to select an item in the inventory (not drop to hands) and then USE (frob and then use key) on an object in the map.  But, the frob should only happen when that object is selected in the inventory and not just general frob.

    If I am confusing this with triggering, I apologize.

    Is there an example in an exiting map that I can study that does this type of thing?  I don't recall from any maps about this. Or, what is the general way to do this?

    The intent is to have the player find this inventory item and then go to various objects in the map and USE this item on the map objects.

    Advice?

    Thanks

    Clint

     

    You can look at the andersarken mask pedestal in an attic in The Painter's Wife. It has multiple ways of placing the mask on the pedestal:

    - Use the mask on the pedestal

    - Frob the pedestal while the mask is selected

    - Possibly also holding the mask near the pedestal (this is based on stim/response). Might not be implemented in this example, though.

    Seeking Lady Leicester also has similar setups wherever you can use the torc.

    • Thanks 1
  3. I'm on Windows 11 with v2.0 x64 of Foobar2000, DR version is 3.8. I have one custom component installed: UPnP MediaRenderer Output. I wanted that component to stream audio from my laptop to my internet radio (Imperial Dabman i200), but it barely works because the radio constantly has to pause to rebuffer and after a minute or two the connection breaks off completely.

    It also seems that Windows Explorer has started crashing whenever I try to open a folder after foobar2000 has been started. Not to mention my internet browser getting frequent lag spikes after I started using Youtube music in it.

    System stability sure took a nosedive recently with these audio fumblings... Doing a full virus scan now to be sure.

  4. I've been on DR 3.8 for a while, but today it started giving me an error with the title "Real Hard DarkRadiant Failure" and message "Could not acquire frame buffer lock", "Break into the debugger?". Regardless of whether I press Yes or No, the next message is "Unhandled exception", "An unhandled exception occurred. Press Abort to terminate etc.". If I press Abort or Retry on this message the top row of buttons (File, Edit, View etc.) flash rapidly and then DR shuts down. If I press Ignore I can continue using the program, but as soon as I interact with the UI the error message comes up again.

    So far I already tried to wipe my user settings in AppData/Roaming, but it made no difference.

  5. On 1/9/2024 at 11:03 PM, JavaGod said:

    I did -

      Reveal hidden contents

    I frobbed everything out of the ground and read the will. But the phial is not appearing. The only reason I know that the phial should appear is by reading on this forum.  Is there something else I need to do prior to digging up the box? For the record, I have not noclipped - got to the box legitimately in the game.

    Thanks.

     

    Don't really know what's going on. Maybe youd like to upload the save somewhere like Google Drive, Dropbox or Onedrive - in that case, what TDM version are you on? What objectives remain uncompleted?

    As a last resort you can force the script to happen via the console, but due to a bug you wont be able to make saves for the rest of the mission. Youre 80% done, though. Will need to look up the exact command.

  6. 1 hour ago, HMart said:

    But, yes now I see why, you may want to mark some individual surfaces as see through for AI, but still imo the keyword could be made more descriptive, for a material, like "aiSeeThrough" for example. 

    Normally this is done by setting clipcontents, which is a number that represents the sum of all enabled bitflags for clip towards i.e. bodies, moveables, AI vision and opacity. Each combination of bitflags has a unique sum. I dont know - and doubt - there's a separate keyword that alters some of these bitflags.

    When ai_see 0 is used in a material it means that a light that uses this material will not increase the visibility of objects in its radius towards AIs. I dont think theres any effect when used in a regular material for world or model surfaces.

  7. Normally the aiSee property is set on the light entity, and in this case the property has been set on the light's material. The property sets whether the light makes things more visible to AIs, so its not meaningful to set this property on model materials. If you want to stop AIs from reacting to an object you need to disable its visual stim, and if you want AIs to be able to see through it you need to give it a material that doesn't contain visual clip.

    Id say we can be grateful someone had the foresight to implement this as a material keyword, too, in cases like this one where you probably can't set spawnargs.

    • Like 3
  8. 52 minutes ago, JackFarmer said:

    Is there a way to

    • reduce the sound of the thunder? (s_volume on the entity does not work)
    • put the "ai_see - 0" property on the lightening?

     

    grafik.png.d91b02ae1bb4edc94b16665c3be920c2.png

    Id try calling a script event to fade the entity's volume to something lower than 0. Otherwise youll probably have to copy and modify the .fx definition.

    • Thanks 1
  9. @JackFarmeryour new water response might be getting counted as a separate response. Something I'd try is to transfer your new response effects to the inherited version of the water response. To do so, look at the spawnargs that mention your new effects (maybe something like "sr_response_effect6" "run_script") and change the number to the same ID as the inherited water response. Delete your own water response afterwards.

    • Like 2
    • Thanks 1
  10. 6 hours ago, datiswous said:

    Are the entities that are hidden while seen through the x-ray screen still being rendered by the engine?

    In my understanding the entities are still being rendered for the normal view, since the x-ray subview is an additional rendering instance. You can show both views at the same time with transparency if you want a ghostly effect.

  11. There are already flickering versions for a bunch of lit windows, which mappers can choose if they wish. IIRC I used them in Perilous Refuge for the ship windows and a certain house, but thought the effect would be too much if it were on all windows.

    I don't think there's anything to simulate a shadow being cast onto the window from inside the house. The closest thing is switching the window to an unlit version when the corresponding light sources are exintinguished.

    • Like 1
  12. The breakdown of the stim/response system is that entities can be set to emit stims around themselves, like a signal. If the stim reaches another entity that has a response to that type of stim, that entity will perform various response effects. For example a fire arrow emits a fire stim in a radius of x units every y milliseconds, so if an unlit candle with a fire response comes within that distance it'll perform the "relight self" response effect. The key part is that the stim is on one entity while the response is on a different entity.

    You can also create your own custom stims, for example the audiographs consist of stim-emitting tapes and machines that respond to that stim type. If you bring them close enough together a script is called to insert the tape and start playing the sound.

    Most stims are distance-based, but there are special cases such as frobbing and collision-based. Most of the stim types (fire, holy, visual etc.) only differ in name and ID #, and work the same way.

    • Thanks 2
  13. 2 hours ago, snatcher said:

    Thinking of the "transition period", I have a question: what happens if by the time 2.12 comes out an add-on has both a "tdm_user_addons.script" and a "tdm_user_addons_spiders.script"?

    There's nothing really hindering it, you just have to make sure that both scripts dont try to run at the same i.e. by starting with a version check to pick the right script.

    2 hours ago, snatcher said:

    First come first served, I guess.

    In the case of conflict the Modder (Addoner?) publishing his/her work last should be around listening and can be warned and take action.

    Core scripts already include the identifier "tdm" to minimise the risk of conflicts with FM scripts (originally: with Doom3 scripts). You could make up your own identifier such as "snatch", and in a community of this size it'll be unlikely that anyone else will think of the exact same one.

  14. 6 minutes ago, jaxa said:

    I hear these addons make saves incompatible between installations (relevant when swapping saves during beta testing)? That should be noted if accurate.

    This would be accurate since saves are specific to the scripts (and TDM build) that were installed at the time, so getting a newer version of an addon will make saves incompatible. Changing other custom files like entityDefs will probably cause issues as well. I added this to the creators' notes.

    • Thanks 1
×
×
  • Create New...