Critical Error during game start.

Avatar
  • updated
  • Completed - Resolved

When attempting to load the game, I'm met with the following error:


Critical error during game start

"Sharing violation on path C:\Program Files (x86)\Steam\steamapps\common\War For The Overworld\WFTOGame_Data\GameData\Options.txt"

The game cannot start.


I have checked the file and cannot find any issues with the contents. In case I'm missing something though, it reads as follows;


FirstLaunchLanguageDetection=
Lang=0
HoGLaunched=True
DLC=HeartOfGold
Screen Width=1920
Screen Height=1080
Screen Refresh Rate=60
FullScreenMode=True
Gamma=20
V-Sync=True
Camera Zoom Max=30
Editor Camera Zoom Max=50
Needs Pixel Light Upgrade=False
Pixel Light Count=10


This is the same computer that I have used to play the game for many hours before with no issues. I'm at a loss of what could be the cause of this issue.

Game Version:
Steam Public
Platform:
Windows

How would you rate the customer service you received?

Satisfaction mark by Voltoth 6 years ago

Add a comment about quality of support you received (optional):

Avatar
anonymous
  • Completed - Resolved
Avatar
Stefan Furcht Programmer
  • Completed - Resolved

Thanks for keeping us updated.

I am very happy to see you back in the game!


This Windows update is for the Flash Player and the game does not use any Flash, so this _should_ be unrelated.

The issue you did run into seems to be very system sepcific and I doubt there are other users which run into this.

At least we got no related reports.


Even if you are programmer, you keep dealing with black boxes which allow no insight and only limitted control.

The Windows operating system is such a black box and we can not really know which screw got turned fixing this strange file stream sharing violation, but seems what ever locked Options.txt did finally stop doing so.
I highly supsect an internal Wwindows issue causing this problem.

I am just happy it stopped and I hope it will never come back so you can keep playing.

However let us know if you encounter any issues with the game in future.


I wish you fun playing!
Cheers

Avatar
Voltoth

Just a really random update, after finishing up a windows update last night and seeing if I could play today, whatever issue I had seems to be completely gone. The game now runs buttery smooth and for no reason. It's very strange indeed.


I have included my log files to see if this could shed some light on the issue for other users but I have no idea. It doesn't make any sense to me but I'm not a programmer. Still, thanks for all of your efforts in trying to fix this. Hopefully the answers become clear from the logs.


output_log.txt

Options.txt


Just in case it's relevant, the Windows Update was (KB4051613)

Avatar
Stefan Furcht Programmer

Thanks you for the kind words, we worked hard to make this game a reality.
But it's a shame to see someone who has all the required specs unable to play the game.

I hope we'll get this sorted soon but this issue looks extremely strange.

Avatar
Voltoth

Ah I see, my mistake then. I hope it works as the unexpected side effect you mentioned by fixing a Unity quirk. I really miss being able to play this game. The original dungeon keeper still has quite a pull on me, so much so that I'm actually starting to play it again however, something more ... recent is always nice. Especially the game you guys and gals masterfully crafted. It really gets it.


Also, Richard Ridings was so on point with the narration.

Avatar
Stefan Furcht Programmer

Just in case it was misleading, the game is closing correctly and the end of the log looks like a normal exit.

It is just the case that this exception occurs during loading which then causes the game to force quit with an error dialogue.

The problem I was mentioning is about closing file streams, because if I file stream to a file is not correctly closed before a new write attempt to the same file happens, then this error you encounter would occur.

But we double checked the the file streams are closed on our side correctly, but it might be an oddity of Unitys special custom version of the Mono runtime, which might break the standard here.

If this unlikely guess would be true, we could indeed have fixed it by using the standard way to close the file streams rather than calling "close()" manually even if both should do the exact same thing.

I not want to get even more technical but in with a small chance we did run into an odd Unity bug, which we might circumvent with the small change we did.

Fingers crossed, but the likelyhood for this is small and I just hope it helps to get you back to play.

Avatar
Voltoth

I will give it a try and yeah, I didn't see any end of statement in the output_log either. While I'm not familiar with Unity coding, I do dabble with LUA and it seemed strange to me that the code was not purged before exiting.


As for why it flags as being closed manually, maybe because the error throws up a dialog box with only one option to exit the game? That would be my only guess as I haven't had to force close it at all.


Fingers crossed for the new patch being just the switch needed to turn the game back to a working state (for whatever reason). I will let you know either way though.


I'm sorry that we weren't able to figure it out but thanks for at least trying. Some things are just beyond our control with the interactions of various programs having unforeseen effects.

Avatar
Stefan Furcht Programmer

Unfortunately we are running out of ideas what could potentially causing it.

A very technical note:

The only thing we found strange in code is that the writing stream was closed manually by code rather than wrapping it in a using-statement which calls Dispose, but both _should_ be sementically the same. (Only a programmer would understand this)
It might be that in Unitys Mono (C# runtime) version this is not the same, which would be against the C# standard but we are now fishing in the dark, this would be unlikely and why would it only impact just you?

However we changed it now to use the most standard way to make sure the file stream is correctly closed after each write and there is a tiny chance that this change has an impact on his problem.

We are releasing a new minor patch very soon (expect it some time next week).

I just hope this patch brings you back to play the game, but unfortunately it's not unlikely that nothing we changed has any impact on this particular issue.

However I would say give it a try and let us know if it works again, once this patch is out.


I am sorry that we are unable to help better in this case, but this seems to be a very rare system specific issue.

Thank you for trying so many things though.

Avatar
Voltoth

I'm not sure exactly when the problem started as it has been quite some time since I actually played the game last, however, I noticed it when trying to start the game up last week. (The same date as this bug report)


Nothing special has happened to my system since the last time I played and now, aside from windows updates. The only software I have installed since is some other games already in my steam library. It was working fine with Heart of Gold, the last time I played it so I'm not sure what has changed since then and now.


I have attempted to verify all my files on steam and they all come back as fine. (According to that anyway)

Avatar
Stefan Furcht Programmer

Yes it is exactly the same issue at the exact same place.

And the most mysterious thing is, that this is write access number 4 after 3 previously successful write accesses to the same file.

Like if something would only allow us to write the same file thrice in a sequence and then lock it away.
(This is why we suspected AV software but you already removed this potential cause)

When did the problem start to occur?
Did anything special happen in between it working and when it broke?
Did you change anything on your system in this time, or installed any new software?

Did it happen after a Patch of the game?

In case you didn't do it yet, can you verify your steam files, to make sure it is not Steam which is actually stuck updating the file during game start.
Here is how to do this: https://support.steampowered.com/kb_article.php?ref=2037-QEUH-3335