Made a tool to clean "cache" crash
foxxyfox
Join Date: 2016-12-28 Member: 225594Members
What is this?
This fixes cache corruption crashes by deleting cache information that your base(s) does NOT occupy.
Why?
I got tired of having to manually clean my cache file so a made a small tool that "cleans" the cache.
What it looks like
Download Here (Subnautica Cache Cleaner v0.11b.rar - 34 KB) ]
Make sure to read the README.txt to see how it works
Heads Up
*This resets nodes so everything that you opened will respawn making the game easier
*It's only needed to clean cache if you are crashing
*After cleaning cache
Source Code
Well hopefully someone finds it useful I had fun making this, last time I programmed was about 10 years ago. I created it in Visual Studio 2015 (Visual Basic)
If you want to see the (horrendous) source code here you go
SubnauticaCacheCleaner Source Files v0.11.rar - 270 KB
Version History
0.10 - Initial
0.11 - Fixed screenshot update when the account has multiple saves
This fixes cache corruption crashes by deleting cache information that your base(s) does NOT occupy.
Why?
I got tired of having to manually clean my cache file so a made a small tool that "cleans" the cache.
What it looks like
Download Here (Subnautica Cache Cleaner v0.11b.rar - 34 KB) ]
Make sure to read the README.txt to see how it works
Heads Up
*This resets nodes so everything that you opened will respawn making the game easier
*It's only needed to clean cache if you are crashing
*After cleaning cache
- Go into game and load save
- Once your loaded in, Save the game
- Go back to the main menu
- Now you can play
Source Code
Well hopefully someone finds it useful I had fun making this, last time I programmed was about 10 years ago. I created it in Visual Studio 2015 (Visual Basic)
If you want to see the (horrendous) source code here you go
SubnauticaCacheCleaner Source Files v0.11.rar - 270 KB
Version History
0.10 - Initial
0.11 - Fixed screenshot update when the account has multiple saves
Comments
EDIT: x-posted that to Bug Reporting for you here
PS Marry me
PSS This game rox
My game crashes on the Grand Reef and 'The guy with a code on the name'
said that i need to clear my cache
Yes, it does the exact same thing, which is why I also linked to this tool in the cache cleaning instructions in case some people would prefer using it.
@0x6A7232 and Foxy too i tried the batch thing, but it doesnt seem to work, i got 3 crashes after the delete of the batches
What error do you get when you try to launch it? Most likely you need Visual C++ Redistributable for Visual Studio 2015
Install the redistributable foxxyfox linked.
It says thta i have another version installed, im a programmer if i change the redistribuitable maybe im going to get some troubles or not ??
Could you by any chance make a reverse version of your tool, which only deletes the wreck cells?
According to the wiki, they have particular coordinates, but that's not cells. I'll see if I can find the cell numbers.
40-14-400
366-6-203
320-40-336
413-43-310
320-57-252
65-25-385
25-88-615
320-66-431
390-120-648
630-50-60
432-90-268
940-198-593
102-179-860
701-346-1224
630-125-752
1448-332-732
1083-190-735
1208-332-390
284-250-850
865-430-1420
I personally don't use this because it installs the program in a weird place, for me it installed it in
What I would do is if you are having problems with the first download link is download the installer, install it then uninstall it. This way all the files needed to launch the application are on your system.
@TurielD, Are those the wreck cells? If so I can have a button that just deletes wreck cells. Wait but what if you have a base right next to a wreck?
There's something at 14-18-15, which is very near the spawn zone and likely to be visited (and so progressively worsen) a lot, and deleting just that cell's data solves the problem for most people.
The auto clearing and reterraforming is possible if you learn the insides of the cache files, making the program search each file and looking for modified terrain.
That would explain why i (at some locations) have to Laser Cut through many doors before gaining entrance. I acutally know a location where this is the case. When i get home i will link the camera area.
Safe Shallows 1: 12-18-10
Safe Shallows 2: 15-18-11 (tiny, probably can be ignored)
Kelp 1: 14-18-10 (tiny, probably can be ignored)
Grassy Plains 1: 14-18-15 (this one is *directly* on the way from the spawn area to the Aurora... very likely to cause issues early on)
Grassy Plains 2: 8-18-12
Grassy Plains 3: 10-18-11
Sea Treader: 5-17-8 and 5-18-8
Edit 1:
Blood Kelp: 5-16-10
Grand Reef 1: 11-17-7
Grand Reef 2: 7-16-3
I'd say you're right, based on this thread on SN Steam forums:
EDIT again: Asked LumpN what the batch-objects-xx-yy-zz.txt files in the main slot directory did, response:
After running it the first time and having it save the info I expected it to remember where my SN saved games were - it did not
If I wanted to manually edit and save the .ini file what should the syntax be? Currently it is blank
For some reason it is creating a new .ini after loading that one that is there and wiping any save data in it