MineWorlds reports: npcs break stack limits... exa ... #7736

Open
opened 2024-11-27 11:50:49 +01:00 by yourland-report · 3 comments

MineWorlds reports a bug:

npcs break stack limits... example: lets say you want to sell your gold block for 1000 cobblestone in your npc. if somebody were to buy this offer. instead of the npc recieving 10 stacks and 10 cobblestone. it will recieve only 1 stack that has 1000 cobblestone in it, hence breaking the stack limit

Player position:

{
	y = 12.5,
	z = 1032.8000488281,
	x = 2043.1989746094
}

Player look:

{
	y = 0.16504760086536,
	z = -0.94557219743729,
	x = 0.28045058250427
}

Player information:

{
	formspec_version = 8,
	state = "Active",
	avg_rtt = 0.22499999403954,
	minor = 10,
	ip_version = 6,
	min_rtt = 0.16599999368191,
	min_jitter = 0,
	max_jitter = 1.1440000534058,
	avg_jitter = 0.050999999046326,
	connection_uptime = 2574,
	serialization_version = 29,
	patch = 0,
	max_rtt = 1.3140000104904,
	lang_code = "",
	version_string = "5.10.0",
	protocol_version = 46,
	major = 5
}

Player meta:

{
	fields = {
		partychat = "party",
		xp = "2402151",
		["unified_inventory:bags"] = "return {\"unified_inventory:bag_large\", \"unified_inventory:bag_large\", \"unified_inventory:bag_large\", \"unified_inventory:bag_large\"}",
		["petz:old_override_table"] = "return {[\"jump\"] = 1.5, [\"gravity\"] = 1, [\"sneak\"] = true, [\"speed\"] = 2, [\"new_move\"] = true, [\"sneak_glitch\"] = false}",
		["petz:werewolf"] = "0",
		placed_nodes = "1418014",
		["petz:lycanthropy"] = "0",
		crafted = "354208",
		["petz:werewolf_clan_idx"] = "2",
		yl_commons_player_created = "1614030326",
		yl_commons_player_joined = "1732702091",
		["petz:werewolf_vignette_id"] = "19",
		punch_count = "561852",
		inflicted_damage = "11773006",
		["hud_manager:choppy:waypoint_enabled"] = "y",
		["signslib:pos"] = "(2124,16,1161)",
		["hud_manager:yl_snowball:hud__enabled"] = "n",
		jointime = "1614030326",
		bitten = "0",
		repellant = "0",
		["3d_armor_inventory"] = "return {\"nether_mobs:dragon_boots 1 3080\", \"3d_armor:leggings_rainbow 1 1232\", \"3d_armor:helmet_rainbow 1 1232\", \"shields:shield_rainbow 1 1232\", \"3d_armor:chestplate_rainbow 1 1232\", \"\"}",
		played_time = "12584219",
		arenalib_infobox_arenaID = "0",
		hotbar_size = "16",
		["stamina:level"] = "17",
		yl_church = "return {[\"last_heal\"] = 1732153372, [\"last_death\"] = {[\"x\"] = 2209, [\"y\"] = 29401, [\"z\"] = 1520}, [\"last_death_portal\"] = 1731940699}",
		hud_state = "on",
		["stamina:exhaustion"] = "4",
		["ocean_build.last_warning"] = "1.679e+09",
		["ocean_build.forbidden"] = "true",
		["ocean_build.ocean_built"] = "12",
		died = "303",
		yl_commons_thankyou = "804",
		digged_nodes = "2427949"
	}
}

Log identifier


[MOD] yl_report log identifier = sPWv36ehzSzPnUDeiNT63MhGBeFldDzy

Profiler save:

profile-20241127T105049.json_prettyEE

Status:

# Server: version: 5.10.0-yl-RelWithDebInfo | game: Minetest Game | uptime: 23h 43min 47s | max lag: 0.437s | clients (25/52): AliasAlreadyTaken, Bailiff, BenOnly, Cepheus, cubiscull, daydream, flux, fuinur, Gorlum, GreenHavens, Keya, MineWorlds, Murmel, palafin, pium, rabenkind, randomstranger, Service, tagtraum, testmineweirdo, toddie, wede, Whalt, whosit, whostand

Teleport command:

/teleport xyz 2043 13 1033

Compass command:

/give_compass Construction sPWv36ehzSzPnUDeiNT63MhGBeFldDzy D2691E 2043 13 1033
MineWorlds reports a bug: > npcs break stack limits... example: lets say you want to sell your gold block for 1000 cobblestone in your npc. if somebody were to buy this offer. instead of the npc recieving 10 stacks and 10 cobblestone. it will recieve only 1 stack that has 1000 cobblestone in it, hence breaking the stack limit Player position: ``` { y = 12.5, z = 1032.8000488281, x = 2043.1989746094 } ``` Player look: ``` { y = 0.16504760086536, z = -0.94557219743729, x = 0.28045058250427 } ``` Player information: ``` { formspec_version = 8, state = "Active", avg_rtt = 0.22499999403954, minor = 10, ip_version = 6, min_rtt = 0.16599999368191, min_jitter = 0, max_jitter = 1.1440000534058, avg_jitter = 0.050999999046326, connection_uptime = 2574, serialization_version = 29, patch = 0, max_rtt = 1.3140000104904, lang_code = "", version_string = "5.10.0", protocol_version = 46, major = 5 } ``` Player meta: ``` { fields = { partychat = "party", xp = "2402151", ["unified_inventory:bags"] = "return {\"unified_inventory:bag_large\", \"unified_inventory:bag_large\", \"unified_inventory:bag_large\", \"unified_inventory:bag_large\"}", ["petz:old_override_table"] = "return {[\"jump\"] = 1.5, [\"gravity\"] = 1, [\"sneak\"] = true, [\"speed\"] = 2, [\"new_move\"] = true, [\"sneak_glitch\"] = false}", ["petz:werewolf"] = "0", placed_nodes = "1418014", ["petz:lycanthropy"] = "0", crafted = "354208", ["petz:werewolf_clan_idx"] = "2", yl_commons_player_created = "1614030326", yl_commons_player_joined = "1732702091", ["petz:werewolf_vignette_id"] = "19", punch_count = "561852", inflicted_damage = "11773006", ["hud_manager:choppy:waypoint_enabled"] = "y", ["signslib:pos"] = "(2124,16,1161)", ["hud_manager:yl_snowball:hud__enabled"] = "n", jointime = "1614030326", bitten = "0", repellant = "0", ["3d_armor_inventory"] = "return {\"nether_mobs:dragon_boots 1 3080\", \"3d_armor:leggings_rainbow 1 1232\", \"3d_armor:helmet_rainbow 1 1232\", \"shields:shield_rainbow 1 1232\", \"3d_armor:chestplate_rainbow 1 1232\", \"\"}", played_time = "12584219", arenalib_infobox_arenaID = "0", hotbar_size = "16", ["stamina:level"] = "17", yl_church = "return {[\"last_heal\"] = 1732153372, [\"last_death\"] = {[\"x\"] = 2209, [\"y\"] = 29401, [\"z\"] = 1520}, [\"last_death_portal\"] = 1731940699}", hud_state = "on", ["stamina:exhaustion"] = "4", ["ocean_build.last_warning"] = "1.679e+09", ["ocean_build.forbidden"] = "true", ["ocean_build.ocean_built"] = "12", died = "303", yl_commons_thankyou = "804", digged_nodes = "2427949" } } ``` Log identifier ``` [MOD] yl_report log identifier = sPWv36ehzSzPnUDeiNT63MhGBeFldDzy ``` Profiler save: ``` profile-20241127T105049.json_prettyEE ``` Status: ``` # Server: version: 5.10.0-yl-RelWithDebInfo | game: Minetest Game | uptime: 23h 43min 47s | max lag: 0.437s | clients (25/52): AliasAlreadyTaken, Bailiff, BenOnly, Cepheus, cubiscull, daydream, flux, fuinur, Gorlum, GreenHavens, Keya, MineWorlds, Murmel, palafin, pium, rabenkind, randomstranger, Service, tagtraum, testmineweirdo, toddie, wede, Whalt, whosit, whostand ``` Teleport command: ``` /teleport xyz 2043 13 1033 ``` Compass command: ``` /give_compass Construction sPWv36ehzSzPnUDeiNT63MhGBeFldDzy D2691E 2043 13 1033 ```
AliasAlreadyTaken was assigned by yourland-report 2024-11-27 11:50:49 +01:00

note: the reason this bug works most likely is because of :if you don't have the item you want to buy, then enter its item name (i.e. default:diamond here" feature. and since there is nothing in place to stop you from putting an certain amount of said item you want. you can get real crazy with the amounts you want. (example: default:diamondblock 5150)

note: the reason this bug works most likely is because of :if you don't have the item you want to buy, then enter its item name (i.e. default:diamond here" feature. and since there is nothing in place to stop you from putting an certain amount of said item you want. you can get real crazy with the amounts you want. (example: default:diamondblock 5150)
AliasAlreadyTaken added the
1. kind/bug
3. source/mod upstream
labels 2024-11-27 15:28:25 +01:00
Sokomine was assigned by AliasAlreadyTaken 2024-11-27 15:28:35 +01:00
AliasAlreadyTaken removed their assignment 2024-11-27 15:28:42 +01:00
Member

Hm, that is true. But how serious is it?

Hm, that is true. But how serious is it?

Not terribly serious, but I don't want any unexpected values on anything. It hints at overflow/underflow problems, like "could we give people a stack of -1 ?"

Not terribly serious, but I don't want any unexpected values on anything. It hints at overflow/underflow problems, like "could we give people a stack of -1 ?"
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#7736
No description provided.