Terraria

Terraria

View Stats:
DirtyTamil Sep 19, 2015 @ 7:33pm
Accidently deleted config file. Help!
I need help, today i was clearing out some old files. And i ended up mis- clicking and deleting my Terraria "config.json" file.

Now when i try to start terraria, i can't.

I get an error message:

System.Threading.SynchronizationLockExeption: Object synchronization
method was called from an unsynchronized block of code.
at Terraria.IO.Preferences.Save(Boolean createFile)
at Terraria.Main.SaveSettings()
at Terraria.Main.Initialize()
at Microsoft.Xna.Framework.Game.RunGame(Boolean useBlockingRun)
at Terrari.Program.LaunchGame(String[] args)

That is the error message in full, I've tried uninstalling and reinstalling.
Nothing has worked, I've also tried verifying integrity of game cache, to no avail.

Anything that might work will be much appreciated.
< >
Showing 1-15 of 23 comments
Link Sep 19, 2015 @ 9:02pm 
Well it's very simple go to recycle bin and search for the file you deleted right click it and click restore and you should be good to go!
DirtyTamil Sep 20, 2015 @ 6:52am 
Originally posted by Link:
Well it's very simple go to recycle bin and search for the file you deleted right click it and click restore and you should be good to go!

I have my recycling bin settings to permanently delete files instead of sending to the recycling bin.
I wasn't thinking.

Is there any other way to get that file back?
Maybe someone could send a link for the file.
Marth Sep 20, 2015 @ 7:00am 
Just verify integrity of game cache, it will download any files missing.
DirtyTamil Sep 20, 2015 @ 7:50am 
As I said in my original statement I tried that, steam tell me that all the files were successfully validated.
Marth Sep 20, 2015 @ 7:54am 
My bad, should've read everything. A little search on google brought me to this page http://steamcommunity.com/app/105600/discussions/0/530645961937688315/ try that out
DirtyTamil Sep 20, 2015 @ 8:38am 
That solution would work, If I had a config file to change.
But I dont.

I remeber reading a post about this guy who had the same problem as me he deleted a file, someone in the comments pasted that file so he could download it again.

If It's possible, can someone try that out please?!
Marth Sep 20, 2015 @ 8:43am 
There is a link to the file somewhere in that thread already. It's lower on the first page too, from JacobGmbH.
DirtyTamil Sep 20, 2015 @ 8:56am 
Yea, I found the link, but when I'd opened it up there was an error, saying that the file was either deleted is removed.

Could you open it up Marth, and tell me if you get the same message?
Marth Sep 20, 2015 @ 9:03am 
Should've thought of copying the file content, well that should do it.
DirtyTamil Sep 20, 2015 @ 9:05am 
Can I use just regular Notepad?

And where do i place that file afterwords?

Much appreciated.
[FaO]Simon Sep 20, 2015 @ 9:16am 
Sry but the problem isnt a deleted config file. When you delete the config the game simply generates a new default config file like every other game. I tested this.

Maybe you deleted some other critical things. Did you uninstalled xnafx40_redist or dotNetFx40? If you are unsure both installers can be found int the terraria directory. Dont forget to install them with full admin rights.
Last edited by [FaO]Simon; Sep 20, 2015 @ 9:23am
Marth Sep 20, 2015 @ 9:23am 
From the link I posted, some say it's the game that can't access the document folder. Try to start the game as administrator, that seems to have solved the problem for some people.
DirtyTamil Sep 20, 2015 @ 9:23am 
Originally posted by FaOSimon:
Sry but the problem isnt a deleted config file. When you delete the config the game simply generates a new default config file. I tested this.


Yea, I just put the config.json file in my Terraria folder

And i still get the same error message

9/20/2015 12:11:05 PM
System.Threading.SynchronizationLockException: Object synchronization method was called from an unsynchronized block of code.
at Terraria.IO.Preferences.Save(Boolean createFile)
at Terraria.Main.SaveSettings()
at Terraria.Main.OpenSettings()
at Terraria.Main.Initialize()
at Microsoft.Xna.Framework.Game.RunGame(Boolean useBlockingRun)
at Terraria.Program.LaunchGame(String[] args)
Last edited by DirtyTamil; Sep 20, 2015 @ 9:23am
[FaO]Simon Sep 20, 2015 @ 9:24am 
Try what Marth said and run Terraria as administrator.
DirtyTamil Sep 20, 2015 @ 9:26am 
Omg, Marth I want to give you a kiss.
Running as an admin has worked.
I'll keep posting on this discussion if i have any more problems, thanks to the both of you i can play this game agin.
< >
Showing 1-15 of 23 comments
Per page: 1530 50

Date Posted: Sep 19, 2015 @ 7:33pm
Posts: 23