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 / GDK.Net / Visual Studio 2005: Game with no console window tip

Author
Message
Mudbug
18
Years of Service
User Offline
Joined: 2nd Nov 2006
Location: Rome, GA USA
Posted: 20th Nov 2006 08:17
Do you hate having the ugly console window open when you run your game? Me too! I just realized that I could "fix" that by changing my console application to a windows application in the Application properties windows (so maybe I am a little slow, if you all knew this already ).

This is not the only way, but probably the easiest way:
1. Create console application game as normal.
2. Right-clock project and select properties
3. On the Application property tab, change output type to "Windows Application"

You can now run your game without a console windows. Yippie!

If you save this project as a template, then it's even easier.

-MudBug
CattleRustler
Retired Moderator
21
Years of Service
User Offline
Joined: 8th Aug 2003
Location: case modding at overclock.net
Posted: 20th Nov 2006 12:59
I have used a winforms project, saved as a template probably since day one of beta testing, so much so I forgot to mention it here. Good tip mudbug. I'll reiterate: "Hey everyone, console apps arent necessary for dgdk.net apps!"



APEXnow
Retired Moderator
21
Years of Service
User Offline
Joined: 15th Apr 2003
Location: On a park bench
Posted: 20th Nov 2006 13:31
Well pointed out

You may still want to consider console applications for debugging purposes for logging object creation classes and such, but whatever takes your fancy.

Paul.

James Bondo
18
Years of Service
User Offline
Joined: 12th Nov 2006
Location: Denmark
Posted: 20th Nov 2006 14:48
Yes, Console.WriteLine is nice for debugging :p

Proud member of The Unforgiven Warriors
http://www.tuwguild.com
jasuk70
21
Years of Service
User Offline
Joined: 3rd Dec 2002
Location: Hemel Hempstead
Posted: 20th Nov 2006 14:56
On a similar note, Is there a way to stop the DGDK window appearing when the project starts (After initialising) when you really are doing a Forms application?

Jas

----
"What is this talk of 'release'? Klingons do not'release' software. It escapes leaving a bloody trail of developers and quality assurance people in its wake!"
APEXnow
Retired Moderator
21
Years of Service
User Offline
Joined: 15th Apr 2003
Location: On a park bench
Posted: 20th Nov 2006 15:17
jas, there isn't at the moment, but Mike is aware of this, and I can't do nothing about it until a change to the DGDK libraries has been implemented.

Paul.

jasuk70
21
Years of Service
User Offline
Joined: 3rd Dec 2002
Location: Hemel Hempstead
Posted: 20th Nov 2006 15:20
No problem, not really much of an issue, at least I know there isnt anything I can do about it reather than I've done something wrong

Jas

----
"What is this talk of 'release'? Klingons do not'release' software. It escapes leaving a bloody trail of developers and quality assurance people in its wake!"
CattleRustler
Retired Moderator
21
Years of Service
User Offline
Joined: 8th Aug 2003
Location: case modding at overclock.net
Posted: 20th Nov 2006 15:20
Quote: "Yes, Console.WriteLine is nice for debugging "

or Debug.WriteLine, which I prefer

speaking about debugging... Not only am I (are we) coding games in OOP, in one of the best IDE's ever created (VS 2005 Pro, in my case) but for the first time since I ever touched db in any form, there is now proper STEP debugging, with locals, autos, threads, stack info etc etc etc.

Finally, game coding has all the power and tools that I use daily for professional Applications programming.

I am working on Backgammon atm, making nice use of Generics and customs classes (/me dances)



Mudbug
18
Years of Service
User Offline
Joined: 2nd Nov 2006
Location: Rome, GA USA
Posted: 20th Nov 2006 15:30
Yes, It's all good! (BTW: Awsome job, Apex!)

I prefer step debugging (its really really nice to be able to do this with DarkBasic engine), and usually only resort to logging as a last resort, or to save log files to disk when an application is misbehaving.

-MudBug
APEXnow
Retired Moderator
21
Years of Service
User Offline
Joined: 15th Apr 2003
Location: On a park bench
Posted: 20th Nov 2006 15:50
Ty, but seriously, lets not forget the people who brought us the engine in the first place

Paul.

Niels Henriksen
20
Years of Service
User Offline
Joined: 27th Sep 2004
Location: Behind you breathing heavely
Posted: 6th Dec 2006 17:23
CattleRustler > I have also just waited for being able to work in the same way as I normal are doing...

Its so perfect now... I cant get my hands down... Now Im just waiting for getting money so I can get the PRO version

--
Niels Henriksen
Working on a RPG right now
enablerbr
21
Years of Service
User Offline
Joined: 22nd Jun 2003
Location: United Kingdom
Posted: 7th Dec 2006 15:34
so you can't create from windows form application template then. only from a console template?
APEXnow
Retired Moderator
21
Years of Service
User Offline
Joined: 15th Apr 2003
Location: On a park bench
Posted: 7th Dec 2006 16:20
Both a Windows form application or a Console application can be used as a template for your DGDK.NET applications.

Paul.

enablerbr
21
Years of Service
User Offline
Joined: 22nd Jun 2003
Location: United Kingdom
Posted: 7th Dec 2006 16:21
thanks. that makes me happy.
lwatson
18
Years of Service
User Offline
Joined: 17th Nov 2006
Location: Lincoln, RI USA
Posted: 7th Dec 2006 16:59 Edited at: 7th Dec 2006 17:00
I don't know if there will be any adverse consequences but..

I crafted a new project from the console template
Set the project type to be a windows application
added all my goodies to the game loop
authenticated the app and filled in the key information


And it runs just fine without a console window popping up...

Lonnie Allen Watson
rmag.blogspot.com (blog)
APEXnow
Retired Moderator
21
Years of Service
User Offline
Joined: 15th Apr 2003
Location: On a park bench
Posted: 7th Dec 2006 17:01
Aye, that's pretty much what you can do from a Console app. You may need to ensure that you've added the Winforms DLL reference though so that the dgdkGlobals file doesn't complain when compiling.

Paul.

Login to post a reply

Server time is: 2024-11-19 10:26:43
Your offset time is: 2024-11-19 10:26:43