ThePentiumGuy Posted August 17, 2005 Posted August 17, 2005 Holy crap. Holy.....crap I've never had this problem before, but when I do a Mesh.loadheirarchyfromfile("Meshes/Tiny.x", other arguments), sometimes the file path gets weird. On my computer the project is loaded in the bin directory in My Documents/Visual STudio projects. And doing "Meshes/Tiny.x" loads the file from the bin directory. But on OTHER PEOPLES computers, "Meshes/Tiny.x" searches through My Documents/Meshes/Tiny,x --> as in MY DCOUMENTS (C:/documents and settings/thepentiumguy, which they don't have). The mesh I've chosen resides in the bin folder of the application, and all I've provided is the "Meshes/Tiny.x" argument, and NOT a "My Documents/blahblah" argument. What is going on? And how do you fix this? Edit: And for your information, this works on some computers (including some that aren't mine), but not others.. Thank you very much. -The Pentium Guy Quote My VB.NET Game Programming Tutorial Site (GDI+, Direct3D, Tetris [coming soon], a full RPG.... you name it!) vbprogramming.8k.com My Project (Need VB.NET Programmers) http://workspaces.gotdotnet.com/ResolutionRPG
Administrators PlausiblyDamp Posted August 17, 2005 Administrators Posted August 17, 2005 How are you and these other people starting your app? If they are running it from a shortcut then it could be setting the working directory to the My Documents folder. Rather than rely on relative paths try using the applications folder as a starting point. Quote Posting Guidelines FAQ Post Formatting Intellectuals solve problems; geniuses prevent them. -- Albert Einstein
thenerd Posted August 17, 2005 Posted August 17, 2005 Try using Application.startuppath & "\Meshes\Tiny.x" instead of just the static string. See if that works. Quote
ThePentiumGuy Posted August 17, 2005 Author Posted August 17, 2005 How are you and these other people starting your app? If they are running it from a shortcut then it could be setting the working directory to the My Documents folder. Rather than rely on relative paths try using the applications folder as a starting point. No shortcut, just the EXE. And I did try the Application.StartupPath method ...But the werid part is, a reboot fixed it all. I am so pissed. Quote My VB.NET Game Programming Tutorial Site (GDI+, Direct3D, Tetris [coming soon], a full RPG.... you name it!) vbprogramming.8k.com My Project (Need VB.NET Programmers) http://workspaces.gotdotnet.com/ResolutionRPG
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.