T
like-gold
Get random access to path errors for backup world files that cause game to crash
posting again since issues still not resolved after already trying some of the FAQ methods such as turning windows defender off and whitelisting dotnet
45 Replies
Welcome to #support-forum. Before someone helps you, please first consult the information in #TML Troubleshooting Guide and try all the suggestions that might fit your particular issue, especially in the linked FAQ page.
If the information in the pinned thread does not solve your issue, please post all log files by dragging and dropping them into this chat. In Steam right click on
tModLoader in the library, then hover over Manage and click on Browse local files. In the folder that appears find tModLoader-Logs and open that folder. Inside that folder are the logs files. Select them all except the Old folder and drag them into this chat. If you need a visual guide to this process watch this: https://github.com/tModLoader/tModLoader/assets/4522492/3f4efa43-753f-4733-b630-ba85e711340clike-goldOP•2y ago
well, if you tried all of those suggestions, I'm not sure what is preventing the file access
A last resort is a non-My Documents location or even the install folder
https://github.com/tModLoader/tModLoader/wiki/Basic-tModLoader-Usage-FAQ#controlled-folder-access
You can easily try the savehere.txt approach. You'll need to copy over your worlds and players to the new folder, but you might be able to avoid those file permissions issues if you do
like-goldOP•2y ago
ill try the savehere fix and see if it works but i already have tmodloader not in the my documents folder, i changed it to a folder on my d drive and allowed read and write access in the folder/subfolders but just kept it named as my documents for clarity
I would also try with 0 mods. I just noticed that your errors are during autosaves, does it also crash if you just enter and exit the world?
like-goldOP•2y ago
yeah, same thing happens when i exit and save
seems the issue is entirely with backup files for the world
I wonder if a mod is involved. Have you tried disabling all mods, restarting the game, gennerateing a new world and player? Does that work and persist?
like-goldOP•2y ago
I haven't tried any of those suggestions yet, I'll do that in a bit see if it changes anything
I've made a build of tModLoader that might help us identify this issue, if you want to give it a try, please visit and read https://discord.com/channels/103110554649894912/1216931304709427242
like-goldOP•2y ago
just looked at the thread and followed the steps, it appears that even on the dev build the same error occurred
like-goldOP•2y ago
like-goldOP•2y ago
these are the error logs that happened in the dev build too im guessing
ima try disabling all the mods and other suggestions now and see if they work
So, did you delete the savehere.txt already?
oh, I see
like-goldOP•2y ago
no i havent tried that yet, i thought trying the dev build would be more helpful so i tried that first lol
I noticed your log mentions "Controlled Folder Access feature detected. If game fails to launch make sure to add "D:\SteamGames\steamapps\common\tModLoader\dotnet\6.0.14\dotnet.exe" to the "Allow an app through Controlled folder access" menu found in the "Ransomware protection" menu.", I would double check that you did that for the correct dotnet.exe file
like-goldOP•2y ago
I'll take a look rn
looked rn and its properly whitelisted
like-goldOP•2y ago
like-goldOP•2y ago
interesting, i disabled the mods and texturepacks, created a new character and world and now the error did not occur
just enabled all the mods and texturepack and created another char/world and it worked again
prev char/world was just bugged then lol
Can you post the .wld and .twld of the world that didn't work? It might help us look into this issue for later
like-goldOP•2y ago
yeah
like-goldOP•2y ago
here are all the files related to the world that were in my worlds folder
Thanks. I thought this was related to another issue, but it seems to be it's own issue. Thanks for posting those so I could check.
like-goldOP•2y ago
np, thanks for all the help
@jopojelly sorry to bother u again but unfortunately the error happened again in a multiplayer save this time around, i just moved the world to cloud and it solved the issue but for now it seems like local saves are not the move for my problem rn
can you show me the new error?
like-goldOP•2y ago
i didnt take a screenshot of the error in game but i could send the logs again
i could probably replicate it again if youd like
whatever you want to do
like-goldOP•2y ago
like-goldOP•2y ago
this was the server log, was pretty much giving the same error as before with it not having access
so, this file is named server4.log
that means you have 3 other servers still running I believe
That might be why it can't access the file it is trying to delete
like-goldOP•2y ago
0_0 i didnt do anything different tho
just hosted the world as normal
restart your computer, delete the logs folder, try to host again
like-goldOP•2y ago
like-goldOP•2y ago
replicated the error when i went into the world and saved n exited
wait, why is one error on the C drive and the other the D drive?
maybe that's just a typo in our error logs
I'm not really sure what is going on here, you already checked the safe files, windows defender, controlled access stuff
And you say this isn't your actual documents folder. Maybe you should try a different save directory just in case
-tmlsavedirectory D:\tModLoaderSaveTestlike-goldOP•2y ago
yeah im not really sure why one is in C drive when i have tmodloader installed on D drive and savedirectory on a fake my documents folder on my D drive
ill try that and see what happens
this is currently what i have it as: -savedirectory D:\Documents\My Games\Terraria
wait, was this last error in multiplayer?
like-goldOP•2y ago
yes
I see. I now remember discovering recently that
savedirectory and tmlsavedirectory don't get passed to the server correctly, that's why that server error is mentioning the save directory that doesn't actually correspond to the world.
Since the game will attempt to do the world backups into the real Worlds/Backups folder, it's failing due to whatever issue is happening with your real documents folder.
Until we fix that issue, I think your only option is the savehere.txt thing.like-goldOP•2y ago
Hmmm ok, so i just create the savehere file where tmodloader is installed?
as for the launch option, im guessing that i remove that?
yes, remove the launch option
When you launch the game, a
tModLoader folder will show up inside the current tmodloader install folder, that's where you can copy and paste over your current saves from the D:\Documents\My Games\Terraria\tModLoader fodler
My hope is that the game works therelike-goldOP•2y ago
ill try that in a bit and update u on how it goes, hopefully it works. if not im going to have to stick to cloud saves for the time being