shanish reports: To use Entity detector to dete ... #1517

Open
opened 2022-02-23 00:23:59 +00:00 by yourland-report · 6 comments

shanish reports a bug:

To use Entity detector to detect, say, petz:panda_set, we must enter petz:panda without _set.

Player position:

{
	y = -26.5,
	x = 1577.126953125,
	z = 1165.0999755859
}

Player look:

{
	y = -0.32391741871834,
	x = 0.88897299766541,
	z = -0.32373517751694
}

Player information:

{
	min_rtt = 0.15800000727177,
	max_rtt = 4.3769998550415,
	connection_uptime = 34903,
	max_jitter = 3.1690001487732,
	minor = 1,
	major = 5,
	ip_version = 6,
	formspec_version = 2,
	patch = 1,
	protocol_version = 38,
	serialization_version = 28,
	lang_code = "",
	version_string = "5.1.1",
	avg_rtt = 0.16799999773502,
	state = "Active",
	avg_jitter = 0.0020000040531158,
	min_jitter = 0
}

Player meta:

{
	fields = {
		["3d_armor_inventory"] = "return {\"3d_armor:helmet_nether 1 1800\", \"3d_armor:boots_crystal 1 1800\", \"3d_armor:leggings_nether 1 3600\", \"3d_armor:chestplate_nether 1 3600\", \"shields:shield_rainbow 1 21576\", \"\"}",
		["petz:werewolf_vignette_id"] = "19",
		yl_commons_thankyou = "3",
		jointime = "1638658291",
		yl_commons_player_joined = "1645541020",
		["signslib:pos"] = "(1584,-25,1161)",
		digged_nodes = "736110",
		died = "57",
		bitten = "0",
		["unified_inventory:bags"] = "return {\"unified_inventory:bag_large\", \"unified_inventory:bag_large\", \"unified_inventory:bag_large\", \"unified_inventory:bag_large\"}",
		partychat = "main",
		["petz:old_override_table"] = "return {[\"new_move\"] = true, [\"sneak\"] = true, [\"sneak_glitch\"] = false, [\"jump\"] = 1.5, [\"speed\"] = 2, [\"gravity\"] = 1}",
		["petz:lycanthropy"] = "1",
		yl_church = "return {[\"last_death\"] = {[\"y\"] = 29851, [\"x\"] = 1562, [\"z\"] = 1152}, [\"last_death_portal\"] = 1645405003}",
		["petz:werewolf"] = "0",
		["stamina:level"] = "16.475",
		xp = "2823406",
		arenalib_infobox_arenaID = "0",
		inflicted_damage = "9152428",
		crafted = "592",
		["petz:werewolf_clan_idx"] = "2",
		punch_count = "752830",
		played_time = "2257369",
		placed_nodes = "155700",
		hud_state = "on",
		repellant = "0",
		yl_commons_player_created = "1638658291"
	}
}

Log identifier


[MOD] yl_report log identifier = NR5ZndS95xBtaUVsM3yFDZkfufgoUGbm

Profiler save:

profile-20220223T012359.json_pretty

Status:

# Server: version=5.4.1-yl, uptime=551706, max_lag=2.12997, clients={Supergirl, Bailiff, Service, AliasAlreadyTaken, Thomas, jed, guestxmart, shanish2, aliwoto, LeetPeet, shanish, flux}

Teleport command:

/teleport xyz 1577 -26 1165

Compass command:

/give_compass Construction NR5ZndS95xBtaUVsM3yFDZkfufgoUGbm D2691E 1577 -26 1165
shanish reports a bug: > To use Entity detector to detect, say, petz:panda_set, we must enter petz:panda without _set. Player position: ``` { y = -26.5, x = 1577.126953125, z = 1165.0999755859 } ``` Player look: ``` { y = -0.32391741871834, x = 0.88897299766541, z = -0.32373517751694 } ``` Player information: ``` { min_rtt = 0.15800000727177, max_rtt = 4.3769998550415, connection_uptime = 34903, max_jitter = 3.1690001487732, minor = 1, major = 5, ip_version = 6, formspec_version = 2, patch = 1, protocol_version = 38, serialization_version = 28, lang_code = "", version_string = "5.1.1", avg_rtt = 0.16799999773502, state = "Active", avg_jitter = 0.0020000040531158, min_jitter = 0 } ``` Player meta: ``` { fields = { ["3d_armor_inventory"] = "return {\"3d_armor:helmet_nether 1 1800\", \"3d_armor:boots_crystal 1 1800\", \"3d_armor:leggings_nether 1 3600\", \"3d_armor:chestplate_nether 1 3600\", \"shields:shield_rainbow 1 21576\", \"\"}", ["petz:werewolf_vignette_id"] = "19", yl_commons_thankyou = "3", jointime = "1638658291", yl_commons_player_joined = "1645541020", ["signslib:pos"] = "(1584,-25,1161)", digged_nodes = "736110", died = "57", bitten = "0", ["unified_inventory:bags"] = "return {\"unified_inventory:bag_large\", \"unified_inventory:bag_large\", \"unified_inventory:bag_large\", \"unified_inventory:bag_large\"}", partychat = "main", ["petz:old_override_table"] = "return {[\"new_move\"] = true, [\"sneak\"] = true, [\"sneak_glitch\"] = false, [\"jump\"] = 1.5, [\"speed\"] = 2, [\"gravity\"] = 1}", ["petz:lycanthropy"] = "1", yl_church = "return {[\"last_death\"] = {[\"y\"] = 29851, [\"x\"] = 1562, [\"z\"] = 1152}, [\"last_death_portal\"] = 1645405003}", ["petz:werewolf"] = "0", ["stamina:level"] = "16.475", xp = "2823406", arenalib_infobox_arenaID = "0", inflicted_damage = "9152428", crafted = "592", ["petz:werewolf_clan_idx"] = "2", punch_count = "752830", played_time = "2257369", placed_nodes = "155700", hud_state = "on", repellant = "0", yl_commons_player_created = "1638658291" } } ``` Log identifier ``` [MOD] yl_report log identifier = NR5ZndS95xBtaUVsM3yFDZkfufgoUGbm ``` Profiler save: ``` profile-20220223T012359.json_pretty ``` Status: ``` # Server: version=5.4.1-yl, uptime=551706, max_lag=2.12997, clients={Supergirl, Bailiff, Service, AliasAlreadyTaken, Thomas, jed, guestxmart, shanish2, aliwoto, LeetPeet, shanish, flux} ``` Teleport command: ``` /teleport xyz 1577 -26 1165 ``` Compass command: ``` /give_compass Construction NR5ZndS95xBtaUVsM3yFDZkfufgoUGbm D2691E 1577 -26 1165 ```
AliasAlreadyTaken was assigned by yourland-report 2022-02-23 00:23:59 +00:00
flux added the
1. kind/documentation
label 2022-02-23 05:10:48 +00:00
Member

entities don't have IDs the same way that nodes do, it only matters when they are initialized

entities don't have IDs the same way that nodes do, it only matters when they are initialized
Member

and petz decided to use different values for the name of the entity, and the name of the item used to spawn them (vs. e.g. how mobs_redo does it)

and petz decided to use different values for the name of the entity, and the name of the item used to spawn them (vs. e.g. how mobs_redo does it)

With this command we can find all objects near a player and send the entitystrings to them.

//lua local radius = 5 local playername = "Service" local objects = minetest.get_objects_inside_radius(minetest.get_player_by_name(playername):get_pos(), radius) core.chat_send_player(playername,#objects) for _,object in pairs(objects) do core.chat_send_player(playername,dump(object:get_luaentity().name)) end

Maybe the zoo should have entity strings, since the entity detector needs those?

With this command we can find all objects near a player and send the entitystrings to them. ``` //lua local radius = 5 local playername = "Service" local objects = minetest.get_objects_inside_radius(minetest.get_player_by_name(playername):get_pos(), radius) core.chat_send_player(playername,#objects) for _,object in pairs(objects) do core.chat_send_player(playername,dump(object:get_luaentity().name)) end ``` Maybe the zoo should have entity strings, since the entity detector needs those?
Member

so, i was mostly wrong about there not being a reliable way to get the entity string - usually, object.get_luaentity().name will have the value you want.

the entity detector could be set up w/ an api to "alias" certain names, so that either the egg itemstring or the entity itemstring would work.

so, i was mostly wrong about there not being a reliable way to get the entity string - usually, `object.get_luaentity().name` will have the value you want. the entity detector could be set up w/ an api to "alias" certain names, so that either the egg itemstring or the entity itemstring would work.

Kind of like entity_string is a "technical" name and the entity detector also accepts "trivial names", like "pony"?

There is no way one egg name can result in different entities?

Or we could introduce a Zookeeper NPC who looks at the players inventory and sends them a mail which entity-strings come out of the eggs they have in store.

Kind of like entity_string is a "technical" name and the entity detector also accepts "trivial names", like "pony"? There is no way one egg name can result in different entities? Or we could introduce a Zookeeper NPC who looks at the players inventory and sends them a mail which entity-strings come out of the eggs they have in store.
Member

There is no way one egg name can result in different entities?

there certainly could be, though i don't know if there are any in practice.

either way, this is a low-priority thing for me, but it'd be nice to solve it eventually.

> There is no way one egg name can result in different entities? there certainly could be, though i don't know if there are any in practice. either way, this is a low-priority thing for me, but it'd be nice to solve it eventually.
AliasAlreadyTaken added the
2. prio/low
label 2022-05-10 18:34:10 +00:00
flux added this to the flux's TODO list project 2022-07-02 19:52:58 +00:00
flux added the
3. source/mod upstream
label 2022-10-25 22:59:36 +00:00
Sign in to join this conversation.
No Milestone
No Assignees
3 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#1517
No description provided.