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

Auto Patcher

8 posts in this topic

Hi GameDev!

I just finished the first version of my new program Auto Patcher and thought I should start a topic here to get some response.

Auto Patcher is a small program made for other developers that makes sure that the people using your applications allways have the latest version. It works by uploading files to a FTP server and then comparing the users version against the one on the server to find out if there is an update ready. If there is one, it will download it and replace the old version and then start the application when ready.

I thought this was something pretty useful for myself since I now can assume that the (few) people testing my programs allways have the latest version. They never have to visit my homepage to download the latest one, Auto Patcher will do it for them. I think I will use Auto Patcher with all my programs and the nice thing is that it's totally generic, it can be used with anything. So feel free to try it out yourself!

The only thing you need is a FTP server and then you're ready to roll.

It is written in C++ with the Win32 API so the only supported platform is Windows.

Here's some pictures:

[img]http://i.imgur.com/xUN3C.png[/img]
Credentials dialog

[img]http://i.imgur.com/fS2mK.png[/img]
Patcher dialog

[img]http://i.imgur.com/yBSQL.png[/img]
The client app

I've written a small [url="http://simplers.org/auto_patcher.php"]tutorial[/url] on my homepage explaining how to use it. If something is unclear or doesn't make sense let me know.
You can download Auto Patcher from the top of my [url="http://simplers.org/projects.php"]projects[/url] list.
The source code can be found on [url="https://github.com/simplerr/Auto-Patcher-Dev"]github[/url].

Thanks for reading! [img]http://public.gamedev.net//public/style_emoticons/default/smile.png[/img] Edited by simpler
0

Share this post


Link to post
Share on other sites
Here's the changelog for version 1.1

[quote]
v1.1
- Added a password dialog when launching the uploader
- Added multithreading when uploading and downloading files
- Fixed the window icon not being visible
- Fixed a bug where both programs got the "Not responding" status when managing large files
- The data.sef and patch_notes.txt files should now allways get uploaded
- Centered the patch notes window
[/quote]

You can download the latest version from the top of my [url="http://simplers.org/projects.php"]projects[/url] page.
0

Share this post


Link to post
Share on other sites
[quote]v1.2
- The user now can choose if he wants to update or not
- Fixed proper handling of connection errors
- Added a "Auto run" checkbox that specifies whether the executable should start instantly or not when there's no new updates
- Fixed passwords with certain special characters not getting decrypted properly[/quote]

Download the latest version from [url="http://simplers.org/projects.php"]here[/url]. Edited by simpler
0

Share this post


Link to post
Share on other sites
[quote]1.3
- Fixed bug when starting the specified program
- Made AutoPatcher.exe run minimized if there's no new version and no connection errors
- Improved the speed and reaction time of both programs[/quote]

Download it from the top of my [url="http://simplers.org/projects.php"]projects list[/url]. Edited by simpler
0

Share this post


Link to post
Share on other sites
A tip is to never give the client side any access to any ftp credentials, doesn't matter if the info is encrypted or not, because you can still always get the password and username from the memory once it's decrypted for the application itself to use :)...
0

Share this post


Link to post
Share on other sites
Yeah I know reverse engineering is a possibility but I don't see any other way to accomplish what Auto Patcher does without letting the client have the FTP credentials. If you got an idea on how to make it safer, please let me know.
0

Share this post


Link to post
Share on other sites
I've written several of these type of programs, excellent choice for updating programs. May I suggest you do it through HTTP instead. No login, no password needed and the files can be hosted on just about any server out there. Plus users can't change the files on the host, only download them.
Also, do you use compression for the files that are stored on the server?
0

Share this post


Link to post
Share on other sites
[quote name='LancerSolurus' timestamp='1347401267' post='4979081']
I've written several of these type of programs, excellent choice for updating programs. May I suggest you do it through HTTP instead. No login, no password needed and the files can be hosted on just about any server out there. Plus users can't change the files on the host, only download them.
Also, do you use compression for the files that are stored on the server?
[/quote]

Yes the files are uploaded in a .zip archive. I will definitly have to check out how to do it through HTTP instead. Am I in the right direction if I consider using libcurl?
0

Share this post


Link to post
Share on other sites
[quote]
1.4
- Fixed bug with the progress bar not moving
- Added a text label showing the data received[/quote]

Download it from the top of my [url="http://simplers.org/projects.php"]projects list[/url].
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