This document is to help you use Andrew Griffin's scenario editor
package (available along with the unit editor from his Web site:
http://www.adam.com.au/~buggy/cnc.html) to make multiplayer C&C maps. I don't i
clude any info on scenarios because they don't really interest me. (You'll have
to do the hex-editing stuff for that yourselves)

I've successfully used the editor for multi-player editing. I've
made a simple map or two. It takes some doing, but it's doable.

In my previous post, I listed the offsets for the various multiplayer
maps & scenarios. I now realize that's not useful, since they change as soon
as you change a scenario. (maps don't change in size, always 8192 bytes, but
scenario info DOES change, and messes up the offsets). The correct thing to
do is list the 'view number' for each. I'll list it in the table below, and
explain how to use it in the step-by-step instructions.


                                              View# for           View# for
Multi-Player Map        Map Size [HxW]      Scenario Info            Map

1) Green Acres              49x58                 61                 70
2) Sand Trap                58x57                 62                 71
3) Lost Arena               61x59                 63                 72
4) River Raid               59x56                 64                 73
5) Eye of the Storm         61x57                 65                 74
6) Lakefront Clash          61x62                 66                 75
7) Desert Madness           57x62                 67                 76
8) Pitfall                  62x62                 68                 77
9) Moosehead Barrens        62x62                 69                 78
10) Winter Waterland        62x62                 103                109
11) One Pass Fits All       48x38                 104                110
12) Straight and Narrow     62x38                 105                111
13) King Takes Pawn         56x56                 106                112
14) Nowhere To Hide         62x62                 107                113
15) Marooned                62x62                 108                114
16) Tiberium Garden         62x62                 115                116

        The procedure to use is as follows (I assume that your c&c is in
c:\c&c, and you've dumped Andrew's editor stuff there):

        1) You must have general.mix on your hard-drive. It is located
                in the root directory of the CD-ROM. You should copy it
                to your c&c directory as gener.mix.

        2) Fool c&c into looking for it on your HD by hex-editing
                game.dat. Look for 2 occurrences of general.mix, and
                change them to c:gener.mix. Once you've done that,
                you can start modifying. (If I can find a site to
                give this to, I'll hex-edit a game.dat for c:, d:,
                and maybe e:, and put them there for those who don't
                like to hex-edit)

        3) Pick a multi-player scenario to modify. (I'll use Tiberium
                Garden, #16 above)

        4) Find the offset for Tiberium Garden's scenario information.
                Looking in the table above, we see it has a view # of
                115. Start the view program: "view gener.mix". Use the
                left/right arrows to move to #115 (out of 118). The
                offset is listed as "Actual location in file:". Copy
                the number down. (for an unmodified gener.mix, this
                will be 0x27040b. I'll use that for this example)

        5) Export the scenario info using: "extract gener.mix multi16.txt"
                It'll ask for an offset, give it 0x27040b.

        6) Find the offset for Tiberium Garden's map. Looking in the
                table above, we see it has a view # of 116. Start the
                view program: "view gener.mix". Use the left/right
                arrows to move to #115 (out of 118). The offset is
                listed as "Actual location in file:". Copy the number
                down. (for an unmodified gener.mix, this will be
                0x272088. I'll use that for this example)

        7) Export the map using: "extract gener.mix multi16.map"
                It'll ask for an offset, give it 0x272088.

        8) Edit multi16.txt, and delete all entries in the [OVERLAY] and
                [TERRAIN] sections.

        9) Start the scenario editor: "cc-scen foo.dat"
                This will create a blank scenario file.

        10) Put the multiplayer map into the scenario file:
                "usemap foo.dat multi16.map"

        11) Start the scenario editor: "cc-scen foo.dat"

        12) Edit the map & overlay & terrain to your liking.

        13) Extract the new info & map from the scenario file:
                "convert foo.dat multi16a.txt multi16a.map"

        14) Edit multi16a.txt, and take all the entries in the [OVERLAY]
                and [TERRAIN] sections, and put them in the correct
                section in multi16.txt.

        15) Take the entire [SMUDGE] section from multi16a.txt, and put
                it in multi16.txt. (Order doesn't matter, I think.. just
                put it after [TERRAIN]) If you've added units, you'll
                need to do the same for [UNITS], [INFANTRY], [TEAMS],
                and a buncha others. I am just in it for the maps, so
                you're on your own there.

        14) Put the new scenario info into gener.mix:
                "shuffle gener.mix multi16a.txt"
                It'll ask for an offset, give it the same one you
                used for the scenario information in step #5.

        15) Put the new map into gener.mix:
                "shuffle gener.mix multi16a.map"
                It'll ask for an offset, give it the same one you
                used for the map in step #7.

        16) Copy your gener.mix into your c:\c&c directory, and
            give your game.dat and gener.mix to all your buddies,
            and have them put them in THEIR c:\c&c directories.

        17) Play...

This posting should maybe be added to the C&C FAQ, if the keeper
would deign to do so.

I plan on doing maps replacing all the original multiplayer maps
when/if I get time. When I do, I'll make the game.dat/gener.mix available in
some manner. (If a maintainer of a C&C web-site or FTP-site wants these,
send me some mail) I WON'T send them out one at a time by e-mail, so just
don't even think of asking.

Tom

P.S. For the adventurous who read all Andrew's text files and want to
     fiddle with the scenario information sections, a quick hint:
     DON'T change the map size. C&C has crashed enthusiastically
     whenever I've dared try this. :-)


