Jammy reports: add the ability to use all blo ... #5713

Open
opened 2023-12-16 11:48:48 +00:00 by yourland-report · 3 comments

Jammy reports a bug:

add the ability to use all blocks of one type as input in autocrafter

Player position:

{
	x = 18813.19921875,
	y = 66.561996459961,
	z = 18432.87109375
}

Player look:

{
	x = 0.22574901580811,
	y = -0.26252603530884,
	z = -0.9381457567215
}

Player information:

{
	minor = 8,
	lang_code = "zh_CN",
	formspec_version = 7,
	protocol_version = 42,
	major = 5,
	ip_version = 6,
	min_rtt = 0.20100000500679,
	avg_rtt = 0.20900000631809,
	min_jitter = 0,
	max_jitter = 2.9100000858307,
	avg_jitter = 0.007999986410141,
	connection_uptime = 626,
	serialization_version = 29,
	patch = 0,
	state = "Active",
	max_rtt = 3.2599999904633,
	version_string = "5.8.0"
}

Player meta:

{
	fields = {
		yl_church = "return {[\"last_death\"] = {[\"x\"] = 1978, [\"y\"] = 29765, [\"z\"] = 1576}, [\"last_heal\"] = 1700995484, [\"last_death_portal\"] = 1702718760}",
		["stamina:level"] = "9",
		["ocean_build.last_warning"] = "1702173287",
		["ocean_build.forbidden"] = "true",
		["ocean_build.ocean_built"] = "12",
		yl_commons_player_created = "1700288470",
		["signslib:pos"] = "(18731,21,18415)",
		yl_commons_thankyou = "16",
		jointime = "1700288470",
		bitten = "0",
		["petz:lycanthropy"] = "0",
		inflicted_damage = "108166",
		["petz:werewolf_clan_idx"] = "2",
		repellant = "0",
		punch_count = "5826",
		hud_state = "on",
		played_time = "637863",
		digged_nodes = "69815",
		partychat = "party",
		died = "105",
		crafted = "40924",
		xp = "64509",
		["petz:werewolf"] = "0",
		["stamina:exhaustion"] = "96",
		["unified_inventory:bags"] = "return {\"unified_inventory:bag_large\", \"unified_inventory:bag_large\", \"unified_inventory:bag_medium\", \"unified_inventory:bag_large\"}",
		yl_commons_player_joined = "1702726721",
		["stamina:poisoned"] = "no",
		placed_nodes = "27445",
		["ambience.svol"] = "0.1",
		["3d_armor_inventory"] = "return {\"3d_armor:chestplate_rainbow 1 4352\", \"3d_armor:helmet_rainbow 1 4352\", \"shields:shield_rainbow 1 5938\", \"3d_armor:leggings_rainbow 1 4352\", \"3d_armor:boots_crystal 1 12460\", \"\"}"
	}
}

Log identifier


[MOD] yl_report log identifier = eVkOF3i25hOB9WiIlTHu39kKbrVy9tuu

Profiler save:

profile-20231216T114847.json_prettyEE

Status:

# Server: version: 5.7.0-yl-thx-tmm | game: Minetest Game | uptime: 2h 58min 37s | max lag: 0.259s | clients (11/52): AliasAlreadyTaken, Boot, Chache, Griffe_De_l_Ombre, Jammy, Karu, Keya, Laps, Miloud, Service, Wovado

Teleport command:

/teleport xyz 18813 67 18433

Compass command:

/give_compass Construction eVkOF3i25hOB9WiIlTHu39kKbrVy9tuu D2691E 18813 67 18433
Jammy reports a bug: > add the ability to use all blocks of one type as input in autocrafter Player position: ``` { x = 18813.19921875, y = 66.561996459961, z = 18432.87109375 } ``` Player look: ``` { x = 0.22574901580811, y = -0.26252603530884, z = -0.9381457567215 } ``` Player information: ``` { minor = 8, lang_code = "zh_CN", formspec_version = 7, protocol_version = 42, major = 5, ip_version = 6, min_rtt = 0.20100000500679, avg_rtt = 0.20900000631809, min_jitter = 0, max_jitter = 2.9100000858307, avg_jitter = 0.007999986410141, connection_uptime = 626, serialization_version = 29, patch = 0, state = "Active", max_rtt = 3.2599999904633, version_string = "5.8.0" } ``` Player meta: ``` { fields = { yl_church = "return {[\"last_death\"] = {[\"x\"] = 1978, [\"y\"] = 29765, [\"z\"] = 1576}, [\"last_heal\"] = 1700995484, [\"last_death_portal\"] = 1702718760}", ["stamina:level"] = "9", ["ocean_build.last_warning"] = "1702173287", ["ocean_build.forbidden"] = "true", ["ocean_build.ocean_built"] = "12", yl_commons_player_created = "1700288470", ["signslib:pos"] = "(18731,21,18415)", yl_commons_thankyou = "16", jointime = "1700288470", bitten = "0", ["petz:lycanthropy"] = "0", inflicted_damage = "108166", ["petz:werewolf_clan_idx"] = "2", repellant = "0", punch_count = "5826", hud_state = "on", played_time = "637863", digged_nodes = "69815", partychat = "party", died = "105", crafted = "40924", xp = "64509", ["petz:werewolf"] = "0", ["stamina:exhaustion"] = "96", ["unified_inventory:bags"] = "return {\"unified_inventory:bag_large\", \"unified_inventory:bag_large\", \"unified_inventory:bag_medium\", \"unified_inventory:bag_large\"}", yl_commons_player_joined = "1702726721", ["stamina:poisoned"] = "no", placed_nodes = "27445", ["ambience.svol"] = "0.1", ["3d_armor_inventory"] = "return {\"3d_armor:chestplate_rainbow 1 4352\", \"3d_armor:helmet_rainbow 1 4352\", \"shields:shield_rainbow 1 5938\", \"3d_armor:leggings_rainbow 1 4352\", \"3d_armor:boots_crystal 1 12460\", \"\"}" } } ``` Log identifier ``` [MOD] yl_report log identifier = eVkOF3i25hOB9WiIlTHu39kKbrVy9tuu ``` Profiler save: ``` profile-20231216T114847.json_prettyEE ``` Status: ``` # Server: version: 5.7.0-yl-thx-tmm | game: Minetest Game | uptime: 2h 58min 37s | max lag: 0.259s | clients (11/52): AliasAlreadyTaken, Boot, Chache, Griffe_De_l_Ombre, Jammy, Karu, Keya, Laps, Miloud, Service, Wovado ``` Teleport command: ``` /teleport xyz 18813 67 18433 ``` Compass command: ``` /give_compass Construction eVkOF3i25hOB9WiIlTHu39kKbrVy9tuu D2691E 18813 67 18433 ```
AliasAlreadyTaken was assigned by yourland-report 2023-12-16 11:48:48 +00:00
AliasAlreadyTaken added the
4. step/question
label 2023-12-16 14:39:23 +00:00

I asked the user to clarify what they mean by that

I asked the user to clarify what they mean by that

I assume "all blocks of one type" would translate to all blocks in given group (i.e. group:trunk, group:wood .... ) as many recipes take as input any ingredient from certain group.

I assume "all blocks of one type" would translate to all blocks in given group (i.e. group:trunk, group:wood .... ) as many recipes take as input any ingredient from certain group.
Member

if you've got a 5.8 (or 5.7?) client, you can certainly pick up a stack of items, and right-click-drag it across all the slots in the crafting grid in the autocrafter. but you cannot do the same with a single stick. the sticks that are "placed" into the crafting grid, end up in your main inventory in their own stack:

image

you cannot fill the grid quickly while only wielding a single stick - each time you place it in the crafting grid, it goes back into your inventory.

i'm not sure whether or not this is fixable without a client/engine change, and possibly a fundamental one. i think the current behavior works by specifying an allow_put callback which adds the item to the grid, but reports to the engine (and client) that nothing can be put in that slot.

if instead the allow_put callback indicated that the item could be put in the grid, we'd have to refund the item in the on_put callback. but doing so would also put the item back into the player's inventory, and not into their "hand".

if you've got a 5.8 (or 5.7?) client, you can certainly pick up a stack of items, and right-click-drag it across all the slots in the crafting grid in the autocrafter. but you cannot do the same with a single stick. the sticks that are "placed" into the crafting grid, end up in your main inventory in their own stack: ![image](/attachments/d98e1129-0130-446b-b829-fb19c9e87a63) you cannot fill the grid quickly while only wielding a single stick - each time you place it in the crafting grid, it goes back into your inventory. i'm not sure whether or not this is fixable without a client/engine change, and possibly a fundamental one. i think the current behavior works by specifying an `allow_put` callback which adds the item to the grid, but reports to the engine (and client) that nothing can be put in that slot. if instead the `allow_put` callback indicated that the item *could* be put in the grid, we'd have to refund the item in the `on_put` callback. but doing so would also put the item back into the player's inventory, and not into their "hand".
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#5713
No description provided.