I compiled powder toy, but it just goes blue:
output in the console:
First-chance exception at 0x001ded70 in tpt.exe: 0xC0000005: Access violation reading location 0x000004db.
The thread 'Win32 Thread' (0x1064) has exited with code -1 (0xffffffff).
The thread 'Win32 Thread' (0xe38) has exited with code -1 (0xffffffff).
The program '[2400] tpt.exe: Native' has exited with code -1 (0xffffffff).
compiler error, it must have attempted to overwrite something it shouldn't, like active memory.
EDIT: I mean, the game tried to overwrite something because it was compiled wrong. Check preprocessor, check for SSE2, and dependancies.
#ifndef DEBUG
//Get ready to catch any dodgy errors
signal(SIGSEGV, SigHandler);
signal(SIGFPE, SigHandler);
signal(SIGILL, SigHandler);
signal(SIGABRT, SigHandler);
#endif
Im not debugging, Im actually releasing, like the tutorial said.
But after commenting them, i got a VS violation warning:
Unhandled exception at 0x000ded70 in tpt.exe: 0xC0000005: Access violation reading location 0x000004db.
But it must be my own flaw. I will download the source again. Anyways, thnks for the help, if i keep getting erros i let you know :)
Edit: ok, still getting the same error. -.-
Im not really good using debug, but it shows a lot of errors, (weird, when compiling for released it showed no errors... ) like:
src\pim\Machine.cpp(6): fatal error C1083: Cannot open include file: 'simulation/Simulation.h': No such file or directory
rc\pim\Generator.cpp(4): fatal error C1083: Cannot open include file: 'Format.h': No such file or directory
1>src\Misc.cpp(5): fatal error C1083: Cannot open include file: 'regex.h': No such file or directory
desktop\tpt source\src\gui\save\LocalSaveActivity.h(3): fatal error C1083: Cannot open include file: 'Activity.h': No such file or director
desktop\tpt source\src\cat\TPTSTypes.h(6): fatal error C1083: Cannot open include file: 'gui/interface/Point.h': No such file or directory
And much more of these, like, a hundred. And its weird because i checked and they are all in the directory... wth is that?