AliasAlreadyTaken reports: add a chatcommand to output profiler prints #4440

Closed
opened 2023-05-08 21:31:38 +00:00 by yourland-report · 11 comments

AliasAlreadyTaken reports a bug:

add a chaatcommand to output profiler prints into a formspec, so taht it can be copied easily

Player position:

{
	x = 315.21099853516,
	y = 30.5,
	z = 1703.1470947266
}

Player look:

{
	x = -0.8346294760704,
	y = -0.54317444562912,
	z = 0.091406799852848
}

Player information:

{
	formspec_version = 6,
	max_rtt = 0.5,
	state = "Active",
	minor = 8,
	version_string = "5.8.0-yl_dev-bc4fc6d64",
	protocol_version = 41,
	ip_version = 6,
	min_rtt = 0.017000000923872,
	avg_rtt = 0.018999999389052,
	lang_code = "de",
	max_jitter = 0.48100000619888,
	avg_jitter = 0,
	connection_uptime = 52893,
	serialization_version = 29,
	patch = 0,
	min_jitter = 0,
	major = 5
}

Player meta:

{
	fields = {
		partychat = "party",
		punch_count = "63363",
		yl_church = "return {[\"last_heal\"] = 1622459682, [\"last_death\"] = {[\"z\"] = 307, [\"x\"] = 2876, [\"y\"] = 64}, [\"last_death_portal\"] = 1670634104}",
		team = "STAFF",
		["petz:werewolf_vignette_id"] = "19",
		["ocean_build.last_warning"] = "1.67421e+09",
		["stamina:level"] = "0",
		szutil_watch = "return {}",
		["stamina:poisoned"] = "no",
		bitten = "0",
		["stamina:exhaustion"] = "28.5",
		["unified_inventory:bags"] = "return {\"unified_inventory:bag_large\", \"unified_inventory:bag_large\", \"unified_inventory:bag_large\", \"unified_inventory:bag_large\"}",
		repellant = "0",
		["signslib:pos"] = "(2143,33,1026)",
		lagometer = "1",
		["petz:lycanthropy"] = "0",
		yl_audio_state = "off",
		yl_commons_player_joined = "1683528612",
		arenalib_watchID = "0",
		yl_unified_trash_review = "return {\"library:bookshelf 99\", \"default:book_written 1 0 \\\"\\\\u0001title\\\\u0002Application for Bailiff (April) -paneg\\\\u0003description\\\\u0002\\\\u001b(T@default)\\\\\\\"\\\\u001bFApplication for Bailiff (April) -paneg\\\\u001bE\\\\\\\" by \\\\u001bFpaneg\\\\u001bE\\\\u001bE\\\\u0003page\\\\u00021\\\\u0003infotext\\\\u0002\\\\u001b(T@books)\\\\u001bFApplication for Bailiff (April) -paneg\\\\u001bE\\\\n\\\\nby \\\\u001bFpaneg\\\\u001bE\\\\u001bE\\\\u0003owner\\\\u0002paneg\\\\u0003text\\\\u0002Same line, new verse. \\\\nIf you elect me as a bailiff, I promise I will not abuse the privs granted, and I promise I will do the best I can to serve as a bailiff.\\\\nI could go on (like I usually do) and have a long application, but most of you know me and know what I am good at (and what I am not good at).\\\\nI promise, if you do elect me as a bailiff, that I will do the absolute very best that I possibly can to help all people. \\\\nEvery day is a learning process, and a chance to learn.\\\\nThank you,\\\\nS.D.G.\\\\n-paneg\\\\n\\\\n[included, I translated {hopefully correctly :|} my application into several other languages, for ease of native readers]\\\\n\\\\nEspanol\\\\nMismo verso, nuevo verso. Si me eligen como alguacil, prometo que no abusar\\\\u00c3\\\\u00a9 de los privilegios otorgados, y prometo que har\\\\u00c3\\\\u00a9 lo mejor que pueda para servir como alguacil. Podr\\\\u00c3\\\\u00ada continuar (como suelo hacer) y tener una aplicaci\\\\u00c3\\\\u00b3n larga, pero la mayor\\\\u00c3\\\\u00ada de ustedes me conocen y saben en qu\\\\u00c3\\\\u00a9 soy bueno (y en qu\\\\u00c3\\\\u00a9 no soy bueno). Prometo, si me eligen como alguacil, que har\\\\u00c3\\\\u00a9 lo mejor que pueda para ayudar a todas las personas. Cada d\\\\u00c3\\\\u00ada es un proceso de aprendizaje y una oportunidad de aprender. \\\\nGracias,\\\\nS.D.G.\\\\n-paneg\\\\n\\\\nDeutsch\\\\nGleiche Zeile, neuer Vers. Wenn Sie mich zum Gerichtsvollzieher w\\\\u00c3\\\\u00a4hlen, verspreche ich, dass ich die gew\\\\u00c3\\\\u00a4hrten Privilegien nicht missbrauchen werde, und ich verspreche, dass ich mein Bestes tun werde, um als Gerichtsvollzieher zu dienen. Ich k\\\\u00c3\\\\u00b6nnte weitermachen (wie ich es normalerweise tue) und mich lange bewerben, aber die meisten von Ihnen kennen mich und wissen, was ich gut kann (und was ich nicht gut kann). Wenn Sie mich zum Gerichtsvollzieher w\\\\u00c3\\\\u00a4hlen, verspreche ich Ihnen, dass ich mein Bestes tun werde, um allen Menschen zu helfen. Jeder Tag ist ein Lernprozess und eine Chance zu lernen. \\\\nDanke sch\\\\u00c3\\\\u00b6n,\\\\nS.D.G.\\\\n-paneg\\\\n\\\\nFran\\\\u00c3\\\\u00a7ais\\\\nM\\\\u00c3\\\\u00aame ligne, nouveau couplet. Si vous m'\\\\u00c3\\\\u00a9lisez comme huissier, je promets que je n'abuserai pas des privil\\\\u00c3\\\\u00a8ges accord\\\\u00c3\\\\u00a9s, et je promets que je ferai de mon mieux pour servir comme huissier. Je pourrais continuer (comme je le fais habituellement) et avoir une longue candidature, mais la plupart d'entre vous me connaissent et savent en quoi je suis bon (et ce en quoi je ne suis pas bon). Je promets, si vous m'\\\\u00c3\\\\u00a9lisez comme huissier, que je ferai de mon mieux pour aider tout le monde. Chaque jour est un processus d'apprentissage et une chance d'apprendre. \\\\nMerci, \\\\nS.D.G. \\\\n-paneg\\\\n\\\\n\\\\nPortugu\\\\u00c3\\\\u00aas\\\\n\\\\nMesma linha, novo verso. Se voc\\\\u00c3\\\\u00aa me eleger como oficial de justi\\\\u00c3\\\\u00a7a, prometo que n\\\\u00c3\\\\u00a3o abusarei dos privil\\\\u00c3\\\\u00a9gios concedidos e prometo que farei o melhor que puder para servir como oficial de justi\\\\u00c3\\\\u00a7a. Eu poderia continuar (como costumo fazer) e ter uma longa inscri\\\\u00c3\\\\u00a7\\\\u00c3\\\\u00a3o, mas a maioria de voc\\\\u00c3\\\\u00aas me conhece e sabe no que sou bom (e no que n\\\\u00c3\\\\u00a3o sou bom). Eu prometo, se voc\\\\u00c3\\\\u00aa me eleger como oficial de justi\\\\u00c3\\\\u00a7a, que farei o melhor que puder para ajudar todas as pessoas. Cada dia \\\\u00c3\\\\u00a9 um processo de aprendizado e uma chance de aprender. \\\\nObrigado, \\\\nS.D.G. \\\\n-paneg\\\\n\\\\n[Mis disculpas si el traductor de Google tradujo mal esto. Ich entschuldige mich, wenn Google Translate dies falsch \\\\u00c3\\\\u00bcbersetzt hat. Mes excuses si Google translate a mal traduit ceci. Minhas desculpas se o Google Tradutor traduziu mal isso.]\\\\u0003page_max\\\\u00023\\\\u0003\\\"\", \"default:book_written 1 0 \\\"\\\\u0001owner\\\\u0002HorusDamocles\\\\u0003text\\\\u0002Why? want to be useful.\\\\nNot entirely sure can ask for this,\\\\nbut can indeed deliver full positive\\\\nfeelings towards new players and staff.\\\\nDecades of experiance with adventurers\\\\n, relations,  represented tens of thousands\\\\n in the past.\\\\nNegative: unusual hours, sometimes difficulty\\\\nconcentrating  health reasons.\\\\nHowever I do fill in gap times rather well,\\\\ntrying to be on regularly when I can 6pm pst to midnight and often to 6am-dawn pst.\\\\nIrony is that dont experiance fatigue as much\\\\nas others despite all this.\\\\nYLHaven has always felt like home during\\\\ntimes where I felt down, everyone\\\\nhere I feel is my friend, and I want it to grow.\\\\nWill always bring my best game face.\\\\nAs a side note I will still bring my modding skills\\\\nand 3D artistry when I'm inactive/if ever.\\\\n-if you have any requests please feel free to msg.\\\\nYour Friendly Horus.\\\\u0003page\\\\u00022\\\\u0003title\\\\u0002Hs(Bailiff) April Renewal\\\\u0003description\\\\u0002\\\\u001b(T@default)\\\\\\\"\\\\u001bFHs(Bailiff) April Renewal\\\\u001bE\\\\\\\" by \\\\u001bFHorusDamocles\\\\u001bE\\\\u001bE\\\\u0003page_max\\\\u00022\\\\u0003\\\"\", \"default:book_written 1 0 \\\"\\\\u0001text\\\\u0002Why? want to be useful.\\\\nNot entirely sure can ask for this,\\\\nbut can indeed deliver full positive\\\\nfeelings towards new players and staff.\\\\nDecades of experiance with adventurers\\\\n, relations,  represented tens of thousands\\\\n in the past.\\\\nNegative: unusual hours, sometimes difficulty\\\\nconcentrating  health reasons.\\\\nHowever I do fill in gap times rather well,\\\\ntrying to be on regularly when I can 6pm pst to midnight and often to 6am-dawn pst.\\\\nIrony is that dont experiance fatigue as much\\\\nas others despite all this.\\\\nYLHaven has always felt like home during\\\\ntimes where I felt down, everyone\\\\nhere I feel is my friend, and I want it to grow.\\\\nWill always bring my best game face.\\\\nAs a side note I will still bring my modding skills\\\\nand 3D artistry when I'm inactive/if ever.\\\\n\\\\nYour Friendly Horus.\\\\u0003page_max\\\\u00022\\\\u0003page\\\\u00022\\\\u0003owner\\\\u0002HorusDamocles\\\\u0003description\\\\u0002\\\\u001b(T@default)\\\\\\\"\\\\u001bFHorus May Renewal\\\\u001bE\\\\\\\" by \\\\u001bFHorusDamocles\\\\u001bE\\\\u001bE\\\\u0003title\\\\u0002Horus May Renewal\\\\u0003\\\"\"}",
		yl_commons_thankyou = "974",
		["3d_armor_inventory"] = "return {\"\", \"\", \"\", \"\", \"\", \"\"}",
		["arena_lib_editor.team_ID"] = "0",
		["ocean_build.forbidden"] = "true",
		inflicted_damage = "2854240",
		arenalib_infobox_arenaID = "0",
		["sethome:home"] = "(1983.4349365234,17.5,1183.5950927734)",
		["petz:old_override_table"] = "return {[\"speed\"] = 1, [\"new_move\"] = true, [\"sneak_glitch\"] = false, [\"gravity\"] = 1, [\"jump\"] = 1, [\"sneak\"] = true}",
		xp_redo_hud_color = "0xFFFF00",
		["ethereal:fly_timer"] = "-99",
		["petz:werewolf"] = "0",
		["arena_lib_editor.spawner_ID"] = "0",
		["ocean_build.ocean_built"] = "12",
		["petz:werewolf_clan_idx"] = "4",
		hud_state = "on",
		played_time = "80240360",
		digged_nodes = "139697",
		placed_nodes = "180229",
		died = "1583",
		crafted = "4771",
		["arena_lib_editor.players_number"] = "0",
		xp = "0"
	}
}

Log identifier


[MOD] yl_report log identifier = fmygtDvLKCPTGV0uIgJA5RdJFGjMjNaM

Profiler save:

profile-20230508T213138.json_prettyEE

Status:

# Server: version: 5.6.1-yl | game: Minetest Game | uptime: 14h 59min 15s | max lag: 8.9s | clients (30/52): AliasAlreadyTaken, Aliza, AspireMint, Bailiff, betzi, bizon, BobaCat, Boot, Chache, drgn, flux, HorusDamocles, JeCel, Julia, laira, MineWorlds, niceride, Papi, Peppaporkchop, Prismatim, Ravise, rheo, Sandra, Service, shanish3, Sokomine, STEALTH, Therottenpotato, whosit, yourgodsatan

Teleport command:

/teleport xyz 315 31 1703

Compass command:

/give_compass Construction fmygtDvLKCPTGV0uIgJA5RdJFGjMjNaM D2691E 315 31 1703
AliasAlreadyTaken reports a bug: > add a chaatcommand to output profiler prints into a formspec, so taht it can be copied easily Player position: ``` { x = 315.21099853516, y = 30.5, z = 1703.1470947266 } ``` Player look: ``` { x = -0.8346294760704, y = -0.54317444562912, z = 0.091406799852848 } ``` Player information: ``` { formspec_version = 6, max_rtt = 0.5, state = "Active", minor = 8, version_string = "5.8.0-yl_dev-bc4fc6d64", protocol_version = 41, ip_version = 6, min_rtt = 0.017000000923872, avg_rtt = 0.018999999389052, lang_code = "de", max_jitter = 0.48100000619888, avg_jitter = 0, connection_uptime = 52893, serialization_version = 29, patch = 0, min_jitter = 0, major = 5 } ``` Player meta: ``` { fields = { partychat = "party", punch_count = "63363", yl_church = "return {[\"last_heal\"] = 1622459682, [\"last_death\"] = {[\"z\"] = 307, [\"x\"] = 2876, [\"y\"] = 64}, [\"last_death_portal\"] = 1670634104}", team = "STAFF", ["petz:werewolf_vignette_id"] = "19", ["ocean_build.last_warning"] = "1.67421e+09", ["stamina:level"] = "0", szutil_watch = "return {}", ["stamina:poisoned"] = "no", bitten = "0", ["stamina:exhaustion"] = "28.5", ["unified_inventory:bags"] = "return {\"unified_inventory:bag_large\", \"unified_inventory:bag_large\", \"unified_inventory:bag_large\", \"unified_inventory:bag_large\"}", repellant = "0", ["signslib:pos"] = "(2143,33,1026)", lagometer = "1", ["petz:lycanthropy"] = "0", yl_audio_state = "off", yl_commons_player_joined = "1683528612", arenalib_watchID = "0", yl_unified_trash_review = "return {\"library:bookshelf 99\", \"default:book_written 1 0 \\\"\\\\u0001title\\\\u0002Application for Bailiff (April) -paneg\\\\u0003description\\\\u0002\\\\u001b(T@default)\\\\\\\"\\\\u001bFApplication for Bailiff (April) -paneg\\\\u001bE\\\\\\\" by \\\\u001bFpaneg\\\\u001bE\\\\u001bE\\\\u0003page\\\\u00021\\\\u0003infotext\\\\u0002\\\\u001b(T@books)\\\\u001bFApplication for Bailiff (April) -paneg\\\\u001bE\\\\n\\\\nby \\\\u001bFpaneg\\\\u001bE\\\\u001bE\\\\u0003owner\\\\u0002paneg\\\\u0003text\\\\u0002Same line, new verse. \\\\nIf you elect me as a bailiff, I promise I will not abuse the privs granted, and I promise I will do the best I can to serve as a bailiff.\\\\nI could go on (like I usually do) and have a long application, but most of you know me and know what I am good at (and what I am not good at).\\\\nI promise, if you do elect me as a bailiff, that I will do the absolute very best that I possibly can to help all people. \\\\nEvery day is a learning process, and a chance to learn.\\\\nThank you,\\\\nS.D.G.\\\\n-paneg\\\\n\\\\n[included, I translated {hopefully correctly :|} my application into several other languages, for ease of native readers]\\\\n\\\\nEspanol\\\\nMismo verso, nuevo verso. Si me eligen como alguacil, prometo que no abusar\\\\u00c3\\\\u00a9 de los privilegios otorgados, y prometo que har\\\\u00c3\\\\u00a9 lo mejor que pueda para servir como alguacil. Podr\\\\u00c3\\\\u00ada continuar (como suelo hacer) y tener una aplicaci\\\\u00c3\\\\u00b3n larga, pero la mayor\\\\u00c3\\\\u00ada de ustedes me conocen y saben en qu\\\\u00c3\\\\u00a9 soy bueno (y en qu\\\\u00c3\\\\u00a9 no soy bueno). Prometo, si me eligen como alguacil, que har\\\\u00c3\\\\u00a9 lo mejor que pueda para ayudar a todas las personas. Cada d\\\\u00c3\\\\u00ada es un proceso de aprendizaje y una oportunidad de aprender. \\\\nGracias,\\\\nS.D.G.\\\\n-paneg\\\\n\\\\nDeutsch\\\\nGleiche Zeile, neuer Vers. Wenn Sie mich zum Gerichtsvollzieher w\\\\u00c3\\\\u00a4hlen, verspreche ich, dass ich die gew\\\\u00c3\\\\u00a4hrten Privilegien nicht missbrauchen werde, und ich verspreche, dass ich mein Bestes tun werde, um als Gerichtsvollzieher zu dienen. Ich k\\\\u00c3\\\\u00b6nnte weitermachen (wie ich es normalerweise tue) und mich lange bewerben, aber die meisten von Ihnen kennen mich und wissen, was ich gut kann (und was ich nicht gut kann). Wenn Sie mich zum Gerichtsvollzieher w\\\\u00c3\\\\u00a4hlen, verspreche ich Ihnen, dass ich mein Bestes tun werde, um allen Menschen zu helfen. Jeder Tag ist ein Lernprozess und eine Chance zu lernen. \\\\nDanke sch\\\\u00c3\\\\u00b6n,\\\\nS.D.G.\\\\n-paneg\\\\n\\\\nFran\\\\u00c3\\\\u00a7ais\\\\nM\\\\u00c3\\\\u00aame ligne, nouveau couplet. Si vous m'\\\\u00c3\\\\u00a9lisez comme huissier, je promets que je n'abuserai pas des privil\\\\u00c3\\\\u00a8ges accord\\\\u00c3\\\\u00a9s, et je promets que je ferai de mon mieux pour servir comme huissier. Je pourrais continuer (comme je le fais habituellement) et avoir une longue candidature, mais la plupart d'entre vous me connaissent et savent en quoi je suis bon (et ce en quoi je ne suis pas bon). Je promets, si vous m'\\\\u00c3\\\\u00a9lisez comme huissier, que je ferai de mon mieux pour aider tout le monde. Chaque jour est un processus d'apprentissage et une chance d'apprendre. \\\\nMerci, \\\\nS.D.G. \\\\n-paneg\\\\n\\\\n\\\\nPortugu\\\\u00c3\\\\u00aas\\\\n\\\\nMesma linha, novo verso. Se voc\\\\u00c3\\\\u00aa me eleger como oficial de justi\\\\u00c3\\\\u00a7a, prometo que n\\\\u00c3\\\\u00a3o abusarei dos privil\\\\u00c3\\\\u00a9gios concedidos e prometo que farei o melhor que puder para servir como oficial de justi\\\\u00c3\\\\u00a7a. Eu poderia continuar (como costumo fazer) e ter uma longa inscri\\\\u00c3\\\\u00a7\\\\u00c3\\\\u00a3o, mas a maioria de voc\\\\u00c3\\\\u00aas me conhece e sabe no que sou bom (e no que n\\\\u00c3\\\\u00a3o sou bom). Eu prometo, se voc\\\\u00c3\\\\u00aa me eleger como oficial de justi\\\\u00c3\\\\u00a7a, que farei o melhor que puder para ajudar todas as pessoas. Cada dia \\\\u00c3\\\\u00a9 um processo de aprendizado e uma chance de aprender. \\\\nObrigado, \\\\nS.D.G. \\\\n-paneg\\\\n\\\\n[Mis disculpas si el traductor de Google tradujo mal esto. Ich entschuldige mich, wenn Google Translate dies falsch \\\\u00c3\\\\u00bcbersetzt hat. Mes excuses si Google translate a mal traduit ceci. Minhas desculpas se o Google Tradutor traduziu mal isso.]\\\\u0003page_max\\\\u00023\\\\u0003\\\"\", \"default:book_written 1 0 \\\"\\\\u0001owner\\\\u0002HorusDamocles\\\\u0003text\\\\u0002Why? want to be useful.\\\\nNot entirely sure can ask for this,\\\\nbut can indeed deliver full positive\\\\nfeelings towards new players and staff.\\\\nDecades of experiance with adventurers\\\\n, relations, represented tens of thousands\\\\n in the past.\\\\nNegative: unusual hours, sometimes difficulty\\\\nconcentrating health reasons.\\\\nHowever I do fill in gap times rather well,\\\\ntrying to be on regularly when I can 6pm pst to midnight and often to 6am-dawn pst.\\\\nIrony is that dont experiance fatigue as much\\\\nas others despite all this.\\\\nYLHaven has always felt like home during\\\\ntimes where I felt down, everyone\\\\nhere I feel is my friend, and I want it to grow.\\\\nWill always bring my best game face.\\\\nAs a side note I will still bring my modding skills\\\\nand 3D artistry when I'm inactive/if ever.\\\\n-if you have any requests please feel free to msg.\\\\nYour Friendly Horus.\\\\u0003page\\\\u00022\\\\u0003title\\\\u0002Hs(Bailiff) April Renewal\\\\u0003description\\\\u0002\\\\u001b(T@default)\\\\\\\"\\\\u001bFHs(Bailiff) April Renewal\\\\u001bE\\\\\\\" by \\\\u001bFHorusDamocles\\\\u001bE\\\\u001bE\\\\u0003page_max\\\\u00022\\\\u0003\\\"\", \"default:book_written 1 0 \\\"\\\\u0001text\\\\u0002Why? want to be useful.\\\\nNot entirely sure can ask for this,\\\\nbut can indeed deliver full positive\\\\nfeelings towards new players and staff.\\\\nDecades of experiance with adventurers\\\\n, relations, represented tens of thousands\\\\n in the past.\\\\nNegative: unusual hours, sometimes difficulty\\\\nconcentrating health reasons.\\\\nHowever I do fill in gap times rather well,\\\\ntrying to be on regularly when I can 6pm pst to midnight and often to 6am-dawn pst.\\\\nIrony is that dont experiance fatigue as much\\\\nas others despite all this.\\\\nYLHaven has always felt like home during\\\\ntimes where I felt down, everyone\\\\nhere I feel is my friend, and I want it to grow.\\\\nWill always bring my best game face.\\\\nAs a side note I will still bring my modding skills\\\\nand 3D artistry when I'm inactive/if ever.\\\\n\\\\nYour Friendly Horus.\\\\u0003page_max\\\\u00022\\\\u0003page\\\\u00022\\\\u0003owner\\\\u0002HorusDamocles\\\\u0003description\\\\u0002\\\\u001b(T@default)\\\\\\\"\\\\u001bFHorus May Renewal\\\\u001bE\\\\\\\" by \\\\u001bFHorusDamocles\\\\u001bE\\\\u001bE\\\\u0003title\\\\u0002Horus May Renewal\\\\u0003\\\"\"}", yl_commons_thankyou = "974", ["3d_armor_inventory"] = "return {\"\", \"\", \"\", \"\", \"\", \"\"}", ["arena_lib_editor.team_ID"] = "0", ["ocean_build.forbidden"] = "true", inflicted_damage = "2854240", arenalib_infobox_arenaID = "0", ["sethome:home"] = "(1983.4349365234,17.5,1183.5950927734)", ["petz:old_override_table"] = "return {[\"speed\"] = 1, [\"new_move\"] = true, [\"sneak_glitch\"] = false, [\"gravity\"] = 1, [\"jump\"] = 1, [\"sneak\"] = true}", xp_redo_hud_color = "0xFFFF00", ["ethereal:fly_timer"] = "-99", ["petz:werewolf"] = "0", ["arena_lib_editor.spawner_ID"] = "0", ["ocean_build.ocean_built"] = "12", ["petz:werewolf_clan_idx"] = "4", hud_state = "on", played_time = "80240360", digged_nodes = "139697", placed_nodes = "180229", died = "1583", crafted = "4771", ["arena_lib_editor.players_number"] = "0", xp = "0" } } ``` Log identifier ``` [MOD] yl_report log identifier = fmygtDvLKCPTGV0uIgJA5RdJFGjMjNaM ``` Profiler save: ``` profile-20230508T213138.json_prettyEE ``` Status: ``` # Server: version: 5.6.1-yl | game: Minetest Game | uptime: 14h 59min 15s | max lag: 8.9s | clients (30/52): AliasAlreadyTaken, Aliza, AspireMint, Bailiff, betzi, bizon, BobaCat, Boot, Chache, drgn, flux, HorusDamocles, JeCel, Julia, laira, MineWorlds, niceride, Papi, Peppaporkchop, Prismatim, Ravise, rheo, Sandra, Service, shanish3, Sokomine, STEALTH, Therottenpotato, whosit, yourgodsatan ``` Teleport command: ``` /teleport xyz 315 31 1703 ``` Compass command: ``` /give_compass Construction fmygtDvLKCPTGV0uIgJA5RdJFGjMjNaM D2691E 315 31 1703 ```
AliasAlreadyTaken was assigned by yourland-report 2023-05-08 21:31:38 +00:00
AliasAlreadyTaken added the
1. kind/enhancement
label 2023-05-08 21:43:50 +00:00
Member

local modname = "profiler_window"
local modpath = minetest.get_modpath(modname)
local FORMNAME = modname .. ":output"

local showprof
if minetest.registered_chatcommands['profiler'] then
    showprof = function(playername, param)
        local ret,text = minetest.registered_chatcommands['profiler'].func('profiler', 'print')
        if ret then
            local formspec = string.format([=[
                size[20,15]
                style_type[textarea;font=mono;font_size=*0.8]
                textarea[0.2,0.2;19.8,15;;
                %s
                ;]
                button_exit[9,14;2,1;ok;Close]
                ]=],
                minetest.formspec_escape(text))
            minetest.show_formspec(playername, FORMNAME, formspec)
        end
    end
else
    -- the default if profiler is not enabled
    showprof = function(playername, _)
        minetest.chat_send_player(playername, "Profiler is disabled.")
    end
end

minetest.register_chatcommand("showprof", {
    params = "none",
    description = "Show output of '/profile print' in a formspec.",
    privs = { server = true },
    func = showprof
})

Should privs be staff?

Should I make a separate mod? Or it goes into yl_something?
Also, sorry if formspec is not ideal...

Also, is filter arg needed?

```lua local modname = "profiler_window" local modpath = minetest.get_modpath(modname) local FORMNAME = modname .. ":output" local showprof if minetest.registered_chatcommands['profiler'] then showprof = function(playername, param) local ret,text = minetest.registered_chatcommands['profiler'].func('profiler', 'print') if ret then local formspec = string.format([=[ size[20,15] style_type[textarea;font=mono;font_size=*0.8] textarea[0.2,0.2;19.8,15;; %s ;] button_exit[9,14;2,1;ok;Close] ]=], minetest.formspec_escape(text)) minetest.show_formspec(playername, FORMNAME, formspec) end end else -- the default if profiler is not enabled showprof = function(playername, _) minetest.chat_send_player(playername, "Profiler is disabled.") end end minetest.register_chatcommand("showprof", { params = "none", description = "Show output of '/profile print' in a formspec.", privs = { server = true }, func = showprof }) ``` Should privs be `staff`? Should I make a separate mod? Or it goes into yl_something? Also, sorry if formspec is not ideal... Also, is `filter` arg needed?
whosit changed title from AliasAlreadyTaken reports: add a chaatcommand to output p ... to AliasAlreadyTaken reports: add a chatcommand to output p ... 2023-05-09 16:37:16 +00:00
whosit changed title from AliasAlreadyTaken reports: add a chatcommand to output p ... to AliasAlreadyTaken reports: add a chatcommand to output profiler prints 2023-05-09 16:37:48 +00:00

Best place to add that would be yl_commons, the yl_stable branch into yl_commons/chatcommands :)

Best place to add that would be yl_commons, the yl_stable branch into yl_commons/chatcommands :)
Member

f51391531b
Done as you said.

Forgot to add the bug # to the commit message :\

https://gitea.your-land.de/your-land/yl_commons/commit/f51391531b903d4eb3c64b90ca5f808907a326e9 Done as you said. Forgot to add the bug # to the commit message :\
AliasAlreadyTaken added this to the 1.1.119 milestone 2023-05-10 13:28:40 +00:00
AliasAlreadyTaken added the
4. step/ready to QA test
label 2023-05-10 13:28:44 +00:00

QA

Would be cool if we could filter, but works out of the box and is copyable
Priv is ok IMO, but curious to see what others say?
We could even make it that the content can be copied into a book like the sherlock magnifier : https://gitea.your-land.de/your-land/yl_commons/src/branch/yl_stable/tools/sherlock_magnifier.lua

QA Would be cool if we could filter, but works out of the box and is copyable Priv is ok IMO, but curious to see what others say? We could even make it that the content can be copied into a book like the sherlock magnifier : https://gitea.your-land.de/your-land/yl_commons/src/branch/yl_stable/tools/sherlock_magnifier.lua
AliasAlreadyTaken added the
ugh/QA OK
label 2023-05-10 14:22:00 +00:00
Member

8f2fed9859

can use /showprof pipeworks now

https://gitea.your-land.de/your-land/yl_commons/commit/8f2fed98593d184e29e3aba5f4521233179aab5d can use `/showprof pipeworks` now
AliasAlreadyTaken removed the
ugh/QA OK
label 2023-05-11 01:35:29 +00:00

Nice :D Back to testing :P

Nice :D Back to testing :P
Member

this feels like something that absolutely should be added to the engine ("core" lua).

this feels like something that absolutely should be added to the engine ("core" lua).
Should go here: https://gitea.your-land.de/your-land/administration/issues/174
Member

"Get book" button:
6c13ee27d1

"Get book" button: https://gitea.your-land.de/your-land/yl_commons/commit/6c13ee27d12240665a1aa4386120a79ae68884f7
Member

"Get book" button:
local MAX_TEXT_SIZE = 100000 -- FIXME what is actual limit?

640k can cause problems, see https://github.com/minetest/minetest/pull/13380. 100k is probably fine.

also cf. #2790

> "Get book" button: > `local MAX_TEXT_SIZE = 100000 -- FIXME what is actual limit?` 640k can cause problems, see https://github.com/minetest/minetest/pull/13380. 100k is probably fine. also cf. #2790
AliasAlreadyTaken added the
ugh/QA OK
label 2023-05-13 15:03:59 +00:00
Member

this is really useful, and live.

this is really useful, and live.
flux closed this issue 2023-05-18 21:44:56 +00:00
flux added
5. result/fixed
and removed
4. step/ready to QA test
labels 2023-05-18 21:45:04 +00:00
AliasAlreadyTaken was unassigned by flux 2023-05-18 21:45:08 +00:00
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#4440
No description provided.