Jump to content

DCS Server Control


Recommended Posts

Description for changing server player's name added to 2nd post.

 

Sweetums!

GPU: PALIT NVIDIA RTX 3080 10GB | CPU: Intel Core i7-9700K 4,9GHz | RAM: 64GB DDR4 3000MHz
VR: HP Reverb G2 | HOTAS: TM Warthog Throttle and Stick
OS: Windows 10 22H2

Link to comment
Share on other sites

Still looking for why trying to access the WebGui dashboard is not showing the server running on that very machine either by its default port 8088 or one set by the autoexec.cfg file. Operating System is Win 10.

 

Works as advertised on my WIN 7 machine.

Link to comment
Share on other sites

Still looking for why trying to access the WebGui dashboard is not showing the server running on that very machine either by its default port 8088 or one set by the autoexec.cfg file. Operating System is Win 10.

 

Works as advertised on my WIN 7 machine.

The 8088 port ist not for the local webgui, it's used for communication with the dcs homepage.

 

There's nothing I can imagine why local webgui index.html should not work....

Wait.... one thing happened to me, I once tried to set a

Webgui port in the autoexec, because I wanted to access it from my local PC... Then suddenly the local webgui over index.html stopped working...

 

 

 

https://forums.eagle.ru/showthread.php?p=3852127

 

That was the post where I asked for help :D

 

Send via SADL with Tapatalk


Edited by Wayan
Link to comment
Share on other sites

Still looking for why trying to access the WebGui dashboard is not showing the server running on that very machine either by its default port 8088 or one set by the autoexec.cfg file. Operating System is Win 10.

 

Works as advertised on my WIN 7 machine.

 

Same. I can remote in from any computer, including the server computer, via the DCS webpage - but the local webgui index.html does not connect.

Ryzen 7 5800X3D / Asus Crosshair VI Hero X370 / Corsair H110i / Sapphire Nitro+ 6800XT / 32Gb G.Skill TridentZ 3200 / Samsung 980 Pro M.2 / Virpil Warbrd base + VFX and TM grips / Virpil CM3 Throttle / Saitek Pro Combat pedals / Reverb G2

Link to comment
Share on other sites

 

NOTE (added by const):

 

You should disable uPnP in DCS in case of using manual address or port translation in your router for DCS application. Add line to your autoexec.cfg:

 

net.use_upnp = false

 

Otherwise DCS will try to automatically open ports in your router on default router IP via uPnP

 

ADDED.

 

Issue: Server's player name is just 'player' and can't be changed

 

Hint: Create folder Scripts in server home folder: Saved Games\%DCS_Dedicated_Server%\Scripts

and create in that folder file dedicatedServer.lua

with text:

 

net.set_name('your desired server player name')

 

Using this method on OB 2.5.4.30038 is resulting in a unresponsive server, you can't see it in the server list and "server offline" message when trying to connect by IP, also reported as SERVER OFFLINE in WebGUI.

 

IhWQ1f6CMnNmAYx5cwRqJfkwyr9q8f.png

FlighRIG => CPU: RyZen 5900x | RAM: 64GB Corsair 3000Mhz | GPU: nVIDIA RTX 4090 FE | OS Storage: SSD NVMe Samsung 850 Pro 512GB, DCS Storage: SSD NVMe Sabrent 1TB | Device: Multipurpose-UFC, VirPil T-50, TM WARTHOG Throttle, TrackHat, MFD Cougar with screen.

Our Servers => [ITA] Banshee | Krasnodar - PvE | PersianConquest PvE Live Map&Stats | Syria Liberation PvE Conquest

Support us on twitch subscribing with amazon prime account linked, it's free!

Link to comment
Share on other sites

  • ED Team
Using this method on OB 2.5.4.30038 is resulting in a unresponsive server, you can't see it in the server list and "server offline" message when trying to connect by IP, also reported as SERVER OFFLINE in WebGUI.

 

It is just not started.

the correct content of the Scripts/dedicatedServer.lua user file is:

net.set_name('ServerName')
local res = net.start_server(serverSettings)
if res ~= 0 then
   log.write('Dedicated Server', log.DEBUG, 'Failed to start server with code: ', res)
end

Dmitry S. Baikov @ Eagle Dynamics

LockOn FC2 Soundtrack Remastered out NOW everywhere - https://band.link/LockOnFC2.

Link to comment
Share on other sites

Using this method on OB 2.5.4.30038 is resulting in a unresponsive server, you can't see it in the server list and "server offline" message when trying to connect by IP, also reported as SERVER OFFLINE in WebGUI.

 

 

My dedi server (actual OB) is running with this modification and it works. But I had to start the mission manually this time, resume on load was deactivated (somehow). After server start it looked a little bit strange in the server list, like it hadn't loaded the configuration files. Server name and describtion was default. But after some seconds and the manual mission start by webgui it works fine.

SYSTEM: Mainboard MSI MEG X570 | CPU Ryzen 7 5800X @ 4.5 GHz | RAM 64 GB @ 3200 MHz | GPU GIGABYTE RTX 4090 | 1 TB SSD | Win 10 x64

DEVICES: ASUS 27" LCD | TrackIR 5 | LukeClip | Quest 3 | PointCTRL | Virpil HOTAS | MFG Crosswind | TableMount MonsterTech

MODULES: To much to list. But I stopped buying more, because of too much bugs in e.g. A-10C(II). @ED: Fix the bugs and I spend money on modules again. Promised.

PROJECTS: OpenFlightSchool: DE / EN

Link to comment
Share on other sites

It is just not started.

the correct content of the Scripts/dedicatedServer.lua user file is:

net.set_name('ServerName')
local res = net.start_server(serverSettings)
if res ~= 0 then
   log.write('Dedicated Server', log.DEBUG, 'Failed to start server with code: ', res)
end

 

Excellent - thank you for this!

Without this my server was not starting the mission, and I double checked my server settings to make sure it was OK. Added this to the dedicatedServer.lua and after a longer (appropriately) start up it is auto-starting the mission.

My Rig:

 

 

CPU: i9-9900k - Corsair H150 Cooler. RAM: 32GB, 3200Mhz.

Mobo: Asus MAXIMUS Formula XI - Main Drive: 512GB NvME SSD

DCS Drive: 512GB NvME SSD - Graphics: GTX 1070 Ti. Display: 23" 1080p LG LCD.

Input: Razer Naga & Blackwidow Ultimate, TrackIR 5, HOTAS Warthog & MFDs (x4), Saitek Rudder Pedals, TurtleBeach PX22 Headset.

 

 

Link to comment
Share on other sites

It is just not started.

the correct content of the Scripts/dedicatedServer.lua user file is:

net.set_name('ServerName')
local res = net.start_server(serverSettings)
if res ~= 0 then
   log.write('Dedicated Server', log.DEBUG, 'Failed to start server with code: ', res)
end

This works really fine! Tested on multiple instances and no problem found.

 

Thanks!

FlighRIG => CPU: RyZen 5900x | RAM: 64GB Corsair 3000Mhz | GPU: nVIDIA RTX 4090 FE | OS Storage: SSD NVMe Samsung 850 Pro 512GB, DCS Storage: SSD NVMe Sabrent 1TB | Device: Multipurpose-UFC, VirPil T-50, TM WARTHOG Throttle, TrackHat, MFD Cougar with screen.

Our Servers => [ITA] Banshee | Krasnodar - PvE | PersianConquest PvE Live Map&Stats | Syria Liberation PvE Conquest

Support us on twitch subscribing with amazon prime account linked, it's free!

Link to comment
Share on other sites

The HTTP port can be changed by editing the webgui_port line in file autoexec.cfg:

 

webgui_port = 12345

 

I've tried this but it is not connecting to the server, or saying the server is not responding. Any thoughts?


Edited by BoneDust
 

VCAW-99_sig_ED_BD-3.png

 

Alienware New Aurora R15 | Windows® 11 Home Premium | 64bit, 13thGen Intel(R) Core(TM) i9 13900KF(24-Core, 68MB|  NVIDIA(R) GeForce RTX(TM) 4090, 24GB GDDR6X | 1 X 2TB SSD, 1X 1TB SSD | 64GB, 2x32GB, DDR5, 4800MHz | 1350W PSU, Alienware Cryo-tech (TM) Edition CPU Liquid Cooling  power supply | G2 Rverb VR

Link to comment
Share on other sites

For some reason when i upgraded to the Dedicated Install it wont resume on load, i have to manually go into the webgui and start the server manually, in serverconfig.lua i have pauseonload = 0 and pause mode set to 1, doesnt seem to like it.

 

also, running it from dcs.exe seems to crash it out immediately, nothing in dcs.log, makes it impossible to run multiple servers through one install with -w

Link to comment
Share on other sites

For some reason when i upgraded to the Dedicated Install it wont resume on load, i have to manually go into the webgui and start the server manually, in serverconfig.lua i have pauseonload = 0 and pause mode set to 1, doesnt seem to like it.

 

also, running it from dcs.exe seems to crash it out immediately, nothing in dcs.log, makes it impossible to run multiple servers through one install with -w

 

I just updated our server to the dedicated install and have the same issue with the sim hanging using dcs.exe.

 

Some help or an updated "how to" from ED would be nice. :thumbup:

 

VCAW-99_sig_ED_BD-3.png

 

Alienware New Aurora R15 | Windows® 11 Home Premium | 64bit, 13thGen Intel(R) Core(TM) i9 13900KF(24-Core, 68MB|  NVIDIA(R) GeForce RTX(TM) 4090, 24GB GDDR6X | 1 X 2TB SSD, 1X 1TB SSD | 64GB, 2x32GB, DDR5, 4800MHz | 1350W PSU, Alienware Cryo-tech (TM) Edition CPU Liquid Cooling  power supply | G2 Rverb VR

Link to comment
Share on other sites

Hey guys.

 

 

It looks like Config/serverSettings.lua has changed an attribute that is causing this. I had been racking my head about this for a few days, and I think I solved this on hoggit's servers.

 

 

If you had a Config/serverSettings.lua file from prior to the dedicated server updates, you'll have an attribute like so:

 

 

   ["current"] = 0,

The new serverSettings.lua instead has this

 

 

   ["version"] = 1,

Switching them out appears to have made a difference for us. If you're not interested in digging through lua, if you take off the --norender --server --webgui tags and load into the "Start Server" section of multiplayer, you'll notice all your settings are gone.

 

 

If you re-create all the settings here, and start a server (if you can), it will save the new version of the file out, and you can then continue using your dedicated server afterwards.


Edited by Acidictadpole

Acidic

Hoggit Admin / Server Owner / Mission Maker

Discord: https://discord.gg/hoggit

GAW Website: https://atwar.online

 

Wiki: https://hoggitworld.com

Link to comment
Share on other sites

  • ED Team
Using this method on OB 2.5.4.30038 is resulting in a unresponsive server
Sorry, my fault. I excluded important string which launches server from script. Post corrected already.

Men may keep a sort of level of good, but no man has ever been able to keep on one level of evil. That road goes down and down.  
Можно держаться на одном уровне добра, но никому и никогда не удавалось удержаться на одном уровне зла. Эта дорога ведёт вниз и вниз.

G.K. Chesterton

DCS World 2.5: Часто задаваемые вопросы

Link to comment
Share on other sites

Sorry, my fault. I excluded important string which launches server from script. Post corrected already.

NP, glad to help improve DCS Multiplayer experience finding stuff like that ;)

 

For all ServerAdmin around here, if you're looking in a way to "reboot" your server....I use this powershell script to kill the exact instance with Windows Scheduled Task:

 

param (
   [string]$ProcToKill = "null"
)
Get-CimInstance Win32_Process -Filter "name = 'DCS.exe'" | Where-Object { $_.CommandLine -Like "*-w $ProcToKill"  } | Select-Object -First 1 | Invoke-CimMethod -MethodName Terminate
<# 
---------------
- HOW TO USE  -
---------------
Add scheduled task powershell.exe with argument:

-Command "& 'D:\APP\CustomScripts\KillProcessByCommandLine.ps1' -ProcToKill 'serverInstanceName'"

where serverInstanceName is the name of the -w parameter 

#>

 

Save this as .ps1 file ( in my system is saved as: KillProcessByCommandLine.ps1 inside D:\APP\CustomScripts\ folder ) and adjust task argument to match your system/script name :book:

 

Working well since dedicated server release :thumbup:

Three different server instances rebooting at completely different time over the day ;)

 

Enjoy


Edited by Maverick87Shaka

FlighRIG => CPU: RyZen 5900x | RAM: 64GB Corsair 3000Mhz | GPU: nVIDIA RTX 4090 FE | OS Storage: SSD NVMe Samsung 850 Pro 512GB, DCS Storage: SSD NVMe Sabrent 1TB | Device: Multipurpose-UFC, VirPil T-50, TM WARTHOG Throttle, TrackHat, MFD Cougar with screen.

Our Servers => [ITA] Banshee | Krasnodar - PvE | PersianConquest PvE Live Map&Stats | Syria Liberation PvE Conquest

Support us on twitch subscribing with amazon prime account linked, it's free!

Link to comment
Share on other sites

We also have a script that handles monitoring and restarting the process. It also handles firewall rules for you if you have them:

 

 

https://gitlab.com/hoggit/developers/server_scripts/tree/master/ServerRestartScript

Acidic

Hoggit Admin / Server Owner / Mission Maker

Discord: https://discord.gg/hoggit

GAW Website: https://atwar.online

 

Wiki: https://hoggitworld.com

Link to comment
Share on other sites

Hey guys.

 

 

It looks like Config/serverSettings.lua has changed an attribute that is causing this. I had been racking my head about this for a few days, and I think I solved this on hoggit's servers.

 

 

If you had a Config/serverSettings.lua file from prior to the dedicated server updates, you'll have an attribute like so:

 

 

   ["current"] = 0,

The new serverSettings.lua instead has this

 

 

   ["version"] = 1,

Switching them out appears to have made a difference for us. If you're not interested in digging through lua, if you take off the --norender --server --webgui tags and load into the "Start Server" section of multiplayer, you'll notice all your settings are gone.

 

 

If you re-create all the settings here, and start a server (if you can), it will save the new version of the file out, and you can then continue using your dedicated server afterwards.

 

 

trying this now, hopefully resume on load wil work now

Link to comment
Share on other sites

trying this now, hopefully resume on load wil work now

 

 

I think I spoke too soon. This seems to have fixed it for our training server, but Georgia At War seems to still be having trouble with this. I'll try and play around with it tonight but people get antsy if it's down for too long :)

Acidic

Hoggit Admin / Server Owner / Mission Maker

Discord: https://discord.gg/hoggit

GAW Website: https://atwar.online

 

Wiki: https://hoggitworld.com

Link to comment
Share on other sites

Dear USSR_Rik and team: Thank you very much for your work! It is looking very promising! :thumbup:

 

pCreSTO.png

 

The above picture is from the task manager of our (Israeli community) dedicated server box that is sitting in a data center in Germany.

The CPU is an i7 4790K and it has 32 GB DDR3 RAM and also an 1050ti GPU. The OS is Windows Server 2016 Standard.

 

The user "dcs" is running the normal DCS Stable exe version host with SLMOD and the user "dcs2" is running latest Dedicated Server exe.

 

Both are running the same mission (simple mission with only a few MIST scripts on the Caucasus default theatre).

 

Both have the A-4E Mod in the "Saved Games/Mods/aircraft/..." folders.

 

I have not yet made any optimizations. This is running the Dedicated Server exe "directly out of the box" after installing according to your instructions in the first post.

 

Obviously the dedicated server exe is loading the missions much more quickly than the stable exe :thumbup:

 

As noted both versions of DCS running under separate users on the same machine started loading the same mission at the same time. The picture was taken ~20 minutes into the mission when there were approximately 30+ AI aircraft doing various tasks (tankers, AWACS, interceptors actively searching with their radars to engage, etc) and also various active SAM sites and several ships and all 3x CV types (Stennis, Tarawa, Kuznetsov) and some escort ships all with their radars running.

 

Compared to Stable version exe, the Dedicated Server exe is using less than half of RAM footprint and CPU utilization! That is more than twice better performance!

 

Thank you for this brilliant improvement! :worthy:

 

 

Some items to note:

 

1. Can't get IP Bind to work.

 

2. Can't find how to start servers in different CPU threads (per the April 12 newsletter).

 

3. It seems the "Mission End" trigger is not working. The next mission from the "List of Missions" is not being loaded.

 

4. The "Loop" button on the web gui keeps resetting itself back to "Off".

 

5. Very much interested to see ASAP the option for the main user account to able to add additional users for remote access to the DCS Server Dashboard web GUI via their own profile page.

 

Thank you and looking forward to the next updates!

 

Cheers


Edited by ViFF

IAF.ViFF

 

http://www.preflight.us

Israel's Combat Flight Sim Community Website

Link to comment
Share on other sites

Hello. I have looked for this but I didn't find a straight answer.

I'm trying to run a dedicated server in my second desktop PC on my local network. Do I need a second DCS account if I want to fly with my main account in my main desktop?

 

 

Thanks.

Link to comment
Share on other sites

Hello. I have looked for this but I didn't find a straight answer.

I'm trying to run a dedicated server in my second desktop PC on my local network. Do I need a second DCS account if I want to fly with my main account in my main desktop?

 

 

Thanks.

 

Yes. Just create a new DCS account and use that for the PC running the Dedicated Server exe.

IAF.ViFF

 

http://www.preflight.us

Israel's Combat Flight Sim Community Website

Link to comment
Share on other sites

Yes. Just create a new DCS account and use that for the PC running the Dedicated Server exe.

Hello. I have looked for this but I didn't find a straight answer.

I'm trying to run a dedicated server in my second desktop PC on my local network. Do I need a second DCS account if I want to fly with my main account in my main desktop?

 

Nope, there's no limit on the amount of simultaneous logins.


Edited by TAKYON
Link to comment
Share on other sites

Same. I can remote in from any computer, including the server computer, via the DCS webpage - but the local webgui index.html does not connect.
Did anyone manage to fix this? Can't access the WebGUI locally while it works perfectly fine from the DCS site.

My controls & seat

 

Main controls: , BRD-N v4 Flightstick (Kreml C5 controller), TM Warthog Throttle (Kreml F3 controller), BRD-F2 Restyling Bf-109 Pedals w. damper, TrackIR5, Gametrix KW-908 (integrated into RAV4 seat)

Stick grips:

Thrustmaster Warthog

Thrustmaster Cougar (x2)

Thrustmaster F-16 FLCS

BRD KG13

 

Standby controls:

BRD-M2 Mi-8 Pedals (Ruddermaster controller)

BRD-N v3 Flightstick w. exch. grip upgrade (Kreml C5 controller)

Thrustmaster Cougar Throttle

Pilot seat

 

 

Link to comment
Share on other sites

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...