Starbound
Оценок: 31
LuaPluginLib (Beta)
   
Наградить
В избранное
В избранном
Удалить
Размер файла
Добавлен
Изменён
5.612 MB
19 фев. 2022 г. в 14:20
25 мар. 2022 г. в 19:39
Обновлений: 18 (просмотреть)

Подпишитесь, чтобы загрузить
LuaPluginLib (Beta)

Описание
Note: This mod does not change game behavior at all, but enables Modders more safely change vanilla scripts. If you don't have another mod that depends on this one, you probably don't need to subscribe to it by itself.

Improves compatability between mods by creating a system of plugins for vanilla modules

The problem:

Many mods want to update the code in weapon.lua or player_primary.lua, and doing so risks incompatibilities with other mods.

Whoever loads last, gets to keep their code! That's not great.

The solution:

This mod offers a simple interface for loading "plugins" on top of your lua, and modifies vanilla lua to use its mechanisms.

With LuaPluginLib, you can add a reference to your "plugin" to a local .config or .config.patch file and supported scripts will layer your code on top of their own.

LuaPluginLib also adds utilties for adding hooks to functions, which allows you to execute your code BEFORE a function or AFTER that function is called.


To learn more, check out the GitHub repository[github.com]

Note! This is a Beta Release

Not all vanilla scripts are currently supported. Please take a look at the README on GitHub[github.com] for details.

While the mod is still "beta", the API may still change. When a majority of the base asset Lua supports the library, we'll go to 1.0 and the API will be locked to maintain support for all consumers.
Популярные обсуждения Просмотреть все (1)
6
8 фев. 2023 г. в 23:49
ЗАКРЕПЛЕНО: Bug Reports
SeventhStar
Комментариев: 22
Aryterst 19 янв в 16:13 
is the violium broadsword issue gonna be fixed soon?
SeventhStar  [создатель] 16 июл. 2022 г. в 13:29 
Thanks ThunderBladeTHX, I'll take a look!
ThunderBladeTHX 12 июл. 2022 г. в 18:21 
hey, so this breaks the violium broadsword, the error's something along the lines of not loading the flipslash
oinkoinkmooo 23 мая. 2022 г. в 17:25 
wow just wow. the compatibility issues that will be solved using this. hope this get traction and be adopted/standardized when patching lua files.
SeventhStar  [создатель] 23 мар. 2022 г. в 20:01 
Beta.43 is live, including all of stats/effects as well as about half of /monsters
SeventhStar  [создатель] 11 мар. 2022 г. в 15:39 
Beta.41 is up, and includes compatibility with the Starbound Patch Project. :SBpenguin:
SeventhStar  [создатель] 10 мар. 2022 г. в 2:54 
*including the LuaPluginLib source directly is less preferred as the mod author would need to manage updates downstream.
SeventhStar  [создатель] 10 мар. 2022 г. в 2:53 
Good question! This is a modder's resource, providing an easier way to manage changes in Lua files where that is otherwise dangerous.

Any mod which takes advantage of this resource will need to either include it's code directly* or will need to ask you to install LuaPluginLib as a dependency.
ATTA 9 мар. 2022 г. в 22:15 
Is this a modder tool or player experience optimization? I mean if I'm not a modder then do I need to subscribe to it?
patman 8 мар. 2022 г. в 9:04 
lua jlugin lib