I have visual express C++ 2008 and I can build my game in debug mode and it works fine.
But when I build it in release mode, the collision detection doesn't work.
ANY help would be GREATLY appreciated, as this is the only thing keeping me from releasing my new game.
Building Debug vs. Release
Moderator: Coders of Rage
-
- Chaos Rift Regular
- Posts: 198
- Joined: Thu Mar 26, 2009 8:42 pm
- Current Project: My Engine
- Programming Language of Choice: C++
Building Debug vs. Release
My first game: http://donsvoice.com/randomdever/Duck%2 ... 01.0.0.zip
My second game: http://donsvoice.com/randomdever/Space%20Invaders.zip
My third game: http://donsvoice.com/randomdever/BreakOut!.zip
My second game: http://donsvoice.com/randomdever/Space%20Invaders.zip
My third game: http://donsvoice.com/randomdever/BreakOut!.zip
- superLED
- Chaos Rift Junior
- Posts: 303
- Joined: Sun Nov 21, 2010 10:56 am
- Current Project: Engine
- Favorite Gaming Platforms: N64
- Programming Language of Choice: C++, PHP
- Location: Norway
Re: Building Debug vs. Release
Make sure you have ALL the files in the release folder, as you have in your debug folder.
And make sure you have the same settings for both debug and release when building.
And make sure that all the files are updated. If you have a file where you "draw the map", maybe this file is out of date, and is not adding your solid tiles.
And make sure you have the same settings for both debug and release when building.
And make sure that all the files are updated. If you have a file where you "draw the map", maybe this file is out of date, and is not adding your solid tiles.
- bbguimaraes
- Chaos Rift Junior
- Posts: 294
- Joined: Wed Apr 11, 2012 4:34 pm
- Programming Language of Choice: c++
- Location: Brazil
- Contact:
Re: Building Debug vs. Release
Also, I've been told that Visual Studio has the habbit of initializing variables to you, but only on Debug mode (though I can't confirm that, as I don't use it). So, when you compile and run it on Release, some weird events start happening because you forgot to initialize some of them.
-
- Chaos Rift Regular
- Posts: 198
- Joined: Thu Mar 26, 2009 8:42 pm
- Current Project: My Engine
- Programming Language of Choice: C++
Re: Building Debug vs. Release
Well so far I have learned:
In The project settings->c++->optimization tab make sure there is no optimization. Because it FAILS!
In The project settings->c++->optimization tab make sure there is no optimization. Because it FAILS!
My first game: http://donsvoice.com/randomdever/Duck%2 ... 01.0.0.zip
My second game: http://donsvoice.com/randomdever/Space%20Invaders.zip
My third game: http://donsvoice.com/randomdever/BreakOut!.zip
My second game: http://donsvoice.com/randomdever/Space%20Invaders.zip
My third game: http://donsvoice.com/randomdever/BreakOut!.zip
-
- Chaos Rift Regular
- Posts: 198
- Joined: Thu Mar 26, 2009 8:42 pm
- Current Project: My Engine
- Programming Language of Choice: C++
Re: Building Debug vs. Release
I fixed it. Thanks to superLED.
The Second thing that was causing collision to fail, was Under Project->Properties->C/C++->Code Generation->Basic Runtime Checks Make sure it is 'Both (/RTC1, equiv. to /RTCsu)' or It will, in typical Microsoft fashion, fail epicly.
Expect a post about the new game soon(1 hour or less).
The Second thing that was causing collision to fail, was Under Project->Properties->C/C++->Code Generation->Basic Runtime Checks Make sure it is 'Both (/RTC1, equiv. to /RTCsu)' or It will, in typical Microsoft fashion, fail epicly.
Expect a post about the new game soon(1 hour or less).
My first game: http://donsvoice.com/randomdever/Duck%2 ... 01.0.0.zip
My second game: http://donsvoice.com/randomdever/Space%20Invaders.zip
My third game: http://donsvoice.com/randomdever/BreakOut!.zip
My second game: http://donsvoice.com/randomdever/Space%20Invaders.zip
My third game: http://donsvoice.com/randomdever/BreakOut!.zip
-
- Chaos Rift Regular
- Posts: 198
- Joined: Thu Mar 26, 2009 8:42 pm
- Current Project: My Engine
- Programming Language of Choice: C++
Re: Building Debug vs. Release
It is done. Here's the link:
http://donsvoice.com/randomdever/BreakOut!.zip
http://donsvoice.com/randomdever/BreakOut!.zip
My first game: http://donsvoice.com/randomdever/Duck%2 ... 01.0.0.zip
My second game: http://donsvoice.com/randomdever/Space%20Invaders.zip
My third game: http://donsvoice.com/randomdever/BreakOut!.zip
My second game: http://donsvoice.com/randomdever/Space%20Invaders.zip
My third game: http://donsvoice.com/randomdever/BreakOut!.zip
- Falco Girgis
- Elysian Shadows Team
- Posts: 10294
- Joined: Thu May 20, 2004 2:04 pm
- Current Project: Elysian Shadows
- Favorite Gaming Platforms: Dreamcast, SNES, NES
- Programming Language of Choice: C/++
- Location: Studio Vorbis, AL
- Contact:
Re: Building Debug vs. Release
Son, you should really back off the hating...RandomDever wrote:I fixed it. Thanks to superLED.
The Second thing that was causing collision to fail, was Under Project->Properties->C/C++->Code Generation->Basic Runtime Checks Make sure it is 'Both (/RTC1, equiv. to /RTCsu)' or It will, in typical Microsoft fashion, fail epicly.
Expect a post about the new game soon(1 hour or less).
If the "runtime checks" fixed anything, it's because you made a mistake in your code. It isn't magic. It checks for errors that you have made as a programmer. Visual Studio is probably the most powerful compiler that I have ever used.
Your errors have nothing to do with Visual Studio and everything to do with your code.
- TheBuzzSaw
- Chaos Rift Junior
- Posts: 310
- Joined: Wed Dec 02, 2009 3:55 pm
- Current Project: Paroxysm
- Favorite Gaming Platforms: PC
- Programming Language of Choice: C++
- Contact:
Re: Building Debug vs. Release
Falco, do not forget: in the web development world, the relationship is reversed. Everyone can and does code however they want, and they expect the browsers to adjust to them. Browsers are expected to work with malformed HTML and inconsistent JavaScript (filled with errors), but it is NEVER THE CODER'S FAULT.
- bbguimaraes
- Chaos Rift Junior
- Posts: 294
- Joined: Wed Apr 11, 2012 4:34 pm
- Programming Language of Choice: c++
- Location: Brazil
- Contact:
Re: Building Debug vs. Release
That reminds me of programmerinprogress' signature:
programmerinprogress wrote:I think I can program pretty well, it's my compiler that needs convincing!