Horizon's Gate

Horizon's Gate

View Stats:
Tan90Roller Sep 10, 2023 @ 11:25am
Unable to Continue or Start New Game: The Directory Is Not Empty
I was playing a mod, went to a town, saved, and turned the game off to come back to later. Now though, I can't load my game at all. I keep receiving:

Error : The directory is not empty.

*~*~* Click this window, then press Ctrl+C to copy this entire message! *~*~*

at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)

at System.IO.Directory.DeleteHelper(String fullPath, String userPath, Boolean recursive, Boolean throwOnTopLevelDirectoryNotFound, WIN32_FIND_DATA& data)

at System.IO.Directory.Delete(String fullPath, String userPath, Boolean recursive, Boolean checkHost)

at DataManager.deleteDirectory(String path)

at DataManager.unzipSave(String savename, Boolean systemSave, String unzipToPath)

at DataManager.loadGame(String saveName, Boolean systemSave)

at Game1.executeLoad()

at Game1.Update(GameTime gameTime)


Mods active: 60
---------------------------
OK
---------------------------

I've uninstalled the game a few times, unsubscribed from all the mods I was using, and even tried to start a new game. There hasn't been a difference, I receive this error. I'm going to install it on another PC of mine to see if it follows. If it does, what then, lol? This happened a few weeks ago and i got fed up with seeing this so I played something else. I'm looking to address it now though as I miss playing this game.
< >
Showing 1-10 of 10 comments
Rad Codex  [developer] Sep 10, 2023 @ 11:42am 
Hey, sorry you're getting a crash! I haven't seen this error before - the code is supposed to delete every file in the directory before deleting the directory. Presumably something is going wrong with one of the save files.

If you go to C:\Users\YourUsernameHere\AppData\Roaming\BoatTactics\Saves, you'll find your save files. Can you try moving your most recent save out of that folder and seeing if that fixes it?
Tan90Roller Sep 10, 2023 @ 1:44pm 
So what I ended up doing was completely uninstall Steam. After the fresh reinstall, I installed my mods and it's working again.
Rad Codex  [developer] Sep 10, 2023 @ 2:03pm 
Great, glad it's working now! If you run into further issues, let me know.
Tan90Roller Sep 12, 2023 @ 11:46am 
Thank you very much for the response!
Tan90Roller Sep 15, 2023 @ 12:29pm 
Ok, so I am having .this issue again. It's very strange. If I uninstall the game then Steam then reinstall them both, I don't get this error when I boot the game and play. Upon exiting the game and reopening it later, the issue comes back. Here's my steps:

Uninstalled game
uninstalled Steam
rebooted
reinstalled Steam
reinstalled game on C drive
opened game, works fine,
exit game
upon opening game again, receiving error

redid process
new and old game loaded just fine
loaded Prominence mods, works just fine on both profiles
subbed to Royal Item Boons, Bigger Groves, Quest CrewXp, received error right afterward
unsubbed from them
loaded game, received error
uninstalled everything / reinstalled
after installing Steam, installed game, loaded some class mods
loaded both profiles fine, but loading again gives error.
It appears you must load mods before installing the game; otherwise, receive error if you install mods after installing game. Update: doesn't matter, still occurs

I'm wondering if one of the mods is causing this at this point. I'm going to unsubscribe them all, uninstall everything, reinstall, and start the game from scratch to see what's going on.
Last edited by Tan90Roller; Sep 15, 2023 @ 1:45pm
Tan90Roller Sep 15, 2023 @ 1:46pm 
Here's the Event Viewer errors given. These have come up every time I load a save or start a new game.

.NET Runtime Event ID: 1026

Application: BoatTactics.exe
Framework Version: v4.0.30319
Description: The process was terminated due to an unhandled exception.
Exception Info: System.IO.IOException
at System.IO.__Error.WinIOError(Int32, System.String)
at System.IO.Directory.DeleteHelper(System.String, System.String, Boolean, Boolean, WIN32_FIND_DATA ByRef)
at System.IO.Directory.Delete(System.String, System.String, Boolean, Boolean)
at Tactics.DataManager.deleteDirectory(System.String)
at Tactics.DataManager.unzipSave(System.String, Boolean, System.String)
at Tactics.DataManager.loadGame(System.String, Boolean)
at Tactics.Game1.executeLoad()
at Tactics.Game1.Update(Microsoft.Xna.Framework.GameTime)
at Microsoft.Xna.Framework.Game.Tick()
at Microsoft.Xna.Framework.Game.RunLoop()
at Microsoft.Xna.Framework.Game.Run()
at Tactics.Program.Main(System.String[])

Application Error Event ID: 1000

Faulting application name: BoatTactics.exe, version: 1.0.0.0, time stamp: 0x857147a5
Faulting module name: KERNELBASE.dll, version: 10.0.22621.2215, time stamp: 0x83983b0b
Exception code: 0xe0434352
Fault offset: 0x000000000006531c
Faulting process id: 0x0x129C
Faulting application start time: 0x0x1D9E8138550F22E
Faulting application path: C:\Program Files (x86)\Steam\steamapps\common\Horizon's Gate\BoatTactics.exe
Faulting module path: C:\WINDOWS\System32\KERNELBASE.dll
Report Id: 623a49ec-227d-487e-91df-eb06a2b1cc77
Faulting package full name:
Faulting package-relative application ID:
game-zerox Sep 15, 2023 @ 7:38pm 
Shot in the dark, but could cloud saving be messing up? Maybe disabling it could at least skip the whole reinstalling steam step.
Rad Codex  [developer] Sep 16, 2023 @ 9:47pm 
I believe the game is failing to delete the "current" save folder (a temporary folder where the game stores the current playthrough). Can you right-click Horizon's Gate in steam, select "Manage -> Browse Local Files", open "Content -> SystemSaves" folders, and see if there is a folder there called "current"? If there is, could you email it to me at radcodex @ gmail? There must be some unusual item in that folder that is stubbornly refusing to be deleted - maybe something caused by Antivirus software.

If you delete that "current" folder, you should be able to load saves again - at least until the same problem returns.

Sorry for the hassle, and thanks for helping me track down this issue.
Last edited by Rad Codex; Sep 16, 2023 @ 9:48pm
Tan90Roller Sep 17, 2023 @ 6:46pm 
I'm going to send you a zip file of that folder. I removed ALL mods I had been running just in case. My saves loaded just fine the first time, but upon the second load, I received the error, which I expected. I'll put my profile name in the subject line.
Tan90Roller Sep 20, 2023 @ 10:11am 
I have an update in case someone runs into this in the future. I worked with Rad Codex on this. So, I made a mistype in a console command that took me to an invalid location. I recall this, noticed I wasn't in the right place, then input the correct command. This location was saved in a folder called current. We believe this was causing the game to crash since the location didn't exist.

I went into that folder and Shift+Delete the folder which had the name of the command I inputted. At first, when I deleted then loaded the game, it would come back, but if I recall, after the second time I deleted the folder and loaded, it didn't come back. The game has been stable since.

I have my game files saved under another drive but the path is similar if you save your files on C. E:\SteamLibrary\steamapps\common\Horizon's Gate\Content\SystemSaves\current

I want to thank Rad Codex for assisting me with this issue. Thank you very much! I enjoy this game immensely (which is why I have almost 400 hours into it) so it hurt not being able to play it.
< >
Showing 1-10 of 10 comments
Per page: 1530 50