flux reports: add an API to smartshop to all ... #4830

Open
opened 2023-06-24 00:11:40 +00:00 by yourland-report · 5 comments

flux reports a bug:

add an API to smartshop to allow querying where various things are sold

Player position:

{
	z = 1184.1989746094,
	x = 2109.5729980469,
	y = 18.25
}

Player look:

{
	z = 0.73035937547684,
	x = 0.20501957833767,
	y = -0.65156894922256
}

Player information:

{
	connection_uptime = 27541,
	formspec_version = 6,
	protocol_version = 42,
	lang_code = "",
	state = "Active",
	ip_version = 6,
	avg_rtt = 0.17499999701977,
	min_jitter = 0,
	max_jitter = 6.3439998626709,
	avg_jitter = 0.0030000060796738,
	minor = 8,
	patch = 0,
	version_string = "5.8.0-dev-7388c87ad",
	min_rtt = 0.16599999368191,
	max_rtt = 6.5250000953674,
	major = 5,
	serialization_version = 29
}

Player meta:

{
	fields = {
		["unified_inventory:bags"] = "return {\"water_life:croc_bag\", \"water_life:croc_bag\", \"water_life:croc_bag\", \"water_life:croc_bag\"}",
		yl_commons_player_created = "1615351173",
		repellant = "0",
		yl_church = "return {[\"last_death\"] = {[\"z\"] = 1227, [\"x\"] = 35, [\"y\"] = 38}, [\"last_heal\"] = 1615504208, [\"last_death_portal\"] = 1687231432}",
		yl_commons_player_joined = "1687537986",
		["stamina:level"] = "8",
		arenalib_infobox_arenaID = "0",
		jointime = "1615351173",
		bitten = "0",
		played_time = "37554913",
		inflicted_damage = "5525582",
		digged_nodes = "1590933",
		placed_nodes = "450030",
		died = "100",
		crafted = "178100",
		punch_count = "281866",
		["petz:old_override_table"] = "return {[\"new_move\"] = true, [\"sneak\"] = true, [\"sneak_glitch\"] = false, [\"jump\"] = 1.5, [\"speed\"] = 2, [\"gravity\"] = 1}",
		["petz:lycanthropy"] = "1",
		["stamina:exhaustion"] = "124",
		["petz:werewolf_vignette_id"] = "20",
		["3d_armor_inventory"] = "return {\"3d_armor:helmet_rainbow 1 15880\", \"shields:shield_rainbow 1 15880\", \"3d_armor:chestplate_rainbow 1 15880\", \"3d_armor:leggings_rainbow 1 15880\", \"nether_mobs:dragon_boots 1 39640\", \"\"}",
		["petz:werewolf_clan_idx"] = "1",
		["signslib:pos"] = "(1370,179,415)",
		hud_state = "on",
		xp = "2083345",
		["stamina:poisoned"] = "no",
		yl_commons_thankyou = "315",
		partychat = "party",
		["petz:werewolf"] = "0"
	}
}

Log identifier


[MOD] yl_report log identifier = cMTh85lDgkO3yNBEpAkUdIwi8KYGh77w

Profiler save:

profile-20230624T001140.json_prettyEE

Status:

# Server: version: 5.7.0-yl-thx-tmm | game: Minetest Game | uptime: 10d 9h 14min 57s | max lag: 0.968s | clients (22/52): Aar, AliasAlreadyTaken, Aliza, Appledore, Bailiff, Buzz, carrots1234, Chache, Cheeseball, Dirac, Dragonite, DragonWrangler1, flux, Laurii, MineWorlds, Oakenshield, popefox20, rewired_X, Service, Shadow, shanish2, Supercheese

Teleport command:

/teleport xyz 2110 18 1184

Compass command:

/give_compass Construction cMTh85lDgkO3yNBEpAkUdIwi8KYGh77w D2691E 2110 18 1184
flux reports a bug: > add an API to smartshop to allow querying where various things are sold Player position: ``` { z = 1184.1989746094, x = 2109.5729980469, y = 18.25 } ``` Player look: ``` { z = 0.73035937547684, x = 0.20501957833767, y = -0.65156894922256 } ``` Player information: ``` { connection_uptime = 27541, formspec_version = 6, protocol_version = 42, lang_code = "", state = "Active", ip_version = 6, avg_rtt = 0.17499999701977, min_jitter = 0, max_jitter = 6.3439998626709, avg_jitter = 0.0030000060796738, minor = 8, patch = 0, version_string = "5.8.0-dev-7388c87ad", min_rtt = 0.16599999368191, max_rtt = 6.5250000953674, major = 5, serialization_version = 29 } ``` Player meta: ``` { fields = { ["unified_inventory:bags"] = "return {\"water_life:croc_bag\", \"water_life:croc_bag\", \"water_life:croc_bag\", \"water_life:croc_bag\"}", yl_commons_player_created = "1615351173", repellant = "0", yl_church = "return {[\"last_death\"] = {[\"z\"] = 1227, [\"x\"] = 35, [\"y\"] = 38}, [\"last_heal\"] = 1615504208, [\"last_death_portal\"] = 1687231432}", yl_commons_player_joined = "1687537986", ["stamina:level"] = "8", arenalib_infobox_arenaID = "0", jointime = "1615351173", bitten = "0", played_time = "37554913", inflicted_damage = "5525582", digged_nodes = "1590933", placed_nodes = "450030", died = "100", crafted = "178100", punch_count = "281866", ["petz:old_override_table"] = "return {[\"new_move\"] = true, [\"sneak\"] = true, [\"sneak_glitch\"] = false, [\"jump\"] = 1.5, [\"speed\"] = 2, [\"gravity\"] = 1}", ["petz:lycanthropy"] = "1", ["stamina:exhaustion"] = "124", ["petz:werewolf_vignette_id"] = "20", ["3d_armor_inventory"] = "return {\"3d_armor:helmet_rainbow 1 15880\", \"shields:shield_rainbow 1 15880\", \"3d_armor:chestplate_rainbow 1 15880\", \"3d_armor:leggings_rainbow 1 15880\", \"nether_mobs:dragon_boots 1 39640\", \"\"}", ["petz:werewolf_clan_idx"] = "1", ["signslib:pos"] = "(1370,179,415)", hud_state = "on", xp = "2083345", ["stamina:poisoned"] = "no", yl_commons_thankyou = "315", partychat = "party", ["petz:werewolf"] = "0" } } ``` Log identifier ``` [MOD] yl_report log identifier = cMTh85lDgkO3yNBEpAkUdIwi8KYGh77w ``` Profiler save: ``` profile-20230624T001140.json_prettyEE ``` Status: ``` # Server: version: 5.7.0-yl-thx-tmm | game: Minetest Game | uptime: 10d 9h 14min 57s | max lag: 0.968s | clients (22/52): Aar, AliasAlreadyTaken, Aliza, Appledore, Bailiff, Buzz, carrots1234, Chache, Cheeseball, Dirac, Dragonite, DragonWrangler1, flux, Laurii, MineWorlds, Oakenshield, popefox20, rewired_X, Service, Shadow, shanish2, Supercheese ``` Teleport command: ``` /teleport xyz 2110 18 1184 ``` Compass command: ``` /give_compass Construction cMTh85lDgkO3yNBEpAkUdIwi8KYGh77w D2691E 2110 18 1184 ```
AliasAlreadyTaken was assigned by yourland-report 2023-06-24 00:11:40 +00:00
Member

there's been a number of requests for various ways of augmenting trading. i'm not sure i like any of them, but providing an the API should be easy enough.

there's been a number of requests for various ways of augmenting trading. i'm not sure i like any of them, but providing an the API should be easy enough.
flux added this to the flux's TODO list project 2023-06-24 03:17:47 +00:00

On IFS there is such API, you type command:

/shops torch

and get list like:

ID 123 by player1: 99x torch for 1x gold ingot
ID 234 by player2: 10x torch for 1x iron ingot
....

... and there you can then teleport to shop with ID 123 by /shop 123.

I guess that teleporting part might be unwanted here, so it could be replaced by telling coordinates or possibility of receiving compass?

On IFS there is such API, you type command: `/shops torch` and get list like: ID 123 by player1: 99x torch for 1x gold ingot ID 234 by player2: 10x torch for 1x iron ingot .... ... and there you can then teleport to shop with ID 123 by `/shop 123`. I guess that teleporting part might be unwanted here, so it could be replaced by telling coordinates or possibility of receiving compass?
Member

I think most fitting for YL would be an NPC that "knows" local markets (one per city?) and you could "ask" him about what shops sell or where specific thing is sold. Kinda like it works IRL... Could be another service that city could get with points (see the Cities update).

I think most fitting for YL would be an NPC that "knows" local markets (one per city?) and you could "ask" him about what shops sell or where specific thing is sold. Kinda like it works IRL... Could be another service that city could get with points (see the Cities update).
Member

There's already a marketplace listed as a new potential city service. Mostly for caravans. But might make sense to have someone there who has some overview over who sells what where?

Trouble is NPC don't know yet to which town they belong. Perhaps we could do it based on areas.

There's already a marketplace listed as a new potential city service. Mostly for caravans. But might make sense to have someone there who has some overview over who sells what where? Trouble is NPC don't know yet to which town they belong. Perhaps we could do it based on areas.

For balancing reasons I don't want an NPC have full market awareness

Best we could do is have an NPC know whether something is sold in this city and maybe where.

For balancing reasons I don't want an NPC have full market awareness Best we could do is have an NPC know whether something is sold in this city and maybe where.
Sign in to join this conversation.
No Milestone
No Assignees
6 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#4830
No description provided.