After playing Terraria for a little while, I have started to find the default sounds for when a player takes damage a little annoying and I'm looking for a way to use my own sound files instead of the default ones provided with the game.

I have seen that it is possible to change to an already existing sound in the Terraria sound folder (here), but I am looking to use my own sounds so this doesn't exactly fit what I'm looking for.

I guess I need to know a couple of things in order to be able to do this:

  • What format should the sound files be in?
  • What should I use to convert the files to the .xnb format?
  • I am assuming that this is allowed according to the Terraria Terms of Use since it should not require any reverse engineering to be able to do this. – bcpettifer Jun 7 '11 at 14:47
  • I don't think those terms even apply to Terraria at all, since they're the "Web Site Terms and Conditions" and concern "materials [...] on Terraria's web site". If you buy Terraria from Steam, you never interact with terraria.org at all. – a cat Jun 7 '11 at 14:59
  • @lunboks Ah yes, that looks to be the case. I can't seem to find a link to the terms for the game itself, but I guess the assumption still stands. – bcpettifer Jun 7 '11 at 15:08

You need to convert your sound files into XNB format, the packaged format Microsoft XNA uses for binary files. The best guide I've found is designed for creating custom music soundtracks, but the steps are the same for replacing sound effects.

You just need to convert your sounds using XACT and replace the existing sounds with your new ones. The game uses the filename to determine which sound to play for each event, so make sure those stay the same.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.