DigitalCrafting

If you liked this item, please rate it up on Steam Workshop page.

Author: thelich

Last revision: 18 Jan, 2023 at 09:29 UTC

File size: 854.02 KB

On Steam Workshop

Description:

This is addon for DigitalStorage mod.

It allows crafting directly from DigitalStorage.
If item can be crafted and player knows blueprint for it and there is a station in DigitalStorage, which is required for crafting this item – then there will be "Craft" button on item, when you open Terminal.
When you click on this button, there will be shown a list of all available ricipes for this item. When you select any recipe, there will be shown a list of all required ingredients. They can be crafted too if above requirements is fullfilled. Thus, you can craft any item in one place, no need to run over you ship/station/colony between different crafting stations to craft one item.
Hitting "back" button, while in craft mode, will show previous selected recipe, or items interface, if it was a top recipe.

Window to the right of main shows all crafting stations, which you put in DigitalStorage. You can upgrade any station from this interface (if upgradable). Clicking on station will show only recipes available to this station. Doubleclicking on station will quickwithdraw this station to players inventory.

By default, only items stored in DigitalStorage will be shown. So if you want to craft any item you don’t have yet, you need either select a required station or enter a filter in a search field of main window.

Crafting an item only uses ingredients stored in DigitalStorage (except any currency), so if you have required amount in players inventory – it will not be counted. You need to move ingredients to DigitalStorage first (you can shift-click on item in player’s inventory to quick store item in DigitalStorage while Terminal window is open).

Crafted result will be placed in DigitalStorage, so don’t forget to withdraw your item from DigitalStorage after crafting.

Other changes:
TransferNode got additional setting for Export mode – Leave. If amount set, then node will try to leave specified amount of exported item in DigitalStorage.
Doubleclicking on text filter line in FilterFormatter will put value of this line in edit field and remove it from the list. This way you can fast edit you text filters.

NOTES:
The main problem of custom crafting mods, that there is no way for mod to get list of all items which can be crafted (there no such functions). The only way is to explicitly specify such list.
By default, mod supports crafting only vanilla and DigitalStorage items. Support for items created by other mods will be added by additional "Craftable items pack" mods soon.

On first load after installing mod (or after installing/removing any "craftable items pack") there will be a very big delay after opening Terminal and obtaining stored item list (up to 1 minute, depending on player’ PC performance) – mod will initialize craftable items list and store it internally. After that, delay, when opening Terminal, will be much lower (about some seconds). Also there can be some additional delay if you teleported to a world/ship and immediately opened Terminal.

For modders:
To add a support for items from your mod, create a simple mod with one file craftables.config.patch with following content :

[ { "op" : "add", "path" : "/providers/YourModName", "value" : [ "itemname1", "itemname2", … ] } ]

YourModName – may be anything you want, but it should be unique, so I suggest using your mod name,
itemname1, itemname2 – craftable items names your mod adds
Example (ModernTrams mod):

[ { "op" : "add", "path" : "/providers/ModernTrams", "value" : [ "durasteeltram", "moderntram" ] } ]

Don’t forget to add "DigitalCrafting" to requires directive of _metadata file, so this patch would be correctly loaded after DigitalCrafting mod.

Download
Required items:

Click the title to search on this site.


HLibPlusSteam Workshop
DigitalStorageSteam Workshop