Search found 104 matches

by Swarmer
Mon Jan 19, 2009 2:20 am
Forum: Beginners Help
Topic: File System directory issues
Replies: 15
Views: 1630

Actually I just found out a pretty weird but simple way to do it:

Code: Select all

	char path[MAX_PATH + 1];
    GetModuleFileNameA( NULL, path, MAX_PATH + 1 );
"path" gives the full path of the exe file.
Thanks for the suggestions.
by Swarmer
Sun Jan 18, 2009 9:28 pm
Forum: Beginners Help
Topic: File System directory issues
Replies: 15
Views: 1630

That's okay, I might just make a "Set working directory" option that the user has to manually set.

Unless anyone has a better solution.
by Swarmer
Sun Jan 18, 2009 8:37 pm
Forum: Beginners Help
Topic: File System directory issues
Replies: 15
Views: 1630

I have to, that's the only valid style of entry point for a .NET program.
by Swarmer
Sun Jan 18, 2009 8:13 pm
Forum: Beginners Help
Topic: File System directory issues
Replies: 15
Views: 1630

Hm it doesn't work. The args array is empty unless I open a file. If I open a file, the only argument is the path of the file that I am opening, not the .EXE.

I am using CLR, if that makes a difference:

Code: Select all

int main(cli::array<System::String ^> ^args)
by Swarmer
Sun Jan 18, 2009 8:05 pm
Forum: Beginners Help
Topic: File System directory issues
Replies: 15
Views: 1630

EDIT: the solution could be to use the arguments passed to function main: int main(int argc, char** argv){ // argv[0] holds the name of the exe incl. path printf("%s\n",argv[0]); // argv[1] holds the name of the assosiated file incl. path if(argc > 1) printf("%s\n",argv[0]); sys...
by Swarmer
Sun Jan 18, 2009 8:03 pm
Forum: Beginners Help
Topic: File System directory issues
Replies: 15
Views: 1630

the problem he is having is this: he has assosiated a map/mesh or what ever extension with his program... let's say the program is "C:\programs\myProg\theProg.exe" and the map/mesh is "D:\map\data\theMap.3ds"... now, if he double klicks the map/mesh then the program will start, ...
by Swarmer
Sun Jan 18, 2009 6:49 pm
Forum: Beginners Help
Topic: File System directory issues
Replies: 15
Views: 1630

Actually, the only time the working directory is equal to the folder of the .exe file is when I open the .exe file directly (through Windows Explorer). I'm making a map editor, and when I try to directly open a map file (through Windows Explorer) with my program, the working directory becomes the di...
by Swarmer
Fri Jan 16, 2009 7:57 pm
Forum: Beginners Help
Topic: File System directory issues
Replies: 15
Views: 1630

File System directory issues

I am working on my game from different computers occasionally. How can I change my working directory to something relative to my project folder, not the whole computer? For example, in Computer A my working directory is: "C:\ComputerAFiles\MyProject\" In Computer B, my working directory is...
by Swarmer
Wed Dec 17, 2008 9:13 pm
Forum: Beginners Help
Topic: Animation tweening
Replies: 1
Views: 392

Animation tweening

I searched the forums a bit but couldn't find a definitive answer. How can I use or implement animation tweening so that there is a smooth transition between my animations? If I tell sydney.md2 to change from EMAT_STAND to EMAT_RUN there is an ugly jump without a subtle transition. How can I smooth ...
by Swarmer
Wed Nov 19, 2008 10:35 pm
Forum: Bug reports
Topic: [fixed]CAttributeImpl.h: Small typo in getTriangle()
Replies: 4
Views: 704

This bug is still in 1.4.2; I never added a patch for it. I'm having trouble getting everything set up. Can someone add a patch for this for me? Thanks.
by Swarmer
Sat Aug 30, 2008 11:10 pm
Forum: Beginners Help
Topic: Performance cost of drawing 3DLines
Replies: 3
Views: 367

The grid node works great! It'd be even better if it used drawVertexPrimitiveList, as hybrid suggested, but it runs good enough already. The lines farther away clump up a lot and it's just a big gray blob, so a nice option to have would be to have the lines farther spread out as they get farther fro...
by Swarmer
Sat Aug 30, 2008 4:00 pm
Forum: Beginners Help
Topic: Performance cost of drawing 3DLines
Replies: 3
Views: 367

Performance cost of drawing 3DLines

Is it bad practice for me to have the video driver draw 4000 3D Lines every iteration of rendering in a big for-loop? Is that actually as computationally expensive as it sounds? If so, is there a better way? These lines never change position. They are always in the same spot (it's just a big grid). ...
by Swarmer
Sat Aug 09, 2008 9:25 pm
Forum: Open Discussion and Dev Announcements
Topic: Switching between C++ and C#
Replies: 16
Views: 7444

Yeah I think I will :(

Now I just gotta figure out how to make Irrlicht input not interfere with winform input.
by Swarmer
Sat Aug 09, 2008 5:09 am
Forum: Open Discussion and Dev Announcements
Topic: Switching between C++ and C#
Replies: 16
Views: 7444

Gah XNA doesn't work with Visual Studio 2008. Whaaat.
by Swarmer
Sat Aug 09, 2008 4:16 am
Forum: Open Discussion and Dev Announcements
Topic: Switching between C++ and C#
Replies: 16
Views: 7444

Well, they both have their uses. C++ is great for low level stuff like the graphics engines themselves. But to make the game itself, C# is just so much more productive. If you view both languages strictly from a technical standpoint, then C++ may perform better. But if you take into account developm...