Post by Phantomeis on Sept 30, 2018 3:53:39 GMT
Hi, my goal is to give you guys a tutorial on how to get a ranked LAN-Server and a ranked standalone server working.
This makes use of FESL-MasterServer, the gamespy emulator from maiorBoltach which you can find here at GitHub (my fork)
Within this tutorial you will install a web and a MySQL server on your computer.
You will install libraries for openssl communication with the game and the fesl-server, put up your game server and get your game ready for play without
the offlineprofile-fix and gamespy servers. As a plus you can unlock weapons like in the old days while playing with bots!
* XAMPP 1.7.7 VC9 (we need this old version!)
* Unranked Server Setup
* Fesl-Server and its files from GitHub
Download all-in-one Pack 2.5 (MEGA.IO)
2.5 Fixed MYSQL crashes, reduced server-timeout from 30 to 5 seconds. Client-side (ingame server users) will profit with faster map changes. Timeout for dedicated servsrs is reduced to 10 seconds.
2.4 Reverted the vehicle-stats saving due to problems for users. Bundled the Guide into the download
2.3 Thanks to Steve! He fixed vehicles stats saving for the database.
2.2 Fixed bugs in script and made the installation easier, only hosts needs the hosts-file edits now, players only need the hexedited .exe
2.0 Updated the Guide to include LAN Servers which you can create from the game itself to be ranked
1.0 Initial release with Standalone Server + Masterserver
Version v1.25 is fine also since it can run LAN with offlineprofile-fix and has some mods.
But v1.51 can’t create LAN games while running the offlineprofile-fix and having no gamespy to "veryfy" the servers origin, even if it is just LAN.
You must edit the hosts file located at C / windows / system 32 / drivers / etc / hosts
Change your.ip to the IP the computer running the master server is using.
127.0.0.1 stella.prod.gamespy.com #do not change
CTRL + F lets you search for 192.168.1.3, change the IP to your WAN or LAN IP by typing using the keyboard, DONT CTRL+V INSIDE THIS.
To do so, use the right panel from HxD and just type your IP. Do this eight times, then you have found all IPs, but don’t close HxD yet!
Mind the / (slash) that appears sometimes, the IP must end with this slash if you find it!
NOTE: if you are left with the unallocated space after correcting IP, set dots and change the bit-values
of the dots to 00!
Now we change the hidden IP:
First, reverse your IP-Addresses numbers, convert them to HEX and paste them at hex-address 0301a8c0
Use www.browserling.com/tools/ip-to-hex for hexcode conversion or the windows calculator.
Do this for each number.
Write the HEX-code like this: 14aca8c0
In HxD press CTRL + R, the replace window will open, change the datatype to HEX, search direction to "all" and search for 0301a8c0 and replace with your HEX-code (14aca8c0 in my case).
Save your changes and close HxD.
The Client is prepared. Send this to your friends if you host the server, so they can connect to you.
Now you can decide if you want to start the server from within the game (via Multiplay->local->create) or if you want a standalone server, wich means you start the server outside of the game with its own server-software.
To play ranked LAN games we must prepare the server that is hidden within bf2142.
Copy the contents of /workdir/drop_in_standalone_server_folder folder into your /Battlefield 2142 Server/ folder and overwrite.
Open BF2142 server/mods/<mod>/settings/ServerSettings.con and search for sv.MaxUnlockLevel .
Keep the install directories standard.
Open XAMPP-Control panel as we need it later.
Change "your.ip" to your masterservers IP (IP of the PC running this server)
127.0.0.1 stella.prod.gamespy.com #dont change this
Open the XAMPP-Control panel and start Apache and MySQL.
Click “Admin” for MySQL, your browser will open and bring you to “phpMyAdmin”, your MySQL frontend.
Go into the bf2142 Database, select the table “servers” and click “Inline Edit” on the second row.
Change the IP 192.168.178.20 to your masterserver's IP (the one from the hosts-file), then click save:
If you have a dedicated remote server, you will start the daemon there and configure it for your ccClient connection.
Start ccDaemon using my masterserver_shortcut.exe or /Battlefield 2142 Server/ccDaemon/ folder.
If you want your server showing up in the serverbrowser-list, open the settings tab and fill this parameters into the
"Add Custom Settings to ServerSettings.con"-Box:
Multiplay-screen. Mark the Server as favorite, so you dont have to IP join everytime!
FESL/GS login server emulator v.1.0 (BETA 06)
by Andrew Vasiliev
Based on "Simple TCP proxy/datapipe" and "GS login server emulator" sources
by Luigi Auriemma
Usage: %s [options]
-x port port to listen connections (18300 default)
-v verbose output
-l 1 - logfile on, 0 - logfile off (default). FOR DEBUG
-restore_srv enable restore account and password to email
-dbhost host MySQL DB
-dbname DB name
-dbuser DB user
-dbpass DB password
-p increase process priority
-d DIR dump the content of the connections in various tcpdump-like cap files
"-D. \ Fesl" folder fesl will remain a network data exchange. required only for catching errors and malfunctions
"-L 1" logs will be written to /logs/ folder
"-V" visible output in the black FESL window, what you see here is what will end up in logs