DezS4125 reports: cows dying because of torches ... #5424

Closed
opened 2023-10-27 13:56:21 +00:00 by yourland-report · 17 comments

DezS4125 reports a bug:

cows dying because of torches

Player position:

{
	x = 3949.4030761719,
	y = 25.5,
	z = 408.34698486328
}

Player look:

{
	x = 0.43512740731239,
	y = -0.88212686777115,
	z = -0.18032270669937
}

Player information:

{
	lang_code = "",
	version_string = "5.7.0",
	formspec_version = 6,
	minor = 7,
	ip_version = 6,
	min_rtt = 0.25499999523163,
	avg_rtt = 0.38499999046326,
	min_jitter = 0,
	max_jitter = 13.910999298096,
	avg_jitter = 0.019999980926514,
	connection_uptime = 9321,
	serialization_version = 29,
	patch = 0,
	max_rtt = 14.217000007629,
	state = "Active",
	protocol_version = 42,
	major = 5
}

Player meta:

{
	fields = {
		["petz:werewolf"] = "0",
		yl_commons_player_created = "1697732720",
		["petz:lycanthropy"] = "1",
		jointime = "1697732720",
		["3d_armor_inventory"] = "return {\"shields:shield_rainbow 1 4624\", \"3d_armor:leggings_crystal 1 11560\", \"3d_armor:helmet_crystal 1 11560\", \"3d_armor:chestplate_crystal 1 11560\", \"3d_armor:boots_crystal 1 11560\", \"\"}",
		bitten = "0",
		["stamina:level"] = "13",
		["unified_inventory:bags"] = "return {\"unified_inventory:bag_medium\", \"unified_inventory:bag_large\", \"unified_inventory:bag_large\", \"unified_inventory:bag_medium\"}",
		["stamina:poisoned"] = "no",
		yl_church = "return {[\"last_death\"] = {[\"x\"] = 3955, [\"y\"] = 34, [\"z\"] = 438}}",
		["stamina:exhaustion"] = "154",
		repellant = "0",
		xp = "34958",
		["signslib:pos"] = "(1984,-851,1308)",
		partychat = "party",
		hud_state = "on",
		digged_nodes = "40303",
		punch_count = "358",
		["petz:werewolf_clan_idx"] = "1",
		inflicted_damage = "6294",
		died = "17",
		crafted = "25517",
		yl_commons_player_joined = "1698405709",
		placed_nodes = "8085",
		played_time = "169156",
		yl_commons_thankyou = "6"
	}
}

Log identifier


[MOD] yl_report log identifier = SuwBB9bxfQLEepJzDl0nAXKsMnXxAKEI

Profiler save:

profile-20231027T135621.json_prettyEE

Status:

# Server: version: 5.7.0-yl-thx-tmm | game: Minetest Game | uptime: 16h 47min 30s | max lag: 0.31s | clients (21/52): AliasAlreadyTaken, Bailiff, Basilius, BenOnly, Bingo, bizon, Cezar, daydream, DezS4125, donald, Heron, ihc, jim15, LadyPixels, LilyBelle, MineWorlds, Murmel, Parrish, Penelopee, Service, Sieros

Teleport command:

/teleport xyz 3949 26 408

Compass command:

/give_compass Construction SuwBB9bxfQLEepJzDl0nAXKsMnXxAKEI D2691E 3949 26 408
DezS4125 reports a bug: > cows dying because of torches Player position: ``` { x = 3949.4030761719, y = 25.5, z = 408.34698486328 } ``` Player look: ``` { x = 0.43512740731239, y = -0.88212686777115, z = -0.18032270669937 } ``` Player information: ``` { lang_code = "", version_string = "5.7.0", formspec_version = 6, minor = 7, ip_version = 6, min_rtt = 0.25499999523163, avg_rtt = 0.38499999046326, min_jitter = 0, max_jitter = 13.910999298096, avg_jitter = 0.019999980926514, connection_uptime = 9321, serialization_version = 29, patch = 0, max_rtt = 14.217000007629, state = "Active", protocol_version = 42, major = 5 } ``` Player meta: ``` { fields = { ["petz:werewolf"] = "0", yl_commons_player_created = "1697732720", ["petz:lycanthropy"] = "1", jointime = "1697732720", ["3d_armor_inventory"] = "return {\"shields:shield_rainbow 1 4624\", \"3d_armor:leggings_crystal 1 11560\", \"3d_armor:helmet_crystal 1 11560\", \"3d_armor:chestplate_crystal 1 11560\", \"3d_armor:boots_crystal 1 11560\", \"\"}", bitten = "0", ["stamina:level"] = "13", ["unified_inventory:bags"] = "return {\"unified_inventory:bag_medium\", \"unified_inventory:bag_large\", \"unified_inventory:bag_large\", \"unified_inventory:bag_medium\"}", ["stamina:poisoned"] = "no", yl_church = "return {[\"last_death\"] = {[\"x\"] = 3955, [\"y\"] = 34, [\"z\"] = 438}}", ["stamina:exhaustion"] = "154", repellant = "0", xp = "34958", ["signslib:pos"] = "(1984,-851,1308)", partychat = "party", hud_state = "on", digged_nodes = "40303", punch_count = "358", ["petz:werewolf_clan_idx"] = "1", inflicted_damage = "6294", died = "17", crafted = "25517", yl_commons_player_joined = "1698405709", placed_nodes = "8085", played_time = "169156", yl_commons_thankyou = "6" } } ``` Log identifier ``` [MOD] yl_report log identifier = SuwBB9bxfQLEepJzDl0nAXKsMnXxAKEI ``` Profiler save: ``` profile-20231027T135621.json_prettyEE ``` Status: ``` # Server: version: 5.7.0-yl-thx-tmm | game: Minetest Game | uptime: 16h 47min 30s | max lag: 0.31s | clients (21/52): AliasAlreadyTaken, Bailiff, Basilius, BenOnly, Bingo, bizon, Cezar, daydream, DezS4125, donald, Heron, ihc, jim15, LadyPixels, LilyBelle, MineWorlds, Murmel, Parrish, Penelopee, Service, Sieros ``` Teleport command: ``` /teleport xyz 3949 26 408 ``` Compass command: ``` /give_compass Construction SuwBB9bxfQLEepJzDl0nAXKsMnXxAKEI D2691E 3949 26 408 ```
AliasAlreadyTaken was assigned by yourland-report 2023-10-27 13:56:21 +00:00
AliasAlreadyTaken added the
3. source/integration
label 2023-10-27 18:08:10 +00:00

We need to add torches to "blocks" the normal mobs try to avoid

We need to add torches to "blocks" the normal mobs try to avoid
AliasAlreadyTaken added the
2. prio/good first issue
1. kind/enhancement
labels 2023-10-27 18:08:41 +00:00

I can try to work on this but im not entirely sure what I should be looking for so I can add torches to the list

I can try to work on this but im not entirely sure what I should be looking for so I can add torches to the list
Member

How about you put torches up higher so they can't get burned on them?

How about you put torches up higher so they can't get burned on them?

someone should also make it where miocene avoid torches too. after all, a few miocene have already died due to torches in the first wave of new quests.

someone should also make it where miocene avoid torches too. after all, a few miocene have already died due to torches in the first wave of new quests.

I can try to work on this but im not entirely sure what I should be looking for so I can add torches to the list

Mobs have a "avoid this block" mechanic. You could write a loop that targets all mobs_redo mobs and adds this block to the blocks to be avoided. Make sure not to overwrite existing avoidblocks:

https://codeberg.org/tenplus1/mobs_redo/src/branch/master/api.txt#L156

> I can try to work on this but im not entirely sure what I should be looking for so I can add torches to the list Mobs have a "avoid this block" mechanic. You could write a loop that targets all mobs_redo mobs and adds this block to the blocks to be avoided. Make sure not to overwrite existing avoidblocks: https://codeberg.org/tenplus1/mobs_redo/src/branch/master/api.txt#L156
Member

I can try to work on this but im not entirely sure what I should be looking for so I can add torches to the list

Mobs have a "avoid this block" mechanic. You could write a loop that targets all mobs_redo mobs and adds this block to the blocks to be avoided. Make sure not to overwrite existing avoidblocks:

https://codeberg.org/tenplus1/mobs_redo/src/branch/master/api.txt#L156

if you were trying to indicate the runaway_from parameter, that won't work - it only works for entities and players. instead you have to override mobs:is_node_dangerous(mob_object, nodename)

9e27f45663/api.txt (L765-L768)

> > I can try to work on this but im not entirely sure what I should be looking for so I can add torches to the list > > Mobs have a "avoid this block" mechanic. You could write a loop that targets all mobs_redo mobs and adds this block to the blocks to be avoided. Make sure not to overwrite existing avoidblocks: > > https://codeberg.org/tenplus1/mobs_redo/src/branch/master/api.txt#L156 if you were trying to indicate the `runaway_from` parameter, that won't work - it only works for entities and players. instead you have to override `mobs:is_node_dangerous(mob_object, nodename)` https://codeberg.org/tenplus1/mobs_redo/src/commit/9e27f45663cc0c0df0e329bfbcf92466cca2ce3c/api.txt#L765-L768

Documentation says it can also have nodes to run away from. Does that not work?

 	   'runaway_from'        contains a table with mob names or nodesto run away
	                         from, add "player" to list to runaway from player also.
Documentation says it can also have nodes to run away from. Does that not work? ``` 'runaway_from' contains a table with mob names or nodesto run away from, add "player" to list to runaway from player also. ```
Member

Documentation says it can also have nodes to run away from. Does that not work?

 	   'runaway_from'        contains a table with mob names or nodesto run away
	                         from, add "player" to list to runaway from player also.

oh somehow i didn't see the word "nodes" in there despite reading it several times. probably because my brain filtered it out due to the typo.

> Documentation says it can also have nodes to run away from. Does that not work? > > ``` > 'runaway_from' contains a table with mob names or nodesto run away > from, add "player" to list to runaway from player also. > ``` oh somehow i didn't see the word "nodes" in there despite reading it several times. probably because my brain filtered it out due to the typo.
Member

i implemented this before i remembered we'd marked it as "good first issue". fde9ac9ddb

it works ok, but the cows and other things certainly get confused if there's a lot of torches in the area, and lag makes it unreliable (though there isn't really a good solution for that due to limitations of mobs).

i implemented this before i remembered we'd marked it as "good first issue". https://gitea.your-land.de/your-land/yl_commons/commit/fde9ac9ddbeb56af4ebab236c2e5f383925e2cd8 it works ok, but the cows and other things certainly get confused if there's a lot of torches in the area, and lag makes it unreliable (though there isn't really a good solution for that due to limitations of mobs).
flux added the
4. step/ready to QA test
label 2023-11-11 23:06:34 +00:00
AliasAlreadyTaken added this to the 1.1.122 milestone 2023-11-12 19:22:50 +00:00

QA

Flower cows do not run away, most hostile mobs don't either. We can't add a cost to a field for hostile mobs, right?

Maybe we should also make Miocene, Balrogs and dragons not take damage from fire.

QA Flower cows do not run away, most hostile mobs don't either. We can't add a cost to a field for hostile mobs, right? Maybe we should also make Miocene, Balrogs and dragons not take damage from fire.
AliasAlreadyTaken added the
4. step/question
label 2023-11-30 19:27:08 +00:00
Member

Balrogs

those are already immune, i'll add to the avoid lists of the other non-hostile mobs and dragons

> Balrogs those are already immune, i'll add to the avoid lists of the other non-hostile mobs and dragons
Member

added flower and biome cows: 7f0d41cd24

dragons and mios are already immune to fire damage, though i'm not certain if they're immune to fire-based node damage...

added flower and biome cows: https://gitea.your-land.de/your-land/yl_commons/commit/7f0d41cd24fbd3b92a1c172c2b05450ff09dc01a dragons and mios are already immune to fire damage, though i'm not certain if they're immune to fire-based node damage...
Member

i'm not certain if they're immune to fire-based node damage...

experiments show they are not

> i'm not certain if they're immune to fire-based node damage... experiments show they are not
Member

experiments show they are not

because torches are not in the "fire" group. neither is lava, fire flowers, . i'm wondering if the best way to solve this is to just add things to that group in integration, or suggest to Tenplus1 to change the logic... probably i'll opt for the former, i'm not sure what the best logic change would be.

> experiments show they are not because torches are not in the "fire" group. neither is lava, fire flowers, . i'm wondering if the best way to solve this is to just add things to that group in integration, or suggest to Tenplus1 to change the logic... probably i'll opt for the former, i'm not sure what the best logic change would be.
Member

added a bunch of relevant things to the fire group:

this will prevent fire-proof mobs like nether dragon and mios from taking node damage from these nodes.

added a bunch of relevant things to the fire group: * https://gitea.your-land.de/your-land/yl_commons/commit/b8e253cf6cefb539c28d96c767416e981369eb01 * https://gitea.your-land.de/your-land/yl_events/commit/bba4022e4ca8b544a7f0a34152a2778fbb9096a0 * https://gitea.your-land.de/your-land/yl_fireplace/commit/0534ec55eda6ec38aec63ed35fa341f71592c65c this will prevent fire-proof mobs like nether dragon and mios from taking node damage from these nodes.

QA

Appears to be working. I only took reasonable random samples.

QA Appears to be working. I only took reasonable random samples.
AliasAlreadyTaken added
ugh/QA OK
and removed
4. step/question
labels 2023-12-03 21:45:12 +00:00
flux added
5. result/fixed
and removed
4. step/ready to QA test
labels 2023-12-18 01:07:49 +00:00
AliasAlreadyTaken was unassigned by flux 2023-12-18 01:07:52 +00:00
Member

this is live. note that cows can still run over torches and burn to death, mostly due to lag.

this is live. note that cows can still run over torches and burn to death, mostly due to lag.
flux closed this issue 2023-12-18 01:09:36 +00:00
Sign in to join this conversation.
No Milestone
No project
No Assignees
6 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#5424
No description provided.