Comments (15)
It seems that regular scripts aren't allowed to be included in the AssetBundle. I thought having the scripts in a dll would resolve it but while loading in the game tells me: Warning: Unity Log] The referenced script (mydllfile.myscript) on this Behaviour is missing! Even though the gameobjects definitely has the correct script attached. Not sure if this is my fault but I'm a bit confused now.
this is not allowed, a bundle can't be scanned with any antivirus so it's easy to put malwares in them
theres a whitelist of allowed components
from lethalsdk-unity-project.
That makes sense.
So I'm guessing there is no way to have custom stuff happen like.. a box trigger enabling some particles or having a sound play every so many seconds for instance.
from lethalsdk-unity-project.
That makes sense. So I'm guessing there is no way to have custom stuff happen like.. a box trigger enabling some particles or having a sound play every so many seconds for instance.
i planned to add some scripts to do that, but i never did it, and the mod is in end of support so.. :/
from lethalsdk-unity-project.
Wouldn't it be possible to include these scripts in a separate DLL and run them from there?
from lethalsdk-unity-project.
Wouldn't it be possible to include these scripts in a separate DLL and run them from there?
Yes, you need to make a DLL, bundles can't store scripts
Load this DLL in unity by placing it in a plugins folder
from lethalsdk-unity-project.
I did try this but whenever I referenced a script from my dll on objects in the prefab, when loaded, the game couldn't find them.
from lethalsdk-unity-project.
I did try this but whenever I referenced a script from my dll on objects in the prefab, when loaded, the game couldn't find them.
Same on that, Little success. I have tried using a bepinex plugin to add the dll via bepinex, but it still couldn't find the reference. won't stop me from trying to figure it out lol.
My theory would be having it added as a component using an auxilary help plugin is one of the ways to do it, but depending on what you're trying to acomplish, this method might either be unmanagable or just unperformant.
from lethalsdk-unity-project.
Does your bepinex plugins was loading before lethal Expansion?
from lethalsdk-unity-project.
Does your bepinex plugins was loading before lethal Expansion?
Nope, it seems lethalSDK has priority over the plugin, and I lack the knowledge on how to increase priority.
from lethalsdk-unity-project.
Does your bepinex plugins was loading before lethal Expansion?
Nope, it seems lethalSDK has priority over the plugin, and I lack the knowledge on how to increase priority.
Add a dependency for Lethal Expansion in your plugin
Look for Bepinex dependency flag
from lethalsdk-unity-project.
Does your bepinex plugins was loading before lethal Expansion?
Nope, it seems lethalSDK has priority over the plugin, and I lack the knowledge on how to increase priority.
Add a dependency for Lethal Expansion in your plugin Look for Bepinex dependency flag
What I'm guessing is doing something along the lines of
[BepInPlugin(GUID, Name, Version)]
[BepInDependency("HolographicWings-LethalExpansion-1.3.30", BepInDependency.DependencyFlags.HardDependency)]
On top of the class inheriting BaseUnityPlugin?
from lethalsdk-unity-project.
Yes but the id of the mod is just LethalExpansion
A tip is to check the name of the config file
from lethalsdk-unity-project.
I've tested that, yet still comes out as not being found on the object inside the map,
Using a simple class "ExistanceNotifier"
public class ExistanceNotifier : MonoBehaviour
{
[SerializeField] private string message;
public void Awake()
{
Debug.Log(message);
}
}
Using the reference
[BepInPlugin(GUID, Name, Version)]
[BepInDependency("LethalExpansion", BepInDependency.DependencyFlags.HardDependency)]
Inside the editor of the moon itself, simple awake checker
Yet, in the command line, twice:
Once, before the game has started and everything is being initialized
And once the moon has loaded.
So, I'm not sure exactly what the root cause of the missing dependencies could be at this point.
from lethalsdk-unity-project.
I tried on my side too
LethalExpansion need your DLL as dependance, so it will need every DLL of every peoples who make custom script as dependance
I will look for an alternative, like Lua scripting
from lethalsdk-unity-project.
Lua is not made for Unity, it works but i will have to write every unity function which will take me months..
from lethalsdk-unity-project.
Related Issues (20)
- Unable to disable Level Ambience Clips
- Noisemakers Pitch Issue HOT 3
- Enemies, instead of patrolling the map, go to zero coordinates and get stuck. HOT 2
- Any way to add configurations? HOT 1
- Damage Player on scrap? HOT 1
- LevelAmbienceClips not working
- Nav mesh issue with custom moons HOT 3
- Custom Scraps aren't able to pickup HOT 5
- How to localize water effect HOT 3
- Moons made pre-1.3.36 are broken after updating HOT 20
- Problems syncing interactable objects HOT 7
- I have a error when a try to make the assetBundle HOT 2
- Moon cannot be added, "missing or incompatible bundles" HOT 7
- AssetBank Audio not working HOT 3
- audio problem, I would like to set a time limit on the use of my "airhorn/clownhorn" HOT 15
- Created AssetBundle is extremely large (~15mb of assets->283mb bundle) HOT 5
- Some Questions HOT 5
- The map created cannot be landed HOT 2
- Not Up To Date? HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from lethalsdk-unity-project.