Lemmings Forums

Lix => Lix Main => Topic started by: Tsyu on December 09, 2014, 06:20:40 AM

Title: Regarding the batch script in oldterr.txt
Post by: Tsyu on December 09, 2014, 06:20:40 AM
In oldterr.txt, there is a batch script that's supposed to set up an L2 folder containing Lemmings 2 styles that Lix can use:

Code: [Select]
copy -r Styles L2
for %%b in (Classic Beach Circus Egyptian
Highland Medieval Outdoor Polar Shadow Space Sports) do (
   md L2\%%b
   lem2zip-0.2.0.exe -d L2\%%b.dat
   move L2\%%b.dat L2\%%b\%%b.dat
)
md L2\Cavelems
move L2\Caveman.dat L2\Cavelems\Cavelems.dat

However, this script does not work. The culprit is this line:

Code: [Select]
copy -r Styles L2
This line appears to assume that the Windows "copy" command works the same way as the "cp" command in Linux, which is not true. This command does not recognize -r as a flag, so the command is apparently trying to copy the contents of the folder "-r" to a folder called "Styles", which of course fails. This line should be changed to use xcopy with the /I flag, like this:

Code: [Select]
xcopy /I Styles L2
At least that works for me.
Title: Re: Regarding the batch script in oldterr.txt
Post by: Simon on December 09, 2014, 11:59:53 AM
Thanks for the thorough info. I've copied this to the bugtracker.

-- Simon