Metin2 autopatcher: the complete step-by-step guide
Written for beginners, with screenshots from the panel and the patcher: how to create it, upload the client to your host, give it to players, ship updates and turn on protection so the game starts only from the patcher.











What you need
- An AutoSVF.ro account, free. You build the patcher in panel → Autopatcher.
- Web hosting with PHP for the client files, for example the hosting of your server's website (cPanel, DirectAdmin, Webuzo). The client stays with you, not with us.
- The game client you want players to get: the folder with
metin2client.exe(or.bin),packand the rest. - A way to upload files: your hosting's File Manager or FileZilla (free).
The patcher runs on Windows 10 and 11. You do not need to install anything on your computer. The patcher's own interface is currently in Romanian; the steps below show what each part does.
How it works, in short
manifest.php file.The signature protects you: even if someone broke into your host, the patcher rejects any file that does not match the list signed by AutoSVF.
1Create the patcher
- Open the panel and click Autopatcher (top menu or the card on the home page).
- Click New patcher, type your server name (e.g. Metin2 Azuga) and click OK.
- The patcher editor opens with the tabs General, Appearance, News & buttons, Game & protection, Files & publishing, Statistics, Premium. Go through them in order, as below.
- 1The Autopatcher button takes you to your patchers.
- 1New patcher — creates a patcher (asks for the server name).
- 2Your patchers. Click one to change it at any time.
2Server name and status
- 1Server name — shown at the top of the patcher.
- 2Server status (optional) — the game server IP or domain and the login port (usually the auth port, e.g.
11002). The patcher shows Online / Offline. - 3Save — click it after every change, from any tab.
3Appearance: how the patcher looks
- 1Accent colour — the colour of the buttons and the progress bar.
- 2Logo: click Upload / Change and pick an image.
- 3Background: the image behind the patcher. Video background and your own banner are Premium.
- 4.exe icon: every patcher gets the standard AutoSVF icon. With Premium, click Use your own icon and pick any image (PNG, JPG, WebP or ICO); we turn it into an icon with every size automatically.
Background: an image of 1280×800 (JPG/PNG/WebP, under 10 MB). Logo: a PNG with a transparent background, about 360×80. Icon: a square image, ideally 256×256 or larger, with a transparent background. Video background (Premium): MP4 with the H.264 codec or WebM, at most 60 MB, no sound needed (it plays muted). The patcher window is 960×600.
Old videos (Xvid/DivX, “MPEG-4 Part 2”) and H.265/HEVC videos (many phone recordings) cannot be played by the patcher, and the panel rejects them. Convert them for free with HandBrake: open the video → preset Fast 1080p30 → under Video pick H.264 (x264) → tick Web Optimized → Start Encode.
The icon is put into the .exe when it is downloaded. After you change it, click Download .exe again and give players the new file. Patchers downloaded earlier keep the old icon.
Since patcher 1.3.0 the Look tab has more options, and on the right you see a preview that updates live, before you save:
- 6 themes (Imperial gold, Jade, Blood, Ice, Night violet, Minimal) and 4 colours you can change: the accent, the background, the text and the Play button. Back to the theme colours resets them.
- Layout: news on the left, on the right or hidden; a small logo in the top bar or a large one above the progress bar.
- Scheduled themes: pick a period (for example Christmas) with a different theme, accent and, with Premium, background. The patcher switches to it by itself and back to the normal theme. The Preview button shows it in the preview.
- Premium: up to 6 backgrounds (a random one at every start or all of them rotating), up to 3 videos and background music (MP3, OGG or M4A, at most 15 MB each). The music stops by itself when the game starts, and players can turn it off or change its volume from the top bar.
Players need patcher 1.3.0 to see the new options: they get it through the automatic update or when you give them the newly downloaded .exe.
4News, buttons and events
- 1News — shown on the left of the patcher (title, text, date, optional link).
- 2Buttons — links to your website, Discord, donations (up to 8).
- 3Countdowns — for bosses, double drop, server launch.
All of these change without a new .exe: click Save and players see them the next time they open the patcher.
5The game: what the patcher launches
- 1Game executable — the file that starts the game, exactly as it is named in the client folder (e.g.
metin2client.exeormetin2client.bin). In a subfolder:bin/metin2client.exe. - 2Close the patcher after the game starts (recommended).
- 3Maintenance — locks the Play button and shows your message (see updates).
- 4Protection — so the game only starts from the patcher. Leave “No protection” until you reach the Protection section.
File check on every launch: Quick (size and date, instant) is right for almost everyone. Full re-hashes every file: safer, but slower.
6Upload the client to your host
On your hosting, make a patch folder. Inside it goes the client (in a files subfolder) and two small files you download from the panel. It should look like this:
- In the panel, Files & publishing tab, click Download manifest.php and Download .htaccess example.
- Open your hosting's File Manager (or FileZilla). Open
public_html, create apatchfolder, and inside it afilesfolder. - Upload everything from your client folder into
patch/files. Fastest way: zip the client, upload the zip intofiles, right-click → Extract, then delete the zip. - Upload
manifest.phpand.htaccessintopatch(next tofiles, not inside it). Do not edit them.
Open https://your-site.com/patch/manifest.php in a browser. If you see {"error":"cheie greșită"} (“wrong key”), that is perfect: PHP works and the file is in place. If you see PHP code or the file downloads, PHP is not running in that folder. If you see “404”, the folder is wrong.
If Windows saved the file as htaccess (no dot), rename it to .htaccess in File Manager. Some File Managers hide files starting with a dot: look for “Show hidden files”.
7Connect the panel to your host and publish
- 1Download manifest.php (and .htaccess) — the files from step 6.
- 2Files URL on your host:
https://your-site.com/patch/files - 3manifest.php URL:
https://your-site.com/patch/manifest.php— without?key=, we add the key. - 4Publish version — we read the list from you, sign it and “Latest version: v1” appears.
Click Save first, then Publish version. The first publish takes longer on a big client (we fingerprint every file); the next ones are quick.
8Download the .exe and give it to players
- 1Download .exe — you get
<code>-patcher.exe. You can rename it, e.g.Metin2Azuga.exe; with Premium you get it named after your server, with your own icon. - 2The published version. Without a published version the patcher has nothing to download.
Post the file on your website, on Discord or in an archive. Players need only this file: on first launch it downloads the whole client by itself.
Windows may show “Windows protected your PC” for a new, unsigned .exe. The player clicks More info → Run anyway. For a big launch, a code-signing certificate (separate cost) removes the warning. Write to us for details.
What the player sees
Shipping an update
- Change the files in
patch/fileson your host: add, replace or delete. - In the panel, click Publish version. The version goes up (v2, v3…).
- That's it. Players get only the changed files the next time they open the patcher.
For a big update, turn on maintenance first (Game & protection tab → tick Block the Play button (maintenance) → write your message → Save). Players see the message and cannot enter until you turn it off.
You never send players a new .exe. Files, news, buttons and maintenance all arrive “over the air”. The player's metin2.cfg (their settings) is not overwritten if they already have one.
Protection: the game starts only from the patcher
Without protection, a player can open metin2client.exe directly, skipping updates and possibly with modified files. With protection on, the game only works if it was opened from the patcher, so everyone has an up-to-date, verified client. There are two options; you can use both together.
In the game client
The client refuses to start without the patcher and shows a message.
- You need the client source and Visual Studio (if you compile your own client, you have it).
- You add 2 lines of code and a ready-made file.
On the game server
The server only accepts connections from players who opened the patcher.
- Works without the client source.
- For FreeBSD servers (like the ones installed with AutoSVF). One command in PuTTY.
Our advice: if you have the client source, use A + B. If not, use B. The files come pre-filled for your patcher, from the Files & publishing tab:
- ADownload autosvf_guard.h — the file for the client source (your secret is inside).
- BDownload autosvf-gate.sh — the script for the game server (your address and key are inside).
These two files contain your patcher's secrets. Do not publish them, do not send them to anyone and do not put them in the files folder.
Option A — in the game client, step by step
- Panel first: Game & protection tab → Mode: pick A: check inside the game client (or A + B) → Save. The old client ignores the signal, so nothing breaks.
- Download
autosvf_guard.h(button A above) and put it in the client source, next toUserInterface.cpp(usuallyClient/UserInterface/). - Open
UserInterface.cppin Visual Studio. At the top, below the other#includelines, add the green line:UserInterface.cpp — top#include "StdAfx.h" // … the other #include lines stay as they are … #include "autosvf_guard.h"
- Find the
WinMainfunction (Ctrl+F → WinMain). Right after the opening brace{, add the green line:UserInterface.cpp — in WinMainint APIENTRY WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int nCmdShow) { if (!AutoSVF_LaunchedByPatcher()) return 0; // … the rest of the code stays the same …
- Build the client in Release, as usual.
- Only now replace the old executable in
patch/fileswith the new one and click Publish version.
Order matters: panel mode first (step 1), new client second (step 6). The other way round, players would get a client that asks for the signal before the patcher sends it, and could not get in.
Double-click metin2client.exe directly → the message “Porneste jocul din patcher-ul serverului” (start the game from the server's patcher) appears and the game closes. From the patcher → the game starts normally.
How it works: the patcher starts the game with a signed signal, valid for 2 minutes. The client checks the signature with your secret (using built-in Windows functions, no extra libraries). A regular player cannot get around it; someone who edits the executable can. That is why, for maximum safety, add option B too.
Option B — on the FreeBSD game server, step by step
The script turns on FreeBSD's pf firewall only for the game ports (login and channels). Only players who came through the patcher get in:
- When they click “Play” in the patcher, the player's IP is unlocked for 10 minutes, enough to log in.
- While they are connected, the IP stays unlocked, including channel changes and teleports.
- After they close the game, the IP is locked again in about 3 minutes. If they then start the client directly, it cannot connect.
SSH, MySQL and your website are not touched, and connected players are not kicked.
- Panel first: Game & protection tab → Mode: B: unlock on the game server (or A + B) → Save. Tell players to reopen the patcher.
- Download
autosvf-gate.sh(button B above). - Upload the file to the game server, into
/root, with WinSCP or FileZilla: SFTP protocol, the server IP, userroot, the root password, port 22. - Connect to the server with PuTTY (same details), type the command below and press Enter.
PuTTY — as root
sh /root/autosvf-gate.sh install
- The script shows the ports it found. If they look right, type
d(“da”, yes) and press Enter. You should see something like:What you seePorturile jocului care vor fi protejate: 11002 13000 13001 13002 (SSH, MySQL si celelalte porturi raman neatinse.) Continui? [d/N] d Verific legatura cu AutoSVF... GATA. Protectia este pornita si porneste singura si dupa restart. Test: deschide jocul DIRECT (fara patcher) -> nu trebuie sa se poata conecta. deschide jocul DIN PATCHER -> intra normal.
Open the game directly, without the patcher: it must not be able to connect. Open it from the patcher: you get in normally. Check the state at any time with:
sh /usr/local/etc/autosvf/autosvf-gate.sh status
# to remove the protection completely (the game stays open to everyone):
sh /usr/local/etc/autosvf/autosvf-gate.sh uninstall- If AutoSVF.ro does not answer for more than 2 minutes, the protection switches itself off (the game stays open to everyone) and comes back when the connection returns. You never lock players out because of us.
- If the script cannot find the ports, open
autosvf-gate.shin WinSCP (double-click) and write them on thePORTS=""line, e.g.PORTS="11002 13000 13001". They are in the server'sCONFIGfiles, on thePORT:line. - If a player stays on the login screen for more than 10 minutes or their IP changes (router restart, mobile internet), they close and reopen the patcher.
- Several players on the same IP (same home, same internet): while one is in game, the IP is open for the others too. Option A closes that case as well, which is why we recommend A + B.
Open-client limit and blocked programs
In the Game & protection tab (patcher 1.3.0 or newer):
- How many clients a player can run at once on the same PC: for example 3. Before Play, the patcher counts the clients already open and refuses the fourth. 0 means no limit.
- Blocked programs: process names, one per line, exactly as in Task Manager → Details (for example
cheatengine-x86_64.exe). While one is open, the game does not start and the player sees what to close.
Both are checked on the player's computer, at launch. The limit can be bypassed by starting the client straight from the folder, so use it together with option A or B above. A renamed program is not recognised. For a limit that cannot be bypassed, also limit connections per IP on the game server.
Statistics and Premium
Free, the patcher shows the AutoSVF banner at the top and “Powered by AutoSVF.ro” at the bottom, with everything that matters for running it: updates, repair, install, settings, maintenance, news, protection. With Premium (Premium tab, PayPal or card) you remove the banner or use your own, add a video background, your own .exe icon and a full skin. When it expires the patcher keeps working: it goes back to the free version, and .exe files downloaded from then on get the standard icon.
Troubleshooting
“The file list is empty”
The patch/files folder is empty or manifest.php is not next to it. Check the structure from step 6: manifest.php goes in patch, the client in patch/files.
“manifest.php returned 403”
The key in the file is not your patcher's (for example you uploaded a manifest.php from another patcher, or edited it). Download it again from the panel, upload it over the old one and do not add ?key= to the address.
“manifest.php returned 404” or “Could not read manifest.php”
The address is wrong or the website is down. Open the address in a browser: you should see {"error":"cheie greșită"}. Also check that the site has valid HTTPS.
The player sees “Nu găsesc executabilul jocului” (game executable not found)
The name in the Game & protection tab does not match the file in patch/files. Type it exactly (including .exe / .bin), save and publish again.
Windows or the antivirus blocks the patcher
New, unsigned patchers can get warnings. Players click More info → Run anyway or add an antivirus exception. The lasting fix is a code-signing certificate; write to us for details.
The player gets “cannot write the file”
The game is open or an antivirus is holding the file. Close the game, then use Repair in the patcher.
Protection A: the message shows even when started from the patcher
The panel mode is not A or A + B, or the patcher was open before you changed the mode. Check the mode, click Save, then close and reopen the patcher.
Protection B: nobody can connect any more
First check the panel mode is B or A + B and that players reopened the patcher. Run sh /usr/local/etc/autosvf/autosvf-gate.sh status: you should see “Serviciu: pornit” (service running) and a few unlocked IPs. To open the game to everyone right away, run the uninstall command above. The script never blocks SSH.
I changed something and players do not see it
News, buttons and maintenance apply after Save. Game files, after Publish version. Players get them when they reopen the patcher.
Anything else? Write to us at contact@autosvf.ro or on the chat.
Ready to build your patcher?
You create it in a few minutes and give it to your players today.