Jump to content
The Dark Mod Forums

Recommended Posts

Posted (edited)

EDIT - Please note there is a mod somewhere down this thread....

------------------------------------------------------------------------------

Taffers,

It's a shame moveables didn't get a spawnarg for a proper name back in the day. Names could have added personality to the beautifully crafted moveables and exploring the world would have been way more interesting:

"ent_name" "Apple"
"ent_name" "Bottle of Wine"
"ent_name" "Medium Crate"
...

 

Wheat-Bread.jpg

 

Pine-Chair.jpg

 

Mappers, of course, would have made use of this simple but nifty feature in a myriad of interesting ways 🧐 😬

Crumpled-Paper.jpg

 

Adding a proper name when a new item is first introduced takes not time but we are now talking hundreds of nameless objects...

Oh well, as the saying goes: it never is too late! (or is it).

Edited by snatcher
  • Like 2

TDM_Modpack_Thumb.png

Posted
5 hours ago, chakkman said:

You definitely have too much spare time. 😁

They might be crazy yes but i am generally always looking at the ideas and feedback! Its cool to see clever new ideas and enhancements, so that i can implement them in my own work!

  • Like 1

Can we have more scary Zombie Horror maps?

Posted

Far from crazy.

Just like with any other project we must start somewhere: settle on some basic rules and start naming core objects. The rest will evolve naturally.

5 people * 20 names per day (each) = 1000 assets in 10 days.

TDM_Modpack_Thumb.png

Posted (edited)
9 hours ago, snatcher said:

It's a shame moveables didn't get a spawnarg for a proper name back in the day. Names could have added personality to the beautifully crafted moveables and exploring the world would have been way more interesting

Movable entities have a name spawnarg. It just doesn't show up in the game. So I have no idea what you mean.

image.png.3ead847d115948e71225a8bfd9d92c02.png

 

You propose an always active gui that lists the entity name when you point your cursor on it?

Edited by datiswous
Posted (edited)
12 minutes ago, datiswous said:

Movable entities have a name spawnarg. It just doesn't show up in the game. So I have no idea what you mean.

I mean names you can display on screen for the general audience when holding an object. Refer to the screenshots I posted.

------------------------------------------------

I would say we should employ the language/translation system (#str_).

I expect most entityDef names (plus model names) are quite descriptive already:

  • atdm:moveable_bowl_large_pewter (bowl01_large.lwo)
  • atdm:moveable_mug_wood_old (mug_wooden01.lwo)
  • atdm:moveable_ball_spiked (spiked_ball.lwo)
  • atdm:moveable_coffeetable (coffeetable1.lwo)
  • atdm:moveable_rock_small01 (smallrock1.lwo)
  • ...

When in doubt just fire up DR and see the object in question.

Thinking of skins we should avoid including names of materials or colors, in example instead of a "Red Apple", stick to "Apple". Instead of "Pine Chair", let's name it a "Chair". Many times it will be difficult to settle on a name therefore simpler/shorter will be better: up to mappers to spice things up.

Now if you ask me, how do we approach existing missions? No idea, haven't thought of it.

And bound items such as candles and candle-holders? I don't know, Candle? One case at a time, I guess.

Edited by snatcher

TDM_Modpack_Thumb.png

Posted
4 minutes ago, snatcher said:

Now if you ask me, how do we approach existing missions? No idea, haven't thought of it.

I think it's up to the mapper to include specific chosen names for specific movables.

Posted (edited)

So (maybe) you need a gui that is always active that shows the entity name every time an entity is frobbed. This only works when the entity is properly named (so not atdm_moveable_ball_spiked_large_2 for example). But maybe you think of an addon to include a bunch of alternative names for the entities of a specific mission?

Edited by datiswous
Posted
1 hour ago, datiswous said:

I think it's up to the mapper to include specific chosen names for specific movables.

Core items should cover a good-enough number of moveables in all mission. There normally isn't that much junk and it normally is the same and it is found in the same places: kitchen, bathroom, bedroom... Would mappers complain if all of a sudden a "Stool" is described as a "Stool"?

Things change though when a mapper decides a "Brush" becomes "Penelope's Brush". A useless item still, but more power to tell a story through everyday objects.

1 hour ago, datiswous said:

So (maybe) you need a gui that is always active that shows the entity name every time an entity is frobbed.

It's all in there already: the "shouldered name" slot in the HUD. It works perfectly fine via script although it would be better to have it built-in. Regardless: no names, no game 🙂

TDM_Modpack_Thumb.png

Posted (edited)

While the idea is great, I see a small problem. I guess right now mappers can already name items, so if something has a name players know it is important for the mission. If it has no name it isn't. This would be lost if everything had a name!

Edited by wesp5
Posted
6 hours ago, wesp5 said:

While the idea is great, I see a small problem. I guess right now mappers can already name items, so if something has a name players know it is important for the mission. If it has no name it isn't. This would be lost if everything had a name!

Mappers can name items that go into the inventory or use elaborated tricks such as when you frob a book and get the title onscreen. We are talking useless junk you interact with but you are right, @wesp5.

For this initiative to succeed it must be consistent throughout all stages. At this early stage we cannot allow players to grab a chair that has a name but the next, slight different chair, hasn't got a name. Therefore there must be a short term vision and long term vision.

Objects must have at least two new spawnargs:

"obj_name_tdm" "Bottle of Wine" // Default
"obj_name_map" "Cabernet Sauvignon" // Custom (by mapper)

To simplify it let's call these args TDM and MAP.

MAP is for mappers to populate if they wish and it will always take preference over TDM. During the short term stage only objects named by a mapper (MAP) will be displayed onscreen when grabbing that object.

TDM contains the default core name, and at this stage it never is displayed. We will carry on populating TDM internally and with time we should reach a point where all core TDM are populated.

What will we do next? I have no idea. Are we close or far from 90% of objects? Should we enable TDM by default? (remember MAP takes preference over TDM).

Regardless of the eventual outcome or decision, core items will have a proper name and who knows if this brings other ideas or initiatives.

TDM_Modpack_Thumb.png

Posted

Kind of interesting way to add narrative to objects in the game. Maybe I am wrong but I think moveables inherit the “inv_name” spawnarg, which is the display name for inventory items in the inventory gui - though for most objects that don’t end up in the players inventory it’s probably blank.

It might be a good one to repurpose as it would also then display correctly for objects such as keys when they are dropped from inventory but being held by the player.

-=  IRIS  =-    ♦    = SLL =

Posted (edited)

As of today, if I recall well, moveables with a populated "inv_name" will go into your inventory. It's the condition, I think.

Repurposing "inv_name" is a technical challenge (large or small I don't know). Building a new layer on top of everything should yield faster, safer results.

Experienced developers surely can provide good advise.

Edited by snatcher
Proven wrong by Wellingtoncrab

TDM_Modpack_Thumb.png

Posted
21 minutes ago, Wellingtoncrab said:

[...] display correctly for objects such as keys when they are dropped from inventory but being held by the player.

Good point. My current script takes care of objects with "inv_name" already (as a separate item).

TDM_Modpack_Thumb.png

Posted (edited)

Here is my current WIP script.

It is ready for "obj_name_tdm" and "obj_name_map" spawnargs but mind you: it is stripped from other stuff and it still includes other stuff I am testing.

boolean holding_check = false;
entity entity_held = $null_entity;

if ($player1.heldEntity() != $null_entity)
{
	if (!holding_check)
	{
		string invMessage;
		entity_held = $player1.heldEntity();
		if (entity_held.getBoolKey("shoulderable"))
		{
			invMessage = "#str_02410"; // Assume "Body"
			if (entity_held.getHealth() > 0)
			{
				if (entity_held.getKey("shouldered_name") != "")
					invMessage = entity_held.getKey("shouldered_name");
			}
			else
			{
				if (entity_held.getKey("shouldered_name_dead") != "")
					invMessage = entity_held.getKey("shouldered_name_dead");
			}
		}
		else
		{
			invMessage = "Object"; // Assume "Object" (no translation)
			if (entity_held.isType("idAI"))
				invMessage = "#str_02410"; // Assume "Body"
			if (entity_held.getKey("obj_name_tdm") != "")
				invMessage = entity_held.getKey("obj_name_tdm");
			if (entity_held.getKey("obj_name_map") != "")
				invMessage = entity_held.getKey("obj_name_map");
			if (entity_held.getKey("inv_name") != "")
				invMessage = entity_held.getKey("inv_name");
		}

		$player1.setGuiString($player1.getInventoryOverlay(), "InventoryPickUpMessageText", "");
		$player1.setGuiString($player1.getInventoryOverlay(), "GrabbedItemName", sys.translate(invMessage));

		holding_check = true;
	}
}
else if (holding_check)
{
	if ($player1.getShouldered() == $null_entity)
		$player1.setGuiString($player1.getInventoryOverlay(), "GrabbedItemName", "");

	holding_check = false;
}
Edited by snatcher

TDM_Modpack_Thumb.png

Posted
37 minutes ago, snatcher said:

As of today, if I recall well, moveables with a populated "inv_name" will go into your inventory. It's the condition, I think.

To my recollection objects will not go into inventory unless they have both inv_name and inv_category assigned. Though I think it does result in a console error.

I am not sure why you need separate spawnargs for the core mod and mappers as this doesn’t seem to really solve any kind of problem - just like if we want to change the name of an inventory item we just assign the spawnarg a new value. 

By default my opinion is a field like this should always be blank and it should always be up to mappers to give objects names.

Descriptions like “bottle” and “nice chair” are not adding much interesting in the way of context, but they are certainly at risk of removing it from existing missions. Being able to call out “Mandrasola Syrup” and “Dave’s Favorite Chair” would be pretty cool though.

-=  IRIS  =-    ♦    = SLL =

Posted
2 hours ago, Wellingtoncrab said:

To my recollection objects will not go into inventory unless they have both inv_name and inv_category assigned. Though I think it does result in a console error.

You are 100% correct. An object requires both in order to land into the inventory.

Regarding the rest, I agree with your points but I still don't disagree with other options. I keep wondering to myself, what would have happened if object names had been displayed from day one? Would it had been questioned or would we all be totally ok with it today?

TDM_Modpack_Thumb.png

Posted (edited)
15 hours ago, snatcher said:

What do you think?

If it's available as an option in the TDM settings ingame, or as a cvar, I guess it doesn't do much harm. But, I don't really care if items are being displayed with a name or not. I think there's a much higher priority of having quality in other regards in missions than displaying the item's names on screen.

Just my opinion, you asked for opinions.

Edited by chakkman
  • Like 2
Posted

Why do I have to shoulder entities to get to know their status (KO/dead), or their name (Mr Bad)?

The reason we are talking all this is because I wanted to display the "shouldering name" of AI on frob. As soon as the goal was achieved I wondered about non-AI names and here we are.

5 hours ago, chakkman said:

[...] I don't really care if items are being displayed with a name or not [...]

Precisely. A chair is a chair and an apple is an apple. Most of us will see it as redundant and conclude it is pointless or useless. I am not yet ready to give up so let's go beyond the obvious: does having a little tag at the bottom go in detriment of the intended experience? This must be difficult to answer because, I guess, it needs to be experienced.

Another little concern in my list is that sometimes you cannot tell if you are holding an object or not. Having a name can help in these situations.

TDM_Modpack_Thumb.png

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

      Author of the Visible Player Hands mod: please come forth and collect a round of applause!
      · 2 replies
    • nbohr1more

      Holiday TDM Moddb article is now up: https://www.moddb.com/mods/the-dark-mod/news/happy-holidays-from-the-dark-mod
      · 0 replies
    • nbohr1more

      Cool thing: Thanksgiving break means I don't have to get my son up before dawn

      Not cool thing: My son stays up all night on my PC so I don't get much TDM time...
      · 3 replies
    • datiswous

      Does anyone know if the mission/map in this video posted by @Springheel can still be found somewhere and played? Looks like fun.
       
      · 2 replies
    • taffernicus

      I'm curious about doom and thief multiplayer netcode 😂 or how these games handle networking for multiplayer in general
      a youtube channel called battle(non)sense sometimes posts about netcode analysis
      · 2 replies
×
×
  • Create New...