Configurare un server dedicato per The Front
Requisiti di sistema
- Sistema operativo: Windows 10/11 o Windows Server 2016/2019/2022 a 64 bit
- CPU: processore quad-core
- RAM: 8 GB
- Spazio su disco: 4 GB
1. Installare SteamCMD
Scarica SteamCMD ed estrai l’archivio in una cartella a tua scelta, per esempio C:\SteamCMD. Usa una cartella creata da te: in alcune cartelle di sistema Windows potrebbe limitare il funzionamento dello strumento.
2. Scaricare il server
Nella cartella che contiene steamcmd.exe, crea un file di testo chiamato update_server.bat. Aprilo con un editor e inserisci:
@echo off
start "" steamcmd.exe +login anonymous +force_install_dir "C:\Path\to\Server\Directory" +app_update 2612550 validate +quit
Sostituisci il percorso con la cartella in cui vuoi installare il server. Se ometti +force_install_dir "C:\Path\to\Server\Directory", SteamCMD usa \SteamCMD\steamapps\common\The Front Dedicated Server. Salva il file ed eseguilo per scaricare il server.
3. Avviare il server
Nella cartella del server crea start_server.bat con questo contenuto:
start "" "C:\Path\to\Server\Directory\ProjectWar\Binaries\Win64\TheFrontServer.exe" ProjectWar ProjectWar_Start ?Listen?MaxPlayers=8 -server -game -QueueThreshold=8 -ServerName="Your server name" -ServerAdminAccounts=STEAM64ID;STEAM64ID;STEAM64ID -log log=log.log -locallogtimes -EnableParallelCharacterMovementTickFunction -EnableParallelCharacterTickFunction -UseDynamicPhysicsScene -OutIPAddress=YOUR_PUBLIC_IP -ServerID=ANY_IDEA -port=PORT -BeaconPort=PORT+1 -QueryPort=PORT+2 -Game.PhysicsVehicle=false -ansimalloc -Game.MaxFrameRate=35 -ShutDownServicePort=PORT+3
Adatta il percorso del programma, MaxPlayers=8, il nome in -ServerName, gli SteamID64 in -ServerAdminAccounts, l’indirizzo IP pubblico in -OutIPAddress e le porte. Se la porta principale è 7777, usa per esempio 7778 per -BeaconPort. Aggiorna anche -QueryPort e -ShutDownServicePort secondo gli offset indicati. Salva ed esegui il file.
4. Configurare il server
Crea la cartella TheFrontManager nella directory del server e al suo interno il file ServerConfig_.ini. I nomi devono essere esatti, altrimenti il server non carica la configurazione. Esempio:
[BaseServerConfig]
IsCanMail=1.000000
ServerName="Your server name, remove if the name was set on the command line"
ServerPassword=
ServerTitle="A short description of your server"
PlayerAddExpRate=1
5. Aprire le porte
Consenti TheFrontServer.exe nel firewall di Windows. Dall’icona dello scudo nella barra delle applicazioni, apri Sicurezza di Windows -> Firewall e protezione della rete -> Consenti app tramite firewall. Potrebbe essere necessario inoltrare le porte anche nel router; consulta le istruzioni del tuo modello.