Page 3 of 4

Re: New to game programming

Posted: Tue Mar 23, 2010 8:36 am
by MrDeathNote
Avishaiozeri wrote:The links you'v sent are very helpful! thanks. But i have one problem. I'm using c++ now with the visual c++ express, and although its good, i'v sent one of my programs to my friend, and he couldn't run it! i'v read on the internet that for running programs that were developed in visual c++ you need to download some software, that i'v noticed that most of the games aoutomatclly install. It may say that companys use it, but its really annoying! does dev ++ has the same problem? because if it doesn't, i think i'll start using it. wich of these are better?
When you say you sent it too a friend, did you send the whole project or just the .exe file?What kind of a program was it, was it plain c++ or did it use SDL? Did he compile it, if so what error did he get? He may need to install the c++ runtime to run the program, but with a few more details i could give you a better answer. Also, IDE's are a matter of choice, if your comfortable using Visual Studio then use that. I personnaly prefer VS but it's really up to you.

Re: New to game programming

Posted: Tue Mar 23, 2010 12:38 pm
by Avishaiozeri
VS is good. But i'v sent the .EXE file, that the compiler produced, to my friend, and it didn't work :x , i didn't use sdl,just C++ codes , my practice as a beginner. you now, like simple Guess my number games just for practice... My friend said the error said :
"This application has failed to start because the application configuration is incorrect. Reinstalling the application may fix this problem." :nono:
i think you need to install some software from microsoft, because i'v noticed that some games i'v installed, automaticlly installed that program... Does it worth the effort? Couldn't i just use some other IDE? :|

Re: New to game programming

Posted: Tue Mar 23, 2010 12:59 pm
by hurstshifter
Avishaiozeri wrote:VS is good. But i'v sent the .EXE file, that the compiler produced, to my friend, and it didn't work :x , i didn't use sdl,just C++ codes , my practice as a beginner. you now, like simple Guess my number games just for practice... My friend said the error said :
"This application has failed to start because the application configuration is incorrect. Reinstalling the application may fix this problem." :nono:
i think you need to install some software from microsoft, because i'v noticed that some games i'v installed, automaticlly installed that program... Does it worth the effort? Couldn't i just use some other IDE? :|
Was this a Debug or Release build? I believe if you built it in Debug state it includes a lot of debugging configuration within the .exe and you need visual studio or at least MS C++ Redistibutable for it to run.

Re: New to game programming

Posted: Tue Mar 23, 2010 1:58 pm
by Avishaiozeri
Ahhh, now i understand! thanks! i didn't even know theres a diffrence between debug compile and regular build...

edited: i'v tried building it, and there were an error!
"Project : error PRJ0003 : Error spawning 'cmd.exe'"
What does it mean??

Re: New to game programming

Posted: Tue Mar 23, 2010 6:17 pm
by MrDeathNote
Avishaiozeri wrote:Ahhh, now i understand! thanks! i didn't even know theres a diffrence between debug compile and regular build...

edited: i'v tried building it, and there were an error!
"Project : error PRJ0003 : Error spawning 'cmd.exe'"
What does it mean??
I found a good post after about 30 seconds googling lol, http://social.msdn.microsoft.com/Forums ... dd10e1d745, see if this helps.

Re: New to game programming

Posted: Tue Mar 23, 2010 6:52 pm
by mv2112
hurstshifter wrote:
Avishaiozeri wrote:VS is good. But i'v sent the .EXE file, that the compiler produced, to my friend, and it didn't work :x , i didn't use sdl,just C++ codes , my practice as a beginner. you now, like simple Guess my number games just for practice... My friend said the error said :
"This application has failed to start because the application configuration is incorrect. Reinstalling the application may fix this problem." :nono:
i think you need to install some software from microsoft, because i'v noticed that some games i'v installed, automaticlly installed that program... Does it worth the effort? Couldn't i just use some other IDE? :|
Was this a Debug or Release build? I believe if you built it in Debug state it includes a lot of debugging configuration within the .exe and you need visual studio or at least MS C++ Redistibutable for it to run.
LOL :oops: ,
i better rebuild my project in Release mode lol.

Re: New to game programming

Posted: Wed Mar 24, 2010 3:42 am
by Avishaiozeri
MrDeathNote wrote:
Avishaiozeri wrote:Ahhh, now i understand! thanks! i didn't even know theres a diffrence between debug compile and regular build...

edited: i'v tried building it, and there were an error!
"Project : error PRJ0003 : Error spawning 'cmd.exe'"
What does it mean??
I found a good post after about 30 seconds googling lol, http://social.msdn.microsoft.com/Forums ... dd10e1d745, see if this helps.
Thanks, i think i got it. i'll try what it says, hope it'll work!
mv2112 wrote:
hurstshifter wrote:
Avishaiozeri wrote:VS is good. But i'v sent the .EXE file, that the compiler produced, to my friend, and it didn't work :x , i didn't use sdl,just C++ codes , my practice as a beginner. you now, like simple Guess my number games just for practice... My friend said the error said :
"This application has failed to start because the application configuration is incorrect. Reinstalling the application may fix this problem." :nono:
i think you need to install some software from microsoft, because i'v noticed that some games i'v installed, automaticlly installed that program... Does it worth the effort? Couldn't i just use some other IDE? :|
Was this a Debug or Release build? I believe if you built it in Debug state it includes a lot of debugging configuration within the .exe and you need visual studio or at least MS C++ Redistibutable for it to run.
LOL :oops: ,
i better rebuild my project in Release mode lol.
lol :lol:


edited: It worked! build with no errors! but when i do 'compile' i cant find the .EXE file preduced... Normally its in the debug folder, because i debug it. but now when i'v built it, i cant find it! someone knows where can it be? (in visual c++ 2008 express).
edited again: I found the problem, i did it wrong. now i'v built it for release, and found it! now i'll check if it'll solve the problem. (that i cant run it in other computers)

Re: New to game programming

Posted: Wed Mar 24, 2010 5:12 am
by Avishaiozeri
(Sorry for the double post)
It worked :) ! the program runs okay on my friends computer! thank you all for your help! :mrgreen:

Re: New to game programming

Posted: Wed Mar 24, 2010 5:47 am
by Avishaiozeri
MrDeathNote , Wow man! i saw the game you made - on youtube! b-e-a-utiful!

Re: New to game programming

Posted: Wed Mar 24, 2010 5:56 am
by MrDeathNote
Avishaiozeri wrote:MrDeathNote , Wow man! i saw the game you made - on youtube! b-e-a-utiful!!!
Lol thanks man, i could have done alot more but i only had 10 weeks, and just in my spare time i managed to write the first build of my map editor, the game and an animation previewer so i was pretty happy :) .

Re: New to game programming

Posted: Wed Mar 24, 2010 8:20 am
by Avishaiozeri
MrDeathNote wrote:
Avishaiozeri wrote:MrDeathNote , Wow man! i saw the game you made - on youtube! b-e-a-utiful!!!
Lol thanks man, i could have done alot more but i only had 10 weeks, and just in my spare time i managed to write the first build of my map editor, the game and an animation previewer so i was pretty happy :) .
Nice, i saw your editor too, he's good!
And how much code you wrote for this game! more then a 1000 lines! its a long way for me to go until i could do such things. good luck on your other projects! and thanks for all the help!

Re: New to game programming

Posted: Wed Mar 24, 2010 11:27 am
by MrDeathNote
Avishaiozeri wrote:
MrDeathNote wrote:
Avishaiozeri wrote:MrDeathNote , Wow man! i saw the game you made - on youtube! b-e-a-utiful!!!
Lol thanks man, i could have done alot more but i only had 10 weeks, and just in my spare time i managed to write the first build of my map editor, the game and an animation previewer so i was pretty happy :) .
Nice, i saw your editor too, he's good!
And how much code you wrote for this game! more then a 1000 lines! its a long way for me to go until i could do such things. good luck on your other projects! and thanks for all the help!
No problem, and together with the editor it was more like 4000 - 5000 lines of code lol.

Re: New to game programming

Posted: Wed Mar 24, 2010 11:36 am
by Avishaiozeri
Wow, thats alot of lines! Does all 2d games have so many lines?

Re: New to game programming

Posted: Wed Mar 24, 2010 11:45 am
by MrDeathNote
Avishaiozeri wrote:Wow, thats alot of lines! Does all 2d games have so many lines?
It really depends on what your trying to do, you could make pong in a few hundred lines(or less). I made the game very easy to extend which adds a lot of code that could be removed but i wanted to keep everything as generic as possible. Plus i could have hard coded all the maps instead of writing the editor which would have cut even more code but thats not how i wanted to do it.

Re: New to game programming

Posted: Wed Mar 24, 2010 1:01 pm
by Avishaiozeri
MrDeathNote wrote:
Avishaiozeri wrote:Wow, thats alot of lines! Does all 2d games have so many lines?
It really depends on what your trying to do, you could make pong in a few hundred lines(or less). I made the game very easy to extend which adds a lot of code that could be removed but i wanted to keep everything as generic as possible. Plus i could have hard coded all the maps instead of writing the editor which would have cut even more code but thats not how i wanted to do it.
So, Its really smart to do so, because it lets you expand your game in the future. I guess i need to stop asking questions and start actually learning the languages.. :) Thanks again for the help. Now, Alot of time of hard working and learning, building Tons of useless programs for practice! Here i come!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!