So I'll make it short:
If you look at the BiG World Install.bat, it will create the BWP_Language if you have an L in you selection.
When BiG World Installpack\install.bat is called, it calls some functions to determine if the mod should be installed or not.
It gets a token from the Temp\Tra.txt which is copied when you select your language before.
The tokens N/E/F declare the mod as native, English (will obviously not be used in the English version) or foreign.
So, here's the relevant code-piece.
If "%TEST%" == "E" ( echo Foreign language: English If Exist BWP_Language exit /b 0 exit /b 1 ) If "%TEST%" == "F" ( echo Foreign language: Other If Exist BWP_Language exit /b 0 exit /b 1 ) echo Native language exit /b 1
If you look above, F or L will be skipped (because of the exit-code being 0) if the file exists that is created if you pressed L earlier.
If you did not, the last line will be reached and the exit-code will be 1, which means to install.
I added the E-thing because I thought guys would speak some English and want to have native and English installed, but it's not really used here. Maybe it was some lack of communication (don't have the mails when I explained it any more) or it was decided that guys would be smart and download the mods that would work for them.
It could be added easily with some additional text, searching and creating BWP_ENGLISH if letter * was part of the selection.
Replace * with something that works in this case and/or use another filename. Then replace the code for E with
If "%TEST%" == "E" ( echo Foreign language: English If Exist BWP_English exit /b 1 If Exist BWP_Language exit /b 0 exit /b 1 )
I guess you understand why this would do it, right?
If Exist BWP_English exit /b 1 => English mod, you said you want it, the file was created, exit-code 1 means install
If Exist BWP_Language exit /b 0 => English mod, you said you want native only, the file was created, exit code 0 means not to install.
The last line will be reached if you didn't added any language-restrictions and will install all mods in any language.
Edited by dabus, 23 February 2012 - 10:02 PM.