Jump to content
The Dark Mod Forums

TDM: Commands and variables...


STiFU

Recommended Posts

Hey, I was checking out the tdm specific console commands today and I found some things that I wanted to discuss. So here we go...

 

The reason why I had a closer look at those was, that I wanted to alter the frob-highlight in color and amplitude, because sometimes, I simply can't tell whether an object is highlighted or not. For instance the

Box of cocaine in the Warehouse

(lootobject) of the FM Patently Dangerous. Apparently, there was no such command and I'd be happy if you'd include something like that (if possible at all): tdm_frob_color in HEX and maybe also tdm_frob_brightness, but depending on how the frob-highlight is implemented, the latter variable could be unnecessary. I don't mean to turn it into an TDS-frob-highlight-orgy, but it's really hard to distinguish sometimes as it currently is.

 

But there were also a couple of other things

  • tdm_show_loot: Sometimes, after I finished a map, I feel like I want to at least see where all the other loot is hidden in an FM and checkout a lootlist for that reason. This beautiful command makes lootlists redundant, by showing how many items are missing and highlighting their wireframe (or something) for a couple of seconds. I love it. Thanks Dark mod... :D (I couldn't find the mentioned item in Patently Dangerous without this command by the way, although I stood multiple times on it beforehand and looked next to its side faces for loot, so frob-highlight-customization would be highly appreciated)
  • tdm_show_gameplaytime: This is nothing important, but I found that once enabling the gameplaytime overlay, it cannot be hidden again. The timer just stops counting up (no refresh), the moment you set this variable to false.
  • tdm_ai_showfov: Now this is interesting. When activated, you see two cylinders showing the field of view of the ai. But why are there two? I assume one for them is for relaxed and one for alerted state. Anyway, what confused me a little was, that the guards appear to have a circular fov. Shouldn't that cylinder rather be formed like an ellipse to simulate peripheral vision? I understand that these cylinders don't necessarily represent the "stim-sensivity" of the NPCs, which could then be "zero'd" on the vertical borders, but if they do, this should be changed on the long term I guess. When the player is located above or below eye-level, he should be harder to notice.
  • tdm_showko: This variable seems to be a rudiment from earlier TDM-versions, which appears to have no functionality anymore and was replaced by tdm_ai_showko. I guess it could be removed.
  • tdm_lg_*: I played a little with these variables presumably responsible for the lightgem, but it didn't change anything noticeable on it. Is this one a rudiment as well?

 

Lastly I wanted to suggest to include a "Restart Mission"-Menubutton. This is only a minor tweak and by any means not mandatory, but I was a little afraid to click "Quit mission" in order to start a new game, because of the loading time. ;) Luckily, loading the level all over was not necessary.

 

Thanks for reading... :)

Edited by STiFU
Link to comment
Share on other sites

Lastly I wanted to suggest to include a "Restart Mission"-Menubutton. This is only a minor tweak and by any means not mandatory, but I was a little afraid to click "Quit mission" in order to start a new game, because of the loading time. ;) Luckily, loading the level all over was not necessary.

 

Dont know much about command lines yet but yeah a restart button would be nice!

Ich konnte mich nicht erinnern Teleportation gezaubert zu haben und doch stand ich da... alleine und nackt.

Link to comment
Share on other sites

  • tdm_lg_*: I played a little with these variables presumably responsible for the lightgem, but it didn't change anything noticeable on it. Is this one a rudiment as well?

I wouldn't recommend playing with those unless you really know what you're doing or know how the lightgem rendershot works. Otherwise you may be breaking maps, letting yourself hide where FM authors don't want you to, or ruining missions because you're unable to hide at all.

yay seuss crease touss dome in ouss nose tair

Link to comment
Share on other sites

Thanks for the heads-up MD, but I always restore original values after testing, so that's not going to be a problem. There was a command similar to something like "tdm_lg_show", which led to a grey transparent rectangle appearing on the lower-left corner of the screen, so I thought that this was a command for an old lightgem, which was not supported anymore. Hence my assumption about the rest of the tdm_lg_* cvars not working.

 

If you type tdm_ai_showfov without a number it tells you that one is for vertical and one is for horizontal FOV.

Ah ok, I forgot about the built in command description. That answers the complete showfov-paragraph.

Edited by STiFU
Link to comment
Share on other sites

There was a command similar to something like "tdm_lg_show", which led to a grey transparent rectangle appearing on the lower-left corner of the screen,

 

That's the rendershot of the diamond model the code uses to determine how much light is hitting the player.

Link to comment
Share on other sites

Interesting. There is no wiki article explaining how you do all the lightgem calculations, is there? (Search didn't turn up anything useful) Not that I wanted to change anything, I am just interested how it's done.

Link to comment
Share on other sites

You can always grab the sources, if you're actually interested in the inner workings. Wiki pages would be nice of course, but I don't think it's realistic to expect full-blown articles about all our code approaches given our understaffed coding team.

Link to comment
Share on other sites

I understand and have downloaded them just now. :)

 

I don't mean to bother anyone here with the frob-highlighting-issue and since no one reacted to it anyway, I and a friend looked into that ourselves. He has altered the frob.vfp, but it didn't change anything in the game. Is the frobhighlight color and brightness hardcoded?

Edited by STiFU
Link to comment
Share on other sites

The frob.vfp program is not active. This has been part of Rebb's frobhighlighting improvement project, but in the end we ran into an issue with TGA files (they ended up with a heavy green tint in-game, which (we think) is due to some sort of limitation in the closed source parts - can't remember exactly).

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

    • Petike the Taffer  »  DeTeEff

      I've updated the articles for your FMs and your author category at the wiki. Your newer nickname (DeTeEff) now comes first, and the one in parentheses is your older nickname (Fieldmedic). Just to avoid confusing people who played your FMs years ago and remember your older nickname. I've added a wiki article for your latest FM, Who Watches the Watcher?, as part of my current updating efforts. Unless I overlooked something, you have five different FMs so far.
      · 0 replies
    • Petike the Taffer

      I've finally managed to log in to The Dark Mod Wiki. I'm back in the saddle and before the holidays start in full, I'll be adding a few new FM articles and doing other updates. Written in Stone is already done.
      · 4 replies
    • nbohr1more

      TDM 15th Anniversary Contest is now active! Please declare your participation: https://forums.thedarkmod.com/index.php?/topic/22413-the-dark-mod-15th-anniversary-contest-entry-thread/
       
      · 0 replies
    • JackFarmer

      @TheUnbeholden
      You cannot receive PMs. Could you please be so kind and check your mailbox if it is full (or maybe you switched off the function)?
      · 1 reply
    • OrbWeaver

      I like the new frob highlight but it would nice if it was less "flickery" while moving over objects (especially barred metal doors).
      · 4 replies
×
×
  • Create New...