whosit reports: yl_speak_up: add a function to ... #6318

Open
opened 2024-02-19 16:17:40 +00:00 by yourland-report · 4 comments

whosit reports a bug:

yl_speak_up: add a function to get player name

Player position:

{
	x = 6542.8828125,
	y = -25.499000549316,
	z = 10428.221679688
}

Player look:

{
	x = 0.91079968214035,
	y = -0.21303038299084,
	z = 0.35364100337029
}

Player information:

{
	major = 5,
	minor = 8,
	min_rtt = 0.041000001132488,
	avg_rtt = 0.043000001460314,
	min_jitter = 0,
	max_jitter = 9.6700000762939,
	avg_jitter = 0.0020000003278255,
	connection_uptime = 35419,
	serialization_version = 29,
	patch = 0,
	lang_code = "",
	max_rtt = 9.7399997711182,
	protocol_version = 42,
	state = "Active",
	formspec_version = 7,
	version_string = "5.8.0",
	ip_version = 6
}

Player meta:

{
	fields = {
		died = "784",
		crafted = "79605",
		yl_church = "return {[\"last_death_portal\"] = 1708338249, [\"last_death\"] = {[\"x\"] = 2800, [\"y\"] = -8, [\"z\"] = 330}, [\"last_heal\"] = 1708284048}",
		yl_commons_player_created = "1615221933",
		yl_commons_player_joined = "1708324054",
		["stamina:level"] = "14",
		["signslib:pos"] = "(25076,2,30098)",
		["3d_armor_inventory"] = "return {\"3d_armor:boots_crystal 1 4400\", \"3d_armor:leggings_crystal 1 4000\", \"shields:shield_crystal 1 4000\", \"3d_armor:chestplate_crystal 1 4000\", \"3d_armor:helmet_crystal 1 4000\", \"\"}",
		arenalib_infobox_arenaID = "0",
		repellant = "0",
		xp = "202696",
		["petz:old_override_table"] = "return {[\"new_move\"] = true, [\"sneak\"] = true, [\"sneak_glitch\"] = false, [\"jump\"] = 1.5, [\"speed\"] = 2, [\"gravity\"] = 1}",
		["stamina:poisoned"] = "no",
		xp_redo_hud_color = "0x0000ff",
		hud_state = "on",
		inflicted_damage = "628376",
		["petz:werewolf_clan_idx"] = "3",
		["petz:werewolf_vignette_id"] = "20",
		["unified_inventory:bags"] = "return {\"unified_inventory:bag_large\", \"unified_inventory:bag_large\", \"unified_inventory:bag_large\", \"unified_inventory:bag_large\"}",
		punch_count = "40868",
		partychat = "party",
		jointime = "1615221933",
		bitten = "0",
		played_time = "8390428",
		lagometer = "1",
		["stamina:exhaustion"] = "20.5",
		["petz:werewolf"] = "0",
		yl_commons_thankyou = "239",
		["petz:lycanthropy"] = "1",
		digged_nodes = "336967",
		placed_nodes = "97002"
	}
}

Log identifier


[MOD] yl_report log identifier = AnzIIzutZK5DhM7yi3viRq5n95qHuKxQ

Profiler save:

profile-20240219T161740.json_prettyEE

Status:

# Server: version: 5.7.0-yl-thx-tmm | game: Minetest Game | uptime: 2d 18h 19min 42s | max lag: 0.856s | clients (23/52): AliasAlreadyTaken, Bailiff, BenOnly, catnap3, dog15, javier, JeCel, JinnyC, LadyPixels, Lupercus, MeZN, Minetest13, MineWorlds, Murmel, Noii, pauGAM3Rxd99, phillzed, poppyasdan, Service, T32z, Trent, vratko, whosit

Teleport command:

/teleport xyz 6543 -25 10428

Compass command:

/give_compass Construction AnzIIzutZK5DhM7yi3viRq5n95qHuKxQ D2691E 6543 -25 10428
whosit reports a bug: > yl_speak_up: add a function to get player name Player position: ``` { x = 6542.8828125, y = -25.499000549316, z = 10428.221679688 } ``` Player look: ``` { x = 0.91079968214035, y = -0.21303038299084, z = 0.35364100337029 } ``` Player information: ``` { major = 5, minor = 8, min_rtt = 0.041000001132488, avg_rtt = 0.043000001460314, min_jitter = 0, max_jitter = 9.6700000762939, avg_jitter = 0.0020000003278255, connection_uptime = 35419, serialization_version = 29, patch = 0, lang_code = "", max_rtt = 9.7399997711182, protocol_version = 42, state = "Active", formspec_version = 7, version_string = "5.8.0", ip_version = 6 } ``` Player meta: ``` { fields = { died = "784", crafted = "79605", yl_church = "return {[\"last_death_portal\"] = 1708338249, [\"last_death\"] = {[\"x\"] = 2800, [\"y\"] = -8, [\"z\"] = 330}, [\"last_heal\"] = 1708284048}", yl_commons_player_created = "1615221933", yl_commons_player_joined = "1708324054", ["stamina:level"] = "14", ["signslib:pos"] = "(25076,2,30098)", ["3d_armor_inventory"] = "return {\"3d_armor:boots_crystal 1 4400\", \"3d_armor:leggings_crystal 1 4000\", \"shields:shield_crystal 1 4000\", \"3d_armor:chestplate_crystal 1 4000\", \"3d_armor:helmet_crystal 1 4000\", \"\"}", arenalib_infobox_arenaID = "0", repellant = "0", xp = "202696", ["petz:old_override_table"] = "return {[\"new_move\"] = true, [\"sneak\"] = true, [\"sneak_glitch\"] = false, [\"jump\"] = 1.5, [\"speed\"] = 2, [\"gravity\"] = 1}", ["stamina:poisoned"] = "no", xp_redo_hud_color = "0x0000ff", hud_state = "on", inflicted_damage = "628376", ["petz:werewolf_clan_idx"] = "3", ["petz:werewolf_vignette_id"] = "20", ["unified_inventory:bags"] = "return {\"unified_inventory:bag_large\", \"unified_inventory:bag_large\", \"unified_inventory:bag_large\", \"unified_inventory:bag_large\"}", punch_count = "40868", partychat = "party", jointime = "1615221933", bitten = "0", played_time = "8390428", lagometer = "1", ["stamina:exhaustion"] = "20.5", ["petz:werewolf"] = "0", yl_commons_thankyou = "239", ["petz:lycanthropy"] = "1", digged_nodes = "336967", placed_nodes = "97002" } } ``` Log identifier ``` [MOD] yl_report log identifier = AnzIIzutZK5DhM7yi3viRq5n95qHuKxQ ``` Profiler save: ``` profile-20240219T161740.json_prettyEE ``` Status: ``` # Server: version: 5.7.0-yl-thx-tmm | game: Minetest Game | uptime: 2d 18h 19min 42s | max lag: 0.856s | clients (23/52): AliasAlreadyTaken, Bailiff, BenOnly, catnap3, dog15, javier, JeCel, JinnyC, LadyPixels, Lupercus, MeZN, Minetest13, MineWorlds, Murmel, Noii, pauGAM3Rxd99, phillzed, poppyasdan, Service, T32z, Trent, vratko, whosit ``` Teleport command: ``` /teleport xyz 6543 -25 10428 ``` Compass command: ``` /give_compass Construction AnzIIzutZK5DhM7yi3viRq5n95qHuKxQ D2691E 6543 -25 10428 ```
AliasAlreadyTaken was assigned by yourland-report 2024-02-19 16:17:40 +00:00
Member

Isn't it the $PLAYER_NAME$ thingly?

Isn't it the `$PLAYER_NAME$` thingly?
Member

I meant to be usable in preconditions.

What I want is:

precondition: get_player_name() == "whosit"
I meant to be usable in preconditions. What I want is: ``` precondition: get_player_name() == "whosit" ```
whosit added the
1. kind/enhancement
label 2024-02-19 19:22:48 +00:00
AliasAlreadyTaken was unassigned by whosit 2024-02-19 19:23:04 +00:00
Sokomine was assigned by whosit 2024-02-19 19:23:04 +00:00
Member

I'm aware of this wish and I've considered adding something like that - but so far decided against.

The problem is that not all players may be able to deal with such an option. I fear that it may lead to negative exclusiveness - to NPC treating players diffrently when they are friend or foe of the NPC's owner. That could be particulary problematic if the NPC becomes part of a quest.

I'm aware of this wish and I've considered adding something like that - but so far decided against. The problem is that not all players may be able to deal with such an option. I fear that it may lead to negative exclusiveness - to NPC treating players diffrently when they are friend or foe of the NPC's owner. That could be particulary problematic if the NPC becomes part of a quest.
Member

Anyone who is technically able to use such an option should also be trusted to use this function. Therefore, this decision should be left to the NPC owner.

Anyone who is technically able to use such an option should also be trusted to use this function. Therefore, this decision should be left to the NPC owner.
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#6318
No description provided.