AliasAlreadyTaken reports: skinsdb skin listing minor iss ... #6918

Closed
opened 2024-06-09 12:54:08 +02:00 by yourland-report · 8 comments

AliasAlreadyTaken reports a bug:

skinsdb skin listing minor issues

Player position:

{
	y = 14.5,
	z = 1155.2469482422,
	x = 2000.3529052734
}

Player look:

{
	y = -0.092544369399548,
	z = -0.012859653681517,
	x = 0.99562555551529
}

Player information:

{
	lang_code = "de",
	ip_version = 6,
	min_rtt = 0.0010000000474975,
	min_jitter = 0,
	max_jitter = 0.30599999427795,
	avg_jitter = 0,
	connection_uptime = 1562,
	max_rtt = 0.3129999935627,
	avg_rtt = 0.0010000000474975,
	formspec_version = 7,
	protocol_version = 44
}

Player meta:

{
	fields = {
		arenalib_watchID = "0",
		["stamina:exhaustion"] = "67.5",
		repellant = "0",
		szutil_watch = "return {}",
		["sethome:home"] = "(1983.4349365234,17.5,1183.5950927734)",
		yl_commons_player_joined = "1717928887",
		["3d_armor_inventory"] = "return {\"3d_armor:boots_quickfall\", \"\", \"\", \"\", \"\", \"\"}",
		["signslib:pos"] = "(-7122,23,-9909)",
		xp_redo_hud_color = "0xFFFF00",
		["petz:lycanthropy"] = "0",
		crafted = "4819",
		hud_state = "on",
		["arena_lib_editor.spawner_ID"] = "0",
		punch_count = "65277",
		yl_church = "return {[\"last_death_portal\"] = 1713879727, [\"last_heal\"] = 1707613077, [\"last_death\"] = {[\"x\"] = 1979, [\"y\"] = 18, [\"z\"] = 1174}}",
		inflicted_damage = "3023946",
		["petz:werewolf"] = "0",
		["petz:old_override_table"] = "return {[\"speed\"] = 1, [\"new_move\"] = true, [\"sneak_glitch\"] = false, [\"gravity\"] = 1, [\"jump\"] = 1, [\"sneak\"] = true}",
		["unified_inventory:bags"] = "return {\"unified_inventory:bag_large\", \"unified_inventory:bag_large\", \"unified_inventory:bag_large\", \"unified_inventory:bag_large\"}",
		["arena_lib_editor.team_ID"] = "0",
		xp = "0",
		bitten = "0",
		arenalib_infobox_arenaID = "0",
		partypvp = "true",
		["ocean_build.forbidden"] = "true",
		["petz:werewolf_clan_idx"] = "4",
		lagometer = "1",
		["ocean_build.ocean_built"] = "12",
		["hud_manager:spawnit:hud_enabled"] = "y",
		partychat = "party",
		played_time = "107049796",
		digged_nodes = "145526",
		placed_nodes = "184247",
		died = "1593",
		team = "STAFF",
		["stamina:level"] = "0",
		yl_audio_state = "off",
		["ocean_build.last_warning"] = "1.67421e+09",
		yl_commons_thankyou = "1615",
		["arena_lib_editor.players_number"] = "0",
		["ethereal:fly_timer"] = "-99",
		["petz:werewolf_vignette_id"] = "19",
		["stamina:poisoned"] = "no"
	}
}

Log identifier


[MOD] yl_report log identifier = NRoZq82Wqi97txqNp2ZA55wS9jicZAHi

Profiler save:

profile-20240609T125407.json_prettyEE

Status:

# Server: version: 5.9.0-dev-neptune | game: Minetest Game | uptime: 26min 7s | max lag: 0.121s | clients (2/52): AliasAlreadyTaken, Ernesto

Teleport command:

/teleport xyz 2000 15 1155

Compass command:

/give_compass Construction NRoZq82Wqi97txqNp2ZA55wS9jicZAHi D2691E 2000 15 1155
AliasAlreadyTaken reports a bug: > skinsdb skin listing minor issues Player position: ``` { y = 14.5, z = 1155.2469482422, x = 2000.3529052734 } ``` Player look: ``` { y = -0.092544369399548, z = -0.012859653681517, x = 0.99562555551529 } ``` Player information: ``` { lang_code = "de", ip_version = 6, min_rtt = 0.0010000000474975, min_jitter = 0, max_jitter = 0.30599999427795, avg_jitter = 0, connection_uptime = 1562, max_rtt = 0.3129999935627, avg_rtt = 0.0010000000474975, formspec_version = 7, protocol_version = 44 } ``` Player meta: ``` { fields = { arenalib_watchID = "0", ["stamina:exhaustion"] = "67.5", repellant = "0", szutil_watch = "return {}", ["sethome:home"] = "(1983.4349365234,17.5,1183.5950927734)", yl_commons_player_joined = "1717928887", ["3d_armor_inventory"] = "return {\"3d_armor:boots_quickfall\", \"\", \"\", \"\", \"\", \"\"}", ["signslib:pos"] = "(-7122,23,-9909)", xp_redo_hud_color = "0xFFFF00", ["petz:lycanthropy"] = "0", crafted = "4819", hud_state = "on", ["arena_lib_editor.spawner_ID"] = "0", punch_count = "65277", yl_church = "return {[\"last_death_portal\"] = 1713879727, [\"last_heal\"] = 1707613077, [\"last_death\"] = {[\"x\"] = 1979, [\"y\"] = 18, [\"z\"] = 1174}}", inflicted_damage = "3023946", ["petz:werewolf"] = "0", ["petz:old_override_table"] = "return {[\"speed\"] = 1, [\"new_move\"] = true, [\"sneak_glitch\"] = false, [\"gravity\"] = 1, [\"jump\"] = 1, [\"sneak\"] = true}", ["unified_inventory:bags"] = "return {\"unified_inventory:bag_large\", \"unified_inventory:bag_large\", \"unified_inventory:bag_large\", \"unified_inventory:bag_large\"}", ["arena_lib_editor.team_ID"] = "0", xp = "0", bitten = "0", arenalib_infobox_arenaID = "0", partypvp = "true", ["ocean_build.forbidden"] = "true", ["petz:werewolf_clan_idx"] = "4", lagometer = "1", ["ocean_build.ocean_built"] = "12", ["hud_manager:spawnit:hud_enabled"] = "y", partychat = "party", played_time = "107049796", digged_nodes = "145526", placed_nodes = "184247", died = "1593", team = "STAFF", ["stamina:level"] = "0", yl_audio_state = "off", ["ocean_build.last_warning"] = "1.67421e+09", yl_commons_thankyou = "1615", ["arena_lib_editor.players_number"] = "0", ["ethereal:fly_timer"] = "-99", ["petz:werewolf_vignette_id"] = "19", ["stamina:poisoned"] = "no" } } ``` Log identifier ``` [MOD] yl_report log identifier = NRoZq82Wqi97txqNp2ZA55wS9jicZAHi ``` Profiler save: ``` profile-20240609T125407.json_prettyEE ``` Status: ``` # Server: version: 5.9.0-dev-neptune | game: Minetest Game | uptime: 26min 7s | max lag: 0.121s | clients (2/52): AliasAlreadyTaken, Ernesto ``` Teleport command: ``` /teleport xyz 2000 15 1155 ``` Compass command: ``` /give_compass Construction NRoZq82Wqi97txqNp2ZA55wS9jicZAHi D2691E 2000 15 1155 ```
AliasAlreadyTaken was assigned by yourland-report 2024-06-09 12:54:08 +02:00
  1. After update everyone will have default skin unless we fix that on the database. Could you please add a migration?
  2. Could you make process_skin_texture public so that other mods can add skins as well?
  3. The _hand property removes all separators and simply concatenates the text, that again creates ambiguity. Example: character.my_name.my_skin.png VS character.my.name_my_skin.png, both lead to skinsdb:charactermynamemyskinpng
  4. Private skins do not show up anymore in the selectable list
1. After update everyone will have default skin unless we fix that on the database. Could you please add a migration? 2. Could you make process_skin_texture public so that other mods can add skins as well? 3. The `_hand` property removes all separators and simply concatenates the text, that again creates ambiguity. Example: `character.my_name.my_skin.png` VS `character.my.name_my_skin.png`, both lead to `skinsdb:charactermynamemyskinpng` 4. Private skins do not show up anymore in the selectable list
AliasAlreadyTaken added the
1. kind/bug
3. source/mod upstream
labels 2024-06-09 12:54:55 +02:00
Upstream issues 1. https://github.com/minetest-mods/skinsdb/issues/101 2. https://github.com/minetest-mods/skinsdb/issues/102 3. https://github.com/minetest-mods/skinsdb/issues/103 4. https://github.com/minetest-mods/skinsdb/issues/104

//lua local t = skins.meta core.safe_file_write(core.get_worldpath() .."/skins_new.txt" , dump(t))

Here's before the fix:

	character_warrior_m3 = {
		__index = {
			__index = <circular reference>,
			set_hand_from_texture = <function>,
			is_applicable_for_player = <function>,
			set_skin = <function>,
			apply_skin_to_player = <function>,
			get_preview = <function>,
			get_hand = <function>,
			set_texture = <function>,
			set_preview = <function>,
			set_meta = <function>,
			get_meta = <function>,
			get_texture = <function>,
			get_key = <function>,
			get_meta_string = <function>,
			set_hand = <function>
		},
		_hand = "skinsdb:characterwarriorm3png",
		name = "warrior_m3",
		_key = "character_warrior_m3",
		format = "1.8",
		_sort_id = 5000,
		_texture = "character.warrior_m3.png"
	},

This is after the fix:

	["character.warrior_m3"] = {
		name = "warrior_m3",
		format = "1.8",
		inv_page = 3,
		__index = {
			is_applicable_for_player = <function>,
			set_skin = <function>,
			get_preview = <function>,
			apply_skin_to_player = <function>,
			get_texture = <function>,
			set_preview = <function>,
			get_hand = <function>,
			set_hand_from_texture = <function>,
			__index = <circular reference>,
			set_meta = <function>,
			get_key = <function>,
			get_meta_string = <function>,
			get_meta = <function>,
			set_hand = <function>,
			set_texture = <function>
		},
		inv_page_index = 10,
		_sort_id = 5000,
		_texture = "character.warrior_m3.png",
		_key = "character.warrior_m3",
		_hand = "skinsdb:characterwarriorm3png"
	},
`//lua local t = skins.meta core.safe_file_write(core.get_worldpath() .."/skins_new.txt" , dump(t))` Here's before the fix: ``` character_warrior_m3 = { __index = { __index = <circular reference>, set_hand_from_texture = <function>, is_applicable_for_player = <function>, set_skin = <function>, apply_skin_to_player = <function>, get_preview = <function>, get_hand = <function>, set_texture = <function>, set_preview = <function>, set_meta = <function>, get_meta = <function>, get_texture = <function>, get_key = <function>, get_meta_string = <function>, set_hand = <function> }, _hand = "skinsdb:characterwarriorm3png", name = "warrior_m3", _key = "character_warrior_m3", format = "1.8", _sort_id = 5000, _texture = "character.warrior_m3.png" }, ``` This is after the fix: ``` ["character.warrior_m3"] = { name = "warrior_m3", format = "1.8", inv_page = 3, __index = { is_applicable_for_player = <function>, set_skin = <function>, get_preview = <function>, apply_skin_to_player = <function>, get_texture = <function>, set_preview = <function>, get_hand = <function>, set_hand_from_texture = <function>, __index = <circular reference>, set_meta = <function>, get_key = <function>, get_meta_string = <function>, get_meta = <function>, set_hand = <function>, set_texture = <function> }, inv_page_index = 10, _sort_id = 5000, _texture = "character.warrior_m3.png", _key = "character.warrior_m3", _hand = "skinsdb:characterwarriorm3png" }, ```
  1. The PR says it cannot find a skin IF the player has an underscore in it, the skin name does not have an underscore in it.
2024-06-10 14:33:37: WARNING[Server]: skinsdb: cannot find matching skin 'player_playername_with_underscore_2' for player 'playername_with_underscore'.

Because we already renamed all the skins, because we had a dot separator already. Please note, while YL tries to stick to the naming scheme player_playername_number.png, other servers may happily name theirs player_playername_with_underscores_skinname_with_underscores.png

NOK

  1. process_skin_texture is not yet public NOK

  2. The hand key ist still ambiguous NOK

  3. Private skins show up in the right list again OK

1. The PR says it cannot find a skin IF the player has an underscore in it, the skin name does not have an underscore in it. ``` 2024-06-10 14:33:37: WARNING[Server]: skinsdb: cannot find matching skin 'player_playername_with_underscore_2' for player 'playername_with_underscore'. ``` Because we already renamed all the skins, because we had a dot separator already. Please note, while YL tries to stick to the naming scheme `player_playername_number.png`, other servers may happily name theirs `player_playername_with_underscores_skinname_with_underscores.png` NOK 2. process_skin_texture is not yet public NOK 3. The hand key ist still ambiguous NOK 4. Private skins show up in the right list again OK

To find all names with underscores in modstorage:

 SELECT count(*) FROM mod_storage WHERE modname = 'skinsdb' AND strpos(encode(key, 'escape'), '_') > 0;
To find all names with underscores in modstorage: ``` SELECT count(*) FROM mod_storage WHERE modname = 'skinsdb' AND strpos(encode(key, 'escape'), '_') > 0; ```
AliasAlreadyTaken added this to the 1.1.125 milestone 2024-07-03 16:18:43 +02:00
AliasAlreadyTaken added the
4. step/ready to QA test
label 2024-07-18 05:51:25 +02:00

Most of that fixed upstream

Most of that fixed upstream

Tested the naming of skins in inventory and using /skinsdb and all skins had proper naming convention.

Tested the naming of skins in inventory and using /skinsdb and all skins had proper naming convention.
daydream added the
4. step/QA OK
label 2024-07-30 08:25:06 +02:00
AliasAlreadyTaken added
5. result/fixed
and removed
4. step/ready to QA test
labels 2024-11-19 08:54:11 +01:00

Minor issues were fixed by major rework upstream

Minor issues were fixed by major rework upstream
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#6918
No description provided.