Jump to content
The Dark Mod Forums

Recommended Posts

Posted
2 hours ago, nbohr1more said:

You can use the areaLock entity keyword on the cubic ambient or you can fade the ambient using the location system.

Thanks! I actually changed the light to a Cubic - cubelightCube and used the texture I had made for the ambientCube and that did the trick.

  • Like 1
Posted
45 minutes ago, grodenglaive said:

Thanks! I actually changed the light to a Cubic - cubelightCube and used the texture I had made for the ambientCube and that did the trick.

If it's not the ambient cubemap, then it's shadow casting. If you are just illuminating the church then that's probably fine but if you are lighting the entire outdoors then the performance is pretty heavy usually.

  • Thanks 1

Please visit TDM's IndieDB site and help promote the mod:

 

http://www.indiedb.com/mods/the-dark-mod

 

(Yeah, shameless promotion... but traffic is traffic folks...)

Posted
17 hours ago, nbohr1more said:

If it's not the ambient cubemap, then it's shadow casting. If you are just illuminating the church then that's probably fine but if you are lighting the entire outdoors then the performance is pretty heavy usually.

yes, it was a good 20% performance hit:/ I'll try out your other suggestions.

Posted

I was just wondering: Can you set an ai to open (locked) doors and let them walk through them, but only closing the door when they are looking in the direction of the door?

The use case is that you want players to be able to sneak trough an open door when an ai passes through it, but only then, because at other times the door is closed and locked. You can make the door auto-close in time, so the player has limited time, but I find this a bit unrealistic behavior and usually not needed anymore for performance. The idea is that the ai will not close the door after walking through it, but coming past the door from another patrol route (or maybe another ai is passing) the door will be closed by him.

Posted
4 hours ago, datiswous said:

I was just wondering: Can you set an ai to open (locked) doors and let them walk through them, but only closing the door when they are looking in the direction of the door?

 

You mean "when they are looking in the direction of the open door?"

Posted

ai_should_not_close spawnarg on the door will leave it open. To get them to close it later, maybe use Path objects to get the guard to interact with the door (that will close it and lock it I think). You may have to do some scripting to dynamically get the guard to interact with the door only when it is open. No idea if this will work, just throwing out ideas.

  • Like 1
Posted
5 hours ago, JackFarmer said:

You mean "when they are looking in the direction of the open door?"

Yes indeed. Usually they open the door, walk through it, turn around and close the door. Because of the turn toward the door to close it it's not possible to follow the ai through the door opening.

Posted (edited)

I was testing a bit with the Arx: EoS fish and I placed a monsterclip brush around him, but the fish just floats through it. How is that possible?

Edit: Maybe monsterclip needs a minimum thickness?

Edit2: That seems to be the case.

Edited by datiswous
Posted
16 hours ago, datiswous said:

Yes indeed. Usually they open the door, walk through it, turn around and close the door. Because of the turn toward the door to close it it's not possible to follow the ai through the door opening.

You can grab the door as it's closing, and if you do it right, the AI won't notice.

I always assumed I'd taste like boot leather.

 

Posted
35 minutes ago, Bibliophael said:

I am but a helpless baby modder and I somehow deleted my info_player_start object in my map. How can I add a new one?

Right click on one ortho view, Create player start

I always assumed I'd taste like boot leather.

 

Posted (edited)
On 7/15/2024 at 11:15 AM, datiswous said:

@Amadeus implemented this:

https://bugs.thedarkmod.com/view.php?id=6552

If you have more input, go there.

I added this info into:

https://wiki.thedarkmod.com/index.php?title=Path_Nodes#path_follow_actor

But maybe @Geep , @Frost_Salamander, or @Amadeus can check if I implemented this correctly (and just edit the info), because I don't entirely know where to place it. I also don't know if it works both with AI following AI and AI following player.

If the info is not specified somewhere I think nobody will ever be able to use it.

Edited by datiswous
  • Like 1
Posted
3 hours ago, datiswous said:

I added this info into:

https://wiki.thedarkmod.com/index.php?title=Path_Nodes#path_follow_actor

But maybe @Geep , @Frost_Salamander, or @Amadeus can check if I implemented this correctly (and just edit the info), because I don't entirely know where to place it. I also don't know if it works both with AI following AI and AI following player.

If the info is not specified somewhere I think nobody will ever be able to use it.

Maybe a dumb question but where do the spawnargs go?  On the follower or the actor?  I'm guessing the follower? If so can you put that in the article?

TDM Community Github: https://github.com/thedarkmodcommunity

My fan missions: The Hare in the Snare, Part 1

The Lieutenant Series: In Plain Sight  High Expectations Foreign Affairs

Posted
1 hour ago, Frost_Salamander said:

Maybe a dumb question but where do the spawnargs go?  On the follower or the actor?  I'm guessing the follower? If so can you put that in the article?

The spawnargs go on the follower. There is prefab, ai/paths/path_follow_actor.pfbx, that you can take a look at to get a full idea of the setup

  • Like 1
Posted
4 minutes ago, Amadeus said:

The spawnargs go on the follower. There is prefab, ai/paths/path_follow_actor.pfbx, that you can take a look at to get a full idea of the setup

I'll add that to the wiki article. The location of that spawnarg info is fine, except I'll give it a new subhead so that it's clear it applies to both AI & player as actor.

  • Like 2
  • Thanks 1
Posted

@Amadeus, are the defaults for the new spawnargs the same as the old #defines:

#define DISTANCE_FOLLOWER_REACHED 60
#define DISTANCE_FOLLOWER_CATCHUP_DISTANCE 480
#define DISTANCE_FOLLOWER_CLOSE_ENOUGH_TO_STOP_RUNNING 180

The default values should be stated in the wiki too.

Posted (edited)

If you have missing textures in your map that give warning messages, like:

WARNING: Couldn't load image: default

But you don't know where they are and they could also be on specific faces, you can use this DR filter and fix them:

image.png.78720b588f42a72490a46c76ec4527db.png

image.png.621d95ea8658b71a6795702c4e9394cb.png

It hides everything that has textures applies except where texture _default is used. Texture _default is what DR saves in the map when there is no texture applied.

Edited by datiswous
  • Like 2
  • Thanks 1

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

    • Airship-Ballet

      If anyone would like some ambient sounds for any of their work please do hit me up - I've tons of strings both physical and sampled that I love making loops with
      · 1 reply
    • Ansome

      While updating my first FM, I noticed a lot of silly things I did because I was still new to DR. For example, there was a model for a wheel that I wanted the player to be able to turn that had its origin off-center. I didn't know I could just re-export the model inside DR to fix its origin, so instead that wheel triggers a func_mover it's bound to. A silly solution in retrospect, has anyone else made somewhat janky or roundabout solutions to technical challenges in their maps? I'd love to hear about 'em!
      · 5 replies
    • datiswous

      If you use DarkRadiant in Linux while using a dark theme, a large amount of the icons are hard to see, because it's dark-color on dark background (wish DR darkmode was a little less dark). A workaround is switching to a light theme when using DR. I'm using XFCE as DE, so I made this script (mostly copied from this code), which works as a toggle. Then I set it to a keyboard shortcut. The switch works even when DR is already opened.
      current_theme=$(xfconf-query -c xfwm4 -p /general/theme) if [[ $current_theme == 'Adwaita-dark' ]]; then xfconf-query -c xsettings -p /Net/ThemeName -s 'Mint-X-Grey' xfconf-query -c xfwm4 -p /general/theme -s 'Mint-X-Grey' else xfconf-query -c xsettings -p /Net/ThemeName -s 'Adwaita-dark' xfconf-query -c xfwm4 -p /general/theme -s 'Adwaita-dark' fi This only works for the XFCE DE though.
      · 0 replies
    • datiswous

      I just bought/build a new pc, so probably less performance related whining from my part from now on..
      Sorry in advance!
      Here are the specs
      · 4 replies
×
×
  • Create New...