Filename problem in LoadMesh and LoadAnimMesh

Archives Forums/Blitz3D Bug Reports/Filename problem in LoadMesh and LoadAnimMesh

Mikele(Posted 2006) [#1]
Looks like in 1.93 filename parameter in LoadMesh and LoadAnimMesh is case sensitive. Run this:


Graphics3D 640,480,0,2
SetBuffer BackBuffer()
file$ = "test.b3d"
;file$ = Upper$(file$)
mesh = LoadMesh (file$)
If mesh
Text 0,0,"ok"
Else
Text 0,0,"error"
EndIf
WaitKey

and when i uncomment fourth line i get "error".

In 1.91 I have always "ok".

This only happen with LoadMesh and LoadAnimMesh. When I use LoadTexture, LoadSound, Load3dSound and LoadImage everything works.

I tested this on my both machines - desktop (WindowsXP Pro SP2) and notebook (WindowsXP Home Ed SP2).


Stu_ovine(Posted 2006) [#2]
Ive noticed that if the filename contains ANY uppercase it seems to cause a problem.

i.e. File on disk is called "test.B3D" and you load LoadMesh(test.B3D") it still does not load.

Quick fix is to loadMesh(lower("test.B3D")) - loads regardless of the filename on disk.


John Pickford(Posted 2006) [#3]
Doh! Just hit this same bug.

I'll use that solution.


Mikele(Posted 2006) [#4]
>OvineByDesign
Thanks for solution.

But bug is bug ;)


Ching(Posted 2006) [#5]
Glad to see this got raised, personally I got so fed up with the update I went on a bender and I've only just sobered up.


big10p(Posted 2006) [#6]
There's a 1.94 update that fixes this, available now.