Engine3D does not support non-english characters

All bugs related to the 3D engine
User_Russian
Addict
Addict
Posts: 1443
Joined: Wed Nov 12, 2008 5:01 pm
Location: Russia

Engine3D does not support non-english characters

Post by User_Russian »

If on the way to the program, there are non English characters (for example, Russian), 3D model files are not loaded.
For example, there is such a code.

Code: Select all

Path.s = GetPathPart(ProgramFilename())
Add3DArchive(Path, #PB_3DArchive_FileSystem)
Debug LoadMesh(0, "File.mesh")
Debug LoadTexture(0, "Texture.jpg")
Or such a code.

Code: Select all

Path.s = GetPathPart(ProgramFilename())
Add3DArchive(Path, #PB_3DArchive_FileSystem)
Debug LoadMesh(0, Path+"File.mesh")
Debug LoadTexture(0, Path+"Texture.jpg")
When the program is located in a folder with only English characters (for example, "C:\MyProgram\"), functions return non-0. But if the program is in a folder with Cyrillic or other non English characters (for example "C:\НоваяПапка\"), the functions return 0.