Starbound
31 평점
LuaPluginLib (Beta)
   
어워드
즐겨찾기
즐겨찾기됨
즐겨찾기 해제
파일 크기
게시일
업데이트일
5.612 MB
2022년 2월 19일 오후 2시 20분
2022년 3월 25일 오후 7시 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
2023년 2월 8일 오후 11시 49분
고정됨: Bug Reports
SeventhStar
댓글 22
Aryterst 2025년 1월 19일 오후 4시 13분 
is the violium broadsword issue gonna be fixed soon?
SeventhStar  [작성자] 2022년 7월 16일 오후 1시 29분 
Thanks ThunderBladeTHX, I'll take a look!
ThunderBladeTHX 2022년 7월 12일 오후 6시 21분 
hey, so this breaks the violium broadsword, the error's something along the lines of not loading the flipslash
oinkoinkmooo 2022년 5월 23일 오후 5시 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  [작성자] 2022년 3월 23일 오후 8시 01분 
Beta.43 is live, including all of stats/effects as well as about half of /monsters
SeventhStar  [작성자] 2022년 3월 11일 오후 3시 39분 
Beta.41 is up, and includes compatibility with the Starbound Patch Project. :SBpenguin:
SeventhStar  [작성자] 2022년 3월 10일 오전 2시 54분 
*including the LuaPluginLib source directly is less preferred as the mod author would need to manage updates downstream.
SeventhStar  [작성자] 2022년 3월 10일 오전 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 2022년 3월 9일 오후 10시 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 2022년 3월 8일 오전 9시 04분 
lua jlugin lib