• Announcements

    • khawk

      Download the Game Design and Indie Game Marketing Freebook   07/19/17

      GameDev.net and CRC Press have teamed up to bring a free ebook of content curated from top titles published by CRC Press. The freebook, Practices of Game Design & Indie Game Marketing, includes chapters from The Art of Game Design: A Book of Lenses, A Practical Guide to Indie Game Marketing, and An Architectural Approach to Level Design. The GameDev.net FreeBook is relevant to game designers, developers, and those interested in learning more about the challenges in game development. We know game development can be a tough discipline and business, so we picked several chapters from CRC Press titles that we thought would be of interest to you, the GameDev.net audience, in your journey to design, develop, and market your next game. The free ebook is available through CRC Press by clicking here. The Curated Books The Art of Game Design: A Book of Lenses, Second Edition, by Jesse Schell Presents 100+ sets of questions, or different lenses, for viewing a game’s design, encompassing diverse fields such as psychology, architecture, music, film, software engineering, theme park design, mathematics, anthropology, and more. Written by one of the world's top game designers, this book describes the deepest and most fundamental principles of game design, demonstrating how tactics used in board, card, and athletic games also work in video games. It provides practical instruction on creating world-class games that will be played again and again. View it here. A Practical Guide to Indie Game Marketing, by Joel Dreskin Marketing is an essential but too frequently overlooked or minimized component of the release plan for indie games. A Practical Guide to Indie Game Marketing provides you with the tools needed to build visibility and sell your indie games. With special focus on those developers with small budgets and limited staff and resources, this book is packed with tangible recommendations and techniques that you can put to use immediately. As a seasoned professional of the indie game arena, author Joel Dreskin gives you insight into practical, real-world experiences of marketing numerous successful games and also provides stories of the failures. View it here. An Architectural Approach to Level Design This is one of the first books to integrate architectural and spatial design theory with the field of level design. The book presents architectural techniques and theories for level designers to use in their own work. It connects architecture and level design in different ways that address the practical elements of how designers construct space and the experiential elements of how and why humans interact with this space. Throughout the text, readers learn skills for spatial layout, evoking emotion through gamespaces, and creating better levels through architectural theory. View it here. Learn more and download the ebook by clicking here. Did you know? GameDev.net and CRC Press also recently teamed up to bring GDNet+ Members up to a 20% discount on all CRC Press books. Learn more about this and other benefits here.
    • khawk

      New Column: GameDev Unboxed   08/15/17

      We want to welcome our new Staff Writer,  @Jesse "Chime" Collins, to the GameDev.net team. Jesse will be writing for our new column, GameDev Unboxed, where he'll cover the latest news, topics, and events affecting indie and professional game developers. Watch for updates on the GDNet front page, or you can access the new Columns section from the Browse menu above.
    • khawk

      Indie Devs: Showcase Your Game at the Austin Game Conference   08/15/17

      Are you an indie developer interested in showcasing your game at the Austin Game Conference? GameDev.net wants to give you an opportunity. Intel Game Developer Showcase at Austin Game Conference If you haven't heard, AGC and Intel are hosting the Indie Game Developer Showcase on Wednesday, September 20th at AGC. This is an opportunity to showcase your PC game on stage. 10 finalists will be selected and face-off by pitching their PC game on stage. It's a great opportunity to get valuable feedback from the panel of judges and potentially win hardware prizes from Intel. In addition, all 10 finalists get to demo their game in the Intel booth at the AGC expo hall on September 21-22. If you're interested then you need to apply by September 1st. Apply by clicking here. If that doesn't work for you, but you're able to travel to AGC... Showcase your game in the GameDev.net booth GameDev.net will also be at AGC this year, and we're looking for an indie developer to join us in our booth on September 21-22. We'd like to showcase a GDNet member's PC game and provide you with an opportunity to attend the conference, network, and more. You'll be responsible for your travel expenses and bringing a PC with your game, but we'll provide the conference and expo pass and the booth. If you're interested in joining GameDev.net for this opportunity and can find your way to Austin then submit your application via email with information about yourself, your team, and your game to agc@gamedev.net. All submissions must be received by August 23, so don't delay!

Archived

This topic is now archived and is closed to further replies.

TythosEternal

Error stream

Recommended Posts

TythosEternal    158
I have a text stream for debugging, outputting to a file, initialized like this:
  
remove("ErrorLog.txt");
        //Removes old version of ErrorLog.txt

g_DebugText.open("ErrorLog.txt", ios::in | ios::out);	//Creates a new text file for read/write

  
Used like this:
  
void SetError(char * String)
{
    g_DebugText << String << endl;
}
  
And closed like this:
  
g_DebugText.close();
  
Normally it works fine, but suddenly, it doesn''t - I haven''t touched it. When I comment out SetError''s only line of code and output text using the << operator instead of a function call, it works. Otherwise, it just shows a blank text file. I am slowly but surely being driven insane by this problem. I''ve been debugging for two straight days, doing nothing else, and have absolutely no idea what''s going on. Help. Please. - TythosEternal PS - The older versions of the same program, with identical lines of code for the stream and the SetError function, work fine. "Who''s John Galt?"

Share this post


Link to post
Share on other sites
drslush    122
I didn''t look at your problem closely, but try hitting "Rebuild All". There is a REALLY annoying bug (feature perhaps?) that doesn''t always rebuild all code if you have it set to only compile changed source. I had a similar problem where i touched nothing and it stopped working. It had the most bizzare debug information while I was stepping through the code ;-D

Chances are this isn''t your problem, but its worth a shot.

My Lame Site

Share this post


Link to post
Share on other sites
krez    443
is the program crashing? if it is, it might help to flush the log file''s buffer (g_DebugText.flush()) after every write. this will slow it down a bit, but if the app stops before the close() at least you won''t lose stuff that was buffered but not written yet.

Share this post


Link to post
Share on other sites
TythosEternal    158
Tried the rebuild thing. If it worked, I would have puked out of sheer annoyance. I''m afraid it didn''t...

The program isn''t crashing, either. It runs fine - but something about that function is somehow clearing the stream, or preventing it from closing properly (now there''s a thought...). Of course, there''s only a SINGLE FRIGGIN'' LINE OF CODE, and goodness knows there''s not a lot wrong with it.

- TythosEternal




"Who''s John Galt?"

Share this post


Link to post
Share on other sites