TheGameCreators / GameGuruRepo

The GameGuru Repository For Community Collaboration
http://www.game-guru.com
137 stars 56 forks source link

Support special characters in the filepath and text display (using wide character/unicode) #3217

Open AdamecSK opened 2 years ago

AdamecSK commented 2 years ago

Hello! I have a problem with 3D Objects. When I try add 3D object via "3D import object", then show me this: image

Before it worked when I add some 3D Object and now it's didn't work..

GraPhiX-Guru commented 2 years ago

try renaming the file dumbell.obj

AdamecSK commented 2 years ago

Nothing... still didn't work

ZakJudges commented 2 years ago

Hi @AdamecSK, would you be able to send me the model you are experiencing the issue with? That would allow me to reproduce and find the cause :) My email address is zak@thegamecreators.com

ZakJudges commented 2 years ago

@AdamecSK I have received the model, thanks! I was able to import it without any issues. My guess is that the 'č' character in the filepath is causing the issue. Could you try move the dumbbell object to the 'Objekty' folder and out of the 'činky' folder, and see if that sorts the issue for you? Thanks :)

AdamecSK commented 2 years ago

Yea, it works! Thank you very much! :) This didn't make sense to me :D thank you

ZakJudges commented 2 years ago

@LeeBamberTGC I tried changing the windows file dialog to return wchar_t* instead of char*, but there is a lot of code following that assumes a char* type, and hence a lot that would need changed. Any ideas on a quicker solution? Thanks :)

LeeBamberTGC commented 2 years ago

@ZakJudges No quick solution here, I suspect we need to overhaul a lot of text handling to provide proper support here. Assign to me as I might have some code laying around which solved this many moons ago for a quick fix :)