LiaisonTools or my lack of knowledge
Posted: Sun May 10, 2020 12:16 am
Hi.
Just having a go at modding the game for a bit of fun. I wanted to change how LiaisonTools did some stuff on converting from Empires. I was able to get these bits to work by editing the installed file, but have replaced that with the orginal and thought I'd look at the modding route.
I have followed what little docs I can find to create a global mod (which is the mod type I think will be needed given the circumstance of starting those battles). I can indeed choose my mod from with FOG2 (good, doing something right).
However, it does not pick up my LiaisonTools.bsf file. I tested this by putting in some debug comments in both the mod version and the installed version, it is the installed version being used.
I further tested by putting in a compile error in the mod version, that indeed causes and error, so something somewhere is picking it up and not liking the code error. But it then ignores that anyway.
I further tested by removing the installed version altogether, that errors even earlier, stating that the file cannot be found from Core/UI/Lobby.bsf (which includes Tools.bsf which includes LiaisonTools.vsf).
So that last part makes me wonder whether there is a limit to what scripts can be modded here. At least on the face of it I may be looking at a load order issue, some things are loaded too early to be then overridden by a mod. It could also just be me missing some setup in the mod? There isn't exactly a lot of docs on this that I've found yet.
Anyone any extra info or help please?
Just having a go at modding the game for a bit of fun. I wanted to change how LiaisonTools did some stuff on converting from Empires. I was able to get these bits to work by editing the installed file, but have replaced that with the orginal and thought I'd look at the modding route.
I have followed what little docs I can find to create a global mod (which is the mod type I think will be needed given the circumstance of starting those battles). I can indeed choose my mod from with FOG2 (good, doing something right).
However, it does not pick up my LiaisonTools.bsf file. I tested this by putting in some debug comments in both the mod version and the installed version, it is the installed version being used.
I further tested by putting in a compile error in the mod version, that indeed causes and error, so something somewhere is picking it up and not liking the code error. But it then ignores that anyway.
I further tested by removing the installed version altogether, that errors even earlier, stating that the file cannot be found from Core/UI/Lobby.bsf (which includes Tools.bsf which includes LiaisonTools.vsf).
So that last part makes me wonder whether there is a limit to what scripts can be modded here. At least on the face of it I may be looking at a load order issue, some things are loaded too early to be then overridden by a mod. It could also just be me missing some setup in the mod? There isn't exactly a lot of docs on this that I've found yet.
Anyone any extra info or help please?