Jump to content

Recommended Posts

Hi there, so I want to change a lot of one brain files.
I got tired of using AddBrainPostInit and just create a new script/brains folder and put my file in.
Now the problem is I don't know how to write the modmain so the game would use my file instead of the original one.
I've been trying to use AddClassPostConstruct but doesn't seem to work.
Can anyone help me with that?

2 hours ago, Rickzzs said:

you don't need a modmain for a file to override.

So I'll just create a [mymodname-scripts-brains-mymodbrain.lua] file and put it in the mod file?
Do I need to create an empty modmain?

Edited by Last_epilogue
3 hours ago, Rickzzs said:

Override method: put your file in exactly the same path, with exactly the same name. You only need a modinfo.lua, but in case the game require a modmain.lua you can create an empty one.

Sorry for keep asking but I just looked and my file seem to be in both DLC0002 and DLC0003 files (and not in prefab file).
What should I do to "put my file in the same path"?

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
  • Create New...