• 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.
Sign in to follow this  
Followers 0
leagal4ever

c++, sdl - how to make installer? .exe

10 posts in this topic

Hello i have make part of my game which i want show to other people. I would like to make installer to make game available on every computer with all files included. I am using c++, sdl, sdl_ttf and build game in visual studio 2010 with debug option.

Thanks fo help.
0

Share this post


Link to post
Share on other sites
You'll want to give people the Release build of your program, not the Debug build. If you give them a debug build, they might need Visual Studio (or whatever compiler/setup you used) to even run the game. Always do release when releasing the program.

[url="http://en.wikipedia.org/wiki/List_of_installation_software"]Here's a list of installation software[/url]. I can't recommend one, as I have no personal experience with one.
1

Share this post


Link to post
Share on other sites
Unless you have very special needs I suggest to not create installer package. Just create the proper directory structure, add all relevant .dll and data files and pack it into zip archive.

Personally I avoid installing anything that does not come from very well-known and reliable source - because more than often the uninstall feature is either poorly implemented or broken. Plus I do not see why simple games should need to save anything to registry, access files (except save files) outside it's installation directory and so on.
1

Share this post


Link to post
Share on other sites
Install builders are very fast and easy. By the way, are you polish? (I noticed your surname). Edited by JustABeginner
0

Share this post


Link to post
Share on other sites
So to use on another computer it only need to be build as release, insert used files and thats it?

I have error when building, any idea how to solve it? Error is only when release, debug is working fine.
[URL=http://imageshack.us/photo/my-images/222/errorpo.png/][IMG]http://imageshack.us/a/img222/9387/errorpo.png[/IMG][/URL]

@Lauris Kaplinski - didnt know that, sure at start would be better and easier to make simple zip, however for future im interested in installer
@JustABeginner - no not polish
0

Share this post


Link to post
Share on other sites
That error there says "Access violation reading location 0x00000000," and because NULL/nullptr is generally 0, I think it's a safe guess that you're trying to dereference a null pointer. Time to whip out the debugger (in release mode). If you hit "continue" it will (hopefully) take you to the location where the error occurred, and you can view the code (or if it's not your code, view the stack trace to see where in your code your invoking this behavior).
1

Share this post


Link to post
Share on other sites
Continue is just throwing same window with same message, break give me disassembly tab.
[URL=http://imageshack.us/photo/my-images/829/error1ii.png/][IMG]http://imageshack.us/a/img829/4109/error1ii.png[/IMG][/URL]

So somewhere in my code is mistake to somehow use NULL pointer, why there is no problem with debug mode?
0

Share this post


Link to post
Share on other sites
[quote name='leagal4ever' timestamp='1349391191' post='4986939']
Continue is just throwing same window with same message, break give me disassembly tab.
[/quote]
Does it give you a call stack? (bottom left tab)

[quote name='leagal4ever' timestamp='1349391191' post='4986939']
So somewhere in my code is mistake to somehow use NULL pointer, why there is no problem with debug mode?
[/quote]
That's the joy of C++ and undefined behavior. In C++, if you invoke undefined behavior (and there are a ton of ways of doing it), your program might continue to appear to work fine (even though there's a problem), but then when you change a setting (i.e. debug to release or release to debug) all hell breaks loose.

Pay particular attention when compiling to any warnings you might get, and strive for 0 warnings on compilation.
0

Share this post


Link to post
Share on other sites
[quote name='leagal4ever' timestamp='1349391191' post='4986939']
So somewhere in my code is mistake to somehow use NULL pointer, why there is no problem with debug mode?
[/quote]
Debug builds often initialise variables to some sensible value; either to a zero value, or to some value that can easily be seen in a disassembly or stack trace.
0

Share this post


Link to post
Share on other sites
[url="http://imageshack.us/photo/my-images/337/error2ep.png/"][img]http://imageshack.us/a/img337/6391/error2ep.png[/img][/url]
I dont have any warnings have also minimize notices, when click on any Call Stack line only Dissembly lines are changed i dont see my code.

[url="http://imageshack.us/photo/my-images/88/error4l.png/"][img]http://imageshack.us/a/img88/3126/error4l.png[/img][/url]
When run from Release folder i get window as normal with error message =(

I have made copy of project folder take most out and i have build it in Release so must be problem in my code. Edited by leagal4ever
0

Share this post


Link to post
Share on other sites
Oh souch silly error as told:

[quote name='Lauris Kaplinski' timestamp='1349294053' post='4986513']Just create the proper directory structure, add all relevant .dll and data files and pack it into zip archive.[/quote]

I had no idea proper foler is Release folder there were no images i just copy SDL files.

SDL_Surface* tmp;
tmp = IMG_Load©;
SDL_DisplayFormatAlpha(tmp);// problem

Problem is there was no image loaded.

if (tmp != NULL)
SDL_DisplayFormatAlpha(tmp);
Now i avoid problem just in case something is not loaded


Thans for all help :) Edited by leagal4ever
0

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0