[Tutorial] Edit Designs.dat so that AI use custom ship designs.

Command a squadron of spaceships
Post Reply
Posts: 6
Joined: Mon Aug 09, 2010 12:49 am

[Tutorial] Edit Designs.dat so that AI use custom ship designs.

Post by DeadFire13 » Fri Mar 02, 2018 10:00 pm

Preface: I'm no coder or anything. I just played around with a hex editor until I figured how to add ships.

For some reason, the modified Designs.dat of Fusion_power didn't work for me. I followed the instructions exactly, but after every battle, the Designs.dat file would reset, making it useless for me. Also, several people have noted that they didn't want Fusion's own custom ships in the file. So I'll be showing how you can add your own.

There is one restriction to my method though: I don't know how to increase the size of the file and thus the maximum number of entries. If you change the file size, it will not work anymore.

You cannot replace any of the default ships, so all you can do is replace the Separators with the ships you want because I don't know how to increase the file size.


1) Find a hex editor. I used HxD hex editor.

2) Have a clean, unmodified Designs.dat file and back it up somewhere, for 'safety' reasons.

3) Open up your game, and make/import the designs you want to have the AI use. As far as I know, there are absolutely no limits on what you can do with your ships. I use the Ship Editor utility somewhere in this forum to give my ships higher than the allowed amount of modules and it works fine. You can have the ships restricted to any factions, as I personally have my custom ships to fly with only my faction, Straylians.

4) Rename and backup this modified Designs.dat file. I just renamed mine to Designs_custom.dat.

5) Open up an expendable copy of the custom file on the Hex editor. Now to edit!

6) Find your ship in the hex editor. You can search it by name or description in HxD using Ctrl-F.


What I highlighted is where the entry begins. I believe the 01 indicates a new entry.


The entry naturally ends where the next entry begins. Copy the entry (I just used Ctrl-C). This contains everything pertaining to the design.

7) Find one of the 'blanks' between default ships. You can open Critical Mass and Design Ships to orient yourself within the hex editor. When you find it, highlight the entry to be replaced.


The 02 in the 5th space indicates a 'blank' entry, I think. Previously I was just copying everything from the description of one entry up the description of the next, but it resulted in the entry not working as seen in Design Ships in the game. I noticed for the 'blanks', it said 02 and for ships, it had 00. So this needs to be 00, but you already have that when you copied your custom ships design so don't worry about it.


As before, highlight to the end of the 'blank' entry. The size of the highlight (which is the size of the entry) should end up being the same size as what you copied before. So just paste (Ctrl-V)! Done!

If it says that the file size will change, you highlighted too much or too little when copying your designs or replacing the 'blank'. Go back to the beginning and try again.

Just keep replacing the 'blanks' with whatever designs want to add.

When done, save the file. Make sure it's named Designs.dat and put in the main directory.

Note, when you look at the ships in Designs Ships, they will be where the separators used to be. This looks weird. You can rearrange everything in the hex editor, but I'm too lazy for that.


Posts: 5
Joined: Sun Dec 09, 2012 8:59 pm

Re: [Tutorial] Edit Designs.dat so that AI use custom ship designs.

Post by OllyG » Sat Nov 03, 2018 11:28 pm


Thanks for posting this.

I was very excited to see this, but I tried following your instructions precisely and it didn't work for me. The separators in the design screen are unchanged. I've checked I put the modified designs file in the Critical Mass folder, and that there are no 'separators' you can find in a search in a hex editor.

Any idea what I might have missed/done wrong?

What version of Critical Mass were you able to make the modification on?

Thanks if you can help.


Posts: 6
Joined: Mon Aug 09, 2010 12:49 am

Re: [Tutorial] Edit Designs.dat so that AI use custom ship designs.

Post by DeadFire13 » Sat Mar 02, 2019 2:44 am

If you're on 4.0h, it won't say Separator but the way is still exactly the same... That's pretty obvious from a coding perspective, because the ships list is still the same and the Separator still exists which occupies a blank entry. The data is not encrypted, the descriptions and names of everything else is still there.

For example, if you look for 'Scout', go back a little (past its description) until you see the 01 in the beginning (sometimes it's in the middle) of a line, which indicates the beginning of its entry. Starting from there going back, is the entry for the Separator. You can drag and scroll up until you find the top of the Separator entry (it says 'spaceship'), with a 01 as the beginning of it's entry a little before/above the description.

In HxD, you'll see the one before Scout (and after Wormhole) from line 24120 to 25120. Locating other Separators is just finding the entries between any other two, for example between Super Watcher and Drone.

edit: Goddammit. I downloaded the demo to help you out and it deleted my save. I had over 2000 credits earned on that save...


I've literally just done it in a few minutes on the demo current version, so I don't know what to tell you.

I've changed my board settings so now I should be able to be contacted through email. You can speak to me further and maybe I can help.

User avatar
Posts: 329
Joined: Fri Sep 03, 2004 2:34 pm

Re: [Tutorial] Edit Designs.dat so that AI use custom ship designs.

Post by Fusion_power » Thu May 16, 2019 8:12 pm

Interesting hack. I'll have to look at the designs.dat file and see what it needs to be compatible.

Post Reply