Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

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

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
Posted
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.

Posting Guidelines FAQ Post Formatting

 

Intellectuals solve problems; geniuses prevent them.

-- Albert Einstein

Posted
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.

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

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...