缺氧
评价数不足
Lua Scripting Engine
   
奖励
收藏
已收藏
取消收藏
文件大小
发表于
更新日期
192.712 KB
2019 年 7 月 23 日 上午 7:34
6 月 19 日 下午 6:30
83 项改动说明 ( 查看 )

订阅以下载
Lua Scripting Engine

描述
Maintainer Wanted

I cannot really continue to maintain the mods and want to pass them on.
If you want to take my mods maintain and maybe improve them please write me a message or comment.
I try to fix them from time to time on request but no warranty how long that takes i have no resources to do it frequently.

Description

This is not a Standalone mod, but a Tool and a dependency for mods that use Lua.

A Lua integration for ONI, It must be loaded before all mods that have it as dependency, best you have it at the top of you mod list.

The New version is out, you can now add entry points to your modfolder without copying the mod and you can Manipulate the map like replacing elements.

The Scripting Engine for Oxygen Not Included
is a modding tool with which you can execute lua scripts that call c# functions and classes.

Noteable features are: Manipulate buildings, Research, the mapsettings and you can directly manipulate the map.

This version contains no examples, they have moved to the configurations mod:
https://gtm.steamproxy.vip/sharedfiles/filedetails/?id=2014940545

The Mod files and the documentations are in:
Documents\Klei\OxygenNotIncluded\mods\Steam\1812965265

A Summary of my published mods you can find at:
https://forums.kleientertainment.com/forums/topic/113661-mods-rainbowdesigns-mods/

Troubleshoot

Steam does right now a real mess with mods.
Updates does not work properly. If the mods do not work first use the mod updater.
If the modupdater does not update too you have to download it manually from https://github.com/peterhaneve/ONIMods/releases/ModsLatest
extract ModUpdateDate to \Documents\Klei\OxygenNotIncluded\mods\dev (create if not there)

If you like the mod add it as favorite and vote it up so more people will know about it:




To support me on Patreon follow that link:
[www.patreon.com]

[www.patreon.com]
热门讨论 查看全部(1)
1
2021 年 7 月 18 日 下午 4:05
Mods That Require Lua
kingofallsquirrels
24 条留言
Rainbow  [作者] 2021 年 5 月 17 日 下午 3:34 
I did update it now. Check if it works.
ViperActual 2021 年 5 月 17 日 上午 10:37 
Hello, I keep running into the following error, even when this mod is the only one enabled. I do have the DLC enabled when trying to start the game.

Exception while loading mod 1812965265.Steam at C:/Users/viper/Documents/Klei/OxygenNotIncluded/mods/Steam/1812965265.
System.ArgumentException: No target method specified for class LuaCore.EntryPoints+__loadworlds (declaringType=CustomGameSettings, methodName =LoadWorlds, methodType=, argumentTypes=NULL)
at Harmony.PatchProcessor.PrepareType () [0x001de] in <1b23547042994e96b8b6361dbe3791d9>:0
Rainbow  [作者] 2020 年 5 月 9 日 下午 2:20 
I think it may have troubles when two lua mods are installed, it might have a bug there, when you release a mod please notify me, i will look into it again.
blueweapon 2020 年 5 月 9 日 上午 8:39 
Now it works~ Thanks~
Rainbow  [作者] 2020 年 5 月 9 日 上午 8:07 
Check the new version and tell me if it works for you
blueweapon 2020 年 5 月 8 日 下午 10:42 
"suggest you to delete the folder and reinstall the mod" -> Typical~ I've already done it and more~ I've checked your github for up to date binary but no release there~. I've even cleared steam download cache~
LuaCore.LuaFunctions+crashandler crashes by at Harmony.HarmonyInstance.PatchAll (System.Reflection.Assembly assembly)
Rainbow  [作者] 2020 年 5 月 8 日 下午 5:31 
On the fly i would suggest you to delete the folder and reinstall the mod, maybe you have an old file there.
The example stuff more or less has moved to the first full lua mod that is working:

https://gtm.steamproxy.vip/sharedfiles/filedetails/?id=2014940545
blueweapon 2020 年 5 月 8 日 上午 11:54 
Error log
null Exception while loading mod 1812965265.Steam at .../Documents/Klei/OxygenNotIncluded/mods/Steam/1812965265.
System.ArgumentException: No target method specified for class LuaCore.LuaFunctions+crashandler (declaringType=KMod.Manager, methodName =HandleCrash, methodType=, argumentTypes=NULL)
at Harmony.PatchProcessor.PrepareType () [0x001de] in <1b23547042994e96b8b6361dbe3791d9>:0
at Harmony.PatchProcessor..ctor (Harmony.HarmonyInstance instance, System.Type type, Harmony.HarmonyMethod attributes) [0x00065] in <1b23547042994e96b8b6361dbe3791d9>:0
at Harmony.HarmonyInstance.<PatchAll>b__9_0 (System.Type type) [0x00023] in etc etc...
And examples are not anymore (I remember there was examples in previous versions)
LuaEntryPoint.dll has changed name to LuaEntryPoint-blueprint.dll is it correct?
Rainbow  [作者] 2020 年 5 月 8 日 上午 10:31 
Why do you think it does not work? This mod does nothing on its own only with other mods.
If you get it disabled standalone or the game crashes please send the log in the forum topic.
blueweapon 2020 年 5 月 7 日 下午 12:41 
Is it work after update? Mine can not load~