Terraria

Terraria

View Stats:
Tulyo Zinga Jun 17, 2024 @ 6:48am
Terraria XNA problems solved
I had a bug in my terraria that was not letting me launch the game, it had to do with some XNA dlls not being able to load. Had this bug for months up till I found this video

https://www.youtube.com/watch?v=LMlwxXctAcY

the thing is, you have to use the 2nd method to get it to work so I'll be posting the translated instructions. Also, I don't know if it works for every XNA problem you might have so I'll be posting my server log here, it'll be in portguese but it basically says it can't load some XNA files or dependencies.

Error Logging Enabled.
================
17/06/2024 08:45:46: Unhandled Exception
Thread: 1 [Main Thread]
Culture: pt-BR
Exception: System.BadImageFormatException: Não foi possível carregar arquivo ou assembly 'Microsoft.Xna.Framework.dll' ou uma de suas dependências. não é um aplicativo Win32 válido. (Exceção de HRESULT: 0x800700C1)
Nome do arquivo: 'Microsoft.Xna.Framework.dll'
em Terraria.Program.RunGame()
em Terraria.Program.LaunchGame(String[] args, Boolean monoArgs)
em Terraria.WindowsLaunch.Main(String[] args)


HResult: -2147024703
================

Exceção Sem Tratamento: System.BadImageFormatException: Não foi possível carregar arquivo ou assembly 'Microsoft.Xna.Framework.dll' ou uma de suas dependências. não é um aplicativo Win32 válido. (Exceção de HRESULT: 0x800700C1)
em Terraria.Program.RunGame()
em Terraria.Program.LaunchGame(String[] args, Boolean monoArgs)
em Terraria.WindowsLaunch.Main(String[] args)


Solving the problem
  1. First step is to enter the video, go to it's description and download the second method archives, wich is the google drive link shown in here:
    [img]https://imgur.com/a/mzyW8DD[/img]
  2. After downloading it just put all the dlls inside the zip into your System32 and SysWOW64 folders. That's it!

    Important notes
    If after restarting your computer the problem returns just do it again and it should be fine. If you can't move the files into the folders check if you have permission to.
< >
Showing 1-4 of 4 comments
Radiowavehero Jun 17, 2024 @ 2:30pm 
This might have worked for you but it's super shady to download system files from a random google drive , you could potentially open your entire system up to hijackers , keyloggers , malware , spyware and worst of all since you installed the files and they look official microsoft defender might not catch it, especially if you told it to ignore the files while installing them.

I know it's frustrating when your game doesn't work and there seems to be a solution but it is risky you might think the risk is worth it but that is the exact type of situation that malware looks for , people googling computer problems and installing random stuff.

If it's a problem with XNA (in this case the common 0X000007b error) you should be able to either use the redistributable from terraria itself located at C:\Program Files (x86)\Steam\steamapps\common\Terraria File name xnafx40_redist.msi or look for XNA resources from microsoft itself https://www.microsoft.com/en-us/download/details.aspx?id=20914 sometimes the problem requires downloading Visual C++ Redistributable , a lot of the fixes you find online are just a repackage of these files , but you never know what was added.
Last edited by Radiowavehero; Jun 17, 2024 @ 2:40pm
Tulyo Zinga Jun 18, 2024 @ 3:09pm 
Originally posted by Radiowavehero:
This might have worked for you but it's super shady to download system files from a random google drive , you could potentially open your entire system up to hijackers , keyloggers , malware , spyware and worst of all since you installed the files and they look official microsoft defender might not catch it, especially if you told it to ignore the files while installing them.

I know it's frustrating when your game doesn't work and there seems to be a solution but it is risky you might think the risk is worth it but that is the exact type of situation that malware looks for , people googling computer problems and installing random stuff.

If it's a problem with XNA (in this case the common 0X000007b error) you should be able to either use the redistributable from terraria itself located at C:\Program Files (x86)\Steam\steamapps\common\Terraria File name xnafx40_redist.msi or look for XNA resources from microsoft itself https://www.microsoft.com/en-us/download/details.aspx?id=20914 sometimes the problem requires downloading Visual C++ Redistributable , a lot of the fixes you find online are just a repackage of these files , but you never know what was added.
yeah you'r right but I was kinda desperate at the time and this method has worked for me and I've been using it for a quite long time and no problems since. also, I've tried repairing with xnafx40 and it didn't work for some reason. this is really the only thing that works for me.
goketa. Jul 14, 2024 @ 4:05pm 
irmao eu te amo vei
Ferry Jul 16, 2024 @ 9:27am 
Damn, yeah this feels useful to some people with that error
< >
Showing 1-4 of 4 comments
Per page: 1530 50

Date Posted: Jun 17, 2024 @ 6:48am
Posts: 4