Administrator reports: ticker terminates too early, most likely utc VS local time problem ... #8473

Open
opened 2025-04-27 15:00:10 +02:00 by yourland-report · 2 comments

Administrator reports a bug:

ticker terminates too early, most likely utc VS local time problem

Player position:

{
	x = 2001.4990234375,
	y = 14.5,
	z = 1166.5690917969
}

Player look:

{
	x = -0.78362512588501,
	y = -0.59888386726379,
	z = 0.16513572633266
}

Player information:

{
	ip_version = 6,
	min_rtt = 0.014999999664724,
	min_jitter = 0,
	max_jitter = 0.57599997520447,
	avg_jitter = 0,
	connection_uptime = 3192,
	serialization_version = 29,
	patch = 0,
	max_rtt = 0.59299999475479,
	protocol_version = 46,
	minor = 12,
	formspec_version = 8,
	state = "Active",
	version_string = "5.12.0-dev-04e82749d",
	lang_code = "",
	avg_rtt = 0.016000000759959,
	major = 5
}

Player meta:

{
	fields = {
		["stamina:exhaustion"] = "47",
		["3d_armor_inventory"] = "return {\"3d_armor:boots_quickrun\", \"\", \"\", \"\", \"\", \"\"}",
		played_time = "5704956",
		digged_nodes = "78706",
		placed_nodes = "127912",
		died = "185",
		["hud_manager:spawnit:hud_enabled"] = "y",
		["unified_inventory:bags"] = "return {\"unified_inventory:bag_large\", \"unified_inventory:bag_large\", \"unified_inventory:bag_large\", \"unified_inventory:bag_large\"}",
		["ocean_build.last_warning"] = "1705058032",
		["signslib:pos"] = "(19942,19976,20049)",
		["ocean_build.ocean_built"] = "4",
		hud_state = "on",
		punch_count = "812",
		xp = "0",
		inflicted_damage = "32776",
		yl_commons_player_joined = "1745755624",
		yl_church = "return {[\"last_death\"] = {[\"y\"] = 54, [\"x\"] = -3844, [\"z\"] = -5201}}",
		arenalib_infobox_arenaID = "0",
		["sethome:home"] = "(2218.833984375,40.9880027771,981.63397216797)",
		crafted = "196",
		bitten = "0",
		lagometer = "1",
		yl_commons_thankyou = "29",
		["stamina:level"] = "0",
		["ethereal:fly_timer"] = "-99",
		["hud_manager:yl_snowball:hud__enabled"] = "n",
		repellant = "0"
	}
}

Log identifier


[MOD] yl_report log identifier = 7jhZMH58OZSDggn79LhAV1BN9c1bZjQI

Profiler save:

profile-20250427T150010.json_prettyEE

Status:

# Server: version: 5.11.0-yl-test-lt | game: Minetest Game | uptime: 1d 18h 30min 46s | max lag: 0.444s | clients (3/52): Administrator, AliasAlreadyTaken, raf123

Teleport command:

/teleport xyz 2001 15 1167

Compass command:

/give_compass Construction 7jhZMH58OZSDggn79LhAV1BN9c1bZjQI D2691E 2001 15 1167
Administrator reports a bug: > ticker terminates too early, most likely utc VS local time problem Player position: ``` { x = 2001.4990234375, y = 14.5, z = 1166.5690917969 } ``` Player look: ``` { x = -0.78362512588501, y = -0.59888386726379, z = 0.16513572633266 } ``` Player information: ``` { ip_version = 6, min_rtt = 0.014999999664724, min_jitter = 0, max_jitter = 0.57599997520447, avg_jitter = 0, connection_uptime = 3192, serialization_version = 29, patch = 0, max_rtt = 0.59299999475479, protocol_version = 46, minor = 12, formspec_version = 8, state = "Active", version_string = "5.12.0-dev-04e82749d", lang_code = "", avg_rtt = 0.016000000759959, major = 5 } ``` Player meta: ``` { fields = { ["stamina:exhaustion"] = "47", ["3d_armor_inventory"] = "return {\"3d_armor:boots_quickrun\", \"\", \"\", \"\", \"\", \"\"}", played_time = "5704956", digged_nodes = "78706", placed_nodes = "127912", died = "185", ["hud_manager:spawnit:hud_enabled"] = "y", ["unified_inventory:bags"] = "return {\"unified_inventory:bag_large\", \"unified_inventory:bag_large\", \"unified_inventory:bag_large\", \"unified_inventory:bag_large\"}", ["ocean_build.last_warning"] = "1705058032", ["signslib:pos"] = "(19942,19976,20049)", ["ocean_build.ocean_built"] = "4", hud_state = "on", punch_count = "812", xp = "0", inflicted_damage = "32776", yl_commons_player_joined = "1745755624", yl_church = "return {[\"last_death\"] = {[\"y\"] = 54, [\"x\"] = -3844, [\"z\"] = -5201}}", arenalib_infobox_arenaID = "0", ["sethome:home"] = "(2218.833984375,40.9880027771,981.63397216797)", crafted = "196", bitten = "0", lagometer = "1", yl_commons_thankyou = "29", ["stamina:level"] = "0", ["ethereal:fly_timer"] = "-99", ["hud_manager:yl_snowball:hud__enabled"] = "n", repellant = "0" } } ``` Log identifier ``` [MOD] yl_report log identifier = 7jhZMH58OZSDggn79LhAV1BN9c1bZjQI ``` Profiler save: ``` profile-20250427T150010.json_prettyEE ``` Status: ``` # Server: version: 5.11.0-yl-test-lt | game: Minetest Game | uptime: 1d 18h 30min 46s | max lag: 0.444s | clients (3/52): Administrator, AliasAlreadyTaken, raf123 ``` Teleport command: ``` /teleport xyz 2001 15 1167 ``` Compass command: ``` /give_compass Construction 7jhZMH58OZSDggn79LhAV1BN9c1bZjQI D2691E 2001 15 1167 ```
AliasAlreadyTaken was assigned by yourland-report 2025-04-27 15:00:10 +02:00
AliasAlreadyTaken added the
1. kind/bug
label 2025-04-27 15:19:14 +02:00
AliasAlreadyTaken added this to the 1.1.128 milestone 2025-04-27 15:47:37 +02:00
AliasAlreadyTaken added the
4. step/ready to QA test
label 2025-04-27 18:00:55 +02:00
Member

It's still kinda weird... I guess "frequency" is aligned with the moment you run the command, not with the "end time".
Just to demonstrate what I mean:
If the ticker has frequency 1 hour, but runs only for 1 minute, I would expect it to say message once after one minute.
Instead, it says it once when you run it and never again.

If you have an event planned, and want people to remind about it every 1 hour, until 15 min before the event starts, you'd have to caculate frequency and starting time just right, instead of specitying msg$1h$<15-min-before-event>

It's still kinda weird... I guess "frequency" is aligned with the moment you run the command, not with the "end time". Just to demonstrate what I mean: If the ticker has frequency 1 hour, but runs only for 1 minute, I would expect it to say message once after one minute. Instead, it says it once when you run it and never again. If you have an event planned, and want people to remind about it every 1 hour, until 15 min before the event starts, you'd have to caculate frequency and starting time just right, instead of specitying `msg$1h$<15-min-before-event>`

True - the ticker is tied to the send-time, not the "finish" time. We could try to make that happen. So far, when an event requires more frequent ticker messages the closer it gets, I'd probably use the yl_scheduler to create those tickers. Or one could make a yl_ticker_addon. Most reasonable would be ofc to have the feature in the ticker itself.

The reaosn why tickers in general do not have guaranteed "showtime" is that we put them into buckets, to spread them over the chosen interval. Like when you have one ticker that is meant to run every hour, is displays once per hour. If you have three tickers that are intended to be displayed once per hour, they are spread out and one of them is displayed every 20 min. If we had guaranteed ticker showing connected to the "finish" time, we could satisfy only one of the conditions, either the spread or the guarantee.

True - the ticker is tied to the send-time, not the "finish" time. We could try to make that happen. So far, when an event requires more frequent ticker messages the closer it gets, I'd probably use the yl_scheduler to create those tickers. Or one could make a yl_ticker_addon. Most reasonable would be ofc to have the feature in the ticker itself. The reaosn why tickers in general do not have guaranteed "showtime" is that we put them into buckets, to spread them over the chosen interval. Like when you have one ticker that is meant to run every hour, is displays once per hour. If you have three tickers that are intended to be displayed once per hour, they are spread out and one of them is displayed every 20 min. If we had guaranteed ticker showing connected to the "finish" time, we could satisfy only one of the conditions, either the spread or the guarantee.
AliasAlreadyTaken added the
4. step/QA OK
label 2025-05-13 23:36:07 +02: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#8473
No description provided.