TheForceEngine icon indicating copy to clipboard operation
TheForceEngine copied to clipboard

SDL Image fails to load files for paths with non-ascii characters

Open rjsxz opened this issue 1 year ago • 6 comments

i installed the latest version, after that i put the game data in the same folder and when i launch tfe it looks like this imagen_2024-06-10_030002989

i installed it a few months before and worked great (same version)

i am using retail files (not steam or gog)

my os is windows 11 my specs are 12gb ram, i5 1155g7 and the igpu intel iris xe my drivers and os are updated

rjsxz avatar Jun 10 '24 06:06 rjsxz

Can you please find the "the_force_engine_log.txt" file and post its contents here please? Do you have other OpenGL-based games/applications that do work? (minecraft java for example) ?

mlauss2 avatar Jul 19 '24 16:07 mlauss2

This is likely a utf8 issue - there is an issue with SDL Image + non-ascii characters in the path. I haven't looked into it yet, but most likely if you put TFE into a directory with pure ascii characters (C:\TFE\ for example), then the images will be readable again. (Someone else ran into this issue, which is why I'm aware of it now)

You can also run TFE with the -gDark commandline option to skip the menu and load directly into Dark Forces.

luciusDXL avatar Jul 19 '24 17:07 luciusDXL

Work Item (note to self): fix SDL Image + utf paths.

luciusDXL avatar Aug 17 '24 18:08 luciusDXL

hey, sorry, i almost never use github tbh, ill try what you said and tell you if it works

rjsxz avatar Aug 17 '24 20:08 rjsxz

hey, sorry, i almost never use github tbh, ill try what you said and tell you if it works

it worked, it was the name of the folder for sure, tysm.

rjsxz avatar Aug 17 '24 20:08 rjsxz

Ok, so what I will do is rename this bug and keep it open until I can look at it. Thanks for testing.

luciusDXL avatar Aug 17 '24 22:08 luciusDXL