Skip to content

ChemGuy1611/SM2-Modding

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 

Repository files navigation

SM2-Modding

Tools and instruction for how to mod Space Marine 2

THESE INSTRUCTIONS ARE FOR LEGITIMATE MODDING PURPOSES ONLY. DO NOT USE THIS TO MAKE CHEATS FOR THE GAME. YOU WILL BE REPORTED AND BANNED.

Check out my mods on Nexus Mods!

Space Marine 2 Vortex Extension

Anti-Stutter for Space Marine 2

Disable Screen FX

Simple Armor Unlocker

INSTRUCTIONS

First tool you need is ImHex. This allows you to make direct hexidecimal edits to Space Marine 2 pak files.

When modding these files, you need to make sure that the byte size of the pak ends up being exactly the same as the original, with all files inside having the same size and CRC-32 value as well. This is easier than it sounds.

Steps:

  1. Look through the pak files and find something you want to change. Easiest would be a value like a RGB color or some other numerical value.
  2. Extract the pak file with WinRAR or 7-zip to get the loose files.
  3. Edit the file(s) with the changes you want in a text editor.
  4. Check the byte size of the file by right-clicking on it and selecting "Properties". If you added or removed characters when making your edits, the file needs to be balanced out to reach the same final byte count.
  5. If you need to add bytes to your file to make the size match, add a "//" comment to the end of the file and insert characters until you get the right size (each normal character is 1 byte).
  6. If you need to remove bytes to make your size match, try to remove text that was already inside a comment (//) or whitespace.
  7. The size of the modified files must be EXACTLY the same as the original, down to the byte.
  8. Now, using ImHex, open both the original pak file and the text file(s) you modified. Make a backup of the pak file in case you make a mistake and need to start over.
  9. In the pak file, you need to locate the byte address for the contents of the file(s) to be changed. You can "Search" the file name to find it. The starting byte to select is the one just after the file name. Create a Bookmark to make it easy to find this later.
  10. Note - When looking for the file, make sure you find the actual file contents, not the directory listing. You will know you are looking at the file contents because they have readable text in the ASCII column (for uncompressed files).
  11. Snap0176
  12. Now find the end of the file contents. This will be the byte before "PK", which separates the files. Create a Bookmark to make it easy to find this later.
  13. Snap0175
  14. Select all the bytes for the file contents. The easiest way to do this is to make a bookmark that starts at the beginning of the file contents and ends at the byte just before the "PK" seperator.
  15. In the text file you modified, select all bytes and Copy them.
  16. Back in the pak file, use the "Fill" function to fill in the selected section (the file) with the bytes from the text file. Paste the bytes you copied into the dialogue popup.
  17. Save your pak file. Check again to verify that the bytes are the same for this modified pak file and the original.
  18. Done! Share your file on Nexus Mods so that others can enjoy it too!

These instructions are a bit brief right now, but will be fleshed out as I set aside time to improve them.

If you would like to support my work and the free sharing of modding knowledge, you can do so below. Your support is greatly appreciated!

Buy Me a Coffee

Join My Patreon

About

Tools and instruction for how to mod Space Marine 2

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published