AliasAlreadyTaken reports: add perimeter check to protect ... #3120

Open
opened 2 weeks ago by yourland-report · 3 comments
Collaborator

AliasAlreadyTaken reports a bug:

add perimeter check to protect_city and protect_faction

Player position:

{
	x = 5295.0190429688,
	y = 7.5,
	z = 1913.0949707031
}

Player look:

{
	x = 0.21812608838081,
	y = -0.11857727169991,
	z = -0.96869003772736
}

Player information:

{
	min_jitter = 0,
	max_jitter = 0.26899999380112,
	avg_jitter = 0,
	connection_uptime = 26096,
	serialization_version = 29,
	formspec_version = 6,
	state = "Active",
	protocol_version = 41,
	max_rtt = 0.28700000047684,
	version_string = "5.7.0-dev-4da8a18c8",
	patch = 0,
	minor = 7,
	major = 5,
	lang_code = "",
	ip_version = 6,
	min_rtt = 0.017000000923872,
	avg_rtt = 0.018999999389052
}

Player meta:

{
	fields = {
		yl_church = "return {[\"last_death\"] = {[\"x\"] = -16080, [\"y\"] = -9915, [\"z\"] = -15812}, [\"last_death_portal\"] = 1663123370, [\"last_heal\"] = 1622459682}",
		["3d_armor_inventory"] = "return {\"\", \"\", \"\", \"\", \"\", \"\"}",
		yl_audio_state = "off",
		["arena_lib_editor.players_number"] = "0",
		played_time = "66506571",
		digged_nodes = "135967",
		placed_nodes = "177384",
		died = "1582",
		arenalib_infobox_arenaID = "0",
		["stamina:poisoned"] = "no",
		["ocean_build.ocean_built"] = "1",
		punch_count = "62059",
		["petz:werewolf"] = "0",
		inflicted_damage = "2533940",
		["petz:lycanthropy"] = "0",
		["petz:old_override_table"] = "return {[\"speed\"] = 1, [\"new_move\"] = true, [\"sneak_glitch\"] = false, [\"gravity\"] = 1, [\"jump\"] = 1, [\"sneak\"] = true}",
		lagometer = "1",
		["ethereal:fly_timer"] = "-99",
		["petz:werewolf_vignette_id"] = "19",
		arenalib_watchID = "0",
		["petz:werewolf_clan_idx"] = "4",
		["signslib:pos"] = "(1993,17,990)",
		team = "STAFF",
		["ocean_build.last_warning"] = "1.66878e+09",
		xp = "0",
		bitten = "0",
		["unified_inventory:bags"] = "return {\"unified_inventory:bag_large\", \"unified_inventory:bag_large\", \"unified_inventory:bag_large\", \"unified_inventory:bag_large\"}",
		["arena_lib_editor.team_ID"] = "0",
		repellant = "0",
		hud_state = "on",
		["stamina:exhaustion"] = "42",
		crafted = "4421",
		xp_redo_hud_color = "0xFFFF00",
		["arena_lib_editor.spawner_ID"] = "0",
		["stamina:level"] = "0",
		yl_commons_thankyou = "640",
		partychat = "party",
		yl_commons_player_joined = "1669186697",
		["sethome:home"] = "(1983.4349365234,17.5,1183.5950927734)",
		szutil_watch = "return {}"
	}
}

Log identifier


[MOD] yl_report log identifier = abI19Nwh9ocbOzQSjoS06imRMGqgI24s

Profiler save:

profile-20221123T141306.json_prettyEE

Status:

# Server: version: 5.6.1-yl | game: Minetest Game | uptime: 7h 15min 1s | max lag: 2.5s | clients (19/42): AliasAlreadyTaken, Antimatter_76AFK, Bailiff, bizon, Boris, daydream, ecki, Ghitah, Giuseppe, LeetPeet, Lucien_II, Parrish, Pataco2010, rabenkind, Service, set, Stoned_Bob, Violetta, yo_hi

Teleport command:

/teleport xyz 5295 8 1913

Compass command:

/give_compass Construction abI19Nwh9ocbOzQSjoS06imRMGqgI24s D2691E 5295 8 1913
AliasAlreadyTaken reports a bug: > add perimeter check to protect_city and protect_faction Player position: ``` { x = 5295.0190429688, y = 7.5, z = 1913.0949707031 } ``` Player look: ``` { x = 0.21812608838081, y = -0.11857727169991, z = -0.96869003772736 } ``` Player information: ``` { min_jitter = 0, max_jitter = 0.26899999380112, avg_jitter = 0, connection_uptime = 26096, serialization_version = 29, formspec_version = 6, state = "Active", protocol_version = 41, max_rtt = 0.28700000047684, version_string = "5.7.0-dev-4da8a18c8", patch = 0, minor = 7, major = 5, lang_code = "", ip_version = 6, min_rtt = 0.017000000923872, avg_rtt = 0.018999999389052 } ``` Player meta: ``` { fields = { yl_church = "return {[\"last_death\"] = {[\"x\"] = -16080, [\"y\"] = -9915, [\"z\"] = -15812}, [\"last_death_portal\"] = 1663123370, [\"last_heal\"] = 1622459682}", ["3d_armor_inventory"] = "return {\"\", \"\", \"\", \"\", \"\", \"\"}", yl_audio_state = "off", ["arena_lib_editor.players_number"] = "0", played_time = "66506571", digged_nodes = "135967", placed_nodes = "177384", died = "1582", arenalib_infobox_arenaID = "0", ["stamina:poisoned"] = "no", ["ocean_build.ocean_built"] = "1", punch_count = "62059", ["petz:werewolf"] = "0", inflicted_damage = "2533940", ["petz:lycanthropy"] = "0", ["petz:old_override_table"] = "return {[\"speed\"] = 1, [\"new_move\"] = true, [\"sneak_glitch\"] = false, [\"gravity\"] = 1, [\"jump\"] = 1, [\"sneak\"] = true}", lagometer = "1", ["ethereal:fly_timer"] = "-99", ["petz:werewolf_vignette_id"] = "19", arenalib_watchID = "0", ["petz:werewolf_clan_idx"] = "4", ["signslib:pos"] = "(1993,17,990)", team = "STAFF", ["ocean_build.last_warning"] = "1.66878e+09", xp = "0", bitten = "0", ["unified_inventory:bags"] = "return {\"unified_inventory:bag_large\", \"unified_inventory:bag_large\", \"unified_inventory:bag_large\", \"unified_inventory:bag_large\"}", ["arena_lib_editor.team_ID"] = "0", repellant = "0", hud_state = "on", ["stamina:exhaustion"] = "42", crafted = "4421", xp_redo_hud_color = "0xFFFF00", ["arena_lib_editor.spawner_ID"] = "0", ["stamina:level"] = "0", yl_commons_thankyou = "640", partychat = "party", yl_commons_player_joined = "1669186697", ["sethome:home"] = "(1983.4349365234,17.5,1183.5950927734)", szutil_watch = "return {}" } } ``` Log identifier ``` [MOD] yl_report log identifier = abI19Nwh9ocbOzQSjoS06imRMGqgI24s ``` Profiler save: ``` profile-20221123T141306.json_prettyEE ``` Status: ``` # Server: version: 5.6.1-yl | game: Minetest Game | uptime: 7h 15min 1s | max lag: 2.5s | clients (19/42): AliasAlreadyTaken, Antimatter_76AFK, Bailiff, bizon, Boris, daydream, ecki, Ghitah, Giuseppe, LeetPeet, Lucien_II, Parrish, Pataco2010, rabenkind, Service, set, Stoned_Bob, Violetta, yo_hi ``` Teleport command: ``` /teleport xyz 5295 8 1913 ``` Compass command: ``` /give_compass Construction abI19Nwh9ocbOzQSjoS06imRMGqgI24s D2691E 5295 8 1913 ```
AliasAlreadyTaken was assigned by yourland-report 2 weeks ago
flux added the
1. kind/enhancement
label 1 week ago
Collaborator

@AliasAlreadyTaken what do you mean by a perimeter check?

@AliasAlreadyTaken what do you mean by a perimeter check?
Collaborator

Is this a way to detect areas by players in the area around?

Is this a way to detect areas by players in the area around?
Collaborator

Boot: yes, the an AreaStore from the lua API (which the areas mod already uses to manage its volumes) can give you a list of ares which intersect a region defined by 2 corners.

there's a naturally efficient paradigm for computing such things, not 100% sure minetest uses that, but whatever they do seems to work quite well.

Boot: yes, the an [AreaStore](https://github.com/minetest/minetest/blob/aac1635bf7ab09700136a7194e8827898edbe54f/doc/lua_api.txt#L6637-L6707) from the lua API (which the areas mod already uses to manage its volumes) can give you a list of ares which intersect a region defined by 2 corners. there's a [naturally efficient paradigm for computing such things](https://en.wikipedia.org/wiki/Octree), not 100% sure minetest uses that, but whatever they do seems to work quite well.
Sign in to join this conversation.
No Milestone
No project
No Assignees
3 Participants
Notifications
Due Date

No due date set.

Dependencies

No dependencies set.

Reference: your-land/bugtracker#3120
Loading…
There is no content yet.