DynEco
一个能自主确定价格的动态经济系统。
你会获得一块平板电脑。这块平板知道整合包中所有物品(原版、模组添加的、流体等)的价值,并会随着你与“市场”的交易而调整价格。如果你卖出过多的铁,铁的价格就会下跌;如果你买空所有的钻石,钻石的价格就会上涨。几天后回来,价格又会慢慢恢复。
无需包含 30,000 种物品价格的配置表格。无需商店告示牌。无需某些模组遗漏添加的村民式交易列表。只要有合成配方,就有价格。
价格是如何确定的
这是大多数经济类模组会跳过的重要部分,因此值得详细说明。
DynEco 会读取整合包加载的所有配方——包括合成、熔炼、Modern Industrialization、Mekanism、EnderIO、Create 风格加工等机器配方——并基于它们构建一个图表。大约有 120 种基础材料拥有手动设定的基准价值(例如铁锭 120,钻石 1500)。其他所有物品的价格都是推导出来的:即制作该物品的最便宜方式,再加上少量的工时溢价。
因此,青铜板的成本等于青铜的成本加上少量压制成型的费用。量子电路的成本取决于其 40 步生产链的成本。由九个锭组成的方块成本恰好是九个锭的成本,因为模组识别出了打包/合成配方,并且不对此类操作收取溢价。
还有一些细节处理是你可能直到出现问题之前都不会想到的:
- 流体按桶计价,使用 50 mB 流体的机器配方只收取 50 mB 的费用,而不是整桶的费用。
- 不被消耗的催化剂(如打包模板、模具)成本为零。
- 方块的凿刻变体价格与该方块保持一致。否则会出现“印钞机”现象,例如下界合金板面板的价值是下界合金柱的 1,800 倍,你可以在这两者之间无限循环套利。
- 没有配方的生物掉落物、战利品和结构物品会被赋予合理的手动设定值,而不是使用占位符。
- 整个系统在每次世界加载时都会进行自检,如果上述任何规则不再适用,会将日志记录下来。
价格也是有上下限的:无论你怎么操作市场,价格最低不会低于基准值的 50%,最高不会超过基准值的 1.75 倍。
开始使用
合成市场平板:
I G I
R E R
I I I
I = 铁锭,G = 玻璃板,R = 红石粉,E = 末影珍珠
它使用 Forge Energy (FE) 作为能源。可以使用任何 FE 充电器,或者在早期游戏中用其右键点击放置的红石块。电池为空时无法打开。
右键点击以打开市场界面。如果你更喜欢显示 € 或 ¥ 而不是积分,可以在右上角选择一种货币。
出售
出售不是即时完成的。你将物品上架后,买家会随时间出现——有时有人一次买 2 个,有时一次买 100 个,有时一段时间内无人问津。廉价商品通常批量成交,昂贵商品则零星交易。
有两种出售方式:
- 通过平板 - 直接从你的库存中列出物品。
- 手持平板 Shift+右键点击箱子(对于流体则是储罐)以进行链接。你会看到一个显示内部物品的屏幕,从那里你可以出售其中的一部分,购买物品存入,或设置自动规则:自动出售所有物品、保留 64 个并出售其余部分,或自动购买直至达到目标数量。自动购买的箱子会被锁定,防止其他来源从中抽取物品。
购买是即时的。你付款,你获得物品。
设置订单需要消耗少量电力。保持平板打开也需要消耗少量电力。除此之外,挂单等待期间不会消耗任何电量。
价格变动缓慢是有意为之
卖出 500 个锭,第 500 个锭的价格与第一个相同。市场会在接下来的几天里“察觉”到变化,然后价格才会下滑。因此,你不会在交易过程中看到自己得到的价格逐渐降低——你只有在第二天回来时才会看到后果。
此外,还存在缓慢的随机波动,所以即使你从不触碰的物品,价格也会上下浮动几个百分点。
进度
共 27 个进度。你通过合成平板获得 Capitalism™,之后的进度包括 Dirt Merchant、Number Go Up、Leveraged to the Eyeballs 和 I Can Stop Anytime。进度会读取你的账户数据,所以如果你已经完成了某项条件,下次交易时就会解锁对应的进度。
命令
|
|
/dyneco balance |
查看你的余额 |
/dyneco price <item> |
查看某物品的当前价格 |
/dyneco why <item> |
查看如何计算出该价格——涉及哪些配方、哪些输入物品 |
/dyneco currency <name> |
切换欧元、美元、日元、积分 |
/dyneco debug on |
在平板中添加一行,你可以微调任何价格或直接输入数值,然后点击 Resolve all 重新推导所有基于此生成的价格 |
/dyneco item add/remove <item> |
将某物品加入或移出市场 |
/dyneco reload |
重建价格表 |
管理员命令默认需要 OP 权限。如果在单人游戏中游玩且未开启作弊(例如极限模式)?请在 config/dyneco-common.toml 中设置 requireOpForCommands = false。
修正你不喜欢的价格
每个整合包都不同,最终总会有些价格看起来不对劲。这就是调试模式的用途。开启它,选择物品,设定数值,点击 Resolve。设置会保存到 config/dyneco/anchors.json,重启后依然有效。
由于价格是衍生计算的,修正一个根节点物品会修复所有由其衍生的物品。将铜锭设为 80,那么所有使用铜的导线、板材、电缆和电路的价格都会随之调整。在链条底部设定一个好数字,比在顶部进行一百次编辑更有效。
如果你想查看模组做出的决定及其原因,config/dyneco/report_why.csv 包含了每种价格以及产生该价格的配方和输入物品。
不参与交易的物品
工具、武器、盔甲、机器、任何带有区块实体的物品、载具、药水、音乐唱片、刷怪蛋。本模组的理念是建立一个资源市场——即你挖掘、种植、击杀获取或加工的材料——而不是一个卖给你钻石镐的商店。如果你不同意,可以使用 /dyneco item add 针对特定物品覆盖此规则。
兼容性
已在 Boundless Horizons(1.21.1,NeoForge,约 370 个模组,包括 Modern Industrialization、Mekanism、AE2、EnderIO、Powah、Occultism、Industrial Foregoing、Silent Gear、Better End)上测试。该推导逻辑是通用的,适用于任何整合包,但手动的基准数值是在该整合包上调优的——如果你的整合包差异较大,可能需要通过调试模式调整一些设置。
Mekanism 化学品、MI 流体等均已被处理。TACZ 的枪械以及航空类模组的载具默认被排除,因为它们属于武器和载具。
单人游戏是主要使用场景。服务器也支持;经济系统是共享的,因此一名玩家抛售会影响所有人的价格,这取决于你的朋友,这可能是一个特性,也可能是一个问题。
配置
config/dyneco-common.toml 包含大约 70 个选项,并附有注释。用户实际会修改的选项如下:
priceFloorMult / priceCeilMult - 价格波动的范围(0.5 / 1.75)
stockConstant - 在价格变动前必须售出的数量
listingBuyerChance - 市场的繁忙程度
demandVolatility - 价格自行漂移的程度
denyItems / denyMods / allowItems - 可交易的物品
requireOpForCommands
DynEco
A dynamic economy that figures out prices on its own.
You get a tablet. The tablet knows what everything in your pack is worth - vanilla, modded, fluids, the lot - and it moves those prices around as you and the "market" trade. Sell too much iron and iron gets cheap. Buy out all the diamonds and they get expensive. Come back in a few days and things have drifted back.
No config spreadsheet with 30,000 item prices. No shop signs. No villager-style trade lists that some mod forgot to add to. If it has a recipe, it has a price.
How prices actually work
This is the bit most economy mods skip, so it's worth explaining.
DynEco reads every recipe your pack loads - crafting, smelting, machine recipes from Modern Industrialization, Mekanism, EnderIO, Create-style processing, whatever - and builds a graph out of them. Around 120 base materials have hand-set values (iron ingot 120, diamond 1500, that sort of thing). Everything else is derived: the cheapest way to make it, plus a small markup for the work.
So a bronze plate costs what the bronze cost plus a bit for pressing it. A quantum circuit costs what its 40-step chain costs. A block of nine ingots costs exactly nine ingots, because the mod recognises packing recipes and refuses to charge markup on them.
Some things it handles that you'd probably not think about until they broke:
- Fluids are priced per bucket, and machine recipes that use 50 mB of something get charged for 50 mB, not a full bucket.
- Catalysts that aren't consumed (packer templates, moulds) cost nothing.
- Chisel variants of a block are held to the price of the block. Otherwise you get a money printer where a netherite block panel is worth 1,800x a netherite block pillar and you just cycle between them.
- Mob drops, loot and structure items with no recipe get sensible hand-set values instead of a placeholder.
- The whole thing runs a self-check on every world load and logs it if any of the above stops being true.
Prices are also bounded: nothing goes below half its base value or above 1.75x, no matter what you do to the market.
Getting started
Craft the Market Tablet:
I G I
R E R
I I I
I = iron ingot, G = glass pane, R = redstone, E = ender pearl
It runs on Forge Energy. Any FE charger works, or right-click a placed block of redstone with it if you're early game. It won't open on an empty battery.
Right-click to open the market. Pick a currency in the top corner if you'd rather see € or ¥ than credits.
Selling
Selling isn't instant. You put things up for sale and buyers show up over time - sometimes someone takes 2, sometimes someone takes 100, and sometimes nobody comes for a bit. Cheap goods move in bulk, expensive ones in ones and twos.
Two ways to sell:
- From the tablet - list items straight from your inventory.
- Shift-right-click a chest (or tank, for fluids) with the tablet to link it. You get a screen showing what's inside, and from there you can sell some of it, buy stuff into it, or set up a standing rule: auto-sell everything, keep 64 and sell the rest, or auto-buy up to a target amount. Auto-buy chests lock so nothing else pulls from them.
Buying is instant. You paid, you get it.
Setting up an order costs a bit of power. Keeping the tablet open costs a bit of power. That's it - nothing drains while a listing sits there waiting.
Prices move slowly on purpose
Sell 500 ingots and you'll get the same price for the 500th as the first. The market "finds out" over the next few days and the price slips then. So you don't see yourself getting less as a sale goes through - you see the consequence when you come back tomorrow.
There's also a slow random drift, so things you never touch still wander a few percent up and down.
Advancements
27 of them. You start with Capitalism™ for crafting the tablet, and it goes downhill from there through Dirt Merchant, Number Go Up, Leveraged to the Eyeballs and I Can Stop Anytime. They read your account, so if you've already done the thing you get it on your next trade.
Commands
|
|
/dyneco balance |
your money |
/dyneco price <item> |
what something's going for |
/dyneco why <item> |
how that price was worked out - which recipe, which inputs |
/dyneco currency <name> |
euro, dollar, yen, credits |
/dyneco debug on |
adds a row to the tablet where you can nudge any price or type one in, then hit Resolve all to re-derive everything built from it |
/dyneco item add/remove <item> |
put something in or take it out of the market |
/dyneco reload |
rebuild the price table |
The admin ones need op by default. Playing singleplayer without cheats (hardcore, say)? Set requireOpForCommands = false in config/dyneco-common.toml.
Fixing a price you don't like
Every pack is different and something will look wrong to you eventually. That's what debug mode is for. Turn it on, select the item, set the number, hit Resolve. It's saved to config/dyneco/anchors.json and survives restarts.
Because prices are derived, fixing one root item fixes everything made from it. Set copper ingots to 80 and every wire, plate, cable and circuit that uses copper follows. One good number at the bottom of a chain beats a hundred edits at the top.
If you want to see what the mod decided and why, config/dyneco/report_why.csv has every single price with the recipe and inputs that produced it.
What's not traded
Tools, weapons, armour, machines, anything with a block entity, vehicles, potions, music discs, spawn eggs. The idea is a resource market - the stuff you dig up, grow, kill for or process - not a shop that sells you a diamond pickaxe. /dyneco item add overrides this per item if you disagree.
Compatibility
Tested on Boundless Horizons (1.21.1, NeoForge, ~370 mods including Modern Industrialization, Mekanism, AE2, EnderIO, Powah, Occultism, Industrial Foregoing, Silent Gear, Better End). The derivation is generic and should work on any pack, but the hand-set base values were tuned on that one - expect to adjust a few things with debug mode if your pack is very different.
Mekanism chemicals, MI fluids and the like are all handled. Guns from TACZ and the aircraft mods are excluded by default because they're weapons and vehicles.
Singleplayer is the main use case. Works on servers; the economy is shared, so one player's dumping affects everyone's prices, which is either a feature or a problem depending on your friends.
Config
config/dyneco-common.toml has about 70 options with comments. The ones people actually touch:
priceFloorMult / priceCeilMult - the band prices stay in (0.5 / 1.75)
stockConstant - how much has to be sold before a price moves
listingBuyerChance - how busy the market is
demandVolatility - how much prices drift on their own
denyItems / denyMods / allowItems - what's tradeable
requireOpForCommands
评论 0
登录后参与评分
还没有评论,来抢沙发吧