Starbound

Starbound

71 ratings
[oSB] Automatically Scan Objects!
   
Award
Favorite
Favorited
Unfavorite
File Size
Posted
Updated
3.237 KB
9 Aug @ 9:24pm
11 Aug @ 8:59pm
4 Change Notes ( view )

Subscribe to download
[oSB] Automatically Scan Objects!

In 1 collection by Silver Sokolova
Silver's Clientside Mods
36 items
Description
This mod requires OpenStarbound![github.com]
Any printable objects in your inventory are automatically added to the Pixel Printer.
Now you won't have to worry about checking if you scanned something before you discard it!
The mod scans your inventory every 3 frames, one slot of each tab at a time. You can change how often it scans in `/xrc_autoscan.config:scriptDelta`- higher numbers are slower and thus better for weaker machines. 60 frames is 1 second.

Q & A
Q: Mod doesn't work! I do not have OpenStarbound[github.com] installed.
A: You must have OpenStarbound[github.com] installed for this mod to work.

Q: Does this work with modded objects? I don't want to install separate patches for every mod that adds objects.
A: It works with modded objects, as long as they are printable! There is no need to make a patch.
Technical Explanation: Instead of patching each individual object to scan themselves when they enter the inventory, a script is added to the player which checks what's in their inventory and simulates scanning each object within.

Q: Does this work with the Lagless Pixel Printer mod?
A: Yes! It also works with the vanilla Pixel Printer.

[discord.gg]
24 Comments
Silver Sokolova  [author] 2 Oct @ 12:11am 
@Azure Fang Thanks! I couldn't recreate the issue unfortunately, and to be honest, I've always known how to fix it on Craftable Seeds's end, but I just didn't know the author was still active (I never checked before 2024!!) and assumed we'd all just have to work around it! So I've messaged them, thank you!
Azure Fang 30 Sep @ 8:50pm 
TIL Notepad++ has a file monitoring option so I can watch starbound.log files build in real time! God I wish I had known about that during the height of my mod debugging :squirtooh:

Anyway, I can now verify that this exception requires multiple mods to trigger. As mentioned, Learn Blueprints on Scan and [oSB] Automatically Scan Objects must be installed together, alongside a third mod that actually triggers the interaction.
The two triggers I was able to find are:
Craftable Seeds NEW
Craftable Green Apple and Orange saplings in Seed Maker
(You would think the addon wouldn't trigger without the base, but no, it does.)

Here's a clean, excepting log with only the LBoS, ASO, and CSN installed: https://pastebin.com/AWsZrYsn
Azure Fang 30 Sep @ 7:38pm 
I should have thought about mod interactions. It's been a few years since I retired from Starbound modding, so forgive me for jumping. You're right, it's not this mod alone causing it. It's a combination of this, Learn Blueprints on Scan, and at least one more mod. I'll burn through my list and get the name(s) of any mods that trigger the issue and report back, so they can at least be documented.

Again, my apologies for jumping.
Silver Sokolova  [author] 30 Sep @ 7:09pm 
as in, a full log from a gameplay session in which the error occurred
Silver Sokolova  [author] 30 Sep @ 7:05pm 
@Azure Fang doesn't happen for me, you must have some mod that changes the sapling buildscript in some broken way. full log would be good
Azure Fang 30 Sep @ 4:49pm 
I need to do some further testing, but as it stands this mod is causing constant non-critical exceptions when the player has a sapling in inventory.
[16:44:53.468] [Error] Could not instantiate item '[sapling, 1, {}]'. (LuaException) Error code 2, [string "/items/buildscripts/buildsapling.lua"]:7: (LuaConversionException) Error converting LuaValue to type 'class Star::String'
stack traceback:
[C]: in ?
[C]: in field 'treeStemDirectory'
[string "/items/buildscripts/buildsapling.lua"]:7: in function <[string "/items/buildscripts/buildsapling.lua"]:3>

I can provide a full log on request.
Partonetrain 21 Sep @ 10:08am 
I have a suggestion in the same vein as this mod: auto codex reading. How difficult would that be?
Thank you for your great mods!
Vessel 15 Sep @ 5:11am 
@Silver Sokolova Understandable have a great day
Silver Sokolova  [author] 14 Sep @ 8:18pm 
@Azinta Only ones that need unique oSB modding features require it (there are things that oSB makes possible). Some work without oSB but have extra functionality if it's installed. Most of mine don't require oSB
Vessel 14 Sep @ 10:26am 
why do all your mods use openstarbound?