Heed's FixHaks Plugin is a simple toolset plugin that extracts the module's hak list, clears the hak list, re-adds the list in reverse order, reloads the haks and then restores the original hak list order. This is done in order to set the toolset to use the same hak priority order as the game uses. Without this fix, the toolset and the game will function differently when multiple hak paks are attached because they read the hak list in opposite order from eachother.
Run the plugin once after you load your module. If multiple haks are attached to the module it will perform its function. Otherwise you get a message saying no action was taken. That's it. The toolset and game are now reading the hak list the same way.
In other words, the hak in position 0 in your hak list will now be the most dominant hak, the hak in position 1 will be the 2nd most dominant, etc.
The plugin should be run right after you load your module or after any changes are made to the hak list.
No, I didn't look at other ways to get the haks to load properly. This was basically the first way I found to do the job. It worked, so I stuck with it and didn't investigate further. First thing I've written outside of NWSCRIPT, so it was just me feeling my away along.
I just store the list in an array, clear the list, read the array backwards adding the haks to the list, call a reload of the hak list, clear the list and then read the array forwards adding the haks in their original order.
I guess you might be able to just read the list and call a reload of the haks themselves without altering the list. Have you found a simpler way to do it? _________________________ Thought thinks itself.
Damn you beat me to it by several weeks! I was going to include the same functionality in usability tools. Did you have any look at ways to reorder without removing/recreating the list?
10 - A Masterpiece, Genuinely Groundbreaking 9 - Outstanding, a Must Have 8 - Excellent, Recommended to Anyone 7 - Very Good, Deserves a Look 6 - Good, Qualified Recommendation 5 - Fair, Solid yet Unremarkable 4 - Some Merit, Requires Improvements 3 - Poor Execution, Potential Unrealized 2 - Very Little Appeal 1 - Not Recommended to Anyone