AutoPatch Server

03/16/2014 18:03 CptSky#1
The following AutoPatch Server is developed in C++ and will works with the official AutoPatch client of TQ Digital.

The deamon can be used without the GUI, but the GUI makes the server easier to manage.

I have a version for Mac OS X (ppc, ppc64, x86, x86_64), Windows (x86, x86_64), Debian (x86_64, ARM), but I can build it for any Linux distribution (and probably any UNIX one). Other versions can be requested by PM and I will charge a small fee. Only the Windows 32-bit version will be freely available.

Code:
                               AutoPatch Server
                               ----------------

                      Copyright (C) 2014 Jean-Philippe Boivin

Overview
--------

AutoPatch Server is a server emulating the official AutoPatch server used
by TQ games. It is a C++ deamon combined with a powerful UI for managing
the server.

The emulator is developed in C++ with Qt4 and Qt5.

Features
--------

APServ is a fully functionnal AutoPatch server.

+ Support any POSIX and/or WinAPI operating system with Qt4 / Qt5
+ Support any architecture (little endian & big endian | 32 bit & 64 bit)
+ Separate worker for logging (see apserv.log)
+ Self destructed environment (useful for singletons)

+ apservd
  - Fully functionnal and independent deamon
    * Small footprint (less than 5 MB in memory RAM)
    * Only two INI files for configuring the server

+ APServMgr
  - UI for maintaining the configuration files
    * Small footprint (less than 15 MB in memory)
    * Status of the deamon (and ability to launch / stop the deamon)

+ On Mac OS X, the whole server is self-contened in the APServMgr app.
+ On Mac OS X, APServMgr is also available in French.
+ On Windows, the whole server must be in the same folder.

Documentation about the server can be generated with dOxygen.

Supported systems
-----------------

The emulator has been tested on the following platforms:
- Windows XP Professional (SP2)
  + x86_64
- Mac OS X Leopard (10.5.8)
  + ppc, ppc64
- Mac OS X Mavericks (10.9.2)
  + x86, x86_64
- Debian Lenny (5.X)
  + armel (ARM)
- Debian Wheezy (7.1)
  + x86_64

However, the emulator should work without any modification on any
POSIX-compliant system (Mac OS X, *NIX, GNU/Linux, etc) and on any
WinAPI system.

N.B. This server uses the Windows API and/or the POSIX API and/or the Qt4 API.
Screenshot :
[Only registered and activated users can see links. Click Here To Register...]
03/24/2014 22:32 SmoothTrooper#2
This may be a stupid question but if I wanted to set this up for my private server how would i go about doing so? And would it update the server if I have the required files for the newer patch?
03/25/2014 00:32 Y u k i#3
Quote:
Originally Posted by cdevries94 View Post
This may be a stupid question but if I wanted to set this up for my private server how would i go about doing so? And would it update the server if I have the required files for the newer patch?
Easy: [Only registered and activated users can see links. Click Here To Register...]

Put your RELATIVE path on your webhost eg. if you got the domain [Only registered and activated users can see links. Click Here To Register...], you just put /patches if they are in the patches directory.

after that, you simply upload the patches into that directory and add it on the patchserver like that [Only registered and activated users can see links. Click Here To Register...]

Once thats done, you will need to set the latest patch (so the client will stop trying to patch after the set version has been reached:

[Only registered and activated users can see links. Click Here To Register...]

Thats it. Ready to go!

----- [Only registered and activated users can see links. Click Here To Register...] -----

The Config.ini allows you to set everything you need like that

PHP Code:
[Config]

;
Path to the file wich only contains the current Patch nr.
RemoteVersionFile=www.google.com/version.txt

;The host of your webserver (Hostname or IP)
HostOfYourWebsite=www.google.com

;like: /co2/patches/
RelativePathToPatchesOnWebServer=/secret/api/gpluscodebase/

;
Show console output for Connections transfers
ShowOutput
=true 
and you just have to increment the number inside Version.txt on your local webhost directory to tell the server wich the last patch is.
04/02/2014 21:12 patcac-patcac#4
Quote:
Originally Posted by Y u k i View Post
Easy: [Only registered and activated users can see links. Click Here To Register...]

Put your RELATIVE path on your webhost eg. if you got the domain [Only registered and activated users can see links. Click Here To Register...], you just put /patches if they are in the patches directory.

after that, you simply upload the patches into that directory and add it on the patchserver like that [Only registered and activated users can see links. Click Here To Register...]

Once thats done, you will need to set the latest patch (so the client will stop trying to patch after the set version has been reached:

[Only registered and activated users can see links. Click Here To Register...]

Thats it. Ready to go!

----- [Only registered and activated users can see links. Click Here To Register...] -----

The Config.ini allows you to set everything you need like that

PHP Code:
[Config]

;
Path to the file wich only contains the current Patch nr.
RemoteVersionFile=www.google.com/version.txt

;The host of your webserver (Hostname or IP)
HostOfYourWebsite=www.google.com

;like: /co2/patches/
RelativePathToPatchesOnWebServer=/secret/api/gpluscodebase/

;
Show console output for Connections transfers
ShowOutput
=true 
and you just have to increment the number inside Version.txt on your local webhost directory to tell the server wich the last patch is.
1st i cant get this autopatcher to work and yuki when i use urs it crashes once the connection is made
04/03/2014 04:23 CptSky#5
e.g. [Only registered and activated users can see links. Click Here To Register...]

Host : update9.co.91.com
Path : enzf

Than, you add patch.

Version : 5885
Path : enco_5886.exe

Current Version : 5886
04/03/2014 07:00 patcac-patcac#6
Quote:
Originally Posted by CptSky View Post
e.g. [Only registered and activated users can see links. Click Here To Register...]

Host : update9.co.91.com
Path : enzf

Than, you add patch.

Version : 5885
Path : enco_5886.exe

Current Version : 5886
yea i know how to set it up the prob is it wont connect to the autopatcher ...
04/03/2014 13:08 CptSky#7
Becauae you haven't updated the client probably... It won't connect if the client doesn't know the IP.
04/11/2014 20:02 hyperco#8
What about All in One patches?
(like 5830-5886)
04/11/2014 22:00 CptSky#9
Quote:
Originally Posted by hyperco View Post
What about All in One patches?
(like 5830-5886)
For the version 5830, you don't but 5831.exe but 5830-5886.exe ?
09/05/2016 03:52 waledzero#10
links dosen't work please fix it
09/05/2016 04:26 SuperDaft#11
Quote:
Originally Posted by waledzero View Post
links dosen't work please fix it
Yes they do. They probably don't work in your country due to a banned ip.
Complain: [Only registered and activated users can see links. Click Here To Register...]
09/05/2016 18:07 waledzero#12
Quote:
Originally Posted by SuperDaft View Post
Yes they do. They probably don't work in your country due to a banned ip.
Complain: [Only registered and activated users can see links. Click Here To Register...]
what should i do now :"D
09/05/2016 18:08 SuperDaft#13
Quote:
Originally Posted by waledzero View Post
what should i do now :"D
Wait for a response on your complaint, because it's apparently not just you.