I've moved this thread to Total War: Attila Mod Workshop - DB Editing and Scripting
If you have Total War: Warhammer 2, then downloading this mod and moving it to C:\Program Files (x86)\Steam\steamapps\common\Total War Attila\data might work. This is probably a better method than the one detailed below. But if you don't have Warhammer 2, or that doesn't work then...
Open up 1295 Medieval Kingdoms .pack file with the Pack File Manager, navigate to campaigns - main_attila - scripting.lua and scroll down until you find the following bit of code. Add the purple text in between end; and return success;
Code:
-- try and load a faction script
function load_faction_script(scriptname)
local success, err_code = pcall(function() require(scriptname) end);
if success then
output(scriptname .. ".lua loaded");
else
script_error("ERROR: Tried to load faction script " .. scriptname .. " without success - either the script is not present or it is not valid. See error below");
output("*************");
output("Returned lua error is:");
output(err_code);
output("*************");
end;
scripting.game_interface:show_shroud(false)
return success;
end;
-------------------------------------------------------
-- function to call when the first tick occurs
-------------------------------------------------------
ALL of the credit goes to Magnar, not to me.