AliasAlreadyTaken reports: Can we make it that when a mob ... #5608

Open
opened 2023-12-04 19:59:18 +00:00 by yourland-report · 8 comments

AliasAlreadyTaken reports a bug:

Can we make it that when a mob takes damage but cannot determine the source, they move away from that position and avoid it?

Player position:

{
	y = 12.5,
	z = -14971.9453125,
	x = 3701.3588867188
}

Player look:

{
	y = -0.17192909121513,
	z = 0.94618588685989,
	x = -0.27417632937431
}

Player information:

{
	ip_version = 6,
	min_rtt = 0.014000000432134,
	avg_rtt = 0.014999999664724,
	min_jitter = 0,
	max_jitter = 0.23900000751019,
	avg_jitter = 0,
	connection_uptime = 8505,
	serialization_version = 29,
	patch = 0,
	formspec_version = 7,
	major = 5,
	minor = 8,
	max_rtt = 0.38800001144409,
	version_string = "5.8.0-dev-bf53e7e1c",
	protocol_version = 42,
	lang_code = "de",
	state = "Active"
}

Player meta:

{
	fields = {
		bitten = "0",
		["unified_inventory:bags"] = "return {\"unified_inventory:bag_large\", \"unified_inventory:bag_large\", \"unified_inventory:bag_large\", \"unified_inventory:bag_large\"}",
		repellant = "0",
		yl_commons_thankyou = "1363",
		xp_redo_hud_color = "0xFFFF00",
		inflicted_damage = "2999446",
		partychat = "party",
		arenalib_infobox_arenaID = "0",
		hud_state = "on",
		["signslib:pos"] = "(1992,18,990)",
		szutil_watch = "return {}",
		["arena_lib_editor.spawner_ID"] = "0",
		["ethereal:fly_timer"] = "-99",
		yl_audio_state = "off",
		played_time = "95745779",
		digged_nodes = "140423",
		placed_nodes = "181840",
		["arena_lib_editor.players_number"] = "0",
		["petz:werewolf_vignette_id"] = "19",
		["petz:werewolf_clan_idx"] = "4",
		yl_church = "return {[\"last_heal\"] = 1683837139, [\"last_death\"] = {[\"x\"] = 2251, [\"y\"] = -164, [\"z\"] = 1401}, [\"last_death_portal\"] = 1683839371}",
		lagometer = "1",
		["arena_lib_editor.team_ID"] = "0",
		arenalib_watchID = "0",
		["sethome:home"] = "(1983.4349365234,17.5,1183.5950927734)",
		["3d_armor_inventory"] = "return {\"3d_armor:helmet_party\", \"3d_armor:boots_crystal\", \"3d_armor:chestplate_rainbow\", \"\", \"\", \"\"}",
		["petz:lycanthropy"] = "0",
		xp = "0",
		crafted = "4794",
		["ocean_build.ocean_built"] = "12",
		died = "1591",
		punch_count = "65574",
		["ocean_build.last_warning"] = "1.67421e+09",
		["ocean_build.forbidden"] = "true",
		["stamina:level"] = "0",
		["petz:werewolf"] = "0",
		["stamina:poisoned"] = "no",
		partypvp = "true",
		["stamina:exhaustion"] = "33",
		team = "STAFF",
		yl_commons_player_joined = "1701711458",
		["petz:old_override_table"] = "return {[\"speed\"] = 1, [\"new_move\"] = true, [\"sneak_glitch\"] = false, [\"gravity\"] = 1, [\"jump\"] = 1, [\"sneak\"] = true}"
	}
}

Log identifier


[MOD] yl_report log identifier = rN4Pjq1gIv3XvPzl2lox64B50Jmw1Kyb

Profiler save:

profile-20231204T195918.json_prettyEE

Status:

# Server: version: 5.7.0-yl-thx-tmm | game: Minetest Game | uptime: 7h 32min 4s | max lag: 0.186s | clients (3/52): AliasAlreadyTaken, LadyPixels, MineWorlds

Teleport command:

/teleport xyz 3701 13 -14972

Compass command:

/give_compass Construction rN4Pjq1gIv3XvPzl2lox64B50Jmw1Kyb D2691E 3701 13 -14972
AliasAlreadyTaken reports a bug: > Can we make it that when a mob takes damage but cannot determine the source, they move away from that position and avoid it? Player position: ``` { y = 12.5, z = -14971.9453125, x = 3701.3588867188 } ``` Player look: ``` { y = -0.17192909121513, z = 0.94618588685989, x = -0.27417632937431 } ``` Player information: ``` { ip_version = 6, min_rtt = 0.014000000432134, avg_rtt = 0.014999999664724, min_jitter = 0, max_jitter = 0.23900000751019, avg_jitter = 0, connection_uptime = 8505, serialization_version = 29, patch = 0, formspec_version = 7, major = 5, minor = 8, max_rtt = 0.38800001144409, version_string = "5.8.0-dev-bf53e7e1c", protocol_version = 42, lang_code = "de", state = "Active" } ``` Player meta: ``` { fields = { bitten = "0", ["unified_inventory:bags"] = "return {\"unified_inventory:bag_large\", \"unified_inventory:bag_large\", \"unified_inventory:bag_large\", \"unified_inventory:bag_large\"}", repellant = "0", yl_commons_thankyou = "1363", xp_redo_hud_color = "0xFFFF00", inflicted_damage = "2999446", partychat = "party", arenalib_infobox_arenaID = "0", hud_state = "on", ["signslib:pos"] = "(1992,18,990)", szutil_watch = "return {}", ["arena_lib_editor.spawner_ID"] = "0", ["ethereal:fly_timer"] = "-99", yl_audio_state = "off", played_time = "95745779", digged_nodes = "140423", placed_nodes = "181840", ["arena_lib_editor.players_number"] = "0", ["petz:werewolf_vignette_id"] = "19", ["petz:werewolf_clan_idx"] = "4", yl_church = "return {[\"last_heal\"] = 1683837139, [\"last_death\"] = {[\"x\"] = 2251, [\"y\"] = -164, [\"z\"] = 1401}, [\"last_death_portal\"] = 1683839371}", lagometer = "1", ["arena_lib_editor.team_ID"] = "0", arenalib_watchID = "0", ["sethome:home"] = "(1983.4349365234,17.5,1183.5950927734)", ["3d_armor_inventory"] = "return {\"3d_armor:helmet_party\", \"3d_armor:boots_crystal\", \"3d_armor:chestplate_rainbow\", \"\", \"\", \"\"}", ["petz:lycanthropy"] = "0", xp = "0", crafted = "4794", ["ocean_build.ocean_built"] = "12", died = "1591", punch_count = "65574", ["ocean_build.last_warning"] = "1.67421e+09", ["ocean_build.forbidden"] = "true", ["stamina:level"] = "0", ["petz:werewolf"] = "0", ["stamina:poisoned"] = "no", partypvp = "true", ["stamina:exhaustion"] = "33", team = "STAFF", yl_commons_player_joined = "1701711458", ["petz:old_override_table"] = "return {[\"speed\"] = 1, [\"new_move\"] = true, [\"sneak_glitch\"] = false, [\"gravity\"] = 1, [\"jump\"] = 1, [\"sneak\"] = true}" } } ``` Log identifier ``` [MOD] yl_report log identifier = rN4Pjq1gIv3XvPzl2lox64B50Jmw1Kyb ``` Profiler save: ``` profile-20231204T195918.json_prettyEE ``` Status: ``` # Server: version: 5.7.0-yl-thx-tmm | game: Minetest Game | uptime: 7h 32min 4s | max lag: 0.186s | clients (3/52): AliasAlreadyTaken, LadyPixels, MineWorlds ``` Teleport command: ``` /teleport xyz 3701 13 -14972 ``` Compass command: ``` /give_compass Construction rN4Pjq1gIv3XvPzl2lox64B50Jmw1Kyb D2691E 3701 13 -14972 ```
AliasAlreadyTaken was assigned by yourland-report 2023-12-04 19:59:18 +00:00
AliasAlreadyTaken added the
1. kind/enhancement
3. source/integration
labels 2023-12-04 20:15:06 +00:00
Member

if they can't determine the source, how can they move away from it? i suppose knockback, somehow?

if they can't determine the source, how can they move away from it? i suppose knockback, somehow?

if they can't determine the source, how can they move away from it? ...

the position the mob got damaged, not the source position of the damage

> if they can't determine the source, how can they move away from it? ... the position the mob got damaged, not the source position of the damage
Member

if they can't determine the source, how can they move away from it? ...

the position the mob got damaged, not the source position of the damage

so... just run away in any direction then?

> > if they can't determine the source, how can they move away from it? ... > > the position the mob got damaged, not the source position of the damage so... just run away in any direction then?

Use case is a catapult aiming at one position, which mobs would want to learn to avoid, a dangerous lava fall or a player conveniently standing behind a wall and hitting from a position unreachable by the mob.

Yes, run in any direction or at least "start countermeasures" against getting hit.

Use case is a catapult aiming at one position, which mobs would want to learn to avoid, a dangerous lava fall or a player conveniently standing behind a wall and hitting from a position unreachable by the mob. Yes, run in any direction or at least "start countermeasures" against getting hit.
Member

Use case is a catapult aiming at one position, which mobs would want to learn to avoid, a dangerous lava fall or a player conveniently standing behind a wall and hitting from a position unreachable by the mob.

Yes, run in any direction or at least "start countermeasures" against getting hit.

ah, so this is relatively intelligent behavior, including how to respond when the mob is hit by projectiles. it has to remember the source of damage, check if we can attack back, and if not, at least run away. do-able, but subtle. i was assuming this was mostly about responding to attacks from invisible players.

> Use case is a catapult aiming at one position, which mobs would want to learn to avoid, a dangerous lava fall or a player conveniently standing behind a wall and hitting from a position unreachable by the mob. > > Yes, run in any direction or at least "start countermeasures" against getting hit. ah, so this is relatively intelligent behavior, including how to respond when the mob is hit by projectiles. it has to remember the source of damage, check if we can attack back, and if not, at least run away. do-able, but subtle. i was assuming this was mostly about responding to attacks from invisible players.

Good idea, invisible players may also be a use case. Although that may need to trigger a different response.

Good idea, invisible players may also be a use case. Although that may need to trigger a different response.

There is now a setting for mobs_redo:

'attack_patience' Time in seconds before mob gives up attacking if
player isn't seen (Defaults to 11).

There is now a setting for mobs_redo: 'attack_patience' Time in seconds before mob gives up attacking if player isn't seen (Defaults to 11).
Member

with the new projectiles API, the source of the "punch" will generally come from the player or mob that launched the projectile.

with the new projectiles API, the source of the "punch" will generally come from the player or mob that launched the projectile.
Sign in to join this conversation.
No Milestone
No project
No Assignees
4 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#5608
No description provided.