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 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 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 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 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.
Please be aware that the content of this thread may be outdated and no longer applicable.