Launcher with auto patch

Newbie Spellweaver
Joined
Sep 25, 2014
Messages
7
Reaction score
7
Now I'm making a launcher(Emil Chornicles Online) but I don't know how to make it with auto patch or auto update in Visual Basic
I just wanna know how to make launcher with auto patch in VB or another program

Thank you and I'm sorry. My English is not good.
 
Joined
Oct 28, 2011
Messages
2,465
Reaction score
1,258
GamePatcher



A game patcher for Windows/PC games. Can patch huge files with small patch.

This page contains an installation and using guide


Patcher

In root of builded patcher create folder 'patcher'. It must contain next files:

configuration.xml - a patcher configuration file
game_logo.png - 248x338 game logo displayed at the form
publisher_logo.png - 248x112 publisher logo displayed at the form
version.txt - file that contain 1 integer digit defining current version number

configuration.xml
Code:
#!xml
<?xml version="1.0"?>
<root>
    <!-- used in form title -->
    <game_name>TestGame</game_name>
    <!-- launches when play button pressed -->
    <game_exe>Test.exe</game_exe>
    <!-- opens in default browser when game logo clicked-->
    <game_url>http://coolgame.com</game_url>
    <!-- URL of file contains last version of game client-->
    <check_version_url>http://coolgame.com/version.txt</check_version_url>
    <!-- URL of directory contains patched-->
    <patches_directory>http://coolgame.com/patches/</patches_directory>
    <!-- URL with news page-->
    <news_url>http://coolgame.com/news_for_patcher.html</news_url>
    <!-- opens in default browser when publisher logo clicked-->
    <publisher_url>http://coolpublisher.com</publisher_url>
</root>

Patch builder



Create source directory in the root of patch builder. Place game clients in folders with name of it's version. Game clients must contains configured patcher with correct version.txt file matching with the index of folder (name). For example:


example

Run patch builder and select from which to which version build a patch. Step must be one, because patcher supports only incremental update. Click "Make patch". Result patch will be placed in output folder with name like 1_2.patch

P.S. You may place this patch to any web hosting (even Dropbox)

Code based on this

License: MIT


Credits go to:
Alexander Agasper
Russia, Rostov-on-Don




===============
My two coppers:
I've used this in the past and it does very well for what it is.
If you're looking to make it more than just a launcher / patcher, this is still a good start.

-never reinvent the wheel, when you can use the spare-





Article about the project found at this link:

(Translated below)

 

Attachments

You must be registered for see attachments list
Upvote 0
Joined
Oct 28, 2011
Messages
2,465
Reaction score
1,258
DNC can i use this for other game also?or this is source for what game?

Works great on any game bro



Source folder:
Folder1 = base game files (all of them)
Folder2 = base game files (all of them) - Then put in your modified files over the top of this folder and/or remove the files that get removed.

Run the PatchBuilder (point to version 1 and version 2)

The Output folder will now contain a very small patch file that contains the bdiff of the 2 versions.


build(folder).jpg
Primary build folder layout
IMAGE 1 Below
View attachment 162460

build(folder)_with_source(subfolder).jpg
source subfolder of your build folder (contains version 1, 2, 3, etc)
(I highly recommend putting it like this 00000001, 00000002, 00000003, etc --- as it seemed to hate going above 9 otherwise)
IMAGE 2 Below
View attachment 162461


patcher(folder).jpg
Primary patcher folder layout
IMAGE 3 Below
View attachment 162462


patcher(folder)_with_patcher(subfolder).jpg
patcher subfolder of the primary patch folder
Contains the following:
Code:
configuration.xml - a patcher configuration file
game_logo.png - 248x338 game logo displayed at the form
publisher_logo.png - 248x112 publisher logo displayed at the form
version.txt - file that contain 1 integer digit defining current version number
IMAGE 4 Below
View attachment 162463



Inlined the images, they look small and there are 4 of them.
Be sure you click each one for the better view popup.
 
Last edited:
Upvote 0
Newbie Spellweaver
Joined
Feb 12, 2017
Messages
54
Reaction score
2
@DNC bro i don't need find checksum every patch this is a direct maker right?
 
Upvote 0
Joined
Oct 28, 2011
Messages
2,465
Reaction score
1,258
run the patch builder every patch.
previous version increments by 1, new version updates by 1.
source folder needs a Full copy of the previous version and new version.
IE
0000001
0000002
0000003
0000004
0000005

builder would need left value 0000004 and right value 0000005

output folder would receive the new patch specific to version 0000004 to 0000005
 
Upvote 0
Newbie Spellweaver
Joined
Sep 25, 2014
Messages
7
Reaction score
7
@DNC
I want to know. What's flie has to be in folder client for run game ? and
I can't start my game. It told me : Can't verify current version of files. Please reinstall game.
 
Last edited:
Upvote 0
Initiate Mage
Joined
Dec 7, 2017
Messages
1
Reaction score
0
I have a question... I followed all the steps and everything in my launcher looks amazing. However, when I run the patch builder... it runs without error but leaves no patch. I have the full unchanged client in folder 1, and my changed client in folder 2. Anyone else run into this issue?

Update: The problem was that the patch I was trying to do was too small. Got it to work, however when someone puts the patcher files in a game client not on the C drive, it states the folder cannot be found
 
Last edited:
Upvote 0