Tech behind .arc and .ks loading - Neerhom/COM3D2.ModLoader GitHub Wiki
ARC loading
The ModLoader load all .arc files that it finds inside Mod folder and loads them using the same method as the game does after all .arc files of the game have been loaded. The benefit of loading them at the very end is that files loaded from the last arc get priority over those that from arc loaded before it. As such this enables loading and override of .ks files. While this can also be used for loading and override of other game files, as far as I'm aware, there should be no need for it, but it is there if you care to use it.
.ks loading
The way ModLoader implements loading and override of script files, is by utilizing its ability of loading .arc files. The ModLoader searches Mod folder for any .ks file and copies them into temporary .arc file, utilizing the CM3D2.Toolkit and loads it at the game's start. The temporary arc is called ML_temp.arc and is stored in ML_temp folder inside game's folder.