Jump to content
The Dark Mod Forums

Recommended Posts

Posted

I've just updated the wiki article: http://wiki.thedarkm..._player_actions

 

I had to made some last small changes, but now everything should work as expected.

Example map(updated): hitmanstyle.zip.txt

 

Have fun. :smile:

  • Like 2

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

Posted

@Grayman: I just took a look on the objectives letting things appear article in the wiki and the last sentence occoured a bit strange to me.

Hint: If all the success script fields are empty, the function is NOT called by any objective directly.

The problem is I can't remember what I've written there. But what I've meant was that when several objectives are causing the object appearance together the success script field should be empty, as a trigger is used to call the appropiate function. I will replace this line with something more close to what I've meant and more close to something distinguishable as engish. :smile:

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

Posted

That line confused me, and I wasn't quite sure how to rewrite it. If I edited it, the change was small, and I hoped that I pushed it more toward whatever its true meaning was, w/o knowing what that meaning was. :wacko:

Posted

This is some of the job that Security Levels was going to do. That would set it up so that you only have to put a spawnarg on the AI and they'd automatically follow these rules. Actually I was getting caught up on AI registering the specific crimes, maybe your approach would work for it. The way I was doing it was setting a timer after the player lockpicks, frobs loot, etc, and if the AI has a visStim on the player you check that timer, and if it's below a level they "saw" the crime, and if not they didn't, and if they did you trigger the hostile code directly. Your way of just flipping the hostile / neutral team is pretty straightforward too though. And I was wondering how to register certain things, so this is useful to see that.

What do you see when you turn out the light? I can't tell you but I know that it's mine.

Posted

This would be nice if it would get implemented sooner or later. The problem with the here mentioned setup is, that it is not very error prone. If the mapper forget to set some spawnargs on loot for example, or just mistype the name of the target, tha AI would not notice the player taken it. On a large map with lots of loot this is something, that a mapper may not be aware of that easely.

 

But the goal is quite useful imo, not only for hitman like missions. In city styled FM's for example, this behaviour could be used for the inhabitants (armed or not), so they would only get hostile if you entr there area (and get seen by that). This is quite more realistic and also good for performance, as if the player makes some noise on the streets, he dows only alert the guards out there, but not all the nearby inhabitants.

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

Posted

Yeah, relying on the mapper to set spawnargs on a lot of entities (and set and then keep them correctly in case something gets updated) is doomed to fail - too error prone, too complicated and so on.

 

Not that I want to discourage you, just saying that any system should recognize loot by the entity type/class, not because some spawnarg is set. It's a bit more complicated with the AI_USE things, because we have to distingush a camp fire from a torch even tho both are "flames". But these spawnargs are set by default on the nec. entities, so the mapper hasn't to do anything.

"The reasonable man adapts himself to the world; the unreasonable one persists in trying to adapt the world to himself. Therefore, all progress depends on the unreasonable man." -- George Bernard Shaw (1856 - 1950)

 

"Remember: If the game lets you do it, it's not cheating." -- Xarax

Posted

Instead of ropening a new thread for this I thought I just post it here.

 

I've build a tiny (really tiny) map over the last week and would need one or two betatesters. I may add that this mission is layed out for ghosting. So anyone who feels unpleasent with this may not like it at all.

 

If anyone is interrested you can post here.

 

Thanks a lot.

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

Posted

Why not? I have an evening or two to spare, and I tend to ghost missions. Sign me up!

Come the time of peril, did the ground gape, and did the dead rest unquiet 'gainst us. Our bands of iron and hammers of stone prevailed not, and some did doubt the Builder's plan. But the seals held strong, and the few did triumph, and the doubters were lain into the foundations of the new sanctum. -- Collected letters of the Smith-in-Exile, Civitas Approved

  • 2 weeks later...
Posted (edited)

HI there,

 

is there a possibility to let unarmed AI trigger an alarm instead of running to a flee point? I tried it with targeting from the flee point but that didn't work.

 

Another question: Is it possible to change the "amount" setting on objectives during the game? I've tried several ways to achieve that: triggers and targets, script, but none of them worked. Actually I have found a different way to achieve my goal, but it is quite cumbersome.

Edited by Obsttorte

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

Posted

You can set up an alarm that fires when an AI enters a trigger brush, and then put the flee point inside that trigger. Not ideal, though, since any AI walking into it would also set it off.

Posted

Yeah, I see. Actually I thought more of the AI going to the flee point and than for example pushing a button to trigger the alarm. So the player still has the opportunity to KO him or take him out with an arrow.

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

Posted

I missed that feature very hard. Since it was so cool in Thief 1 when the ai switches on the alarm in Cragscleft :o

"Einen giftigen Trank aus Kräutern und Wurzeln für die närrischen Städter wollen wir brauen." - Text aus einem verlassenen Heidenlager

Posted
Actually I thought more of the AI going to the flee point and than for example pushing a button to trigger the alarm.

 

 

I think that could be done as well. Have the trigger brush around the flee point, and have the trigger start a conversation that includes the AI walking over to the switch and pulling it. A conversation would only work for a particular AI, but that would nearly eliminate the problem of setting it off accidentally. Just put the flee point somewhere the AI doesn't usually go.

 

edit: Oh wait...if the AI is alert a conversation probably won't work....

Posted

...but script commands probably will. I think script commands override anything the AI is currently doing.

 

Script gets called when an AI enters a trigger.

1) get AI name for the entity in the trigger area.

2) if that AI is alert, goto 3 else stop script

3) AI walk to path node next to alarm lever

4) AI use lever. (there has to be a script command for the use_righthand + trigger combo the AI used routinely to open doors. Is there?)

5) end script.

 

If you get this to work, it is surely wiki material.

Clipper

-The mapper's best friend.

Posted

Another question: Is it possible to change the "amount" setting on objectives during the game? I've tried several ways to achieve that: triggers and targets, script, but none of them worked. Actually I have found a different way to achieve my goal, but it is quite cumbersome.

 

Which way is that, and if there is a script event missing, please open a tracker, so I can add it. The objective text can now be changed, but I did not need to change anything else on an objective, so I left these out.

"The reasonable man adapts himself to the world; the unreasonable one persists in trying to adapt the world to himself. Therefore, all progress depends on the unreasonable man." -- George Bernard Shaw (1856 - 1950)

 

"Remember: If the game lets you do it, it's not cheating." -- Xarax

Posted

Actually I want to count the amount of knocked out and killed AI. My attempt was to have a hidden "ko one ai" objective in the mission. If this is fullfilled, it runs a script to change the spawnarg for the amount which increases it by one and than triggers a target_setobjectivestate to set it to not finished again. All this steps work, but if I than knock out a second AI, the objective gets not fulfilled again. So it seems that changing the spawnarg has no effect on the objective.

 

To bypass this I have to put several subobjectives into my objective: "KO one guard", "ko two guards", "ko three guards" and so on. The objective success logic is then to link them together via OR. This works as intented, but if I have for example 30 AI in my map, I would need 30 of this subobjectives, which is, as said, cumbersome.

 

Actually my first approach was to se the stim/response editor and add responses for KO and KILL on the ai, which triggers/calls than whatever needed. But that didn't work. :blush:

 

Looking into the TDM script reference it seems that there is no function to get the amount of knocked out or killed AI. At least there is a spawnarg "death_script" for the AI which I can make use of, but there seems to be nothing like that for KO's. Maybe I should take a look into the specific def files as it's maybe only just not listed.

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

Posted

You should make a tracker entry for that, it sounds yet-another-missing interface from the scripting language to the SDK :)

 

It is probably not too hard to add all these things.

"The reasonable man adapts himself to the world; the unreasonable one persists in trying to adapt the world to himself. Therefore, all progress depends on the unreasonable man." -- George Bernard Shaw (1856 - 1950)

 

"Remember: If the game lets you do it, it's not cheating." -- Xarax

Posted

Allright, its #3297-3300 (the first three refer to this problem, the latter to the auto-map feature). :smile:

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

Posted

I've just updated the wiki article: http://wiki.thedarkm..._player_actions

 

I had to made some last small changes, but now everything should work as expected.

Example map(updated): hitmanstyle.zip.txt

 

Have fun. :smile:

 

This is brilliant, we were just talking about that the other day, this is a must for every mission with neutral NPCs! Must take a look at this... Awesome work.

Posted (edited)

Thanks a lot.

 

Now, as promised a simple example map demonstrating an automap: http://www.mediafire...ov7ky45v16twp3a

 

A few notes:

  • I've used text to mark the areas you already was. This can be simply replaced with images.
  • This is a "mark visited places" map. The location you currently are is not marked extra. Anyways, this can be added with some simple changes if needed
  • This setup only allows one map. Having several maps is also simple addable.
  • As the scripting language don't know any containers like maps, the script gets quite long for maps with many rooms. But basically it is very simple to set up.
  • The main work goes in creating the map (as per drawing it) and arranging the single items. The rest takes just 10 minutes

I'm going to write a wiki article at the weekend that will describe everything in detail. I will also add the two missing functionalities there. Anyways, if you have questions, you can ask, of course. :smile:

Edited by Obsttorte

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

Posted (edited)

Revision: I have written that

This setup only allows one map.

Actually that is not true. The only thing one have to keep in mind is that every map needs its own show/hide function. Else it should work.

 

A note on marking automaps, thus meaning maps that note where you have already been and highlight the area where you currently are. This only need a small change in the code. Instead of running the mark function via "call_on_entry" it is executed via "call_on_exit". "call_on_entry" therefore executes a function that is similar but sets the specific float to "2". This leads to the variables having the values 0/1/2. Some of them are "0" (you haven't been there), some are "1" (you have been there) and one is "2" (you are here). The function that shows/hides the map therefore needs a change to show a different gui when the value is "2". Obviously you would need a second, highlighted version of that specific map part.

 

It seems to me (guessing from what has been written in the forum) that this kind of functionality is not very liked by most people. Actually I think it is a mapping decision. If you want the player to orientate by himself you may not want that. But if the map layout is quite confusing, like for example a cave/dungeon or so, this may prove useful.

Edited by Obsttorte

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

Posted

Thanks a lot.

 

Now, as promised a simple example map demonstrating an automap: http://www.mediafire...ov7ky45v16twp3a

 

A few notes:

  • I've used text to mark the areas you already was. This can be simply replaced with images.
  • This is a "mark visited places" map. The location you currently are is not marked extra. Anyways, this can be added with some simple changes if needed
  • This setup only allows one map. Having several maps is also simple addable.
  • As the scripting language don't know any containers like maps, the script gets quite long for maps with many rooms. But basically it is very simple to set up.
  • The main work goes in creating the map (as per drawing it) and arranging the single items. The rest takes just 10 minutes

I'm going to write a wiki article at the weekend that will describe everything in detail. I will also add the two missing functionalities there. Anyways, if you have questions, you can ask, of course. :smile:

 

Man, you really beat me to every feature I want to add to Swift Mazes.... but heh, at least that way I have to figure out only half of the stuff :)

"The reasonable man adapts himself to the world; the unreasonable one persists in trying to adapt the world to himself. Therefore, all progress depends on the unreasonable man." -- George Bernard Shaw (1856 - 1950)

 

"Remember: If the game lets you do it, it's not cheating." -- Xarax

Posted

It's on: http://wiki.thedarkmod.com/index.php?title=Creating_Automaps

 

Any language correction would be nice (you know, my english :blush: )

 

Hope you like it. Advices of any kind (for example if something is unclear) are always welcome.

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

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

    • jivo

      I just uploaded a new version of the Visible Player Hands mod. It's been updated for TDM 2.13 and has new animations. Check out the post if you're interested!
      · 0 replies
    • datiswous

      I moved from Manjaro Linux (rolling release) to Linux Mint (LTS). One of the reasons was that I found the updates a bit too often and long. But now on Mint I get updates every day, although they're usually small updates.
      · 3 replies
    • JackFarmer

      "Hidden Hands: Vitalic Fever" - new update available including subtitles & compressed briefing video (thanks to @datiswous) and several fixes.
      · 0 replies
    • Wolfmond

      🇬🇧

      2025-04-20
      I'd like to track my level design progress a bit more often now, so I'm using the feed in my profile here.
      I've been working intensively on Springheel's YouTube course over the past few days. I'm currently up to lesson 8. There is so much information that needs to be processed and practiced. 
      I have started to create my own house. As I don't have the imagination to create a good floor plan, I grabbed a floor plan generator from Watabou and experimented with it. I chose a floor plan that I will modify slightly, but at least I now have an initial idea. 
      I used two guards as a measuring tape: The rooms are two guards high. It turned out that I can simply double the number of boxes in DarkRadiant in grid size 8 that are drawn in the floor plan. 
      I practiced the simplest things on the floor plan first. Drawing walls, cutting walls, inserting doors, cutting out frames, creating VisPortals, furnishing rooms.
      I have had my first success in creating a book. Creating a book was easier than I thought. I have a few ideas with books. The level I'm creating will be more or less a chill level, just for me, where I'll try out a few things. I don't have an idea for my own mission yet. I want to start small first.
      For the cellar, I wanted to have a second entrance, which should be on the outside. I'm fascinated by these basement doors from the USA, I think they're called Bilco basement doors. They are very unusual in Germany, but this type of access is sometimes used for deliveries to restaurants etc., where barrels can be rolled or lifted into the cellar. 
      I used two Hatch Doors, but they got completely disoriented after turning. I have since got them reasonably tamed. It's not perfect, but it's acceptable. 
      In the cellar today I experimented with a trap door that leads to a shaft system. The rooms aren't practically finished yet, but I want to continue working on the floor plan for now. I'll be starting on the upper floor very soon.

      __________________________________________________________________________________
      🇩🇪

      2025-04-20

      Ich möchte nun mal öfters ein bisschen meinen Werdegang beim Leveldesign tracken, dazu nutze ich hier den Feed in meinem Profil.
      Ich habe mich in den vergangenen Tagen intensiv mit dem Youtube-Kurs von Springheel beschäftigt. Aktuell bin ich bis zu Lektion 8 gekommen. Das sind so viele Informationen, die erstmal verarbeitet werden wollen und trainiert werden wollen. 

      Ich habe mich daran gemacht, ein eigenes Haus zu erstellen. Da mir die Fantasie fehlt, einen guten Raumplan zu erstellen, habe ich mir einen Grundrissgenerator von Watabou geschnappt und damit experimentiert. Ich habe mich für einen Grundriss entschieden, den ich noch leicht abwandeln werde, aber zumindest habe ich nun eine erste Idee. 

      Als Maßband habe ich zwei Wächter genommen: Die Räume sind zwei Wächter hoch. Es hat sich herausgestellt, dass ich in DarkRadiant in Gittergröße 8 einfach die doppelte Anzahl an Kästchen übernehmen kann, die im Grundriss eingezeichnet sind. 

      Ich habe bei dem Grundriss erstmal die einfachsten Sachen geübt. Wände ziehen, Wände zerschneiden, Türen einsetzen, Zargen herausschneiden, VisPortals erstellen, Räume einrichten.

      Ich habe erste Erfolge mit einem Buch gehabt. Das Erstellen eines Buchs ging leichter als gedacht. Ich habe ein paar Ideen mit Bücher. Das Level, das ich gerade erstelle, wird mehr oder weniger ein Chill-Level, einfach nur für mich, bei dem ich ein paar Sachen ausprobieren werde. Ich habe noch keine Idee für eine eigene Mission. Ich möchte erst einmal klein anfangen.

      Beim Keller wollte ich gerne einen zweiten Zugang haben, der sich außen befinden soll. Mich faszinieren diese Kellertüren aus den USA, Bilco basement doors heißen die, glaube ich. Diese sind in Deutschland sehr unüblich, diese Art von Zugängen gibt es aber manchmal zur Anlieferung bei Restaurants etc., wo Fässer dann in den Keller gerollt oder gehoben werden können. 
      Ich habe zwei Hatch Doors verwendet, die allerdings nach dem Drehen vollkommen aus dem Ruder liefen. Inzwischen habe ich sie einigermaßen gebändigt bekommen. Es ist nicht perfekt, aber annehmbar. 
      Im Keller habe ich heute mit einer Falltür experimentiert, die zu einem Schachtsystem führt. Die Räume sind noch quasi nicht eingerichtet, aber ich möchte erstmal am Grundriss weiterarbeiten. In Kürze fange ich das Obergeschoss an.



      · 2 replies
    • JackFarmer

      On a lighter note, thanks to my cat-like reflexes, my superior puzzle skills and my perfect memory, I was able to beat the remastered version of "Tomb Raider: The Last Revelation" in a new superhuman record time of 23 h : 35 m, worship me!
      · 5 replies
×
×
  • Create New...