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

Open
opened 2022-11-23 14:13:06 +00:00 by yourland-report · 4 comments

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 2022-11-23 14:13:07 +00:00
flux added the
1. kind/enhancement
label 2022-11-24 04:11:21 +00:00
Member

@AliasAlreadyTaken what do you mean by a perimeter check?

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

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?
Member

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 areas 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 areas 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.

A perimeter check is a way of checking "around" the city/faction territory and notifying the one who creates that area of all areas around and inside.

cities and factions can only be created by staff currently, so we don#t get the usual "too close" information

A perimeter check is a way of checking "around" the city/faction territory and notifying the one who creates that area of all areas around and inside. cities and factions can only be created by staff currently, so we don#t get the usual "too close" information
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#3120
No description provided.