LCKB
Server Patcher - Printable Version

+- LCKB (https://lckb.dev/forum)
+-- Forum: ** OLD LCKB DATABASE ** (https://lckb.dev/forum/forumdisplay.php?fid=109)
+--- Forum: Guides & Help Section (https://lckb.dev/forum/forumdisplay.php?fid=193)
+---- Forum: Tutorials & Guides (https://lckb.dev/forum/forumdisplay.php?fid=124)
+----- Forum: Ep4 Guides (https://lckb.dev/forum/forumdisplay.php?fid=125)
+----- Thread: Server Patcher (/showthread.php?tid=4743)



- Scura - 05-15-2021


Since i'm using my own script from a while and i think it could be useful to everybody, I've decided to release it for everybody :3 

 

1) PatchMaker:

This script will allow you to easy create a zip file ready to upload to your server, which contain all the files compilated needed for patch your server. After every compilation, when you have to apply the changes in the server side for test, you can simply use this script for create a Build.zip files

1. Copy the PatchMaker code and paste in notepad

2. Save it as sh file

3. Put the bat file in the ServerRelease folder (as image)

PatchMaker:

rm -rf ./Build
rm Build.zip
mkdir Build
cd Build
mkdir GameServer
mkdir Login
mkdir Helper
mkdir SubHelper
mkdir Connector
mkdir Messenger
cd ../
cp ./GameServer/GameServer.exe ./Build/GameServer/GameServer.exe
cp ./Login/LoginServer.exe ./Build/Login/LoginServer.exe
cp ./Helper/Helper.exe ./Build/Helper/Helper.exe
cp ./SubHelper/SubHelper.exe ./Build/SubHelper/SubHelper.exe
cp ./Connector/Connector.exe ./Build/Connector/Connector.exe
cp ./Messenger/Messenger.exe ./Build/Messenger/Messenger.exe
tar.exe -a -c -f Build.zip Build

 

/monthly_2021_05/image.png.dfa27c3b9b30b4aa65ed88eae4c84a0c.png" />

After compiled the server, open the bat file, it will create a build.zip file ready for upload on to your server which contain all the files compiled. The script remove the old Build/Build.zip folder so you don't have to do it manually!

-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

2)PatchApply

After have created a Build.zip files with Patchmaker, you can easy unpack it (and apply the server's changes) with this script!

1. Copy the PatchApply code and paste in notepad

2. Save it as sh file

3. Put the bat file near ServerRelease in serverside (as image)

PatchApply:

echo "Scura - Apply Server Patch [v1.1]"
echo ""

tar -xvf Build.zip

echo ""
echo "Loading..."

cp Build/GameServer/GameServer.exe ServerRelease/GameServer/GameServer.exe
cp Build/Login/LoginServer.exe ServerRelease/Login/LoginServer.exe
cp Build/Helper/Helper.exe ServerRelease/Helper/Helper.exe
cp Build/SubHelper/SubHelper.exe ServerRelease/SubHelper/SubHelper.exe
cp Build/Connector/Connector.exe ServerRelease/Connector/Connector.exe
cp Build/Messenger/Messenger.exe ServerRelease/Messenger/Messenger.exe

/monthly_2021_05/image.png.d1268cf76e838b507af7c0deaa7aa81e.png" />

The script will unpack the Build.zip files created with "PatchMaker" script, and patch the ServerRelease folder. So you don't have to manually patch the server each time you compile something ... cause i think 99% of the dev don't put the source code on the server side but left it on their pc, this scripts should be useful :3 

 

All of those script are written in sh. You can easy run sh files on windows by Downloading 2 or by Enabling the "2

 

 

Bonus:

Start server (windows):

As I seen, Reza have release a "start" and "stop" bat script in to the Reza 1776, however I think is really boring minimize all the consoles each time you start the server. I've added a little params which allow you to start all the files in minimize mode:

StartServer:

cd .\Messenger\
start /MIN .\Messenger.exe
cd ..\
cd .\Helper\
start /MIN .\Helper.exe
cd ..\
cd .\SubHelper\
start /MIN SubHelper.exe
cd ..\
cd .\Connector\
start /MIN .\Connector.exe
cd ..\
cd .\Login\
start /MIN LoginServer.exe
cd ..\
cd .\Gameserver\
start Gameserver.exe

 

That's all... guess many devs already have those kind of script, however i think it could be usefull for some newbie :3

 




- Scura - 05-16-2021


images updated :3 




- UikFire - 01-02-2026


hey thanks for the head up on this, but unfurtenally i must de doing something wrong my ServerRelease i run it tru Winspc with .sh files does it work the same way ? cause ive tryed and the errors still  going, if its different can you tell me how thanks i would appreciate it