Oxygen Not Included

Oxygen Not Included

Not enough ratings
Lua Scripting Engine
   
Award
Favorite
Favorited
Unfavorite
File Size
Posted
Updated
192.712 KB
Jul 23, 2019 @ 7:34am
Jun 19 @ 6:30pm
83 Change Notes ( view )

Subscribe to download
Lua Scripting Engine

Description
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://steamcommunity.com/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]
Popular Discussions View All (1)
1
Jul 18, 2021 @ 4:05pm
Mods That Require Lua
kingofallsquirrels
24 Comments
Rainbow  [author] May 17, 2021 @ 3:34pm 
I did update it now. Check if it works.
ViperActual May 17, 2021 @ 10:37am 
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  [author] May 9, 2020 @ 2:20pm 
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 May 9, 2020 @ 8:39am 
Now it works~ Thanks~
Rainbow  [author] May 9, 2020 @ 8:07am 
Check the new version and tell me if it works for you
blueweapon May 8, 2020 @ 10:42pm 
"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  [author] May 8, 2020 @ 5:31pm 
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://steamcommunity.com/sharedfiles/filedetails/?id=2014940545
blueweapon May 8, 2020 @ 11:54am 
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  [author] May 8, 2020 @ 10:31am 
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 May 7, 2020 @ 12:41pm 
Is it work after update? Mine can not load~