Starbound

Starbound

The Bookstore
 此主题已被置顶,因此可能具有重要性
GonDragon  [开发者] 2017 年 8 月 18 日 上午 7:34
Add a book to a tab
The books are not items per se, but codex that can be represented as items. They are defined in his own .codex file-type, and they have his own unique ID that define them. To make a patch, you only need to use that ID.

The patch, will be in the next form:

[ { "op": "add", "path": "/storeInventory/<category>/-", "value": "<id>-codex" } ]
Were <id> is the unique ID of the codex that you want as a book, and <category> is the tab in wich you want the book to appear. In the base mod, you have three categories, novels, manuals and history, but other mod could add his own tabs.
< >
正在显示第 1 - 6 条,共 6 条留言
rj2705 2017 年 8 月 18 日 下午 4:31 
so i'm making a mod where you find a book in glitch dungeons. If i add this patch will it crash if bookstore is not installed
GonDragon  [开发者] 2017 年 8 月 18 日 下午 4:38 
No, that's the idea of the mod. You could add a patch to put a book in the bookstore, even if the bookstore isn't installed.
BaileyJam 2017 年 12 月 29 日 下午 5:31 
I don't think this is working, I'm making a mod that ADDS new Codexes to the game, and when I use the item ID, it isn't showing up in the shop. I've checked everything. Please help!
GonDragon  [开发者] 2017 年 12 月 29 日 下午 5:34 
Can you please put a copy of the patch that you made in pastebin and post it here?
BaileyJam 2017 年 12 月 29 日 下午 5:37 
引用自 GonDragon
Can you please put a copy of the patch that you made in pastebin and post it here?
https://pastebin.com/3t1nHr8L
GonDragon  [开发者] 2018 年 1 月 13 日 上午 6:55 
Hi! Sorry for take to long for respond, I've been a little busy lately. Your patch seems well.

Can you try editing the .metadata file of your mod and add "bookstore" to "includes :"?

Maybe your mod is loading before mine, so it try to apply a patch to a file that is not there yet.
< >
正在显示第 1 - 6 条,共 6 条留言
每页显示数: 1530 50