Total War: ATTILA

Total War: ATTILA

1212 Luckier Nations
7 kommentarer
David 9. aug. 2023 kl. 8:31 
@Brugarolas IT is work now?
Brugarolas 23. juni 2023 kl. 3:48 
Did you read Caballero Quimera post at your mod Vanillla Lucky Nations?

Aksum, Himyar & Tanukhids (and also Sclaveni, Venedi, Anteans & some other things) don't have special mechanics because its scripts are not loading, as game engine try to load Lucky Nations script first as it is programmed to do, and because it is broken, game engine stops loading further scripts.

That's the reason it is better to load custom scripts at the end of the file lol.

I think you should update your mods to modify the script load order and put Lucky Nations at the end, at least until we find a fix, to avoid breaking game core mechanics (oh, and BTW don't forget to call Lucky_Nations_Initializer(); at the end of function start_game_all_factions() in campaigns/main_attila/att_start.lua file lol).
Brugarolas 23. juni 2023 kl. 3:22 
It's easy to check if it is working or not. Just remove `if not current_faction:is_human() then` (L42) and `if not context:faction():is_human() then` (L57) conditions, start a game with a lucky nation and check if you have "mk_bundle_lucky_nation" effect bundle.

BTW, you store "LUCKY_NATIONS_ENABLED" boolean in the save game but you forgot to read it when you load a game, like in the original script.

I will text you if I find a fix.

Cheers!
DreamNegater  [ophavsmand] 22. juni 2023 kl. 13:05 
Hm, I have seen incredibly clear results using 1212 lucky nations as well as this subdmod. But I haven't really been playing for almost a year, so maybe something happened. Thanks, please write me if you find a fix.
Brugarolas 19. juni 2023 kl. 13:13 
Bro, it can't be working for you because you didn't add require("luckinations/main") at the end of campaigns/main_attila/scripting.lua file and because you didn't call Lucky_Nations_Initializer(); at the end of function start_game_all_factions() in campaigns/main_attila/att_start.lua file. Believe me, this is literally my job.

Without those changes it is impossible that it works.

And even with those changes it is not even working for me.

And even more, I have been testing MK 1212 and it doesn't work there either lol.

I don't know the cause, probably listeners are not ready yet at the start of the game or something like that. I will keep researching
DreamNegater  [ophavsmand] 13. juni 2023 kl. 11:05 
It seems to work for me, but ofc it can sometimes be difficult to tell.
Brugarolas 12. juni 2023 kl. 7:25 
Hmmm I think you forgot to add:

require("luckynations/main");

At the end of file campaigns/main_attila/scripting.lua, ¿right?