Jump to content

Recommended Posts

You don't "add files to modmain" (unless I've totally slept through a class). What exactly are you changing? Can I see your file?

If you've copied the original rope.lua and made changes to it, all you have to do is name it the same as the original file, and place it in the same folder structure as the game, but underneath your mod folder e.g. scripts\prefabs\rope.lua

But overwriting the original game files in your mod is seriously bad practice. You should do whatever you can to modify the game code using the appropriate tools given in the API e.g. AddPrefabPostInit.

Edited by Ultroman

@Ultroman yes modifying function part of something is what I am doing. So if I add the AddPrefabPostInit for rope in mychanges_rope.lua file then nothing will happen because file isn't executed by modmain or something like that and I need to import it in there. Know syntax how to do that?

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...