AspireMint reports: Arrows do 0 damage to Scout in ... #6536

Open
opened 2024-03-20 17:37:46 +00:00 by yourland-report · 10 comments

AspireMint reports a bug:

Arrows do 0 damage to Scout in water but there is sound effect of hit.

Player position:

{
	y = 19.500999450684,
	z = 198.80999755859,
	x = 2154.708984375
}

Player look:

{
	y = -0.2048377096653,
	z = 0.71561318635941,
	x = -0.66778689622879
}

Player information:

{
	ip_version = 6,
	min_rtt = 0.025000000372529,
	avg_rtt = 0.039000000804663,
	min_jitter = 0,
	max_jitter = 0.31800001859665,
	avg_jitter = 0.013000000268221,
	connection_uptime = 476,
	serialization_version = 29,
	patch = 0,
	minor = 7,
	formspec_version = 6,
	protocol_version = 42,
	major = 5,
	max_rtt = 1.2039999961853,
	version_string = "5.7.0",
	lang_code = "",
	state = "Active"
}

Player meta:

{
	fields = {
		["stamina:poisoned"] = "no",
		yl_commons_thankyou = "319",
		["unified_inventory:bags"] = "return {\"unified_inventory:bag_large\", \"unified_inventory:bag_large\", \"unified_inventory:bag_large\", \"water_life:croc_bag\"}",
		yl_commons_player_created = "1619715757",
		played_time = "7500934",
		digged_nodes = "2088186",
		placed_nodes = "406010",
		died = "394",
		crafted = "143609",
		partychat = "party",
		yl_commons_player_joined = "1710955836",
		bitten = "0",
		inflicted_damage = "12435928",
		hotbar_size = "16",
		["signslib:pos"] = "(-441,46,21493)",
		arenalib_infobox_arenaID = "0",
		["stamina:exhaustion"] = "136",
		repellant = "0",
		punch_count = "575112",
		["petz:werewolf_clan_idx"] = "4",
		["ocean_build.last_warning"] = "1.65674e+09",
		["ocean_build.forbidden"] = "true",
		hud_state = "on",
		xp = "2170823",
		["ocean_build.ocean_built"] = "12",
		["3d_armor_inventory"] = "return {\"3d_armor:helmet_nether 1 2040\", \"\", \"shields:shield_nether 1 4080\", \"3d_armor:leggings_nether 1 4080\", \"3d_armor:chestplate_nether 1 4080\", \"3d_armor:boots_crystal 1 2040\"}",
		jointime = "1619715757",
		yl_church = "return {[\"last_death\"] = {[\"y\"] = 47, [\"z\"] = 21485, [\"x\"] = -407}, [\"last_death_portal\"] = 1710896264, [\"last_heal\"] = 1708702962}",
		["petz:werewolf"] = "0",
		["stamina:level"] = "17",
		["petz:lycanthropy"] = "0"
	}
}

Log identifier


[MOD] yl_report log identifier = B2NdupL7rJwc9R6KvxEX17sxGyq5nYTo

Profiler save:

profile-20240320T173745.json_prettyEE

Status:

# Server: version: 5.7.0-yl-thx-tmm | game: Minetest Game | uptime: 4d 3h 12min 9s | max lag: 1.1s | clients (18/52): AliasAlreadyTaken, AspireMint, Bailiff, BenOnly, Boot, DanielBoone, DanteLeo, flux, hedwig, jim15, LadyPixels, MineWorlds, playor, Service, Shismu, thatchristianguy, threehymns, whosit

Teleport command:

/teleport xyz 2155 20 199

Compass command:

/give_compass Construction B2NdupL7rJwc9R6KvxEX17sxGyq5nYTo D2691E 2155 20 199
AspireMint reports a bug: > Arrows do 0 damage to Scout in water but there is sound effect of hit. Player position: ``` { y = 19.500999450684, z = 198.80999755859, x = 2154.708984375 } ``` Player look: ``` { y = -0.2048377096653, z = 0.71561318635941, x = -0.66778689622879 } ``` Player information: ``` { ip_version = 6, min_rtt = 0.025000000372529, avg_rtt = 0.039000000804663, min_jitter = 0, max_jitter = 0.31800001859665, avg_jitter = 0.013000000268221, connection_uptime = 476, serialization_version = 29, patch = 0, minor = 7, formspec_version = 6, protocol_version = 42, major = 5, max_rtt = 1.2039999961853, version_string = "5.7.0", lang_code = "", state = "Active" } ``` Player meta: ``` { fields = { ["stamina:poisoned"] = "no", yl_commons_thankyou = "319", ["unified_inventory:bags"] = "return {\"unified_inventory:bag_large\", \"unified_inventory:bag_large\", \"unified_inventory:bag_large\", \"water_life:croc_bag\"}", yl_commons_player_created = "1619715757", played_time = "7500934", digged_nodes = "2088186", placed_nodes = "406010", died = "394", crafted = "143609", partychat = "party", yl_commons_player_joined = "1710955836", bitten = "0", inflicted_damage = "12435928", hotbar_size = "16", ["signslib:pos"] = "(-441,46,21493)", arenalib_infobox_arenaID = "0", ["stamina:exhaustion"] = "136", repellant = "0", punch_count = "575112", ["petz:werewolf_clan_idx"] = "4", ["ocean_build.last_warning"] = "1.65674e+09", ["ocean_build.forbidden"] = "true", hud_state = "on", xp = "2170823", ["ocean_build.ocean_built"] = "12", ["3d_armor_inventory"] = "return {\"3d_armor:helmet_nether 1 2040\", \"\", \"shields:shield_nether 1 4080\", \"3d_armor:leggings_nether 1 4080\", \"3d_armor:chestplate_nether 1 4080\", \"3d_armor:boots_crystal 1 2040\"}", jointime = "1619715757", yl_church = "return {[\"last_death\"] = {[\"y\"] = 47, [\"z\"] = 21485, [\"x\"] = -407}, [\"last_death_portal\"] = 1710896264, [\"last_heal\"] = 1708702962}", ["petz:werewolf"] = "0", ["stamina:level"] = "17", ["petz:lycanthropy"] = "0" } } ``` Log identifier ``` [MOD] yl_report log identifier = B2NdupL7rJwc9R6KvxEX17sxGyq5nYTo ``` Profiler save: ``` profile-20240320T173745.json_prettyEE ``` Status: ``` # Server: version: 5.7.0-yl-thx-tmm | game: Minetest Game | uptime: 4d 3h 12min 9s | max lag: 1.1s | clients (18/52): AliasAlreadyTaken, AspireMint, Bailiff, BenOnly, Boot, DanielBoone, DanteLeo, flux, hedwig, jim15, LadyPixels, MineWorlds, playor, Service, Shismu, thatchristianguy, threehymns, whosit ``` Teleport command: ``` /teleport xyz 2155 20 199 ``` Compass command: ``` /give_compass Construction B2NdupL7rJwc9R6KvxEX17sxGyq5nYTo D2691E 2155 20 199 ```
AliasAlreadyTaken was assigned by yourland-report 2024-03-20 17:37:46 +00:00
flux added the
4. step/question
label 2024-03-21 05:21:27 +00:00
Member

arrows with drag (currently, all of them) in water almost immediately lose their velocity, and so lose their ability to do damage (which is proportional to velocity). they still move, but the movement isn't enough to damage anything. this is probably just a documentation issue? alternatively, i could try to figure out a better treatment of drag that allows for spear-fishing. drag stuff is currently "optimized" for behavior in air.

arrows with drag (currently, all of them) in water almost immediately lose their velocity, and so lose their ability to do damage (which is proportional to velocity). they still move, but the movement isn't enough to damage anything. this is probably just a documentation issue? alternatively, i could try to figure out a better treatment of drag that allows for spear-fishing. drag stuff is currently "optimized" for behavior in air.
Member

I feel the right question to ask here is what would be better as a game mechanic: do we want to allow people use bows underwater or not?

I feel the right question to ask here is what would be better as a game mechanic: do we want to allow people use bows underwater or not?
Member

I feel the right question to ask here is what would be better as a game mechanic: do we want to allow people use bows underwater or not?

IMO the current behavior is better than projectiles not reacting to water. however, spear-fishing is a real and viable thing IRL, so perhaps i need to re-evaluate drag mechanics w.r.t. water.

> I feel the right question to ask here is what would be better as a game mechanic: do we want to allow people use bows underwater or not? IMO the current behavior is better than projectiles not reacting to water. however, spear-fishing is a real and viable thing IRL, so perhaps i need to re-evaluate drag mechanics w.r.t. water.
Member
https://youtu.be/5gaOsrksjs0

https://youtu.be/Q7SgsqFXDL0
I just wasted arrows and bow, but its fine 🥲

https://youtu.be/Q7SgsqFXDL0 I just wasted arrows and bow, but its fine 🥲

Underwater shooter

Bows and crossbows cannot properly be shot underwater, because the limbs would have to work against the water resistance. That causes massive drag. A spear does not suffer this penalty that much, because it is accelerated in a push-motion more or less along the direction of the missile, but even then the arm of the throw needs to work against water.

Underwater target

The larger the diameter and the longer the missile, the more drag. The heavier, the less drag plays a role: Spears are less prone to drag than flimsy arrows.

https://www.youtube.com/watch?v=IuMweJ7_lt0

Spearfishing works both with arrows and spears, because the target is very close to the surface.

We do not need to get hyper realistic. I don't want to get started with buoyancy or water refraction, the wear of water on bows and strings especially and all that is boring nongamey stuff in real life. But I do like the fact that our missiles lose force under water very quickly.

However the sound effect when hit should only happen when there is damage done. Hm.

Underwater shooter Bows and crossbows cannot properly be shot underwater, because the limbs would have to work against the water resistance. That causes massive drag. A spear does not suffer this penalty that much, because it is accelerated in a push-motion more or less along the direction of the missile, but even then the arm of the throw needs to work against water. Underwater target The larger the diameter and the longer the missile, the more drag. The heavier, the less drag plays a role: Spears are less prone to drag than flimsy arrows. https://www.youtube.com/watch?v=IuMweJ7_lt0 Spearfishing works both with arrows and spears, because the target is very close to the surface. We do not need to get hyper realistic. I don't want to get started with buoyancy or water refraction, the wear of water on bows and strings especially and all that is boring nongamey stuff in real life. But I do like the fact that our missiles lose force under water very quickly. However the sound effect when hit should only happen when there is damage done. Hm.
Member

https://www.youtube.com/watch?v=dMP3YtQ-mVU

you can shoot arrows underwater, they just don't perform very well.

note that specially designed "bows" can be shot underwater, e.g. https://www.youtube.com/watch?v=SClEITQcXJ8

https://www.youtube.com/watch?v=dMP3YtQ-mVU you can shoot arrows underwater, they just don't perform very well. note that specially designed "bows" can be shot underwater, e.g. https://www.youtube.com/watch?v=SClEITQcXJ8
Member

However the sound effect when hit should only happen when there is damage done. Hm.

if that was true, then training arrows would never "ding". perhaps there can be a different sound though.

> However the sound effect when hit should only happen when there is damage done. Hm. if that was true, then training arrows would never "ding". perhaps there can be a different sound though.
flux added
1. kind/bug
3. source/mod upstream
4. step/ready to QA test
and removed
4. step/question
labels 2024-03-21 22:08:49 +00:00
Member

i tweaked drag in liquids a bit. shooting arrows in water is better now. you still lose power pretty quickly, but you don't tend to lose all power entirely: 2bf1fa85fb

i tweaked drag in liquids a bit. shooting arrows in water is better now. you still lose power pretty quickly, but you don't tend to lose all power entirely: https://github.com/fluxionary/minetest-ballistics/commit/2bf1fa85fb5333c6667e5abda871cc50d2823feb
AliasAlreadyTaken added this to the 1.1.124 milestone 2024-03-22 14:22:34 +00:00

QA

The damage is way less, but the flight path is the same? Shouldn't arrows that lose power tumble to the ground instead of following their flight path with the same velocity they had in air?

QA The damage is way less, but the flight path is the same? Shouldn't arrows that lose power tumble to the ground instead of following their flight path with the same velocity they had in air?
AliasAlreadyTaken added the
ugh/QA NOK
label 2024-04-22 12:19:11 +00:00
Sign in to join this conversation.
No Milestone
No project
No Assignees
5 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: your-land/bugtracker#6536
No description provided.