Jump to content
The Dark Mod Forums

Newbie DarkRadiant Questions


demagogue

Recommended Posts

On 1/2/2024 at 3:49 AM, JackFarmer said:

Thank you for the info. What can I do about the lightening affecting the light gem?

I got it! Just needed to move the ai_see out of the brackets.

lights/biground1
{	
	description "Round point light."
	{
		forceHighQuality
		map	lights/biground1.tga
		colored
		zeroClamp
	}
	ai_see 0
}

 

  • Thanks 1
Link to comment
Share on other sites

5 minutes ago, grodenglaive said:

I got it! Just needed to move the ai_see out of the brackets.

lights/biground1
{	
	description "Round point light."
	{
		forceHighQuality
		map	lights/biground1.tga
		colored
		zeroClamp
	}
	ai_see 0
}

 

I hereby award you the vacant title "DR Superbrain Problem Solver"! :)

Link to comment
Share on other sites

40 minutes ago, grodenglaive said:

😄 also @HMart who suggested moving outside the 2nd bracket, which I would not have thought to try.

Glad it worked it means that is a global material token, btw those 2nd brackets are called "stages" and a single material can have more than one stage (draw call). 

But I still don't get the reason why an AI vision feature, is handle at the material level?!

Normally you mark a entire entity/model invisible to the AI, not just a single surface on a model.

Edited by HMart
Link to comment
Share on other sites

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

1 hour ago, Dragofer said:

you want AIs to be able to see through it you need to give it a material that doesn't contain visual clip

Oh that makes sense! I didn't thought of that, it was just that "ai_see" keyword throwed me off, because to me implied more "object is or not visible to AI", so I wondered why not put that in the object .def file or mark it in the editor with a spawnarg?

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. 

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

On 1/4/2024 at 12:58 PM, grodenglaive said:
lights/biground1
{	
	description "Round point light."
	{
		forceHighQuality
		map	lights/biground1.tga
		colored
		zeroClamp
	}
	ai_see 0
}

Why is there a second bracket at all?

Edited by datiswous
Link to comment
Share on other sites

On 1/6/2024 at 1:25 AM, datiswous said:

Why is there a second bracket at all?

What do you mean? 

If you are talking of the second par of brackets then in my experience, materials are done like this.

[material name]
{
   [global material options]

   {
      //material stage 1 or draw call 1
      [local stage1 options]
   }

   {
      //material stage 2 or draw call 2
      [local stage2 options]
   }

  ...
}

So those brackets are used to define individual material stages or "layers".

Edited by HMart
  • Like 1
Link to comment
Share on other sites

1 hour ago, datiswous said:

Looking at the material file wiki page:

Frob Highlight Stage isn't needed anymore since 2.11 right? I thought I understood that there might still be a reason to use it sometime. If not, I'll update that wiki page.

Edit: The info is actually already there, but in a confusing way.

It is confusing.

The first example shouldn't have the frob highlight section in it, and a note should be added to the text saying the example is for version 2.11 and greater.

The subsequent stages should be under a different heading clearly labelled as being deprecated/obsolete and they are only there for reference.

  • Like 1
Link to comment
Share on other sites

Quote

twoSided Draw the front and back. Implies no-shadows, because the shadow volume would be coplanar with the surface, giving depth fighting

Use a nodraw surface with forceShadows to address this.

I think this text is a little too technical.

Link to comment
Share on other sites

1 hour ago, datiswous said:

I don't know if it's mentioned anywhere else on the Wiki, but it's worth mentioning that the first global keywords are for sound:

    // Use on of the predefined surface types like:
    // none, metal, stone, flesh, glass, wood
    stone

And this:

    //surftype15
    //description "carpet This is a carpet texture."

I think this is sound as well, but I also think 'description' does other stuff, for example for using with vine arrows:

    stone
    description	"vine_friendly"

If someone has a list (or link to code) where all this is defined for TDM so mappers are aware, that would be useful.

I would also move the 'special keywords' section up so it's before the obsolete stuff - that old stuff needs to be relegated to the very bottom.  I would also change the title of that section from 'No ambient and frob -stages needed' to something like 'Deprecated stages' and say it's just there for historical reference.

Edited by Frost_Salamander
  • Like 1
  • Thanks 1
Link to comment
Share on other sites

https://wiki.thedarkmod.com/index.php?title=Material_Files

I made a link to wiki page Surface Types.

16 hours ago, Frost_Salamander said:

I would also move the 'special keywords' section up so it's before the obsolete stuff - that old stuff needs to be relegated to the very bottom.  I would also change the title of that section from 'No ambient and frob -stages needed' to something like 'Deprecated stages' and say it's just there for historical reference.

I renamed it to Deprecated stages and moved it to bottom and hid them.

Btw. I'm not sure if frobstages are entirelly deprecated, because I think they can optionally still be tweaked:

So I think you don't have to specify them, but if you want you still can.

Edit: I added info for optionally customising frobstages.

Edited by datiswous
  • Like 2
Link to comment
Share on other sites

On 1/4/2024 at 12:58 PM, grodenglaive said:

I got it! Just needed to move the ai_see out of the brackets.

lights/biground1
{	
	description "Round point light."
	{
		forceHighQuality
		map	lights/biground1.tga
		colored
		zeroClamp
	}
	ai_see 0
}

 

hm..I I put a mtr file with that text in the materials folder...but then lightening is not triggered anymore in game on my end...

Link to comment
Share on other sites

@JackFarmer I just double checked - the lightning still works for me. Did you copy the entire lights.mtr and just insert "ai_see 0" under lights/biground1?  

btw, to test it I just used a func_fx for the lightning entity that the player triggers.

image.png.334a3f8fa2ffc81d102140af2d6b94f7.png

Edited by grodenglaive
stupidity
Link to comment
Share on other sites

Is it possible to override a single definition (from a .sndshd file for example) instead of whole files?

I want to replace some footstep sounds. If I include the sound shader defnition files, I'll have to keep them up to date with the base mod, and I don't want to do that. Instead, I just want to override single definitions in a separate file. Is that possible?

Link to comment
Share on other sites

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

 

Link to comment
Share on other sites

2 hours ago, Baal said:

Is it possible to override a single definition (from a .sndshd file for example) instead of whole files?

On 12/2/2022 at 8:23 PM, stgatilov said:

* It is now legal to override a single decl of core game in your mission.
Recall that "decl" means a material, a skin, an entityDef, a particle, etc.
Note that overriding a whole file from core game always worked as expected, but overriding a single decl from a file did not work reliably before (despite the common belief that it should).

This was a fix in 2.11 beta, so it's included.

I asume sound materials are included as well..

 

 

 

  • Like 1
  • Thanks 1
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

    • nbohr1more

      Was checking out old translation packs and decided to fire up TDM 1.07. Rightful Property with sub-20 FPS areas yay! ( same areas run at 180FPS with cranked eye candy on 2.12 )
      · 2 replies
    • taffernicus

      i am so euphoric to see new FMs keep coming out and I am keen to try it out in my leisure time, then suddenly my PC is spouting a couple of S.M.A.R.T errors...
      tbf i cannot afford myself to miss my network emulator image file&progress, important ebooks, hyper-v checkpoint & hyper-v export and the precious thief & TDM gamesaves. Don't fall yourself into & lay your hands on crappy SSD
       
      · 5 replies
    • OrbWeaver

      Does anyone actually use the Normalise button in the Surface inspector? Even after looking at the code I'm not quite sure what it's for.
      · 7 replies
    • Ansome

      Turns out my 15th anniversary mission idea has already been done once or twice before! I've been beaten to the punch once again, but I suppose that's to be expected when there's over 170 FMs out there, eh? I'm not complaining though, I love learning new tricks and taking inspiration from past FMs. Best of luck on your own fan missions!
      · 4 replies
×
×
  • Create New...