Don't Starve

Don't Starve

Not enough ratings
交易 - trade
   
Award
Favorite
Favorited
Unfavorite
File Size
Posted
Updated
355.247 KB
May 5, 2024 @ 4:53am
May 5, 2024 @ 11:54am
7 Change Notes ( view )

Subscribe to download
交易 - trade

Description
Enable players to use gold coins to purchase resources.

New Content:

[Item]:
- Gold Coins: Can be used to buy items. One gold nugget can be crafted into four gold coins.

[Building]:
- ATM: Can be used to store gold coins. Interest is calculated daily at a rate of 10%.
- Market Stall: Can be used to sell unneeded resources. Selling price is 50% of the purchase price, with a minimum of 1 gold coin.

[Craft tab]:
- Market tab: Craft the newly added mod items and purchase resources here.
16 Comments
飞鱼  [author] Apr 6 @ 8:40am 
@804490263 很经典的bug,问题就出在克雷在单机版中的配方接口在不同的DLC中完全不同,这就导致了开启原版/巨人国/海难/哈姆雷特会导致建筑跑到制造栏最下面甚至是完全消失无法建造。
我其实之前就对DLC的问题做过修复,虽然不会在我自己的存档中出问题了但是还是偶尔会在别人的游戏中出现bug。或许是因为和其它模组冲突了?不过我已经无力修复这样的bug了。。。抱歉
804490263 Mar 29 @ 4:45am 
mod很好但是没有建筑
有没有什么办法解决
飞鱼  [author] Sep 12, 2024 @ 1:37pm 
@贺贺想谈恋爱 报错的意思是orderlist.lua文件中的78行缺了一个 '}',我检查过了源文件里没问题,可能是你不小心删掉的?加回去就好了。
贺贺想谈恋爱 Aug 25, 2024 @ 8:18pm 
出现了一条错误
error loading module 'orderlist' from file ' .. \mods\workshop-3239973105\scriptslorderlist.lua':
.. \mods\workshop-3239973105\scriptslorderlist.lua:78: '}' expected (to close '{' at line 1) near 'ï'
LUA ERROR stack traceback:
={c}?
=in function"require"
workshop-3239973105/modmain.lua(42.1)in main chunk
括号里的代码是local pricelist = GLOBAL.require("pricelist")
={c}in function"xpcall"
dont_starve/data/scripts/util.lua(552.1)in function "runinenvironment"
括号里代码是return xpcall(fn, debug.traceback)
Oxig3n Aug 1, 2024 @ 4:25am 
Description says, 1 Gold nugget = 4 Gold coins. But it works like 1 nugget to 1 coin but 4 coin to 1 nugget. Also ATM and Market Stall is not showing in the Market tab.

To fix all these go to > \dont_starve\mods\workshop-3239973105 folder. Open the "modmain.lua" file with notepad++. Hit Ctrl + F and type "local goldcoins" and hit Find Next button and then delete "Compatible" word after the "="
It should look like this;
local goldcoins = Recipe("goldcoins", {Ingredient("goldnugget",1)}, MARKET_TAB, TECH.NONE, nil, nil, nil, false, 4)

Now do the same for;

local atm = Recipe

local marketstall = Recipe

Enjoy :steamthumbsup:
刺猬 Jul 7, 2024 @ 6:56pm 
没有DLC物品吗?
飞鱼  [author] Jun 20, 2024 @ 1:52pm 
@Bruti I added a new craftingtab named Market, you can spend coins to buy resources there
Bruti Jun 14, 2024 @ 12:05pm 
where can the coins be spent?
飞鱼  [author] Jun 2, 2024 @ 7:22am 
@ISS AppaEscort 感谢帮助,看这个修正方法意思是ATM和摊位的配方在制作栏里消失了?orderlist是我定义的配方显示顺序,但是这在海难以及哈姆雷特不起作用,因为饥荒不同DLC的API有些许不同,克雷做新DLC的时候没有搞兼容性。
海难和哈姆雷特中,饥荒原版的配方,比如金子和噩梦燃料会被显示在列表的最上方,就很奇怪。
飞鱼  [author] Jun 2, 2024 @ 7:18am 
@我是一个单身狗,但是 @mjss @1697421360 抱歉最近时间,现在才回复。
ATM和摊位在我新创建的制作栏里,是左边列表最底下的那个金币图标。点进去有可以购买的物品以及ATM和摊位。因为饥荒给的API的原因,巨人国、海难哈姆雷特的代码不通用,所以有时候会出问题,不过按理说应该已经通过代码兼容过了。
但是如果是海难和哈姆雷特的话,游戏内原版的制作配方会显示在金币制作栏中的最上方,比如金块、噩梦燃料等,所以摊位和ATM会在这些配方的下面。目前还不知道这该怎么解决。
如果有问题的话建议详细描述一下,好让我知道是什么问题,我会尽力去修复的。