flux reports: perhaps we should detect playe ... #2192

Open
opened 2022-07-09 03:08:47 +00:00 by yourland-report · 8 comments

flux reports a bug:

perhaps we should detect player AFK and automatically log a player off if they take damage while AFK

Player position:

{
	y = 48,
	x = 1275.8000488281,
	z = 592.27899169922
}

Player look:

{
	y = 0.70648944377899,
	x = -0.70736652612686,
	z = -0.022477110847831
}

Player information:

{
	min_rtt = 0.15099999308586,
	max_rtt = 7.7969999313354,
	connection_uptime = 176344,
	max_jitter = 7.6360001564026,
	minor = 6,
	major = 5,
	ip_version = 6,
	formspec_version = 5,
	patch = 0,
	protocol_version = 40,
	serialization_version = 29,
	lang_code = "",
	version_string = "5.6.0-dev-874bb40be-dirty",
	avg_rtt = 0.16099999845028,
	state = "Active",
	avg_jitter = 0,
	min_jitter = 0
}

Player meta:

{
	fields = {
		["3d_armor_inventory"] = "return {\"3d_armor:chestplate_nether 1 10520\", \"nether_mobs:dragon_shield 1 5260\", \"3d_armor:helmet_nether 1 5260\", \"nether_mobs:dragon_boots 1 5260\", \"3d_armor:leggings_nether 1 10520\", \"\"}",
		["petz:werewolf_vignette_id"] = "20",
		played_time = "19289021",
		jointime = "1615351173",
		yl_commons_player_joined = "1657159804",
		["stamina:exhaustion"] = "121",
		["signslib:pos"] = "(1290,63,550)",
		digged_nodes = "1067543",
		yl_commons_thankyou = "126",
		died = "66",
		bitten = "0",
		["unified_inventory:bags"] = "return {\"water_life:croc_bag\", \"water_life:croc_bag\", \"water_life:croc_bag\", \"water_life:croc_bag\"}",
		partychat = "party",
		["petz:werewolf"] = "0",
		["petz:lycanthropy"] = "1",
		yl_church = "return {[\"last_death\"] = {[\"y\"] = 48, [\"x\"] = 1289, [\"z\"] = 624}, [\"last_heal\"] = 1615504208, [\"last_death_portal\"] = 1653796347}",
		punch_count = "79949",
		["stamina:level"] = "4",
		xp = "1242057",
		arenalib_infobox_arenaID = "0",
		inflicted_damage = "1291308",
		crafted = "38501",
		["petz:old_override_table"] = "return {[\"new_move\"] = true, [\"sneak\"] = true, [\"sneak_glitch\"] = false, [\"jump\"] = 1.5, [\"speed\"] = 2, [\"gravity\"] = 1}",
		["stamina:poisoned"] = "no",
		["petz:werewolf_clan_idx"] = "1",
		placed_nodes = "347348",
		hud_state = "on",
		repellant = "0",
		yl_commons_player_created = "1615351173"
	}
}

Log identifier


[MOD] yl_report log identifier = GSfjbCrgAwiH7dPiukLBiiLMbDvEi8Ta

Profiler save:

profile-20220709T050846.json_prettyEE

Status:

# Server: version: 5.5.1-yl | game: Minetest Game | uptime: 3d 17h 21min 39s | max lag: 2.84s | clients: Oakenshield, AliasAlreadyTaken, Service, Bailiff, MineB4, Hulda, pitman, flux

Teleport command:

/teleport xyz 1276 48 592

Compass command:

/give_compass Construction GSfjbCrgAwiH7dPiukLBiiLMbDvEi8Ta D2691E 1276 48 592
flux reports a bug: > perhaps we should detect player AFK and automatically log a player off if they take damage while AFK Player position: ``` { y = 48, x = 1275.8000488281, z = 592.27899169922 } ``` Player look: ``` { y = 0.70648944377899, x = -0.70736652612686, z = -0.022477110847831 } ``` Player information: ``` { min_rtt = 0.15099999308586, max_rtt = 7.7969999313354, connection_uptime = 176344, max_jitter = 7.6360001564026, minor = 6, major = 5, ip_version = 6, formspec_version = 5, patch = 0, protocol_version = 40, serialization_version = 29, lang_code = "", version_string = "5.6.0-dev-874bb40be-dirty", avg_rtt = 0.16099999845028, state = "Active", avg_jitter = 0, min_jitter = 0 } ``` Player meta: ``` { fields = { ["3d_armor_inventory"] = "return {\"3d_armor:chestplate_nether 1 10520\", \"nether_mobs:dragon_shield 1 5260\", \"3d_armor:helmet_nether 1 5260\", \"nether_mobs:dragon_boots 1 5260\", \"3d_armor:leggings_nether 1 10520\", \"\"}", ["petz:werewolf_vignette_id"] = "20", played_time = "19289021", jointime = "1615351173", yl_commons_player_joined = "1657159804", ["stamina:exhaustion"] = "121", ["signslib:pos"] = "(1290,63,550)", digged_nodes = "1067543", yl_commons_thankyou = "126", died = "66", bitten = "0", ["unified_inventory:bags"] = "return {\"water_life:croc_bag\", \"water_life:croc_bag\", \"water_life:croc_bag\", \"water_life:croc_bag\"}", partychat = "party", ["petz:werewolf"] = "0", ["petz:lycanthropy"] = "1", yl_church = "return {[\"last_death\"] = {[\"y\"] = 48, [\"x\"] = 1289, [\"z\"] = 624}, [\"last_heal\"] = 1615504208, [\"last_death_portal\"] = 1653796347}", punch_count = "79949", ["stamina:level"] = "4", xp = "1242057", arenalib_infobox_arenaID = "0", inflicted_damage = "1291308", crafted = "38501", ["petz:old_override_table"] = "return {[\"new_move\"] = true, [\"sneak\"] = true, [\"sneak_glitch\"] = false, [\"jump\"] = 1.5, [\"speed\"] = 2, [\"gravity\"] = 1}", ["stamina:poisoned"] = "no", ["petz:werewolf_clan_idx"] = "1", placed_nodes = "347348", hud_state = "on", repellant = "0", yl_commons_player_created = "1615351173" } } ``` Log identifier ``` [MOD] yl_report log identifier = GSfjbCrgAwiH7dPiukLBiiLMbDvEi8Ta ``` Profiler save: ``` profile-20220709T050846.json_prettyEE ``` Status: ``` # Server: version: 5.5.1-yl | game: Minetest Game | uptime: 3d 17h 21min 39s | max lag: 2.84s | clients: Oakenshield, AliasAlreadyTaken, Service, Bailiff, MineB4, Hulda, pitman, flux ``` Teleport command: ``` /teleport xyz 1276 48 592 ``` Compass command: ``` /give_compass Construction GSfjbCrgAwiH7dPiukLBiiLMbDvEi8Ta D2691E 1276 48 592 ```
AliasAlreadyTaken was assigned by yourland-report 2022-07-09 03:08:47 +00:00
flux added the
1. kind/enhancement
4. step/want approval
2. prio/interesting
labels 2022-07-09 03:10:35 +00:00
flux added this to the flux's TODO list project 2022-07-09 03:10:38 +00:00
Member

Test_User adds:

perhaps add a command to toggle it for if they don't want that behavior for whatever reason

the idea in my mind is that we set up a feature that checks for whether a player moves or touches any of the controls. if they've been AFK for 15 minutes (or a configurable amount of time), disconnect them if they take damage.

Test_User adds: ``` perhaps add a command to toggle it for if they don't want that behavior for whatever reason ``` the idea in my mind is that we set up a feature that checks for whether a player moves or touches any of the controls. if they've been AFK for 15 minutes (or a configurable amount of time), disconnect them if they take damage.

I planned on making a afk command that sends out customizable messages like "I am afk" if one is PMed while afk.

This feature would also allow a player to set a short text which would hover above their head while afk, making people into live advertising statues :D

Disabling damage while afk or logging people out ... hm. Not a huge fan. Maybe we should disable "people can die from hunger while afk" , but monsters should always have a chance.

There's the "whatevery the players get, the monsters get as well", meaning as soon as levels make a difference in fighting, monsters also will have a level. AS soon as players gain magic spells, monsters also will have some. I don't want a balrog "logging out", because he took damage with no player in sight ...

I planned on making a afk command that sends out customizable messages like "I am afk" if one is PMed while afk. This feature would also allow a player to set a short text which would hover above their head while afk, making people into live advertising statues :D Disabling damage while afk or logging people out ... hm. Not a huge fan. Maybe we should disable "people can die from hunger while afk" , but monsters should always have a chance. There's the "whatevery the players get, the monsters get as well", meaning as soon as levels make a difference in fighting, monsters also will have a level. AS soon as players gain magic spells, monsters also will have some. I don't want a balrog "logging out", because he took damage with no player in sight ...
flux added the
1. kind/balancing
label 2022-07-09 13:22:05 +00:00
flux added
4. step/discussion
2. prio/controversial
and removed
4. step/want approval
2. prio/interesting
labels 2022-10-30 19:44:07 +00:00

Here's a API I found regarding AFK

AFK Indicator

API to check player AFK status

https://content.minetest.net/packages/Emojiminetest/afk_indicator/?protocol_version=41

Here's a API I found regarding AFK ### AFK Indicator API to check player AFK status https://content.minetest.net/packages/Emojiminetest/afk_indicator/?protocol_version=41 ![](https://content.minetest.net/uploads/c5c8f50e01.png)

Can we hold off on adding text and especially code as a picture?

Use the code-modifiers please!

those: ```
Can we hold off on adding text and especially code as a picture? Use the code-modifiers please! ``` those: ``` ```
Member

At least it's pretty simple code...which alone isn't sufficient. There are days when I log in, chat in chat, talk via PN, run around a bit perhaps, do some quests - none of which involes digging or placing blocks.

Someone said food consumption would halt at 2 breads when afk? So we seem to have some detection mechanism alreay?

At least it's pretty simple code...which alone isn't sufficient. There are days when I log in, chat in chat, talk via PN, run around a bit perhaps, do some quests - none of which involes digging or placing blocks. Someone said food consumption would halt at 2 breads when afk? So we seem to have some detection mechanism alreay?

Can we hold off on adding text and especially code as a picture?

Use the code-modifiers please!

those: ```

I just linked images from the mod website (this is not my screenshot) just to clear things

You know in git tea ![](https://)

> Can we hold off on adding text and especially code as a picture? > > Use the code-modifiers please! > > ``` > those: ``` > ``` I just linked images from the mod website (this is not my screenshot) just to clear things You know in git tea `![](https://)`
Member

There's the "whatevery the players get, the monsters get as well", meaning as soon as levels make a difference in fighting, monsters also will have a level. AS soon as players gain magic spells, monsters also will have some. I don't want a balrog "logging out", because he took damage with no player in sight ...

Just saw this now. Hm. Balrog logging out...definitely fun :-) Not fair in a fight (they're there to die), but...now and then a message "Balrog: Seems nobody's there. I'll call it a day and go home." or something like that - that'd be something :-) Or "Balrog: Who poured that poision out here? Remove that water! Now!"

It's a pity they got so strong and drop rewards so rarely.

They already kind of log off (the old ones) when they despawn.

The mobs from AliveAI pulled that on me multiple times and just "logged off". They're almost perfect in imitating not so nice players.

> There's the "whatevery the players get, the monsters get as well", meaning as soon as levels make a difference in fighting, monsters also will have a level. AS soon as players gain magic spells, monsters also will have some. I don't want a balrog "logging out", because he took damage with no player in sight ... Just saw this now. Hm. Balrog logging out...definitely fun :-) Not fair in a fight (they're there to die), but...now and then a message "Balrog: Seems nobody's there. I'll call it a day and go home." or something like that - that'd be something :-) Or "Balrog: Who poured that poision out here? Remove that water! Now!" It's a pity they got so strong and drop rewards so rarely. They already kind of log off (the old ones) when they despawn. The mobs from AliveAI pulled that on me multiple times and just "logged off". They're almost perfect in imitating not so nice players.
Member

gitea ate my long comment again o\/o

it's fairly simple to write an AFK detector, here's the one i wrote for blocky: https://github.com/BlockySurvival/bls_custom/blob/master/afk_tag.lua

related issues:

  • #894 custom messages in the nametag
  • #2669 move people out of the way when AFK-ing at /spawn or similar

Can we hold off on adding text and especially code as a picture?

I just linked images from the mod website (this is not my screenshot) just to clear things

for Reasons, CDB requires all mods have a 1920x1080 screenshot. lots of mods have no visual component, resulting in lots of mods w/ screenshots of code.

Someone said food consumption would halt at 2 breads when afk? So we seem to have some detection mechanism alreay?

this isn't an AFK detector, it's more of a "no movement" detector. the stamina tick that decreases stamina after a period of time is disabled when a player only has 2 bread. you can still drop your stamina by mining or crafting or walking.

gitea ate my long comment again o\\/o it's fairly simple to write an AFK detector, here's the one i wrote for blocky: https://github.com/BlockySurvival/bls_custom/blob/master/afk_tag.lua related issues: * #894 custom messages in the nametag * #2669 move people out of the way when AFK-ing at /spawn or similar > > Can we hold off on adding text and especially code as a picture? > > I just linked images from the mod website (this is not my screenshot) just to clear things for Reasons, CDB requires all mods have a 1920x1080 screenshot. lots of mods have no visual component, resulting in lots of mods w/ screenshots of code. > Someone said food consumption would halt at 2 breads when afk? So we seem to have some detection mechanism alreay? this isn't an AFK detector, it's more of a "no movement" detector. the stamina tick that decreases stamina after a period of time is disabled when a player only has 2 bread. you can still drop your stamina by mining or crafting or walking.
Sign in to join this conversation.
No Milestone
No Assignees
5 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#2192
No description provided.