Jump to content
The Dark Mod Forums

[2.11] Frobstages: automatic generation and customization


stgatilov

Recommended Posts

The latest dev build (dev16629-10139) contains some changes regarding frob highlight.
The full explanation is given in 5427.

Most importantly, the material stages are now generated by default if they are missing.
The core materials will be cleaned accordingly in near future.


Also we added new syntax for customizing frob-highlight in simple cases.

First of all, you can set frob-highlight with custom texture (e.g. it can be specular map) and arbitrary coefficients:

  • frobstage_texture textures/darkmod/sfx/whiteglass2 0.25 0.5

Since diffuse texture is used in most materials, here is a shortcut for it:

  • frobstage_diffuse 0.1 0.35

The first number is the multiplier applied to texture, and the second number is the amount of white color added.
You can also make non-white multiplier or addition by putting three numbers in parentheses, e.g.:

  • frobstage_diffuse (0.15 0.35 0.15) 0.4

Of course, the most recommended approach is to not write any frob text, in which case frobstages are added implicitly as "frobstage_diffuse 0.15 0.4".
The implicit frobstages are added only if there are no frobstages specified explicitly.

If you want to suppress implicit generation of frobstages (not recommended), you can write:

  • frobstage_none

Finally, if you want to make something special and customizations listed above are not enough, then you can just write frobstages the old way via parm11 parameter. The old frob-highlight stages should continue to work properly.
If you write frobstages manually, please follow the rules (or you'll get warnings):

  1. Start every frobstage exactly with if (parm11 > 0) condition.
  2. Do not mention parm11 outside frobstages.

 

P.S. Here is previous discussion of frob highlight, in case anyone is interested:

 

  • Like 3
  • Thanks 1
Link to comment
Share on other sites

1 hour ago, stgatilov said:

The old frob-highlight stages should continue to work properly.

So do the new frob-highlight stages look different? A lot of missions include their own materials with material stages included. This could mean, that sometimes in the mission the highlight looks different, depending of using their own materials or use of core files.

Sorry if this is total nonsense.

Link to comment
Share on other sites

50 minutes ago, datiswous said:

So do the new frob-highlight stages look different? A lot of missions include their own materials with material stages included. This could mean, that sometimes in the mission the highlight looks different, depending of using their own materials or use of core files.

There is nothing like "new frob-highlight", nothing has changed in the way highlight works.

What's new is:

  1. Rule for generating frobstages implicitly.
  2. Some new "frob macros" that you can use for the rare cases where default looks too bad.

Under the hood, there is nothing new.
Both implicit stages and the macros are 100% equivalent to frobstages which are all over the core materials (and missions, I suppose) right now.

The existing materials should look the same as they did.
Although there is some risk that added implicit frobstages could break something.

  • Like 2
Link to comment
Share on other sites

I'm currently cleaning frobstages in core materials.

I noticed that the macros I listed above are broken 😳
It is strange because I tested all this stuff... perhaps I reordered generates frobstages in the end, which triggered the bug.

Just keep in mind that the macros don't work as intended... maybe implicit generation also.

Link to comment
Share on other sites

Thanks. This is basically what I was asking for in that frob outline thread. Nice to see some cleanup happening on our materials and a default frob highlight as well to fix missing frob highlight definitions.

In what way are your macros broken? Can you post screenshots? Does the default frob highlight work?

Link to comment
Share on other sites

7 hours ago, STiFU said:

In what way are your macros broken? Can you post screenshots? Does the default frob highlight work?

On the latest dev build, the wrong texture name is used.
For instance, frobstage_diffuse often uses _white instead of diffuse texture, so things look "milky".

Link to comment
Share on other sites

  • 3 weeks later...
  • 8 months later...

Hi,

I recently created a mod (script) that makes use of the parm11 parameter to force a blink when some objects are within frob distance.

I was made aware by @stgatilov of some changes in relation with parm11 in the development branch and I gave dev16818-10434 a try and I noticed the beat or blinking pattern is slower than in 2.11a and therefore slower than intended.

While I don't expect any support for mods I thought it was worth mentioning it because something definitively isn't as before.

TDM_Modpack_Thumb_45.png

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

    • snatcher

      TDM Modpack v4.5 released!
      Introducing... The Loop
      · 0 replies
    • Ansome

      Taking a break to alleviate burnout. In retrospect, I probably shouldn't have jumped into a map-making contest so quickly after just finishing another project and especially with my busy schedule, but I do believe I have something that the community will enjoy. No clue if I'll be able to finish it on time for the competition if I factor in a break, but I'd rather take my time and deliver something of quality rather than engage in development crunch or lose part of the map's soul to burnout.
      · 1 reply
    • Skaruts

      Working on an update for my mission By The Cookbook. If anyone that played it has any further bugs to report, please let me know.
      I posted more details about the update in the mission thread.
      · 1 reply
    • lucien

      being thankful for tdm is a good feeling
      · 0 replies
    • The Black Arrow

      Happy birthday to me!
      Yes, today's my birthday and as much as I want to play The Dark Mod, I won't until it's late Autumn, where it should be a bit chilly in my place and there's some wind too.
      For now, it's time to enjoy my birthday, if any of you want to play a great fan mission in my honour...Well that's asking too much, just play the mission because it's fun, not because of me, enjoy it yourself! 💪
      · 5 replies
×
×
  • Create New...