• 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.


  • Content count

  • Joined

  • Last visited

Community Reputation

1646 Excellent

About suliman

  • Rank
  1. Im doing a near future global wargame where factions are fighting for control of towns and cities on a world map. I need cities to be reduced in population (from 10k to 1M inhabitants) with most old famous cities like London and New York abandoned and new empires replacing old nations like the UK and China. New empires will be affected by old populations and cultures but new religions may have risen. A region like Europe will at the start of the game have around 10 settlements only; armies move around on a global scale and each turn constitutes a season (3 months). My first idea is to have the AI:s gone bananas and tried to wipe out humanity. Releasing all nukes, spreading nanoplagues, wiping out power grids etc. This would explain why much of the old infrastructure is gone (i want the player to rebuild structures in the settlements he/she conquers). Around 10-15% of the world population survives the chaos and slowly starts to gather in some few safer settlements (this is when the game starts). Any comments on this idea? Any other idea that might be cool for the setting i need the world to be in? Thanks! Erik
  2. If i run the game exe with compatibility mode for windows 7 ticked the error is no longer present! Yay! Any way to set up visual studio 2013 so it launched the compiled exe (both for debug and release builds) in this compatibility mode (win 7)? To clearify; it works when launched from the file explorer after right-clicking and ticking the win 7 mode, I want this when running the exe from "within" visual studio 2013. Thanks for your help Erik
  3. Anyone? Ive changed some stuff but still thinks the icons are not very clear. Is it not possible to better mix a background photo and icons? Noone has any idea or tip? Thanks Erik
  4. No i will simply leave all non-POD members out of the save/load range. They will not contribute to any broken data then as far as i understand. And as I said, I dont see any viable alternative.
  5. I wasn't aware of the issue until now and now I know what members that need special handling (manual save/load). If there is a good alternative I would go for it, but right now, saving and loading each member manually is simply a "no go" for me (I would have to remake both save and load functions each time I add or change a member to any of the classes that needs to be saved/loaded to disk, which is basically all the time). And those save/load functions would be monsters to begin with (my town class has 87 members at the moment, all of them PODS).
  6. I finally found it! Thanks for your help guys! Simple custom classes (that include only PODs even if its in many layers) can be saved/loaded fine with my "load/save-section" defines. The problem is a single member: std::vector<void*> path; that I use for pathfinding. If i move that one out of the save/load range it works fine. So it's because it's not a POD? I already handle this one manually after a load but anyway to avoid the debug assertion failure? My point is it's easiler to save that class in it's entierty and then deal with the few unique members that isn't safely saved/loaded.
  7. ive deleted old files so im not mixing 2008 and 2013 versions at all. On another note; how would you save/load such structures of game objects as armies, towns, units etc. Each one litteraly has up to 60-70 members containing data about them. I cannot manually save/load each member right? This "section"-save/load is sketchy i know, but up until now i havent had any problem with it.
  8. They do contain custom classes but those contain only PODS (chars, int etc). Could it be the problem? I have around 40 members between startSave and endSave (so saving and loading each one manually is not a good idea...) and this has worked fine until i updated from visual studio 2008 to 2013. Could it be that the old version didnt care about the potential problems of this method?
  9. Ive narrowed it down but im still stuck. It's these sections below that causes the debug assertion failure. It triggers when i try to clear the list after it has been populated with armies from disk. Save armies to disk saveNum(armyList); loop2(army, armyList) fileSave(uu); endLoop Load armies from disk loadNum for (int ii = 0; ii < num; ii++){ armyList.push_back(army()); army * uu = &armyList.back(); fileLoad(theNewArmy); } Defines used in these sections (these work fine in many other places so i dont think the problem is here): #define saveNum(myList) num = myList.size(); fwrite( &num, sizeof(num), 1, f); #define loadNum fread( &num, sizeof(num),1,f); #define fileSave2(item) fwrite(&item.startSave,1,&item.endSave-&item.startSave,f); #define fileLoad2(item) fread( &item.startSave, 1,&item.endSave-&item.startSave, f); #define loop2(classType,myList) \ {std::list<classType>::iterator it; \ for ( it = myList.begin(); it != myList.end(); ++it ){ \ classType * uu=&(*it); I'm aware that these save/load defines are not safe (will indead crash) when I change the content of the class saved, but thats fine for now.
  10. Ah sorry! The problem remains even if I comment out everything except "delete u;" The pointer seems to be valid though. I can check its members and those are intact. Can it be that it checks the iterator inside of army when I delete it? And it complains that it's somehow corrupted? And can I then "uncorrupt" the iterator? In the long run i will remove it entierly from the army class, but i would like to solve this first.
  11. Im still confused. I dropped the use of iterators inside the army itself, like so: void world::deleteArmy(army * u){ std::list<army *>::iterator it; for ( it = armyList.begin(); it != armyList.end(); ++it ){ army * uu=*it; if (uu->id == u->id){ armyList.erase(it); break; } } delete u; } This still gives me debug assertion failure on the "delete u;" row. Im not using the stored iterators anymore, what could be the problem? It happens only when trying to delete an army that i restored from a savefile, but i though the error lied in corrupted iterators. Or could that still cause the problem even if i dont use those for deletion? (i use the iterator from looping though the list as seen above).
  12. Yeah i see the benefit from switching:) But ive built hundreds of functions around this engine so im hasitant to make the jump. If i do i will probably go for unity instead.
  13. I never use any CreateWindow function...
  14. Ah im using an engine so I never really deal with that part of it... Would be a shame to drop windowed support for my games and also annoying during development (faster to debug in windowed mode). Maybe change window size if not in fullscreen mode? (instead of 1600x900 i try 1650x950 for example)
  15. Cool, thanks for the help!