Laylem reports: [mesecons] Can we get a way to ... #3298

Open
opened 2022-12-22 11:50:04 +00:00 by yourland-report · 3 comments

Laylem reports a bug:

[mesecons] Can we get a way to read the current penalty? Could be useful in making turning off machine or running it at lower intensity.

Player position:

{
	y = -9.4989995956421,
	z = -1999.6099853516,
	x = -948.34600830078
}

Player look:

{
	y = -0.50768876075745,
	z = 0.063397623598576,
	x = 0.85920476913452
}

Player information:

{
	ip_version = 6,
	min_rtt = 0.1630000025034,
	avg_rtt = 0.17000000178814,
	min_jitter = 0,
	max_jitter = 1.3759999275208,
	avg_jitter = 0.0020000040531158,
	formspec_version = 6,
	serialization_version = 29,
	patch = 1,
	major = 5,
	lang_code = "",
	version_string = "5.6.1",
	max_rtt = 1.5449999570847,
	state = "Active",
	connection_uptime = 9499,
	protocol_version = 41,
	minor = 6
}

Player meta:

{
	fields = {
		["3d_armor_inventory"] = "return {\"3d_armor:helmet_crystal 1 21960\", \"3d_armor:chestplate_crystal 1 21960\", \"3d_armor:leggings_crystal 1 21960\", \"3d_armor:boots_crystal 1 21960\", \"shields:shield_rainbow 1 8784\", \"\"}",
		partychat = "main",
		["unified_inventory:bags"] = "return {\"unified_inventory:bag_large\", \"unified_inventory:bag_large\", \"unified_inventory:bag_large\", \"unified_inventory:bag_large\"}",
		yl_commons_thankyou = "47",
		yl_commons_player_created = "1659420654",
		yl_commons_player_joined = "1671700332",
		jointime = "1659420654",
		bitten = "0",
		digged_nodes = "285021",
		placed_nodes = "74892",
		died = "32",
		yl_church = "return {[\"last_death_portal\"] = 1670664823, [\"last_death\"] = {[\"z\"] = -2000, [\"x\"] = -961, [\"y\"] = -26}, [\"last_heal\"] = 1662278340}",
		crafted = "53140",
		played_time = "1548406",
		arenalib_infobox_arenaID = "0",
		["stamina:level"] = "8",
		["ocean_build.last_warning"] = "1.66072e+09",
		repellant = "0",
		xp = "298682",
		["stamina:exhaustion"] = "147",
		hud_state = "on",
		punch_count = "21813",
		["ocean_build.ocean_built"] = "11",
		inflicted_damage = "450644",
		["stamina:poisoned"] = "no",
		["signslib:pos"] = "(-946,-7,-2015)"
	}
}

Log identifier


[MOD] yl_report log identifier = eJ5rhuCk8I5V2LOo7ze7hlus5Ul2y9Lg

Profiler save:

profile-20221222T115004.json_prettyEE

Status:

# Server: version: 5.6.1-yl | game: Minetest Game | uptime: 2d 23h 4min 22s | max lag: 3.17s | clients (25/42): 9T9, AliasAlreadyTaken, Bailiff, bizon, daydream, Delijah, Ecklair, ElusiveAstropath, Ernesto, FFleder, heste, KennyH, Laylem, Mesprit, Murmel, niceride, playerofgames, prestidigitator, Ravise, Service, set, Stelio, Unelias, wannabee, Xonon

Teleport command:

/teleport xyz -948 -9 -2000

Compass command:

/give_compass Construction eJ5rhuCk8I5V2LOo7ze7hlus5Ul2y9Lg D2691E -948 -9 -2000
Laylem reports a bug: > [mesecons] Can we get a way to read the current penalty? Could be useful in making turning off machine or running it at lower intensity. Player position: ``` { y = -9.4989995956421, z = -1999.6099853516, x = -948.34600830078 } ``` Player look: ``` { y = -0.50768876075745, z = 0.063397623598576, x = 0.85920476913452 } ``` Player information: ``` { ip_version = 6, min_rtt = 0.1630000025034, avg_rtt = 0.17000000178814, min_jitter = 0, max_jitter = 1.3759999275208, avg_jitter = 0.0020000040531158, formspec_version = 6, serialization_version = 29, patch = 1, major = 5, lang_code = "", version_string = "5.6.1", max_rtt = 1.5449999570847, state = "Active", connection_uptime = 9499, protocol_version = 41, minor = 6 } ``` Player meta: ``` { fields = { ["3d_armor_inventory"] = "return {\"3d_armor:helmet_crystal 1 21960\", \"3d_armor:chestplate_crystal 1 21960\", \"3d_armor:leggings_crystal 1 21960\", \"3d_armor:boots_crystal 1 21960\", \"shields:shield_rainbow 1 8784\", \"\"}", partychat = "main", ["unified_inventory:bags"] = "return {\"unified_inventory:bag_large\", \"unified_inventory:bag_large\", \"unified_inventory:bag_large\", \"unified_inventory:bag_large\"}", yl_commons_thankyou = "47", yl_commons_player_created = "1659420654", yl_commons_player_joined = "1671700332", jointime = "1659420654", bitten = "0", digged_nodes = "285021", placed_nodes = "74892", died = "32", yl_church = "return {[\"last_death_portal\"] = 1670664823, [\"last_death\"] = {[\"z\"] = -2000, [\"x\"] = -961, [\"y\"] = -26}, [\"last_heal\"] = 1662278340}", crafted = "53140", played_time = "1548406", arenalib_infobox_arenaID = "0", ["stamina:level"] = "8", ["ocean_build.last_warning"] = "1.66072e+09", repellant = "0", xp = "298682", ["stamina:exhaustion"] = "147", hud_state = "on", punch_count = "21813", ["ocean_build.ocean_built"] = "11", inflicted_damage = "450644", ["stamina:poisoned"] = "no", ["signslib:pos"] = "(-946,-7,-2015)" } } ``` Log identifier ``` [MOD] yl_report log identifier = eJ5rhuCk8I5V2LOo7ze7hlus5Ul2y9Lg ``` Profiler save: ``` profile-20221222T115004.json_prettyEE ``` Status: ``` # Server: version: 5.6.1-yl | game: Minetest Game | uptime: 2d 23h 4min 22s | max lag: 3.17s | clients (25/42): 9T9, AliasAlreadyTaken, Bailiff, bizon, daydream, Delijah, Ecklair, ElusiveAstropath, Ernesto, FFleder, heste, KennyH, Laylem, Mesprit, Murmel, niceride, playerofgames, prestidigitator, Ravise, Service, set, Stelio, Unelias, wannabee, Xonon ``` Teleport command: ``` /teleport xyz -948 -9 -2000 ``` Compass command: ``` /give_compass Construction eJ5rhuCk8I5V2LOo7ze7hlus5Ul2y9Lg D2691E -948 -9 -2000 ```
AliasAlreadyTaken was assigned by yourland-report 2022-12-22 11:50:04 +00:00
flux added the
1. kind/documentation
label 2022-12-22 17:06:16 +00:00
flux added the
5. result/fixed
label 2022-12-22 17:14:13 +00:00
AliasAlreadyTaken was unassigned by flux 2022-12-22 17:14:17 +00:00
Member

sent Laylem an in-game email:

you can run the command /mesecons_hud to see the current load and penalty
sent Laylem an in-game email: ``` you can run the command /mesecons_hud to see the current load and penalty ```
flux closed this issue 2022-12-22 17:14:32 +00:00

Laylem is aware of the command, this request is specifically about reading out the value via mesecon, so that machines can be disabled when the value hits a certain threshold.

Would be a nice project for someone who wants to dive into mesecon.

Mesemaker need to be careful not to create a feedback loop where such a mechanic disables their machine, bringing the machine to a temporary halt, which causes the value drop below a theshold, starting the machine again, which causes th value to rise ... effectively creating MORE lag than before.

Laylem is aware of the command, this request is specifically about reading out the value via mesecon, so that machines can be disabled when the value hits a certain threshold. Would be a nice project for someone who wants to dive into mesecon. Mesemaker need to be careful not to create a feedback loop where such a mechanic disables their machine, bringing the machine to a temporary halt, which causes the value drop below a theshold, starting the machine again, which causes th value to rise ... effectively creating MORE lag than before.
Member

this request is specifically about reading out the value via mesecon, so that machines can be disabled when the value hits a certain threshold.

there's already a "penalty controller" in mesecons_debug, but

  1. it's poorly named - it only reports, it doesn't control anything
  2. it requires a special priv to use it currently
  3. it doesn't report anything about the global state of things, it only tells about the usage of the mapblock its placed in.
> this request is specifically about reading out the value via mesecon, so that machines can be disabled when the value hits a certain threshold. there's already a "penalty controller" in mesecons_debug, but 1. it's poorly named - it only reports, it doesn't control anything 2. it requires a special priv to use it currently 3. it doesn't report anything about the global state of things, it only tells about the usage of the mapblock its placed in.
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#3298
No description provided.