I have a list of mods in a launcher.bat server command line variable, separated by semicolon:
set Antistasi2=-mod=%ModPath%@CBA_A3;%ModPath%@Antistasi;%ModPath%@CAC_AE1.4;%ModPath%@AWR;%ModPath%@RealEngine;%ModPath%@ace;%ModPath%@EnhancedMovement;%ModPath%@EnhancedMovementRework;%ModPath%@MfHealAbort;%ModPath%@VET_Unflipping;%ModPath%@AdvancedRappelling;%ModPath%@AdvancedUrbanRappelling;%ModPath%@Blastcore`
And I have a simple mod checker (modchecker.bat which is called from within the launcher.bat, checks for existing folders with predefined mod name and types the missing mod folder names (mods):
if not exist %ModPath%"@CBA_A3" echo @CBA_A3 NOT FOUND
if not exist %ModPath%"@Antistasi" echo @Antistasi NOT FOUND
...
if not exist %ModPath%"@Blastcore" echo @Blastcore NOT FOUND
But there is more predefined mod folder names than the mods currently used in the command line.
What I would want to is not to use a predefined mod folder list, but instead use the command line to populate the mod checker and create if not exist %ModPath%"@modxxx" echo @modxxx NOT FOUND
line in the mod checker for each mod used in the command line.
To put it another way I would need to get the mod folder names from the command line array (-Mod=
inside an %Antistasi2%
variable (those would be: @CBA_A3, @Antistasi, etc. all the way to @Blastcore) and integrate them automatically into the mod checker so that the mod list from the command line auto populates the missing mod search in mod checker, so it does not have to be predefined manually.
And I have no clue how to do it. Please help.
Thanks in advance.