flux reports: create an admin command to cre ... #2688

Closed
opened 2022-09-16 00:33:08 +00:00 by yourland-report · 8 comments

flux reports a bug:

create an admin command to create copies of the held item

Player position:

{
	z = 1113.6719970703,
	x = 2026.3029785156,
	y = 14.5
}

Player look:

{
	z = 0.98234760761261,
	x = -0.032072778791189,
	y = -0.18429444730282
}

Player information:

{
	state = "Active",
	major = 5,
	minor = 6,
	version_string = "5.6.0",
	lang_code = "",
	formspec_version = 6,
	ip_version = 6,
	min_rtt = 0.15600000321865,
	max_rtt = 2.819000005722,
	avg_rtt = 0.16400000452995,
	min_jitter = 0,
	max_jitter = 2.6489999294281,
	avg_jitter = 0.0019999891519547,
	connection_uptime = 826,
	serialization_version = 29,
	patch = 0,
	protocol_version = 40
}

Player meta:

{
	fields = {
		["petz:old_override_table"] = "return {[\"new_move\"] = true, [\"sneak\"] = true, [\"sneak_glitch\"] = false, [\"jump\"] = 1.5, [\"speed\"] = 2, [\"gravity\"] = 1}",
		arenalib_infobox_arenaID = "0",
		["unified_inventory:bags"] = "return {\"water_life:croc_bag\", \"water_life:croc_bag\", \"water_life:croc_bag\", \"water_life:croc_bag\"}",
		["petz:werewolf_vignette_id"] = "24",
		["stamina:exhaustion"] = "3",
		["petz:werewolf_clan_idx"] = "1",
		jointime = "1615351173",
		yl_church = "return {[\"last_death_portal\"] = 1662955227, [\"last_heal\"] = 1615504208, [\"last_death\"] = {[\"x\"] = 2154, [\"y\"] = -16671, [\"z\"] = 1535}}",
		xp = "1292697",
		digged_nodes = "1103578",
		punch_count = "100222",
		["stamina:level"] = "19",
		played_time = "23701311",
		yl_commons_thankyou = "163",
		bitten = "0",
		died = "70",
		crafted = "40000",
		["signslib:pos"] = "(1273,69,540)",
		placed_nodes = "353893",
		hud_state = "on",
		yl_commons_player_created = "1615351173",
		inflicted_damage = "1703570",
		["3d_armor_inventory"] = "return {\"nether_mobs:dragon_boots 1 1000\", \"3d_armor:chestplate_nether 1 2000\", \"nether_mobs:dragon_shield 1 1000\", \"3d_armor:leggings_nether 1 2000\", \"3d_armor:helmet_nether 1 1000\", \"\"}",
		repellant = "0",
		partychat = "party",
		["petz:werewolf"] = "1",
		yl_commons_player_joined = "1663287583",
		["petz:lycanthropy"] = "1",
		["stamina:poisoned"] = "no"
	}
}

Log identifier


[MOD] yl_report log identifier = 5MpzMMQ5w88t3liXm9xQP8B7QMqO1whL

Profiler save:

profile-20220916T003307.json_prettyEE

Status:

# Server: version: 5.5.1-yl | game: Minetest Game | uptime: 2d 2h 35min 43s | max lag: 1.99s | clients: mrminer, Ernesto, Gimli, bluattire, flux, ScavHunt, Ivanhoe, Oakenshield, Bailiff, Service, AspireMint, niceride, MarseySeether, AliasAlreadyTaken, hbreturns, Kiyoko, NodeBreaker, jackofthebean000, daydream

Teleport command:

/teleport xyz 2026 15 1114

Compass command:

/give_compass Construction 5MpzMMQ5w88t3liXm9xQP8B7QMqO1whL D2691E 2026 15 1114
flux reports a bug: > create an admin command to create copies of the held item Player position: ``` { z = 1113.6719970703, x = 2026.3029785156, y = 14.5 } ``` Player look: ``` { z = 0.98234760761261, x = -0.032072778791189, y = -0.18429444730282 } ``` Player information: ``` { state = "Active", major = 5, minor = 6, version_string = "5.6.0", lang_code = "", formspec_version = 6, ip_version = 6, min_rtt = 0.15600000321865, max_rtt = 2.819000005722, avg_rtt = 0.16400000452995, min_jitter = 0, max_jitter = 2.6489999294281, avg_jitter = 0.0019999891519547, connection_uptime = 826, serialization_version = 29, patch = 0, protocol_version = 40 } ``` Player meta: ``` { fields = { ["petz:old_override_table"] = "return {[\"new_move\"] = true, [\"sneak\"] = true, [\"sneak_glitch\"] = false, [\"jump\"] = 1.5, [\"speed\"] = 2, [\"gravity\"] = 1}", arenalib_infobox_arenaID = "0", ["unified_inventory:bags"] = "return {\"water_life:croc_bag\", \"water_life:croc_bag\", \"water_life:croc_bag\", \"water_life:croc_bag\"}", ["petz:werewolf_vignette_id"] = "24", ["stamina:exhaustion"] = "3", ["petz:werewolf_clan_idx"] = "1", jointime = "1615351173", yl_church = "return {[\"last_death_portal\"] = 1662955227, [\"last_heal\"] = 1615504208, [\"last_death\"] = {[\"x\"] = 2154, [\"y\"] = -16671, [\"z\"] = 1535}}", xp = "1292697", digged_nodes = "1103578", punch_count = "100222", ["stamina:level"] = "19", played_time = "23701311", yl_commons_thankyou = "163", bitten = "0", died = "70", crafted = "40000", ["signslib:pos"] = "(1273,69,540)", placed_nodes = "353893", hud_state = "on", yl_commons_player_created = "1615351173", inflicted_damage = "1703570", ["3d_armor_inventory"] = "return {\"nether_mobs:dragon_boots 1 1000\", \"3d_armor:chestplate_nether 1 2000\", \"nether_mobs:dragon_shield 1 1000\", \"3d_armor:leggings_nether 1 2000\", \"3d_armor:helmet_nether 1 1000\", \"\"}", repellant = "0", partychat = "party", ["petz:werewolf"] = "1", yl_commons_player_joined = "1663287583", ["petz:lycanthropy"] = "1", ["stamina:poisoned"] = "no" } } ``` Log identifier ``` [MOD] yl_report log identifier = 5MpzMMQ5w88t3liXm9xQP8B7QMqO1whL ``` Profiler save: ``` profile-20220916T003307.json_prettyEE ``` Status: ``` # Server: version: 5.5.1-yl | game: Minetest Game | uptime: 2d 2h 35min 43s | max lag: 1.99s | clients: mrminer, Ernesto, Gimli, bluattire, flux, ScavHunt, Ivanhoe, Oakenshield, Bailiff, Service, AspireMint, niceride, MarseySeether, AliasAlreadyTaken, hbreturns, Kiyoko, NodeBreaker, jackofthebean000, daydream ``` Teleport command: ``` /teleport xyz 2026 15 1114 ``` Compass command: ``` /give_compass Construction 5MpzMMQ5w88t3liXm9xQP8B7QMqO1whL D2691E 2026 15 1114 ```
AliasAlreadyTaken was assigned by yourland-report 2022-09-16 00:33:08 +00:00
flux added the
1. kind/enhancement
label 2022-09-16 03:22:43 +00:00
Member

if i want to give out copies of a compass to people, this should be simple

if i want to give out copies of a compass to people, this should be simple
flux added the
2. prio/good first issue
label 2022-09-16 03:23:13 +00:00

Both books and compasses allow themselves to be crafted into copies. Add a set compass and a give_compass command:

/give_compass Owner Destination Colour x y z
Both books and compasses allow themselves to be crafted into copies. Add a set compass and a give_compass command: ``` /give_compass Owner Destination Colour x y z ```
Member

Both books and compasses allow themselves to be crafted into copies. Add a set compass and a give_compass command:

/give_compass Owner Destination Colour x y z

fair, but turning a compass into a stack w/ a command that doesn't require me to specify all that metadata explictly would still be quite useful :) also for all sorts of other uses like creating copies of a tamed petz for testing various things, or getting a bunch of damaged sword to test out anvil mechanics.

added it to debuggery: 6ab88f780d

> Both books and compasses allow themselves to be crafted into copies. Add a set compass and a give_compass command: > > ``` > /give_compass Owner Destination Colour x y z > ``` fair, but turning a compass into a stack w/ a command that doesn't require me to specify all that metadata explictly would still be quite useful :) also for all sorts of other uses like creating copies of a tamed petz for testing various things, or getting a bunch of damaged sword to test out anvil mechanics. added it to debuggery: https://github.com/fluxionary/minetest-debuggery/commit/6ab88f780d225532bc4ddd2667d1a67e5a384fd3
flux added the
4. step/ready to QA test
label 2022-11-05 22:58:38 +00:00
flux removed the
2. prio/good first issue
label 2022-11-08 00:02:10 +00:00
AliasAlreadyTaken added this to the 1.1.117 milestone 2023-01-03 14:19:13 +00:00

I tried that on a wielded NPC and suddenly had a 99er stack of them :D

Is that intended?

I tried that on a wielded NPC and suddenly had a 99er stack of them :D Is that intended?
Member

I tried that on a wielded NPC and suddenly had a 99er stack of them :D

Is that intended?

yes, it defaults to stack_max, but you can give an optional argument to get a stack of whatever size you want (2 through 65535).

note that anything registered via register_tool cannot have a stack size greater than 1, and /clone_wielded will instead add another one (or several) somewhere else in your main inventory.

> I tried that on a wielded NPC and suddenly had a 99er stack of them :D > > Is that intended? yes, it defaults to `stack_max`, but you can give an optional argument to get a stack of whatever size you want (2 through 65535). note that anything registered via `register_tool` cannot have a stack size greater than 1, and `/clone_wielded` will instead add another one (or several) somewhere else in your main inventory.
AliasAlreadyTaken added the
ugh/QA OK
label 2023-01-19 08:16:03 +00:00

I think this already exists in metatools mod (on test server) ?

I think this already exists in metatools mod (on test server) ?
Member

I think this already exists in metatools mod (on test server) ?

possibly? could you please supply more detailed instructions?

> I think this already exists in metatools mod (on test server) ? possibly? could you please supply more detailed instructions?
flux added
5. result/fixed
and removed
4. step/ready to QA test
labels 2023-01-25 17:31:12 +00:00
AliasAlreadyTaken was unassigned by flux 2023-01-25 17:31:15 +00:00
Member

this is live

this is live
flux closed this issue 2023-01-25 17:32:04 +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#2688
No description provided.