Crossroads -> RE: CSlint in WSL - A quick How-to (1/29/2022 8:54:58 AM)
|
Install the latest CSlint utily package to your WSL home. As of now, the latest package will always be included with all games, in their /Tools/CSlint folder STEP 1 - Configure your folder structure to CSlint environment settings, available in a file called cslint.conf. To do so: Locate and open cslint.conf at your game's \Tools\CSlint folder. Open it up with Notepad, Notepad++, jEdit, ..., and edit it as follows Note the syntax: your C-drive is /mnt/c your D-drive is /mnt/d and so on. Also, UPPER and lower cases MATTER here! Be careful! The folders you need to specify are: cslintroot - the folder where you have your CSlint package. We will soon have it at our WSL home directory. Simply: "~/CSlint" gameroot - the base folder for your games. My install location for all my Matrix Games is C:\Matrix Games. Your path may differ from this. vndir - CS Vietnam location. medir - CS Middle East location but commented out! This is what you'd add once Middle East 3.0 with full CS Event Engine Lua implementation becomes available. Note the commented-out rows as those begin with the hash symbol # Here's mine, and this is the default cslint.conf tempalte on the Tools\CSlint folder as well as of 1.01 UPDATE: quote:
# cslint.conf -- default CSlint configurations # for the following configs, may be any of: # # yes|YES|true|TRUE|on|ON # no|NO|false|FALSE|off|OFF # # omitting any config (perhaps by commenting out) defaults its setting to 'no' show_notice no show_warning no show_error yes show_files yes show_linenos yes test no debug no # for the following configs, set the appropriate directory (folder) path # cslintroot & gameroot are required cslintroot "~/CSlint" gameroot "/mnt/c/Matrix Games/" # Change the following configs as needed vndir "Campaign Series Vietnam" # medir "Campaign Series Middle East" STEP 2 - Copy the CSlint package to your WSL home directory Be careful here, and copy the following commands exactly as they appear! Fire up your new Bash Shell, and one by one, run the commands exactly as they appear below. Only alter your game folder location, if it differs from mine (the fourth line, where you first cd there) You might want to copy them from here and paste them to Bash Shell cp -p .profile .profile.orig echo "" >> .profile echo "export PERL5LIB=~/CSlint" >> .profile cd "/mnt/c/Matrix Games/Campaign Series Vietnam/Tools" rsync -vap CSlint ~ Here's how this played out on my computer: [image]local://upfiles/32195/C4DA32C4A8D64AD0AB1E963068F27D62.jpg[/image] For further information for each command, see e.g. Ubuntu command listing. STEP 3 - Test your new CSlint install Finally, let us quickly test our CSlint intall by running one of the provided utilities. First, cd to your new CSlint directory, right under your WSL home directory which is marked ~ Then, run say Orders-of-Battle reporting tool csoobrpt.pl with g -vn -h parameters (game = Vietnam, help). I did this in above screenshot, you should get a similar result under your new install.
|
|
|
|