Page 1 of 1

LiaisonTools or my lack of knowledge

Posted: Sun May 10, 2020 12:16 am
by storeylf
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?

Re: LiaisonTools or my lack of knowledge

Posted: Sun May 10, 2020 7:57 am
by rbodleyscott
1) Try adding a copy of $Default.BSF to your global mod. That often helps with load order problems in Mods.

2) When the next Open Beta (v1.5.29) starts in the next week or so, try using that without $Default.bsf because the new version contains some improvements to load order for mods, to ensure that the Modded version is used.

Re: LiaisonTools or my lack of knowledge

Posted: Sun May 10, 2020 8:52 am
by rbodleyscott
rbodleyscott wrote: Sun May 10, 2020 7:57 am 1) Try adding a copy of $Default.BSF to your global mod. That often helps with load order problems in Mods.

2) When the next Open Beta (v1.5.29) starts in the next week or so, try using that without $Default.bsf because the new version contains some improvements to load order for mods, to ensure that the Modded version is used.
I have tested this, and unfortunately neither of these work to force the game to use the modded version of LiaisonTools.BSF. I am not sure why.

I will ask Pip.

Re: LiaisonTools or my lack of knowledge

Posted: Sun May 10, 2020 1:26 pm
by storeylf
Hi Thanks. I'll stop trying to work that out for now then, and just test on installed version for now.

On a side note, whilst the script is easy enough to understand etc, I've not come across these bsf files before - do you use anything more IDE like than notepad with them.

Re: LiaisonTools or my lack of knowledge

Posted: Sun May 10, 2020 1:30 pm
by rbodleyscott
storeylf wrote: Sun May 10, 2020 1:26 pm Hi Thanks. I'll stop trying to work that out for now then, and just test on installed version for now.

On a side note, whilst the script is easy enough to understand etc, I've not come across these bsf files before - do you use anything more IDE like than notepad with them.
I use UltraEdit.

Pip recommends Notepad++ which has the virtue of being free/shareware.