Lawrence Posted November 18, 2013 Share Posted November 18, 2013 Hello there, I just looked at this http://forums.kleientertainment.com/topic/11612-tutorial-overriding-existing-prefabs-and-loading-custom-prefabs/?hl=overrideIt looks easy, but I think I have not understand Here what I understood: If I want to modify stats and brain of a mob, should I: - Copy the mob's prefab and brain in my mod folder;- Modify them, of course;- Then add an override command {GLOBAL.TheSim:LoadPrefabDefs( MODROOT.."prefabs.xml" )} in the modmain? Thank you for help... Link to comment https://forums.kleientertainment.com/forums/topic/29804-modifying-existing-prefabs-and-brains-how-to/ Share on other sites More sharing options...
Malacath Posted November 18, 2013 Share Posted November 18, 2013 The ages of overriding existing files are over my friend : PYou'll want to modify everything via modmain.luaThe apiexample mod from Ipsquiggle provides examples for everything, including a brain modification.Of course you can put a modified vanilla file into your modfolder. If make sure that relative paths match with the original nothing more has to be done. It's just not the way you should do things. Link to comment https://forums.kleientertainment.com/forums/topic/29804-modifying-existing-prefabs-and-brains-how-to/#findComment-373163 Share on other sites More sharing options...
Lawrence Posted November 18, 2013 Author Share Posted November 18, 2013 Thank you, my hero. You always save me from the Lua Imp Link to comment https://forums.kleientertainment.com/forums/topic/29804-modifying-existing-prefabs-and-brains-how-to/#findComment-373166 Share on other sites More sharing options...
Malacath Posted November 18, 2013 Share Posted November 18, 2013 Thank you, my hero. You always save me from the Lua Imp My pleasure : DAnd you should stop posting anything right now to keep that post count forever ; ) Link to comment https://forums.kleientertainment.com/forums/topic/29804-modifying-existing-prefabs-and-brains-how-to/#findComment-373168 Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now