Jump to content
The Dark Mod Forums

Recommended Posts

Posted

With the 2.13 Beta around the corner, I wanted to ask about a specific solution to a specific problem regarding custom weapons. A while ago I made a post where I designed a flash arrow which I suggested introducing to vanilla TDM: For various reasons others didn't feel it made sense so the idea went dead. I didn't mind much since at worst I can feature it in my own FM's.

But there's one obstacle with that I hated and wished to see removed: You have to change the player definition for the weapon slots, your FM must copy and override the whole player entity just to add a spawnarg pointing to your weapon entity. If atdm:player_base ever changes in core the FM needs to copy and update it, all just for one parameter. From my understanding there should be a quick way around this; Simply add predefined entities for those slots which FM's can override without having to touch the player def itself, authors are given the entity names for those slots and can set them to whatever they desire. The engine has 16 weapon slots and we have 5 unused, I'd reserve 1 just in case and provide the last 4 to FM's since that's a more standard number.

The suggested change should be simple: In tdm_defs01.pk4/def/tdm_player_thief.def entitydef atdm:player_base add spawnargs for def_weapon12, def_weapon13, def_weapon14, def_weapon15 and have them point to a named entity by default. If for example we have "def_weapon12 atdm:weapon_custom1" the mission can define a custom arrow just by including its own definition of atdm:weapon_custom1. By default they should be assigned to null entities that don't do anything if placed as is but won't crash the game either. Here's a full example of how my imagined modification would look, curious if this works without breaking anything if anyone can check:

// Placeholder for the last default weapon until one is added
entityDef atdm:weapon_empty
{
    "inherit" "atdm:entity_base"
}

// Empty definitions for custom weapons the FM can override
entityDef atdm:weapon_custom1
{
    "inherit" "atdm:entity_base"
}
entityDef atdm:weapon_custom2
{
    "inherit" "atdm:entity_base"
}
entityDef atdm:weapon_custom3
{
    "inherit" "atdm:entity_base"
}
entityDef atdm:weapon_custom4
{
    "inherit" "atdm:entity_base"
}
"def_weapon0" "atdm:weapon_unarmed"
"def_weapon1" "atdm:weapon_blackjack"
"def_weapon2" "atdm:weapon_shortsword"
"def_weapon3" "atdm:weapon_broadhead"
"def_weapon4" "atdm:weapon_waterarrow"
"def_weapon5" "atdm:weapon_firearrow"
"def_weapon6" "atdm:weapon_ropearrow"
"def_weapon7" "atdm:weapon_gasarrow"
"def_weapon8" "atdm:weapon_noisemaker"
"def_weapon9" "atdm:weapon_mossarrow" // grayman #2787
"def_weapon10" "atdm:weapon_vinearrow" // grayman #2787
"def_weapon11" "atdm:weapon_empty" // reserve this slot in case TDM adds one more default arrow in the future
"def_weapon12" "atdm_weapon_custom1" // weapon slot for custom entity that can be defined by the FM
"def_weapon13" "atdm_weapon_custom2" // weapon slot for custom entity that can be defined by the FM
"def_weapon14" "atdm_weapon_custom3" // weapon slot for custom entity that can be defined by the FM
"def_weapon15" "atdm_weapon_custom4" // weapon slot for custom entity that can be defined by the FM
  • Like 4
Posted (edited)

I really hope there won't be a complete lack of consistency in the future, with everything FM authors or contributors to coding want to change about the mod the whole time... Some FMs already play as if they were from a parallel universe.

To illustrate the problem: Imagine a new player getting into the mod. He will play The Training mission, and maybe some of the older missions, which don't modify weapon, enemy, or light gem/shadow behavior. Then he gets into some of the new missions, and needs to re-learn in every mission the conditions, because the FM author chose to modify weapons, make the player always visible, change A.I. behavior, or even change or introduce new weapons.

I appreciate the cerativity, and understand that some want to extend the gameplay possibilities. But, it always comes with the, in my eyes, big penalty of making the player adapt to the new conditions, and every single mission, and, some things he can't know, and he'll be very surprised that the mission behaves the way it does.

I really hope FM authors go back to the roots again one day, and don't overwhelm the player with thousands of changes and additions, which make the missions and the Dark Mod unvierse less coherent and uniform, and confuse the player.

Edited by chakkman
Posted

I remember Melchior suggested new weapons once:

"For the weapon system to be built around General Type/Intended Use:

  1. Blackjack / Club / Heavy-Vase / Hammer / Ether & Rag, ect... {Knockout weapons/tools}
  2. Short-Sword / Dagger / Stiletto, Blow-darts, ect... {Killing weapons/tools}
  3. Water  (arrows) / Extinguisher (manual water pump) / Soot (arrows)... {Light Dousing tools}
  4. Fire; 'Explosive' (arrows) / Concussion (arrow) / Incendiary (arrow)... {Explosive weapon/tools}
  5. Rope (arrows) / Vine (arrows) / Grappling-Hook (hook & chain)... {Vertical movement tools}
  6. 'Ether' Gas (arrows) / 'Tear' Gas (arrows) / 'Mustard' Gas (arrows)... {Mixed use gas/vapour tools}
  7. Moss (arrows) / Paint (arrows)  ...{Sound-impact / light absorbing tools}
  8. Glue (arrows) / Flash (arrows) / Noisemaker (arrows) / Fire-crackers... {Distracting / disabling tools}

 

Noting the following are new;

  • Heavy-Vase: used double-handed; a loud single use blackjack that leaves a mess...
  • Dagger, Stilleto: Short range, Can't block - the latter CAN penetrate armour if attacking a weak-point...
  • Blow-Darts: Specialized tool of assassins - useful dealing with multiple guards...or special people (its deadly).
  • Ether-vial & Rag: Used from behind its very effective at disabling. It will evaporate in moments, limited uses.
  • Extinguisher: Ever wanted to just spray some water on a torch? This, does that. That's it. Only close up.
  • Paint Arrows: Permanently covers electric light sources & blinds optical sensors [which WILL trigger them!].
  • Glue Arrows: So, you need to stop charging guards?; Loosing one of these creates a puddle of Ultra-Adhesive capable of binding anything together for a little while. Works against Bi-pedal AND Quadrupedal foes!"
Posted

I believe it's okay for mission authors to add new arrows as long as all the old ones are still available and they introduce the new ones accordingly.

Posted

Yes, this is mainly for new arrows with custom functionalities. I doubt most FM's would add radically different weapons, especially since those are generally hard to do and require new 1st person models.

I also suggested redoing the weapon registration system to get rid of the old engine slots and have them like items, but that's a bigger change and no one's yet announced any plans. So in the meantime the simplest solution seems like at least registering the unused slots so a FM can modify the entities without having to touch the player definition.

You can already modify the existing arrows that way, like how some FM's have a bow that looks a little different and fires faster. But if your FM wants to add an unique arrow without touching existing ones, like say an earthquake causing arrow that alerts a larger area to distract guards, there's currently no entity to bind it to.

  • Like 1

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

    • 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!
      · 3 replies
    • Goblin of Akenash

      My mapping discord if anyone is interested, its more of a general modding thing rather than just for TDM 
      https://discord.gg/T4Jt4DdmUb

       
      · 0 replies
×
×
  • Create New...