Now COPY this whole column (E) above and paste it into a text editor like CONTEXT.Exe and then Save this text as "sfilecopy.bat" in c:\sfile
Step 4, Run
- you should now get a copy of every S file that you need for the downloaded re-skins.
Verify that we got no copy errors...
Code:
<snip>
J:\MSTS\FRIEGHT>copy UP_PS_BOXCAR_912605.s RFP_PS_BOXCAR_2646.s
1 file(s) copied.
J:\MSTS\FRIEGHT>copy UP_PS_BOXCAR_912605.s RFP_PS_BOXCAR_2647.s
1 file(s) copied.
J:\MSTS\FRIEGHT>copy UP_PS_BOXCAR_912605.s RFP_PS_BOXCAR_2649.s
1 file(s) copied.
J:\MSTS\FRIEGHT>copy UP_PS_BOXCAR_912605.s RFP_PS_BOXCAR_2650.s
1 file(s) copied.
J:\MSTS\FRIEGHT>copy UP_PS_BOXCAR_912605.s RFP_PS_BOXCAR_2651.s
1 file(s) copied.
Success!
Step 5. Now its time to fix the *ace* file references.
Every newly created SFILE needs to have its ACE file changed from the default to the one that Michelle created for each of the 35 cars.
Step 5a. Again, we use a spreadsheet to write our code. Now we will ultimately use the search/replace feature of Windows Powershell.
Like before we will use a list of 35 S file references from the supplied documentation...
In Location A1, enter: powershell -Command "(gc
In Location C1, enter: ) -replace '
In Location E1, enter: '',' Important!, enter '' as TWO single quote characters, not a single press of double quote
In location G1, enter : '' | Out-File Important! DITTO
in Location H1, enter: =B1 For now, this will create an error, it's ok
In location I1, enter: " Important! THIS time though, it's a real double quote.
In location K1, enter: =A2&B2&C2&D2&E2&F2&G2&H2&I1
Copy row 1 to rows 2-35
Step 5b, Copy the same S file list we used in column C in the previous worksheet and paste it into Column B (if you need to, refer to the TXT document)
Code:
50ft_BOX_EL69276.s
50ft_BOX_EL69277.s
50ft_BOX_EL69280.s
50ft_BOX_EL69281.s
50ft_BOX_EL69282.s
50ft_BOX_PC153537.s
50ft_BOX_PC153538.s
50ft_BOX_PC153540.s
50ft_BOX_PC153541.s
50ft_BOX_PC153542.s
50ft_BOX_PC362720.s
50ft_BOX_PC362721.s
50ft_BOX_PC362777.s
50ft_BOX_PC362810.s
50ft_BOX_PC362811.s
50ft_BOX_SLSF700270.s
50ft_BOX_SLSF700271.s
50ft_BOX_SLSF700272.s
50ft_BOX_SLSF700273.s
50ft_BOX_SLSF700274.s
LN_PS_BOXCAR_103783.s
LN_PS_BOXCAR_103784.s
LN_PS_BOXCAR_103785.s
LN_PS_BOXCAR_103786.s
LN_PS_BOXCAR_103787.s
RDG_PS_BOXCAR_17000.s
RDG_PS_BOXCAR_17002.s
RDG_PS_BOXCAR_17005.s
RDG_PS_BOXCAR_17007.s
RDG_PS_BOXCAR_17010.s
RFP_PS_BOXCAR_2646.s
RFP_PS_BOXCAR_2647.s
RFP_PS_BOXCAR_2649.s
RFP_PS_BOXCAR_2650.s
RFP_PS_BOXCAR_2651.s
Step 5C, Use the OLD ACE file references in columnD (For rows 1-21 = WP_96106 and for rows 22-35 = UP_912605)
Step 5D, Use the NEW ACE file references in columnF (This was the hardest part, as the names need to match the NEW ace files created by Michelle)
One way to do this is to use the working s file list in an editor and globally replace all references to "50ft_BOX_", ".s" and "_PS_BOXCAR_" with blank (in other words "nothing"), but you will need to re-add an "_" (underscore) in the RDG and RFP ace file references. IE; RDG_ RFP_
Step 5E, Copy ColumnK out to a text file and you should have:
Code:
powershell -Command "(gc 50ft_BOX_EL69276.s) -replace 'WP_96106','EL69276' | Out-File 50ft_BOX_EL69276.s
powershell -Command "(gc 50ft_BOX_EL69277.s) -replace 'WP_96106','EL69277' | Out-File 50ft_BOX_EL69277.s"
powershell -Command "(gc 50ft_BOX_EL69280.s) -replace 'WP_96106','EL69280' | Out-File 50ft_BOX_EL69280.s"
powershell -Command "(gc 50ft_BOX_EL69281.s) -replace 'WP_96106','EL69281' | Out-File 50ft_BOX_EL69281.s"
powershell -Command "(gc 50ft_BOX_EL69282.s) -replace 'WP_96106','EL69282' | Out-File 50ft_BOX_EL69282.s"
powershell -Command "(gc 50ft_BOX_PC153537.s) -replace 'WP_96106','PC153537' | Out-File 50ft_BOX_PC153537.s"
powershell -Command "(gc 50ft_BOX_PC153538.s) -replace 'WP_96106','PC153538' | Out-File 50ft_BOX_PC153538.s"
powershell -Command "(gc 50ft_BOX_PC153540.s) -replace 'WP_96106','PC153540' | Out-File 50ft_BOX_PC153540.s"
powershell -Command "(gc 50ft_BOX_PC153541.s) -replace 'WP_96106','PC153541' | Out-File 50ft_BOX_PC153541.s"
powershell -Command "(gc 50ft_BOX_PC153542.s) -replace 'WP_96106','PC153542' | Out-File 50ft_BOX_PC153542.s"
powershell -Command "(gc 50ft_BOX_PC362720.s) -replace 'WP_96106','PC362720' | Out-File 50ft_BOX_PC362720.s"
powershell -Command "(gc 50ft_BOX_PC362721.s) -replace 'WP_96106','PC362721' | Out-File 50ft_BOX_PC362721.s"
powershell -Command "(gc 50ft_BOX_PC362777.s) -replace 'WP_96106','PC362777' | Out-File 50ft_BOX_PC362777.s"
powershell -Command "(gc 50ft_BOX_PC362810.s) -replace 'WP_96106','PC362810' | Out-File 50ft_BOX_PC362810.s"
powershell -Command "(gc 50ft_BOX_PC362811.s) -replace 'WP_96106','PC362811' | Out-File 50ft_BOX_PC362811.s"
powershell -Command "(gc 50ft_BOX_SLSF700270.s) -replace 'WP_96106','SLSF700270' | Out-File 50ft_BOX_SLSF700270.s"
powershell -Command "(gc 50ft_BOX_SLSF700271.s) -replace 'WP_96106','SLSF700271' | Out-File 50ft_BOX_SLSF700271.s"
powershell -Command "(gc 50ft_BOX_SLSF700272.s) -replace 'WP_96106','SLSF700272' | Out-File 50ft_BOX_SLSF700272.s"
powershell -Command "(gc 50ft_BOX_SLSF700273.s) -replace 'WP_96106','SLSF700273' | Out-File 50ft_BOX_SLSF700273.s"
powershell -Command "(gc 50ft_BOX_SLSF700274.s) -replace 'WP_96106','SLSF700274' | Out-File 50ft_BOX_SLSF700274.s"
powershell -Command "(gc LN_PS_BOXCAR_103783.s) -replace 'UP_912605','LN103783' | Out-File LN_PS_BOXCAR_103783.s"
powershell -Command "(gc LN_PS_BOXCAR_103784.s) -replace 'UP_912605','LN103784' | Out-File LN_PS_BOXCAR_103784.s"
powershell -Command "(gc LN_PS_BOXCAR_103785.s) -replace 'UP_912605','LN103785' | Out-File LN_PS_BOXCAR_103785.s"
powershell -Command "(gc LN_PS_BOXCAR_103786.s) -replace 'UP_912605','LN103786' | Out-File LN_PS_BOXCAR_103786.s"
powershell -Command "(gc LN_PS_BOXCAR_103787.s) -replace 'UP_912605','LN103787' | Out-File LN_PS_BOXCAR_103787.s"
powershell -Command "(gc RDG_PS_BOXCAR_17000.s) -replace 'UP_912605','RDG_17000' | Out-File RDG_PS_BOXCAR_17000.s"
powershell -Command "(gc RDG_PS_BOXCAR_17002.s) -replace 'UP_912605','RDG_17002' | Out-File RDG_PS_BOXCAR_17002.s"
powershell -Command "(gc RDG_PS_BOXCAR_17005.s) -replace 'UP_912605','RDG_17005' | Out-File RDG_PS_BOXCAR_17005.s"
powershell -Command "(gc RDG_PS_BOXCAR_17007.s) -replace 'UP_912605','RDG_17007' | Out-File RDG_PS_BOXCAR_17007.s"
powershell -Command "(gc RDG_PS_BOXCAR_17010.s) -replace 'UP_912605','RDG_17010' | Out-File RDG_PS_BOXCAR_17010.s"
powershell -Command "(gc RFP_PS_BOXCAR_2646.s) -replace 'UP_912605','RFP_2646' | Out-File RFP_PS_BOXCAR_2646.s"
powershell -Command "(gc RFP_PS_BOXCAR_2647.s) -replace 'UP_912605','RFP_2647' | Out-File RFP_PS_BOXCAR_2647.s"
powershell -Command "(gc RFP_PS_BOXCAR_2649.s) -replace 'UP_912605','RFP_2649' | Out-File RFP_PS_BOXCAR_2649.s"
powershell -Command "(gc RFP_PS_BOXCAR_2650.s) -replace 'UP_912605','RFP_2650' | Out-File RFP_PS_BOXCAR_2650.s"
powershell -Command "(gc RFP_PS_BOXCAR_2651.s) -replace 'UP_912605','RFP_2651' | Out-File RFP_PS_BOXCAR_2651.s"
Now, copy this to a text editor, and save as file: SwapAce.bat
Step 6: Run
We have fixed all the ACE file references if this went without a hitch.
(Continued in part 3)