Skorp Posted March 24, 2014 Share Posted March 24, 2014 When I activate my mod and the Always on mod (both having the kramped.lua file) the later gets to overwrite the file. I tried to assign a bigger priority number but I doesn't appear to work, is there anything else I need to do? Link to comment https://forums.kleientertainment.com/forums/topic/33497-priority-not-working/ Share on other sites More sharing options...
iWitch Posted March 25, 2014 Share Posted March 25, 2014 make different names, like mod1name_kramped.lua or put in unique directory then in modmain.lua GLOBAL.require "path_to_file/kramped.lua" read squeek posts about overriding, its pretty easy for components Link to comment https://forums.kleientertainment.com/forums/topic/33497-priority-not-working/#findComment-437412 Share on other sites More sharing options...
Skorp Posted March 25, 2014 Author Share Posted March 25, 2014 Yes, now the priority works properly, thank you! Link to comment https://forums.kleientertainment.com/forums/topic/33497-priority-not-working/#findComment-437469 Share on other sites More sharing options...
simplex Posted March 31, 2014 Share Posted March 31, 2014 iWitch's point is the way to go. However, it is worth noting that priority for file finding in mods is the inverse of the priority for mod loading (as odd as that is), so for the first approach you would have to lower your mod's priority. Link to comment https://forums.kleientertainment.com/forums/topic/33497-priority-not-working/#findComment-440803 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