I'll demonstrate my approach using the beach scheme from SSF as an example.
I'm assuming that all sue files (including those of the editor!) from SSF and SSRW are unpacked. To test the imported scheme in SSRW, it's helpful to modify the sudtest.ini and edit3.ini files in SSRW so that the game and the editor can work with the unpacked sue files. This saves a lot of work, because the sue files don't have to be constantly unpacked and repacked.
I described how to achieve this a long time ago
here and
here.
Another note regarding the VSSVER.SCC files that appear in many places in SSF: These files appear to be automatically generated by the development system. On stackoverflow.com, they are described as "part of the Visual SourceSafe binding mechanism" and as "safe to delete." I deleted the VSSVER.SCC files as a test, but during a longer test with SSF, this had no noticeable negative effects. It seems that the files are dispensable.
1 Getting an Overview
To identify the sue files for the beach scheme, simply look in the ini files of the game and the editor. The entries for the beach scheme can bei found there. In editor2.ini, we find the following lines:
[scheme_3]
MiniMapGamma=150
Name=Beach
DataDir1=desc_common.sue
DataDir2=desc_summer.sue
DataDir3=RES\
DataDir4=common.sue
DataDir5=units_edit.sue
DataDir6=beach.sue
DataDir7=beach_edit.sue
DataDir8=summer.sue
DataDir9=summer_edit.sue
It can be seen that both the beach scheme and the summer scheme files are used. This is because the beach scheme is largely identical to the summer scheme. The only difference is that the transitions of the ground textures (rhombs) are defined differently. In the summer scheme, almost all terrains transition into the grass texture of Grass 1. The only exception is Ground 2, which transitions to Ground 1. However, in the summer scheme, water transitions into sand, not into Grass 1.
In sudtest.ini, the beach scheme is defined as follows:
DataPathScm3_0=beach.sue;summer.sue;desc_summer_00.sue;desc_summer.sue
DataPathScm3_2=summer.sue
In addition, there are the following entries for "Scheme 0." These should apply to all schemes, as they specify scheme-independent files, e.g., the units and animations with their DESC files.
DataPathScm0_0=common.sue;units_00.sue;units.sue;animats.sue;desc_common_00.sue;desc_common_00.sue;desc_common.sue
DataPathScm0_1=common.sue
Which files do we need?
The files relevant for converting the scheme can be easily found by looking at the scheme entries in the ini files. A scheme includes:
- the graphic files of the landscape elements
- the DESC files that contain information about these landscape elements
- the editor files of the landscape elements
We know the landscape elements from the editor menu:
Terrain, Free Objects, Horizontal Objects, Vertical Objects, Trees, Roads, Houses, Cliffs, Craters, Bridges, and Fences.
For these categories, we find the file names in SSF:
mappic (in SSRW rhombs), fre, lay, stand, tree, trop, houses (in SSRW dom), cliff, vor, most, and zabor
Some file names appear multiple times in the SSF editor and even in the scheme's sue files. The rule then applies that the one contained in the sue file listed first in sudtest.ini is used. This is important, for example, for the ground textures, because a mappic.rs2 file exists in beach.sue and summer.sue. Since beach.sue is listed before summer.sue in sudtest.ini, the beach scheme uses the version from beach.sue.
The graphic files of the beach scheme can be found in beach.sue and summer.sue. In SSF, they have the file extension *.rs2, whereas in SSRW they have the file extension *.res. Most graphic files also have a file of the same name with the file extension *.pl, which stores the color palettes for the graphics. Exceptions are mappic.rs2, which contains the palette file rhomb.pl, as well as houses.rs2 and most.rs2, for which no palette file exists because the palettes are stored together with the graphics in the rs2 file.
The DESC files usually have the same filenames as the graphic files, but usually don't have a file extension. They are plain text files that can be edited in any text editor. I like to use NotePad++, but Windows' own text editor can also be used.
We can find the required files in desc_common.sue and desc_summer.sue (there is no desc_beach.sue).
The editor files also have the same filename, but they usually have the *.edt extension. The exception is the editor file for the ground textures, named mappic.sb2. The ground textures also use the scheme.ini file in the main SSF directory. More on this later. Another exception concerns the fences: There is no zabor.edt file here, only a zabor.tbl file.
Editor files can be found in beach_edit.sue and summer_edit.sue.
The sue files, which contain all these files, contain several more. In summer.sue, there's an rs2 and a pl file for the pontoon bridges (pont), and a palette file, user.pl, whose purpose is unclear to me. Summer_edit.sue contains the files bred.rs2 and bred.pl, whose purpose I unfortunately don't know either. Feel free to post any information here.