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.