I would ask if there is a way to hook a script after a function and not before.
I'm creating an addon with Ace libraries that have 2 lua file.
The first, is the core, which create Test as newaddon. The second one, contains some function that use test. Look below:
local me = LibStub("AceAddon-3.0"):NewAddon("Test", "AceConsole-3.0", "AceEvent-3.0", "AceHook-3.0")
Test = me --global export
if not test1 then Test:Print("Loading...") end
local Test = Test --get the global export
if not test2 then Test:Print("Loaded") end
If you run this, you will see in chat "Loaded" and then "Loading...".
How can I load After_Core.lua after Core.lua?
Any changes to the TOC file requires a full WoW.exe restart. Logging out and back in is insufficient. If the problem still occurs, post the full contents of all your files (addon.toc, Core.lua and After_Core.lua) otherwise its impossible for us to guess the problem.