Jump to content

CnCNet Forums

Search In
  • More options...
Find results that contain...
Find results in...
Sign in to follow this  

Inserting C&C1 maps into C&C Nintento '64

Recommended Posts

Thanks to the lead programmer at http://www.goldeneyevault.com and to Nyerguds it is now possible to add your Command & Conquer 1995 map to the four years newer Command & Conquer 1999 that was redone in 3D for the Nintendo 64.

To start off I'll note that I was surprised to learn that the file formats for the mission INI files are the exact same! And thanks to a tool that Nyerguds has made up for us we can easily convert the .bin maps to .map (which is what C&C64 uses instead of the bin, since its .bin files are music). There's also an additional file for maps that has a .IMG extension, and which is responsible for the 3D terrain effect seen on the C&C64 that you'll see in the images below. I'll also note that it's not essential to have the .IMG file to play your map; you just won't have the 3D terrain effect. In fact, it's not even essential that you have the .map file either, so you can play maps that are clear of terrain other than trees / tiberium / buildings / units / triggers etc. I'm not an experienced tutorial writer, so bear with me!

Also, before I start I want to say that almost all the Covert Operations missions are in the Command & Conquer '64 game/ROM, but are not playable unless you hex edit the ROM (which is easy to do, and I might actually show you how to do that here as well). For more information on the hidden secrets of the N64 game, read here:

https://tcrf.net/Command_and_Conquer_(Nintendo_64) (written mostly by Nyerguds)

To start off, you'll need these tools to do this awesome process:

First the main tool called Universal N64 Compressor:

A Command & Conquer 64 ROM: (I'm using the US version)

Project 64 version 1.7 or above: (Right now I prefer 1.7)

Nyerguds's Engie File converter:
http://nyerguds.arsaneus-design.com/project_stuff/2018/EngieFileConverter/release/ (Take the latest version; the one at the bottom)

RTool 64: (this is v2.07. Some newer v3 betas are available in the same folder)

HxD Hex Editor: (or some other hex editor, if you have one)

The reason why I listed Project 64 was because it's the only emulator that comes with the working Glide64 video plugin which is the only plugin that runs C&C64 properly. You could download the 1964-ultrafast emulator that overclocks the emulator which makes C&C64 not lag at all except the only problem is is that the video plugin it uses doesn't quite run it as well everything is dimmed for some reason but you can try it out if you want. Also I couldn't get the Glide64 with that emulator or any other emulator.

You can download 1964-ultrafast here:


Before we open the Universal Decompressor we'll want to open Nyerguds's Engie File Converter so that we can convert your map's .bin file to a .map file. Simply drag your .bin file in there and it should correctly identify the map as being Temperate or Desert. You can see that from the colour it gives to the clear terrain on the map. If the automatic identification is not correct, make sure the .ini file is in the folder with it so it can read the correct theater from there.

The tool, with a Temperate map loaded into it (though here you see it with an N64 map)

When it's loaded, and you see it as image, just go to File -> Quick Convert, and it'll offer to save it as N64 C&C .map file. 


One more thing we'll need to do before getting to the Universal Decompressor is to open and use RTool to make sure the ROM is in an editable format. So extract that somewhere and open it.

What we need to do is make sure the ROM is in the format "SP64/WC/Z64". Some ROMS out there are in the format "Doctor 64", and if they are, all bytes in it are switched per two, which makes it really annoying to edit.


So select your C&C64 ROM, check the format, and if it's "Doctor 64" you click "change image format" to fix it. I think if the ROM is compressed you'll also need to use the "decompress" function there, but I haven't seen any compressed ROMS so far.

Now you'll want to extract Universal N64 Decompressor somewhere, and have your C&C64 US ROM ready, preferably in an empty folder, so, yes, create a folder and put your C&C64 ROM in that folder first. You'll see why in a moment. Now open GEDecompressor.exe and you'll see where you can select a range of games, so select "Command and Conquer" of course:


After that, just next to that, click 'Load/decompress game', go to the folder you created and select your C&C ROM. Now you'll see a loading bar as a bunch of files pour down the menu screen. Wait for it to finish. When it's done, scroll to the right side in the listing to see the filenames:


Now scroll down until you reach the mission .ini files (the typical SC?##EA format), and from there it's almost as simple as selecting the map file you want to replace with whichever map you want to insert there, except that there are size limits for each map, especially when dealing with the ini's. Luckily when you hit "Inject file into ROM", if the file you are trying to insert is bigger than the file you're replacing it with, it will warn you if you are replacing a file that is smaller than the one you're inserting.


So if that comes up you're usually best to hit 'no' and find another file to replace that has enough room for the map you're inserting, otherwise part of your map will get cut off and you'll find that out ingame.

Note that a lot of ini files contain a lot of stuff that really isn't necessary, like unused keys in the Basic section, and information for the player sides Special / Multi1-Multi6. So you can remove that to make your ini smaller.

Assuming you have a .ini and a .map to insert, once you have found slots to insert them in where there's no size problems, take note of which file names they were that you replaced. It's also important to note that the original name of your map files that you insert don't matter, since they'll take the name of the file you replace in the ROM. The only filename you need to remember is the one you replaced. So let's say, for example, you chose to replace scg15ea.ini with your ini and scb07ea.map with your (converted) map file (for future reference).

Now click 'save ROM' and save it somewhere, preferable outside the folder which is now littered with extracted files.

Now that your map is inserted we need to make it playable, so open the hex editor I linked you to (or any hex editor you may already have; should be similar enough) and open your N64 ROM that has the maps inserted. One thing you'll want to do is this: at the top, go to 'Search' and go down to 'Goto' and type in the address "20D4EA". It should bring you to a large list of map filenames seen here:

(You can expand your view to 48 which is what I use to make it easier to see)


So let's say your mission is a Nod mission, so let's use the slot that's for NodSpecOps1, so change 'SCB21EA' to 'SCB45EA' for example, since we know that filename is not used. If it's a GDI mission you have to change 'SCG30EA' to 'SCG45EA'. Note that the number 45 in your filename dictates the build level. So, yes, the build level option in your ini file is ignored in the N64C&C for some reason. So all filename numbers that are 15 and above are buildlevel max which is 15 (Construction yard vehicle buildable).

It's also important to note that the G and the B in the map filenames dictates whether you get a Nod or GDI sidebar, with yellow or red units. The minimap also changes: it always gives desert terrain for Nod and temperate terrain for GDI. So if you insert a Nod map and call it 'SCG20EA' You'll be playing as Nod but with a GDI sidebar, with yellow icons for the buildings/units, and green minimap terrain, no matter what theater the map really is :P

Anyway, moving on, we need to get to the next list of filenames so we can line up the maps we inserted with the SCG/B45EA names we chose, so now under search click 'Goto' again and go to this address: "461449" you'll see a different list of filenames now, and my maps I've inserted are 'scg15ea.ini' and 'scb07ea.map', so we need to find those and rename them to the map filename we chose above, which was 'SCG45EA' (or 'SCB45EA'). So in this case, it should look like this for mine:


See how the slots where my maps were inserted are now changed to match our Special Ops slot and map name. Now all you have to do from your hex editor is save your ROM and load it up in Project64, go to the SpecOps slot you used and play it (or if you chose a mission map slot between 1-15 just go to that map and play).

Oh, one last thing in Project 64! Go to settings and change your video plugin to this Glide64 like this:


It runs the game almost perfectly, and all other video plugins seem to have problems.

There were more details I wanted to get into, especially with what you can do with the hex editor, so I may edit this tutorial in the future.

I hope I didn't miss anything and I hope I detailed everything well enough for people to follow. If you have any questions, feel free to PM me anytime if you happen to be confused about something. Cheers!

Here are some pictures of inserted custom missions:



Here's an example of a tiny map and what it looks like in the map editor vs in the game:


Share this post

Link to post
Share on other sites

This is fascinating. Makes me wonder what kind of engine does the N64 version use, it must be something similar to the original game if it's rather willing to accept and play its files.

Share this post

Link to post
Share on other sites

Well it's a game port, so that's not too surprising. It's basically the same engine adapted and converted to work on the N64 hardware. Graphics and sounds are all system-specific, so all of that changed, but anything purely for internal use can usually stay the same. In this game, that's the mission .ini scripts and the .eng strings files. The missions' terrain maps were redone to better suit the optimized graphics storage they use for the map tiles.


I did find some files in the PC C&C terrain tile format, but I'm not sure if they're used because there were far too few of them to be the full terrain, and they only seemed to be clear terrain.

Share this post

Link to post
Share on other sites

It's technically possible to edit the files table (shown at the end of the tutorial) to clear up space by 'removing' files, by making the game think they're 0 bytes long and moving their address to the same address of some other file. The format of the entries in that index is:

offset length  function
00      12     filename
12      4      offset to data
16      4      decompressed size
20      1      compression format {0x00: uncompressed, 0x11: 8bit LZ, 0x22: 16bit LZ}
21      3      compressed size
(all values not prefixed with 0x are decimal)

So if you change the compressed and decompressed size to 0, the compression format to 'uncompressed', and the offset to the same as some other existing file, it'll be seen as a 0-byte file put just before that other file in the listing, meaning you effectively removed the object from the files table, and can combine the space it used with that of the other files near it to insert larger files.


Note that I haven't tested this yet; this is purely theoretical. I'm not sure how the extractor will react to 0-byte files in the listing. If this doesn't work, you can also just reserve a small section of freed up space and give all such 'deleted' entries a single byte there. but then you'll need to figure out the actual offsets to change, of course.


It's also possible you'll have to actually change the size of the larger entry you're trying to create too to make the extractor accept it as larger available space. If you do that, it's best to change both the compressed and decompressed size of that expanded entry to the new larger available space, and put the compression to "uncompressed" so the extraction process doesn't fail on the decompression step (since the data in there will obviously be corrupted if it tried to decompress it all as one file).

Share this post

Link to post
Share on other sites

I just went over the list that maps the N64 tile IDs to their PC equivalents, and found exactly which tilesets are missing in it. Note that this does not mean my mapping is incomplete; a tileset being missing from the mapping means it was not found in any of the maps in the ROM, since I scanned them all to build these mappings, and from our tests, this seems to mean these tiles are simply not in the N64 ROM at all, and thus, they can't be used.


BRIDGE1D (bridge NE -> SW, destroyed)
BRIDGE2D (bridge NW -> SE, destroyed)
D30 (road 'Y', SE -> N+W )
D40 (road 'Y', SW -> N+E )
D43 (road 'Y', NE -> S+W )

B4 (small rocks)
B5 (small rocks)
B6 (small rocks)
BR5 (purple square; some debug tile)
BR10 (2 purple square; some debug tile)
D19 (road '+' crossroads)
D33 (road 'Y', NW -> S+E )
D43 (road 'Y', NE -> S+W )

Share this post

Link to post
Share on other sites

I updated the guide a bit, replacing the old N64 map converter tool with the more automated N64 file converter :)

  • Upvote 1

Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

  • Similar Content

    • By AndrewFord
      on the CncNet5 (RA, TS, TD version) there is usually a flashing green button that says "streaming" whenever someone is live on twitch but it doesn't show anymore. When shall this be fixed.
    • By Doblofino667
      Hi guys, I have for the first time today joined Cncnet, as I really miss Tiberian Dawn and I had a huge itch to play it. The download went nice and quick and I was able to get it onto the pc. 
      When I run it though, I run into problems. It skips the opening animation and immediately goes to the starting menu. When I press "Start new game" the program hangs and then I need to use task manager to close it. I dinked around with the resolution and compatibility settings too but no joy. In the end I saw a user here report something similar and the admin said something to the effect of changing the rendering to GDI instead of Auto. I did that and still not working. (Obviously when you press start, you go to that snowflake screen where you select GDI or NOD - THAT is the screen that doesn't want to load)
      At this point, I have tried all sorts of screen resolutions, rendering options, windowed/fullscreen options and turned comparability settings on and off. Computer still hangs. 
      Interesting to note, that when I click other options like "Load", "Internet Game" or "Exit", those options work fine. BUT when I click on "Intro & Sneak Peek" all I see is a screen saying "Coming Attraction" and then goes back to the menu. I remember this was an advert for Tiberian Sun. It seems that I can't run the cutscenes or animations or movie sequences. 
      Oh, another thing that might be of assistance. When I run the program without comparability, it hangs after selecting "new game" but when I run it in comparability mode for Windows 95, the game does not load, it simply says "can't play movies" or somesuch. 
      I hope the info helps! Please advise. 
      Thanks a lot guys.
    • By Noyjitat
      I played around a bit in tibed and was thinking. Wouldn't it be cool to have a mod that has the rules of c&c renegade but in an rts c&c game?
      Guard towers fire quicker, have longer range and are more armored and nearly 1 shot most vehicles.
      Guard towers have line of sight rules meaning infantry and tanks that are really close to buildings and tall objects can avoid being fired upon. (not sure if this even possible)
      You only get 1 guard tower with the exception of 2 - 4 pillboxes or Gun turrets
      You get 1 refinery with a small amount of credits slowly accumulating overtime and then credit dumps as normal when a harvester returns
      Each team is limited to 6 tanks
      Engineer repairs infantry, tanks and structures over time
      I'm  not sure how c4 and stuff would work. Maybe something in the form of an ivan bomb and you need 4 of them placed on a structure to go off in order to destroy it? Engineers should also be able to remove this.
      Vehicle and infantry fire power, rate of fire should be increased to match the values in renegade.
      Beacon placement for super weapons. A soldier drops the beacon and then it has a count down. Can be removed by engineer.
      Beacon placements on barricks ends the match unless removed by engineer/advanced engineer
      Advanced engineers: Hotwire / Nod technicians repair faster, deploy mines, shorter fuse ivan bomb?
      engineers/ advanced engineers equipped with pistols
      The game should basically all the renegade troops you could purchase such as havoc, sakura, etc with the same role sniping, rail gun etc.
      All aircraft replaced by helicopters/orcas, all infantry/vehicles able to hit them with snipers and rocket soldiers doing the most infantry damage to them. 
      Basically an exact copy of the renegade game as close as you can get it but in the form of the many rts c&c games we have now. Though i think you'd want to put an limit on the amount infantry just like most renegade servers could only hand so many players. I think 70 was the biggest I remember back in the day on the renstation server.
    • By Techstorm
      Hey, so I want to recommend the classic C&Cs to some people I know, and they may be more likely to try it if it's free. However, while the first free C&C games were released as freeware, the primary sources of downloads are down, the only way is through 3rd party mirrors and the C&C Ultimate Collection includes them for a price. So are the first three games still considered freeware?
    • By Nyerguds
      I'll just repost this here, since PPMsite is a mess these days.
      I have been making a tool to create .mrf files for C&C1 (RA seems to generate these tables in memory rather than keeping them as files). These files are basically palette remapping tables, used in the game to make colour effects like shadow, map shroud edges, stealth darkening (though not the actual effect), the targeting flash when giving attack / repair / dock commands, and a bunch more. Since they are relative to the theater's palette, they are a vital step to fully customizing terrain.
      FilterCreator_v1.11.rar - The tool, plus all of the mrf creation projects. (requires .NET framework 3.5)
      All icons used in the program (except the actual program icon) are based on the Fugue Icons 16x16 pack by Yusuke Kamiyamane (Copyright © 2010)
      Test data:
      FilterCreator_testdata.rar - All .mrf files in C&C, plus example screenshots to test on.
      Source code:
      FilterCreator_src_v1.11.rar (Visual Studio 2010 project)
      Now, on to the tool itself:

      The actual main tool's purpose is to recreate the existing filters in the game using brightness / contrast / colour balance / etc filters. However, since I already reconstructed all filters in the 11 .mrf files C&C1 needs for a theater, you can just go to [File] -> [Write multiple .MRF files...] and simply generate all the tables you need for a new theater.
      All you need to do for that is selecting the folder with finished projects that comes with the tool, the palette of your new theater, and an output folder:

      This sub-tool can also be started directly by starting FilterCreator from a shortcut with the command line parameter "-mrfui"
      The current included projects are obviously just my own reconstructions. They were created to quickly allow people to make new theaters, but they're probably far from perfect.
      So, if you want to try your hand at it, or if you simply want to view existing .mrf files, here's the overview of the UI functions of the main tool:
      Right pane: the preview of the original .mrf file. It shows the filename of the loaded mrf file, and the amount of filters inside the file.
      Left pane: the project. The filename of the loaded project is shown in the title bar of the program.
      The controls get more specific as you go down on the left pane. Top is the project description... a completely optional field, really. Below that is the filters dropdown. Each filter is a "sub-project".
      The three palette buttons allow you to manipulate the final palette in three ways. In all three cases, a yellow asterisk will indicate if anything is customized in the three options.
      The first one, "Manual Remap", allows you to force certain colours to certain other colours before applying the filters. This can be used to make index tables as some mrf files have, or just to change certain colours before adding filters to them. Practically all existing filters seemed to have changed the animated water colours to white before applying their effect, so you probably need to use it for the same thing.
      The specific indices set in this way are only preserved as that specific index if no effects are applied to it later. To set colours here that are not affected by the effects on the filter, you need to also set them in the third function, "Never remapped". The second, "sub-palette", allows you to exclude colours from the used palette. This is usually used to exclude index #0 black from the used colours. Note that this can also be used in reverse, to select specifically the only colours to use for generating the palette. This is used for the unit shadow and some other filters like it, which use specific colours on the palette.
      The third palette option is the "never remapped" list. This will allow you to select colours on the palette that will always remap to their own index (unless set to another index by option #1). These indices cannot be affected by the effects in the filter.
      And, the last palette option, located at the top, next to the "enable filter" one, is the "Match back to palette" checkbox. If this is not enabled, you will see the filters as applied to the image, without taking into account the palette to remap back to. This also means it ignores the selected sub-palette, though force-remap and never-remapped entries are taken into account.
      Under "Options", you can find an option to synchronize the filter between the left and right pane if possible, so that when you load the .mrf that corresponds to the project, it'll always show you the right filter from the file.
      Then we have the effects. Available effects are Brightness, Contrast, Gamma correct, Colorize, Saturation change, Luminance change, and a combined Hue/Sat/Lum adjustment control. All effects you add to the list stack up to create the final filter. Since their order often makes a lot of difference, you can move effects up and down in the list.
      Below the effects you see the actual effect sliders. The preview on the image is instant, though it might lag a little if you drag it around while "match back to palette" is enabled, because every small change will need to recalculate the remap table and apply it to the image.
      That's it, I guess. The options in the menus should be pretty straightforward.
  • Recently Browsing   0 members

    No registered users viewing this page.

  • Create New...