OpenLoco icon indicating copy to clipboard operation
OpenLoco copied to clipboard

ios_base::failbit set: iostream stream error (again)

Open FenderBender2 opened this issue 1 year ago • 11 comments

Version information:

  • Platform: Windows 10
  • Version: 23.10
  • Build/commit: d980351f

Describe the bug Getting this error on startup with the latest release. I have Locomotion installed which is from an original CD from 2004. OpenLoco does not prompt me for a location (is this detected automatically?).

To Reproduce Double-click OpenLoco.exe

Expected behaviour I don't know what the next step should be. The program is a faller at the first.

Screenshots I only get a DOS window with the build number and the error line in red.

FenderBender2 avatar Oct 26 '23 19:10 FenderBender2

Could you post the full error here? Thanks

AaronVanGeffen avatar Oct 27 '23 00:10 AaronVanGeffen

Hi Aaron. Error is

OpenLoco, v23.10 (d980351f on master) Exception: ios_base::failbit set: iostream stream error

FenderBender2 avatar Oct 27 '23 06:10 FenderBender2

That doesn't look like the full error. I imagine it would also return a line indicating what file could not be read. Are you omitting anything? You can substitute parts like your username for anonymity, of course.

AaronVanGeffen avatar Oct 27 '23 06:10 AaronVanGeffen

Theres nothing more than that. That error appears in a DOS box, and there is a pop-up dialog with the Exception error in it.

Is there something I've missed in the installation? I have a Locomotion folder within an Atari folder. I have added an OpenLoco folder to Atari, and I'm running the exe from there.

image

image

Could it have anything to do with the original Loco.exe requiring a CD to be present?

FenderBender2 avatar Oct 27 '23 07:10 FenderBender2

Thats strange. I used OpenLauncher to download version 21.04, and it worked whan I tried that. Now when I go back to 23.10 that also works!

FenderBender2 avatar Oct 27 '23 07:10 FenderBender2

Hi Aaron, Thanks for your help on this. Its now working great on my ulta-wide monitor :).

And thanks for OpenLoco! 👍

FenderBender2 avatar Oct 27 '23 07:10 FenderBender2

Thanks for trying an older version to see if that helped.

Thats strange. I used OpenLauncher to download version 21.04, and it worked whan I tried that. Now when I go back to 23.10 that also works!

This does sound really strange. Perhaps that means the user/config folder isn't created properly under some circumstances. I suppose this needs some investigating to see if we can reproduce it though.

In the mean time, glad you got the game to work! I hope you have fun playing again.

AaronVanGeffen avatar Oct 27 '23 09:10 AaronVanGeffen

Is it possible that this only happens when a PC has no previous installations of OpenLoco?

FenderBender2 avatar Oct 27 '23 09:10 FenderBender2

That is what I was thinking, yes. But I can't seem to (quickly) reproduce it on my Mac. Perhaps it's Windows-specific?

AaronVanGeffen avatar Oct 27 '23 10:10 AaronVanGeffen

Can you run it in a Windows VM? :)

FenderBender2 avatar Oct 27 '23 10:10 FenderBender2

Sure, but I do not have a Windows VM at hand, either. I'm on holiday, so don't have access to the usual stuff.

AaronVanGeffen avatar Oct 27 '23 10:10 AaronVanGeffen