cygwin help needed
Moderator: Campaign Series Matrix Edition Development Group
cygwin help needed
I followed the video tutorial of creating a new scenario from scratch. I've created myScenario.map, myScenario.org and myScenario.scn that reside in scenarios folder and I can play the scenario without a problem. All good until trying to create the .lua file from the .scn file.
Installed cygwin64 with default libraries, plus Perl and Lua interpreters. Then I write this command in cslint -folder:
/cygdrive/d/Games/Matrix Games/Campaign Series Vietnam/Tools/CSlint
$ ./csmklua.pl -a -p -b -g vn -f myScenario.scn -o myScenario.lua
and it returns with "myScenario.scn not found"
Do I need to change some paths in cslint.conf, or perhaps something else? I even tried to copy the .scn file into the same folder where cslint resides, but still the same error message.
BTW thanks Jason for that excellent video tutorial!!!
Installed cygwin64 with default libraries, plus Perl and Lua interpreters. Then I write this command in cslint -folder:
/cygdrive/d/Games/Matrix Games/Campaign Series Vietnam/Tools/CSlint
$ ./csmklua.pl -a -p -b -g vn -f myScenario.scn -o myScenario.lua
and it returns with "myScenario.scn not found"
Do I need to change some paths in cslint.conf, or perhaps something else? I even tried to copy the .scn file into the same folder where cslint resides, but still the same error message.
BTW thanks Jason for that excellent video tutorial!!!
RE: cygwin help needed
Yes, you need to customize cslint.conf per your system's setup.
Sorry there is no formal CSEE/SAI how-to doc yet (will follow in a few months), but with some digging, you can figure things out.
Be sure to look at
[*]Manual/LUA_FUNCTIONS_REFERENCE.txt
[*]user.lua
[*]init.lua [no edits, please!]
[*]Lua scripts in the Scenarios folder
In lieu of a formal CSEE/SAI Manual, you can ask questions here at the Forum, of course.
Good luck!
Campaign Series Legion https://cslegion.com/
Campaign Series Lead Coder https://www.matrixgames.com/forums/view ... hp?f=10167
Panzer Campaigns, Panzer Battles Lead Coder https://wargameds.com
Campaign Series Lead Coder https://www.matrixgames.com/forums/view ... hp?f=10167
Panzer Campaigns, Panzer Battles Lead Coder https://wargameds.com
RE: cygwin help needed
This is how it looks now for me. I commented the original paths and put the new ones there. I guess something must still be wrong there... Do I need to define the scenario path somewhere too?
# 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 "/cygdrive/d/Games/Matrix games/Campaign Series Vietnam/Tools/CSlint"
# cslintroot "~/CSlint"
# gameroot "/mnt/d/Matrix Games/_CSLDEV"
gameroot "/cygdrive/d/Games/Matrix games/Campaign Series Vietnam"
# for non-default game installations, change the following configs as needed
# these are optional, but advised
medir "Campaign Series Middle East"
vndir "Campaign Series Vietnam"
efdir "Campaign Series East Front"
cwdir "Campaign Series Cold War"
#kwdir "John Tiller's Campaign Series/Korean War"
#wfdir "John Tiller's Campaign Series/West Front"
#rsdir "John Tiller's Campaign Series/Rising Sun"
# 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 "/cygdrive/d/Games/Matrix games/Campaign Series Vietnam/Tools/CSlint"
# cslintroot "~/CSlint"
# gameroot "/mnt/d/Matrix Games/_CSLDEV"
gameroot "/cygdrive/d/Games/Matrix games/Campaign Series Vietnam"
# for non-default game installations, change the following configs as needed
# these are optional, but advised
medir "Campaign Series Middle East"
vndir "Campaign Series Vietnam"
efdir "Campaign Series East Front"
cwdir "Campaign Series Cold War"
#kwdir "John Tiller's Campaign Series/Korean War"
#wfdir "John Tiller's Campaign Series/West Front"
#rsdir "John Tiller's Campaign Series/Rising Sun"
- Crossroads
- Posts: 18170
- Joined: Sun Jul 05, 2009 8:57 am
RE: cygwin help needed
You have installed at D:\Games\Matrix Games\etc ?
Visit us at: Campaign Series Legion
---
CS: Vietnam 1948-1967 < v2.00.03 Remastered Edition (May 20, 2025)
CS: Middle East 1948-1985 < v3.00.03 Remastered Edition (May 20, 2025)
---
CS: Vietnam 1948-1967 < v2.00.03 Remastered Edition (May 20, 2025)
CS: Middle East 1948-1985 < v3.00.03 Remastered Edition (May 20, 2025)
RE: cygwin help needed
ORIGINAL: Crossroads
You have installed at D:\Games\Matrix Games\etc ?
That's right. The installation path for the game is D:\Games\Matrix Games\Campaign Series Vietnam.
I also tried the gameroot path in this form:
gameroot "/mnt/d/Games/Matrix games/Campaign Series Vietnam"
Not sure if cslint.exe needs to be executed at some point. It was complaining about cygwin1.dll, so I copied that from C:\cygwin64\bin folder into CSlint folder and not giving errors anymore
- Crossroads
- Posts: 18170
- Joined: Sun Jul 05, 2009 8:57 am
RE: cygwin help needed
We need Berto for Cygwin, I run Clint under WSL. One thing perhaps not mention is you need to run the scripts from CSlint directory. For ease of use I rsynced all CSlint stuff from /Tools to ~/CSlint as in the sample cslint.conf.
Visit us at: Campaign Series Legion
---
CS: Vietnam 1948-1967 < v2.00.03 Remastered Edition (May 20, 2025)
CS: Middle East 1948-1985 < v3.00.03 Remastered Edition (May 20, 2025)
---
CS: Vietnam 1948-1967 < v2.00.03 Remastered Edition (May 20, 2025)
CS: Middle East 1948-1985 < v3.00.03 Remastered Edition (May 20, 2025)
RE: cygwin help needed
Cygwin is a Linux-like environment designed to mimic Unix. In Unix, filenames and folder names are case sensitive. Unlike Windows, which is filename case agnostic.ORIGINAL: zoikkis
That's right. The installation path for the game is D:\Games\Matrix Games\Campaign Series Vietnam.ORIGINAL: Crossroads
You have installed at D:\Games\Matrix Games\etc ?
I also tried the gameroot path in this form:
gameroot "/mnt/d/Games/Matrix games/Campaign Series Vietnam"
Not sure if cslint.exe needs to be executed at some point. It was complaining about cygwin1.dll, so I copied that from C:\cygwin64\bin folder into CSlint folder and not giving errors anymore
Note the lower case 'g' you have in
cslintroot "/cygdrive/d/Games/Matrix games/Campaign Series Vietnam/Tools/CSlint"
gameroot "/mnt/d/Games/Matrix games/Campaign Series Vietnam"
That typo right there might the root cause of your difficulties.
(The cslint.exe is for a different purpose. You can ignore it for now.)
Campaign Series Legion https://cslegion.com/
Campaign Series Lead Coder https://www.matrixgames.com/forums/view ... hp?f=10167
Panzer Campaigns, Panzer Battles Lead Coder https://wargameds.com
Campaign Series Lead Coder https://www.matrixgames.com/forums/view ... hp?f=10167
Panzer Campaigns, Panzer Battles Lead Coder https://wargameds.com
RE: cygwin help needed
Oh, also:
[*]In Cygwin, the D: drive is rendered as: /cygdrive/d
[*]In WSL (Windows Subsystem for Linux), the D: drive is rendered as: /mnt/d
(Note the all lower case.)
Since you said you are using Cygwin, you would follow the first example above.
Campaign Series Legion https://cslegion.com/
Campaign Series Lead Coder https://www.matrixgames.com/forums/view ... hp?f=10167
Panzer Campaigns, Panzer Battles Lead Coder https://wargameds.com
Campaign Series Lead Coder https://www.matrixgames.com/forums/view ... hp?f=10167
Panzer Campaigns, Panzer Battles Lead Coder https://wargameds.com
RE: cygwin help needed
I put them in the following form:
cslintroot "/cygdrive/d/Games/Matrix Games/Campaign Series Vietnam/Tools/CSlint"
gameroot "/cygdrive/d/Games/Matrix Games/Campaign Series Vietnam"
Still no luck though. I might have some other settings still wrong... Also cygwin doesn't recognise rsync command, probably needs some additional libraries installed. I started to use Linux only about 6 months ago and still feeling a bit lost with it
Anyway, thanks a lot for help Berto and Petri. I'll probably wait for more tutorials on this subject and fiddle around with the graphical editors till that.
cslintroot "/cygdrive/d/Games/Matrix Games/Campaign Series Vietnam/Tools/CSlint"
gameroot "/cygdrive/d/Games/Matrix Games/Campaign Series Vietnam"
Still no luck though. I might have some other settings still wrong... Also cygwin doesn't recognise rsync command, probably needs some additional libraries installed. I started to use Linux only about 6 months ago and still feeling a bit lost with it

Anyway, thanks a lot for help Berto and Petri. I'll probably wait for more tutorials on this subject and fiddle around with the graphical editors till that.
RE: cygwin help needed
IIRC, Cygwin doesn't install rsync by default. You would have to select that manually.
We could dig deeper into this, but if you set it aside, that's good too (what with all the other user support we are now dealing with).
Campaign Series Legion https://cslegion.com/
Campaign Series Lead Coder https://www.matrixgames.com/forums/view ... hp?f=10167
Panzer Campaigns, Panzer Battles Lead Coder https://wargameds.com
Campaign Series Lead Coder https://www.matrixgames.com/forums/view ... hp?f=10167
Panzer Campaigns, Panzer Battles Lead Coder https://wargameds.com
RE: cygwin help needed
I tried through WSL too and by setting the following settings:
cslintroot "/mnt/d/Games/Matrix Games/Campaign Series Vietnam/Tools/CSlint"
gameroot "/mnt/d/Games/Matrix Games/Campaign Series Vietnam"
..but still no dice. Have made double sure that myScenario.scn has all the lower and uppercase letters correctly matching.
I'd love to keep looking for a solution still if you guys have any ideas
cslintroot "/mnt/d/Games/Matrix Games/Campaign Series Vietnam/Tools/CSlint"
gameroot "/mnt/d/Games/Matrix Games/Campaign Series Vietnam"
..but still no dice. Have made double sure that myScenario.scn has all the lower and uppercase letters correctly matching.
I'd love to keep looking for a solution still if you guys have any ideas
- Crossroads
- Posts: 18170
- Joined: Sun Jul 05, 2009 8:57 am
RE: cygwin help needed
I'll have a look at my WSL + CSlint post from our internal Dev Forum a couple of years back if it is still relevant. If so, I can edit and post it here, too. I did that with one of the first W10 distros, so it might be a bit obsolete. Let us see.
Cygwin and the more detailed guidelines we'll wait for when Berto has the time for that.
Cygwin and the more detailed guidelines we'll wait for when Berto has the time for that.
Visit us at: Campaign Series Legion
---
CS: Vietnam 1948-1967 < v2.00.03 Remastered Edition (May 20, 2025)
CS: Middle East 1948-1985 < v3.00.03 Remastered Edition (May 20, 2025)
---
CS: Vietnam 1948-1967 < v2.00.03 Remastered Edition (May 20, 2025)
CS: Middle East 1948-1985 < v3.00.03 Remastered Edition (May 20, 2025)
RE: cygwin help needed
WSL actually seems better for me. Supports straight away rsync, nano etc.
EDIT: Also tried the command with an absolute path but didn't work:
./csmklua.pl -a -p -b -g vn -f /mnt/d/Games/Matrix Games/Campaign Series Vietnam/Scenarios/myScenario.scn -o myScenario.lua
EDIT: Also tried the command with an absolute path but didn't work:
./csmklua.pl -a -p -b -g vn -f /mnt/d/Games/Matrix Games/Campaign Series Vietnam/Scenarios/myScenario.scn -o myScenario.lua
RE: cygwin help needed
For now I started to play around by copying another scenario LUA file, renaming it, and stripping the specifics before rewriting for my own scenario (using the LUA_FUNCTIONS_REFERENCE). That method is working fine.
The one thing which was a bit annoying was to write 'set_org_lists' manually, using the data from my org file (maybe this can be automatically generated when the tooling is running?).
The one thing which was a bit annoying was to write 'set_org_lists' manually, using the data from my org file (maybe this can be automatically generated when the tooling is running?).
RE: cygwin help needed
Yes, probably for most people. But I prefer Cygwin for a number of reasons, mainly because I think the Cygwin terminal is better. Cygwin is also Windows "friendlier".ORIGINAL: zoikkis
WSL actually seems better for me. Supports straight away rsync, nano etc.
Nope, no absolute path. That is provided in the cslint.conf file.EDIT: Also tried the command with an absolute path but didn't work:
./csmklua.pl -a -p -b -g vn -f /mnt/d/Games/Matrix Games/Campaign Series Vietnam/Scenarios/myScenario.scn -o myScenario.lua
The next step would be to run the command adding the '+G' option, for debuG. That will spew out a ton of detail. But your deciphering it, or getting me a copy, would be time consuming.
Campaign Series Legion https://cslegion.com/
Campaign Series Lead Coder https://www.matrixgames.com/forums/view ... hp?f=10167
Panzer Campaigns, Panzer Battles Lead Coder https://wargameds.com
Campaign Series Lead Coder https://www.matrixgames.com/forums/view ... hp?f=10167
Panzer Campaigns, Panzer Battles Lead Coder https://wargameds.com
RE: cygwin help needed
A "bit annoying", you say? That right there had the potential to practically kill CSEE/SAI scripting. Because two or three years ago, when this was in earlier stages of development, it would require hours to set the org lists for larger scenarios.ORIGINAL: wololoh
The one thing which was a bit annoying was to write 'set_org_lists' manually, using the data from my org file (maybe this can be automatically generated when the tooling is running?).
But you know what? csmklua.pl will do that automatically for you. In a matter of seconds!
Look at any of the Scenarios Lua scripts. Every one of those org lists was hands-off auto-created. By csmklua.pl! [8D]
Campaign Series Legion https://cslegion.com/
Campaign Series Lead Coder https://www.matrixgames.com/forums/view ... hp?f=10167
Panzer Campaigns, Panzer Battles Lead Coder https://wargameds.com
Campaign Series Lead Coder https://www.matrixgames.com/forums/view ... hp?f=10167
Panzer Campaigns, Panzer Battles Lead Coder https://wargameds.com
RE: cygwin help needed
Finally managed to generate the .lua file!!!
I had to remove the game folder from the path, like this:
***************************************
cslintroot "/mnt/d/Games/Matrix Games/Campaign Series Vietnam/Tools/CSlint"
gameroot "/mnt/d/Games/Matrix Games/"
***************************************
It did spit out this:
/mnt/d/Games/Matrix Games/Campaign Series Vietnam/Tools/CSlint$ ./csmklua.pl -a -p -b -g vn -f myScenario.scn -o myScenario.lua
sh: 1: /mnt/d/Games/Matrix: not found
sh: 1: /mnt/d/Games/Matrix: not found
sh: 1: /mnt/d/Games/Matrix: not found
I wonder if those "not found" lines matter anything. The scenario seems to launch fine at least. The .lua file is 21KB in size
I had to remove the game folder from the path, like this:
***************************************
cslintroot "/mnt/d/Games/Matrix Games/Campaign Series Vietnam/Tools/CSlint"
gameroot "/mnt/d/Games/Matrix Games/"
***************************************
It did spit out this:
/mnt/d/Games/Matrix Games/Campaign Series Vietnam/Tools/CSlint$ ./csmklua.pl -a -p -b -g vn -f myScenario.scn -o myScenario.lua
sh: 1: /mnt/d/Games/Matrix: not found
sh: 1: /mnt/d/Games/Matrix: not found
sh: 1: /mnt/d/Games/Matrix: not found
I wonder if those "not found" lines matter anything. The scenario seems to launch fine at least. The .lua file is 21KB in size
RE: cygwin help needed
A "bit annoying", you say? That right there had the potential to practically kill CSEE/SAI scripting. Because two or three years ago, when this was in earlier stages of development, it would require hours to set the org lists for larger scenarios.
Haha, for my small mockup scenario it was doable, but I can imagine the annoyance for a large scenario [:D].
Anyway, I think it is great that we have this capability now! [:)]
