Jump to content
The Dark Mod Forums

Newbie DarkRadiant Questions


demagogue

Recommended Posts

Link to comment
Share on other sites

8 minutes ago, JackFarmer said:

Does the AI circle around itself in front of the switch?

no, won't go anywhere near it

 

9 minutes ago, Dragofer said:

Another possibility might be that the AIs can't see the origin of the switch because it's within the module wall.

think I just need to spend a while playing with it to get to the root of the problem.  It's not just one switch, but all of them in the area I'm working on.  I need a general strategy that takes into account the modules, the monsterclip and the switch placement that will work everywhere...

I'm guessing the AI path nodes don't really have anything to do with it?  Is it expected they will stray off course to deal with the light?  Not really an issue as the switches are right by doors they walk through, but just thought I'd ask.

Edited by Frost_Salamander
Link to comment
Share on other sites

2 hours ago, grayman said:

I think you're at the point where you should release a small test map exhibiting the problem, so that someone else can actually see what's happening. It doesn't seem like you're getting anywhere in this discussion.

Test map here: https://drive.google.com/file/d/1zi_elHG2t7mTA6k5LI4g8gERYUNjkENr/view?usp=sharing

There are 2 rooms, one with modules and one with brushwork.

Observations:

  • that switch can't be flush against the wall, I think because the origin then won't be visible to the AI as @Dragofer mentioned.  You can see this in both rooms.
  • in the room with the models, the monsterclip interferes with the pathing.   If you reduce the MC to the point where it can operate the switch, the AI will faff around for a while before it gets to the switch.

So I can sort of get it to work in with the modules, but not in a state where I would include it in a map unless I can figure out how to overcome those issues.

Link to comment
Share on other sites

58 minutes ago, Frost_Salamander said:

Test map here: https://drive.google.com/file/d/1zi_elHG2t7mTA6k5LI4g8gERYUNjkENr/view?usp=sharing

There are 2 rooms, one with modules and one with brushwork.

Observations:

  • that switch can't be flush against the wall, I think because the origin then won't be visible to the AI as @Dragofer mentioned.  You can see this in both rooms.
  • in the room with the models, the monsterclip interferes with the pathing.   If you reduce the MC to the point where it can operate the switch, the AI will faff around for a while before it gets to the switch.

So I can sort of get it to work in with the modules, but not in a state where I would include it in a map unless I can figure out how to overcome those issues.

When you remove the casing of the switch (the rectangular cover), then it works. I do not understand that as this item is a func static.

 

Link to comment
Share on other sites

You can make models invisible to AIs by giving them the "noclipmodel" "1" spawnarg (also makes them nonsolid, so would need nodrawsolid brushes if the model is large enough to be noticed as being nonsolid). It's worth seeing how applying this spawnarg to surrounding models, such as the switch casing, affects the switch.

  • Thanks 1
Link to comment
Share on other sites

16 minutes ago, Dragofer said:

You can make models invisible to AIs by giving them the "noclipmodel" "1" spawnarg (also makes them nonsolid, so would need nodrawsolid brushes if the model is large enough to be noticed as being nonsolid). It's worth seeing how applying this spawnarg to surrounding models, such as the switch casing, affects the switch.

You are right, that works on my end.

@Frost_Salamander:

Select the casing and give it the property as per Dragofer's post above.

  • Thanks 1
Link to comment
Share on other sites

I think I have a way forward. 

  • If you make the monsterclip very thin, you can drag it almost all the way over to light switch and the AI will use it.  If it's not close enough to the switch, they get confused.  It's thick in the test map because I wanted to simulate how it would look if it was covering other models I had in my 'real' map.
  • You can't have another monsterclipped model like a table too close, as the AI then won't go near it.  So I would need to re-arrange a couple of things but no big deal
  • you can move the switch one unit out from the wall and it's not really that noticeable that it's not flush.  It's obvious if it's casting a shadow, but setting noshadows=1 on it and you can't tell.
Link to comment
Share on other sites

4 minutes ago, JackFarmer said:

You are right, that works on my end.

@Frost_Salamander:

Select the casing and give it the property as per Dragofer's post above.

Yep just tried in my real map with it flush to the wall model and that worked 👍 🎉

  • Like 1
Link to comment
Share on other sites

also as a side note, you can cover the switch with monsterclip and it still works.  I guess MC just affects where the AI can move, and not what it can interact with?

Link to comment
Share on other sites

@Frost_Salamander

Yep, AIs can only come within 16 units of an MC wall, and I believe it only affects movement possibilites. If a path node is closer than that to a wall, I believe the reason it usually still works is that the AI comes within the node's tolerance zone, but you ofc don't really have tolerance left for anything else then and could easily get an AI walking circles.

  • Like 1
Link to comment
Share on other sites

REQUEST FOR HELP from someone with rig and skills for working with TDM humanoid md5anim. This would probably take you a few hours. It would take me, I dunno, until the end of time.

Specifically,  I need a shorter version of an existing md5 animation, sotha's pray, by cutting off the beginning and end and making sure the results loops OK. PM me if you can help with that, and to discuss details. Thanks.

Link to comment
Share on other sites

You can restrict the frames of an animation to be used in the respective md5anim file. It can be opened in a text editor like notepad++. Remove the frames you don't want and change the framerate to speed it up or slow it down. Getting it to loop well will require some testing, though. I dunno whether there is a working animation editor in TDM, but DarkRadiant comes with an animation viewer at least. Could be useful to get it to loop.

  • Like 1

FM's: Builder Roads, Old Habits, Old Habits Rebuild

Mapping and Scripting: Apples and Peaches

Sculptris Models and Tutorials: Obsttortes Models

My wiki articles: Obstipedia

Texture Blending in DR: DR ASE Blend Exporter

Link to comment
Share on other sites

They serve the best cocktails there :D

FM's: Builder Roads, Old Habits, Old Habits Rebuild

Mapping and Scripting: Apples and Peaches

Sculptris Models and Tutorials: Obsttortes Models

My wiki articles: Obstipedia

Texture Blending in DR: DR ASE Blend Exporter

Link to comment
Share on other sites

I am currerntly trying the new real-time preview which looks to me a major improvement in dark radiant. Is it possible for this to work on a open project with a click of a button without having to type in any console commands?

Edited by kin
Link to comment
Share on other sites

6 hours ago, kin said:

I am currerntly trying the new real-time preview which looks to me a major improvement in dark radiant. Is it possible for this to work on a open project with a click of a button without having to type in any console commands?

If your "open project" is not a TDM mission or not using the TDM engine than no, is not possible to use that real-time link, unfortunately is exclusive to TDM.

Link to comment
Share on other sites

13 hours ago, HMart said:

If your "open project" is not a TDM mission or not using the TDM engine than no, is not possible to use that real-time link, unfortunately is exclusive to TDM.

What I meant is: can I load a TDM fan mission I have build in dark radiant and hit a single button (in dark radiant) to start dark mod with my mission loaded and syncronised ready to play?

Link to comment
Share on other sites

9 hours ago, kin said:

What I meant is: can I load a TDM fan mission I have build in dark radiant and hit a single button (in dark radiant) to start dark mod with my mission loaded and syncronised ready to play?

Ha Ok that does explains better, unfortunately cannot help you, I never used that feature my self. 

Link to comment
Share on other sites

I have a model and textures, and I've created a materials file for it.  I don't get though how to associate the materials file with the model so it all shows up properly in DR.  I've looked at the dewdrop model as an example, but I can't figure it out. What am I missing?  Do I need a skin?

Edited by Frost_Salamander
Link to comment
Share on other sites

@Frost_Salamander
That sounds lile you're trying to use an .obj, which can't be used in TDM. It works differently for .ase, the model needs to be exported with its surfaces carrying material names corresponding to the material names in TDM including paths.

So i.e. compass1 or textures/darkmod/wood/boards/rough_wood.

An alternative is to use a skin to swap out materials on the model.

Link to comment
Share on other sites

It's a .lwo model that @Kerry000 provided, along with diffusemap and bumpmap texture files.  They are .dds though (I converted them to .tga as well so I have both - do I need both)?

Link to comment
Share on other sites

4 minutes ago, Dragofer said:

@Frost_Salamander
That sounds lile you're trying to use an .obj, which can't be used in TDM. It works differently for .ase, the model needs to be exported with its surfaces carrying material names corresponding to the material names in TDM including paths.

So i.e. compass1 or textures/darkmod/wood/boards/rough_wood.

An alternative is to use a skin to swap out materials on the model.

oh right - so there is information in the model file itself about where to find the materials?  OK will check about that...

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

    • 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.
      · 1 reply
    • 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
    • The Black Arrow

      I wanna play Doom 3, but fhDoom has much better features than dhewm3, yet fhDoom is old, outdated and probably not supported. Damn!
      Makes me think that TDM engine for Doom 3 itself would actually be perfect.
      · 6 replies
    • Petike the Taffer

      Maybe a bit of advice ? In the FM series I'm preparing, the two main characters have the given names Toby and Agnes (it's the protagonist and deuteragonist, respectively), I've been toying with the idea of giving them family names as well, since many of the FM series have named protagonists who have surnames. Toby's from a family who were usually farriers, though he eventually wound up working as a cobbler (this serves as a daylight "front" for his night time thieving). Would it make sense if the man's popularly accepted family name was Farrier ? It's an existing, though less common English surname, and it directly refers to the profession practiced by his relatives. Your suggestions ?
      · 9 replies
    • nbohr1more

      Looks like the "Reverse April Fools" releases were too well hidden. Darkfate still hasn't acknowledge all the new releases. Did you play any of the new April Fools missions?
      · 5 replies
×
×
  • Create New...