Solution: Put in the full path!
Lame? I know I know - it doesn't change to the directory you're working in in all circumstances. I haven't got it nailed down exactly the rule - I THINK it has to do with how the editor behind the scenes is using a temp directory while building - so the Current directory isn't where you think it should be.
I simply do this in all my test apps (as thats all I'm doing so far):
`----TOP--------
GLOBAL ROOT$ ` or path or dir whatever
ROOT$="e:\files\media\"
` blah blah
load object root$ + "xfiles\myxmodel.x" ` or whatever
This technique is simple - I know - but it works and this way all you have to do is comment out the root$="e:\files\media\" in your final build providing the media and file structure is the same as it was... Or as your code looked - drop it all together because your media files are in the same dir as your program. When you click on your program's icon or launch from explorer it will set that directory as the working directory. Note Window shortcuts and "pif" (program information Files...basically glorified shortcut) can be modified so the working directory is not like you'd think but thats another matter - and I'm sure you can see what I mean if you right click properties of any shortcut on your desktop
-=/Jaze/=-