Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Dark GDK / [Question] I Made my game. Now What!?

Author
Message
vitinho444
14
Years of Service
User Offline
Joined: 12th Oct 2010
Location:
Posted: 23rd Jan 2011 11:48
Hey guys, so i made my second game in c++ and DarkGDK.

But now i wanna share it with my friends.

1- I build it and i go to Release folder and its not there..
2- How can i make the stand alone .exe?

3- Do i need to share the .exe with the "GFX" Folder (where i got the images)

Learning C++
VB6 Advanced: 4/5
VB.NET Advanced: 4/5
Hassan
15
Years of Service
User Offline
Joined: 4th May 2009
Location: <script> alert(1); </script>
Posted: 23rd Jan 2011 12:44
1- you either didn't build it in release mode, or you was looking in the wrong place
2- the standalone exe is the one generated after a release build
3- yes, the media file(s) must be in the same directory as the exe

and also keep in mind that, if you want someone else to run this application, he will need to install the DirectX redistributable and VC++ redistributable, you can find them via google, some people might think that it's stupid to have someone download and install all that just to run the game but actually, all games do that, but usually the redistibutables ships with the game, and all are installed in 1 installer rather than 3

vitinho444
14
Years of Service
User Offline
Joined: 12th Oct 2010
Location:
Posted: 23rd Jan 2011 13:04
but when i change debug to release it says an error that i dont have permission blablabla..

if you want i post here the error

ERROR RELEASE BUILD:
Unhandled exception at 0x00000bba in FlyingAlienBananas.exe: 0xC0000005: Access violation reading location 0x00000bba.

Learning C++
VB6 Advanced: 4/5
VB.NET Advanced: 4/5
Hassan
15
Years of Service
User Offline
Joined: 4th May 2009
Location: <script> alert(1); </script>
Posted: 23rd Jan 2011 16:56 Edited at: 23rd Jan 2011 16:57
that means you did something wrong in your code

if you don't know where the bug is, you could put breakpoints on some sentences, and track down the place where the exception occurs, then, either fix it or show us some code if you're lost

vitinho444
14
Years of Service
User Offline
Joined: 12th Oct 2010
Location:
Posted: 23rd Jan 2011 17:30
break points?
like what?

Learning C++
VB6 Advanced: 4/5
VB.NET Advanced: 4/5
Hassan
15
Years of Service
User Offline
Joined: 4th May 2009
Location: <script> alert(1); </script>
Posted: 23rd Jan 2011 17:46 Edited at: 23rd Jan 2011 17:47
that's a VS feature, when you click somewhere in the white space to the left of the code (next to line number), you place a breakpoint there, when your programs runs over this point, it will stop, you can view debug info and stuff at this time, but at the moment, what will be more important is to see where it breaks, so you just follow breakpoints untill the program shows the error, then you will find the line where the exception happened, this is a very easy way to debug your applications

or simply show us some code

vitinho444
14
Years of Service
User Offline
Joined: 12th Oct 2010
Location:
Posted: 23rd Jan 2011 18:21
aa.. i will try that

can you add me on MSN? its better instant messages.. xD

Learning C++
VB6 Advanced: 4/5
VB.NET Advanced: 4/5
vitinho444
14
Years of Service
User Offline
Joined: 12th Oct 2010
Location:
Posted: 23rd Jan 2011 18:28
I FOUND IT

while ( LoopGDK() )
{
//ITs HERE>
game();

Learning C++
VB6 Advanced: 4/5
VB.NET Advanced: 4/5
Hassan
15
Years of Service
User Offline
Joined: 4th May 2009
Location: <script> alert(1); </script>
Posted: 23rd Jan 2011 19:09
yeah, but i can't figure out what is inside game() , go to that function and add breakpoints inside it, and see which line is breaking

vitinho444
14
Years of Service
User Offline
Joined: 12th Oct 2010
Location:
Posted: 23rd Jan 2011 20:53
ok ok thanks

Learning C++
VB6 Advanced: 4/5
VB.NET Advanced: 4/5
vitinho444
14
Years of Service
User Offline
Joined: 12th Oct 2010
Location:
Posted: 23rd Jan 2011 20:57
aaa.. hey so.. i add the break points and it just point to game ()...

what i do?

Learning C++
VB6 Advanced: 4/5
VB.NET Advanced: 4/5
Hassan
15
Years of Service
User Offline
Joined: 4th May 2009
Location: <script> alert(1); </script>
Posted: 24th Jan 2011 12:49
ah as i said, inside the function's (game()) body, or you know what, add a break point at the line "game ();", when it breaks, keep pressing F10 till you find the broken line

vitinho444
14
Years of Service
User Offline
Joined: 12th Oct 2010
Location:
Posted: 25th Jan 2011 15:11
i found it:



PS: The source is from DarkInvaders project.
I change somethings and the GFX, etc etc...
Please help!

Learning C++
VB6 Advanced: 4/5
VB.NET Advanced: 4/5
Hassan
15
Years of Service
User Offline
Joined: 4th May 2009
Location: <script> alert(1); </script>
Posted: 25th Jan 2011 15:40
go to gameSetup function body and start debugging there..it is not that hard is it?

vitinho444
14
Years of Service
User Offline
Joined: 12th Oct 2010
Location:
Posted: 25th Jan 2011 21:40
i found the bug xD

thanks for the help now it works

im gonna credit you


do u know if i can "earn money" with my games? (of course i wont for now... but i just wanna know if its legal )

Learning C++
VB6 Advanced: 4/5
VB.NET Advanced: 4/5
Bran flakes91093
16
Years of Service
User Offline
Joined: 13th Sep 2008
Location: Crazy Land
Posted: 26th Jan 2011 03:15 Edited at: 26th Jan 2011 03:16
If you buy the license for DarkGDK, and you own all of the media you use in your game (or get/buy permission to use it), you will be able to sell it legally.

“C++ : Where friends have access to your private members.”
-Gavin Russell Baker
vitinho444
14
Years of Service
User Offline
Joined: 12th Oct 2010
Location:
Posted: 26th Jan 2011 16:00 Edited at: 26th Jan 2011 16:03
damn.. i need to pay for DarkGDK?
Another question: If i buy this license, what they give to me special? (beside the permission to sell the games)

kk... thanks for answer

Learning C++
VB6 Advanced: 4/5
VB.NET Advanced: 4/5
Bran flakes91093
16
Years of Service
User Offline
Joined: 13th Sep 2008
Location: Crazy Land
Posted: 26th Jan 2011 17:14
The license is for selling your games commercially. You get the privilege when you buy the license, nothing special.

“C++ : Where friends have access to your private members.”
-Gavin Russell Baker
vitinho444
14
Years of Service
User Offline
Joined: 12th Oct 2010
Location:
Posted: 28th Jan 2011 16:01
oh.. they could give some special gifts and stuff.. xD

Thanks

Learning C++
VB6 Advanced: 4/5
VB.NET Advanced: 4/5
haliop
User Banned
Posted: 30th Jan 2011 14:41
Quote: "oh.. they could give some special gifts and stuff.. xD"


they gave you DarkGDK didnt they?
hehehehe

the lisence costs 25$ the last time i watched it.
that is the best price you will find on the entire web to Game Kit.

ofcourse there are some oters and others for free , but GDK is pretty damn good , simple and very easy to understand , if thats not a gift already.. i dont know what is.

Login to post a reply

Server time is: 2024-11-19 14:33:06
Your offset time is: 2024-11-19 14:33:06