graphics modes failing in executable
Blitz3D Forums/Blitz3D Programming/graphics modes failing in executable
| ||
Hello all, I'm trying to get a flight sim demo up for folks here (Fly DC3). I've included various graphics options on the main page- determining which modes are available and offering the choices This works fine running from the IDE, but the .exe version fails to set the new mode or returns a memory access error... same thing happens on 3 different machines of various specs... Thanks for any help |
| ||
Have you tried to run the .exe from C:/Directory rather than from C:/Program files or C:\Program Files (x86) ? I have found that sometimes in these directories, some programs cause errors (or maybe windows causes them, i don't know). Also if you use the command Graphics3d() several times, you have to recreate all the 3d entities because they seem to be deleted each time this command is used. Last edited 2012 |
| ||
that fixed it thanks, funny I'd never had that problem before, I only recently updated blitz for the sprite fix, so maybe there was somthing in there... I still have to avoid showing sprites very close up it seems to prevent major slowdown |
| ||
Something to remember: Windows 32-bit: all 32-bit programs go in C:\Program Files. 64-bit programs won't work, naturally. Windows 64-bit: all 64-bit programs go in C:\Program Files, and all 32-bit programs go in C:\Program Files (x86). Blitz3D will always create 32-bit executables, so always be sure that you're not putting it in the program folder for 64-bit applications. Make it so that if a C:\Program Files (x86) directory exists, your program goes there. |
| ||
Make it so that if a C:\Program Files (x86) directory exists, your program goes there. Try not to make any assumptions... Under Windows Vista / 7 you can look for the "ProgramFiles(x86)" environment variable for 32-bits programs, and see where it points (typically "c:\program files (x86)", but it's definitely possible that it goes somewhere else as well... Especially on a non-English version of Windows.) |
| ||
To be really safe, install it in a new directory on the main C drive, like "C:\MyGame". That way, you won't have any issues. I always install my games in "C:\Games" (previously on my laptop this was "D:\Games", but my new pc doesn't have a D drive anymore). The only stuff that goes in the default directories ("C:\Program Files" and "C:\Program Files (x86)") are real programs, like DVD-tools (eg: DVDRip), internet tools (eg: Google Chrome), my email program (Windows Live Mail), FTP-tools (FileZilla) and such other stuff. Everything else goes in a separate directory on the C-drive to prevent stability-problems, incompatibilities and alot of other issues (like needing admin-rights to save anything in those folders from within your game/program). Last edited 2012 |
| ||
To be really safe, install it in a new directory on the main C drive, like "C:\MyGame" Except that violates the Microsoft guidelines, which means that you risk future problems with new windows versions or future updates to the user access controls... |
| ||
Ahh- sorry I spoke too soon, that didn't fix the problem, I tried putting everything directly in"c:\fly", and again- altering the graphics while the program is running works fine from the IDE, but generates 'memory access error' when running the exe. version... Thanks for the general advice though... |
| ||
Except that violates the Microsoft guidelines, which means that you risk future problems with new windows versions or future updates to the user access controls... Would that also mean you simply cannot put your images, music, videos, ... in separate folders anymore in future Windows versions? Currently, my downloads, images, movies, datasheets, music all go in C:\Music, C:\Movies, ... Would that become impossible as well? Will you be forced to use your pre-installed directories to store them (like "C:\Users\PowerPC603\My Music", "C:\Users\PowerPC603\Downloads")? That would be plain stupid if you ask me. I want to have at least some control where I put my files, I hate it when everything becomes automatic and forced. I want an operating system that supports my stuff, not one that forces me to put everything in pre-designated folders that Microsoft determines for me. Last edited 2012 |