Mototank reports: When the pressure plate is pla ... #485

Closed
opened 2021-04-22 16:40:56 +00:00 by yourland-report · 2 comments

Mototank reports a bug:

When the pressure plate is placed near locked armor stand and pressed it stays in pressed state forever (turned on)

Player position:

{
	y = 61.5,
	x = 660.78601074219,
	z = 670.87902832031
}

Player look:

{
	y = -0.486182898283,
	x = 0.14091753959656,
	z = 0.86242008209229
}

Player information:

{
	min_rtt = 0.046000000089407,
	max_rtt = 0.8629999756813,
	connection_uptime = 2487,
	lang_code = "",
	address = "::ffff:46.98.128.27",
	formspec_version = 4,
	protocol_version = 39,
	avg_rtt = 0.048000000417233,
	min_jitter = 0,
	ip_version = 6,
	max_jitter = 0.81699997186661,
	avg_jitter = 0.010999999940395
}

Player meta:

{
	fields = {
		["3d_armor_inventory"] = "return {\"3d_armor:enchanted_helmet_mithril_strong 1 3360\", \"\", \"3d_armor:enchanted_chestplate_mithril_strong 1 3360\", \"shields:shield_mithril 1 2800\", \"3d_armor:enchanted_leggings_mithril_strong 1 3360\", \"3d_armor:boots_crystal 1 2800\"}",
		yl_commons_thankyou = "1",
		jointime = "1616272444",
		yl_commons_player_joined = "1619107187",
		["signslib:pos"] = "(664,63,669)",
		digged_nodes = "112213",
		yl_church = "return {[\"last_death\"] = {[\"y\"] = -7804, [\"x\"] = 666, [\"z\"] = 666}, [\"last_death_portal\"] = 1619032550, [\"last_heal\"] = 1616366530}",
		["stamina:level"] = "16.35",
		punch_count = "2742",
		inflicted_damage = "45352",
		crafted = "2717",
		died = "81",
		xp = "73801",
		placed_nodes = "9027",
		hud_state = "on",
		played_time = "295855",
		yl_commons_player_created = "1616272444"
	}
}

Log identifier


[MOD] yl_report log identifier = INrttSMNJEePOHdpTxJ1RXwgu40c2IPb

Profiler save:

profile-20210422T184056.json_pretty

Status:

# Server: version=5.3.0-yl, uptime=10203.5, max_lag=2.25122, clients={phillip, debiankaios, agustina87, Apocralypse, Carlos, Mototank, AliasAlreadyTaken, Zero, Service, Neo, bibi, Rex_2000, Cooki, anny, Test_User, Bailiff}
Mototank reports a bug: > When the pressure plate is placed near locked armor stand and pressed it stays in pressed state forever (turned on) Player position: ``` { y = 61.5, x = 660.78601074219, z = 670.87902832031 } ``` Player look: ``` { y = -0.486182898283, x = 0.14091753959656, z = 0.86242008209229 } ``` Player information: ``` { min_rtt = 0.046000000089407, max_rtt = 0.8629999756813, connection_uptime = 2487, lang_code = "", address = "::ffff:46.98.128.27", formspec_version = 4, protocol_version = 39, avg_rtt = 0.048000000417233, min_jitter = 0, ip_version = 6, max_jitter = 0.81699997186661, avg_jitter = 0.010999999940395 } ``` Player meta: ``` { fields = { ["3d_armor_inventory"] = "return {\"3d_armor:enchanted_helmet_mithril_strong 1 3360\", \"\", \"3d_armor:enchanted_chestplate_mithril_strong 1 3360\", \"shields:shield_mithril 1 2800\", \"3d_armor:enchanted_leggings_mithril_strong 1 3360\", \"3d_armor:boots_crystal 1 2800\"}", yl_commons_thankyou = "1", jointime = "1616272444", yl_commons_player_joined = "1619107187", ["signslib:pos"] = "(664,63,669)", digged_nodes = "112213", yl_church = "return {[\"last_death\"] = {[\"y\"] = -7804, [\"x\"] = 666, [\"z\"] = 666}, [\"last_death_portal\"] = 1619032550, [\"last_heal\"] = 1616366530}", ["stamina:level"] = "16.35", punch_count = "2742", inflicted_damage = "45352", crafted = "2717", died = "81", xp = "73801", placed_nodes = "9027", hud_state = "on", played_time = "295855", yl_commons_player_created = "1616272444" } } ``` Log identifier ``` [MOD] yl_report log identifier = INrttSMNJEePOHdpTxJ1RXwgu40c2IPb ``` Profiler save: ``` profile-20210422T184056.json_pretty ``` Status: ``` # Server: version=5.3.0-yl, uptime=10203.5, max_lag=2.25122, clients={phillip, debiankaios, agustina87, Apocralypse, Carlos, Mototank, AliasAlreadyTaken, Zero, Service, Neo, bibi, Rex_2000, Cooki, anny, Test_User, Bailiff} ```
AliasAlreadyTaken was assigned by yourland-report 2021-04-22 16:40:56 +00:00
AliasAlreadyTaken added the
1. kind/bug
4. step/help wanted
labels 2021-04-23 11:24:25 +00:00

checked the code of both and did some testing.
the pressure plate scans for everything in a radius of 1.(init.lua#19)
the armor stand uses an entity.(init.lua#302)
scan detects the entity and sets the pressure plate to on.

so either reduce the entity size but that breaks the armor stand visual with even the slightest change.
Or reduce the scan radius but that could in theory break some mesecon builds.

After some testing reducing the scan radius to 0.99 fixed it and shouldn´t really break alot of mesecon builds.

checked the code of both and did some testing. the pressure plate scans for everything in a radius of 1.(init.lua#19) the armor stand uses an entity.(init.lua#302) scan detects the entity and sets the pressure plate to on. so either reduce the entity size but that breaks the armor stand visual with even the slightest change. Or reduce the scan radius but that could in theory break some mesecon builds. After some testing reducing the scan radius to 0.99 fixed it and shouldn´t really break alot of mesecon builds.

Fixed in 0b3faf4570

Fixed in https://gitea.your-land.de/your-land/mesecons/commit/0b3faf4570521783f17f1f967538345fbcb73852
AliasAlreadyTaken added
5. result/fixed
and removed
4. step/help wanted
labels 2022-05-12 01:09:30 +00:00
AliasAlreadyTaken added this to the 1.1.111 milestone 2022-05-12 01:09:34 +00:00
Sign in to join this conversation.
No Milestone
No project
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#485
No description provided.