[mod] Vision Lib [vision_lib]

Post Reply
User avatar
PolySaken
Member
Posts: 817
Joined: Thu Nov 09, 2017 05:18
GitHub: PolySaken-I-Am
In-game: PolySaken
Location: Wānaka, Aotearoa
Contact:

[mod] Vision Lib [vision_lib]

by PolySaken » Post

A library of common code and useful functions shared by some mods. The primary purpose is to decrease the overall filesizes of PolySaken's mods by putting reused code in a single library, however, it can be used by anyone.
features:
- isolated sound sets for metal, plastic, sand, and glass nodes so you can use common sound styles without needing to make your own or depend on default
- A material unification system to prevent orebloat, e.x. depend on vision_lib and visionLib.Material.require({"some_metal"}) rather than registering your own items for the metal, which makes it easier to use lots of metals and also prevents situations like where mod1:steel and mod2:steel are different items but serve the same purpose. (this will only work if said material is supported by vision_lib, but I'll add more on request.)
- a useful connected node detection function, good for wires/multiblocks.
- many more misc functions to make your life easier.

planned features include:
- functions for drawing with particles

depends: none
optional depends: technic, basic_materials, moreores
license of textures and code: CC-BY-SA 4.0

download
Last edited by PolySaken on Thu Jul 15, 2021 13:41, edited 1 time in total.
Guidebook Lib, for in-game docs | Poly Decor, some cool blocks | Vision Lib, an all-purpose library.

User avatar
PolySaken
Member
Posts: 817
Joined: Thu Nov 09, 2017 05:18
GitHub: PolySaken-I-Am
In-game: PolySaken
Location: Wānaka, Aotearoa
Contact:

Re: [mod] Vision Lib

by PolySaken » Post

Vision Lib now has a proper documentation, so anyone that doesn't yet know the limitless power of unified materials may bask in their glory.

It also now has the capability to automatically generate textures and recipes for decorative node variants:
Image
This is as simple as visionLib.Material.CreateVariants('modname:nodename', true) for any given node.
Vision Lib will generate variants for default nodes automatically.
Attachments
screenshot_20210716_010214.png
screenshot_20210716_010214.png (749.43 KiB) Viewed 962 times
Guidebook Lib, for in-game docs | Poly Decor, some cool blocks | Vision Lib, an all-purpose library.

Tim790
Member
Posts: 124
Joined: Mon May 31, 2021 23:32
GitHub: Tim79000
In-game: Tim7
Location: Land of the Midnight Sun

Re: [mod] Vision Lib [vision_lib]

by Tim790 » Post

So useful Looking.
Yeet.

Post Reply

Who is online

Users browsing this forum: Bing [Bot] and 42 guests