Results 1 to 5 of 5

Thread: Launch dedicated server problem

  1. #1
    Ace Rostic's Avatar
    Join Date
    Sep 2015
    Posts
    1,829
    Post Thanks / Like
    Total Downloaded
    9.73 MB

    Launch dedicated server problem

    I'm trying to write application on C# that starts the dedicated server and redirects standard input and output. But server not launching in any way.

    When I launch dedicated server from shortcut whit link to object:
    "C:\Program Files (x86)\Steam\steamapps\common\IL-2 Sturmovik Cliffs of Dover Blitz\Launcher64.exe" -server
    server is started and work.

    If I try to start it from .cmd file wich contain the same command:
    "C:\Program Files (x86)\Steam\steamapps\common\IL-2 Sturmovik Cliffs of Dover Blitz\Launcher64.exe" -server
    pause
    console window of server displayed and then disapeared. And same I got when trying to launch server from my app.
    Code is:
    ProcessStartInfo ServerProcessInfo = new ProcessStartInfo();
    ServerProcessInfo.FileName = @"C:\Program Files (x86)\Steam\steamapps\common\IL-2 Sturmovik Cliffs of Dover Blitz\Launcher64.exe";
    ServerProcessInfo.Arguments = @"-server";
    ServerProcessInfo.RedirectStandardOutput = true;
    ServerProcessInfo.RedirectStandardError = true;
    ServerProcessInfo.RedirectStandardInput = true;
    ServerProcessInfo.UseShellExecute = false; // also tryed true for this but without redirection
    ServerProcessInfo.CreateNoWindow = false; // also tryed true for this

    Process ServerProcess = new Process();
    ServerProcess.StartInfo = ServerProcessInfo;
    ServerProcess.Start();
    Can some one help?

    My OS is Windows 10 x64
    PC spec: Intel Core i7 8700K 3.7Ghz, DDR4 32Gb 2666Mhz, Asus Prime Z370-A, ADATA XPG SX8200 240Gb (PCIe Gen3x4), RTX 2060 6Gb
    Monitor: DELL P2717H (1920x1080:60Hz)
    Joystick: Android smartphone MonectPC app (virtual joystick driver)
    Hadtracker: Track IR 4 / No VR

    Enjoy multiplayer historical campaigns with Flying Tin Cans.
    Join us: https://flyingtincans.com —(•)— Discord —(•)— YouTube


  2. #2
    Veteran Combat pilot
    Join Date
    Jan 2013
    Location
    chicago
    Posts
    369
    Post Thanks / Like
    Total Downloaded
    0

    Re: Launch dedicated server problem

    I am not sure how much if any of this works anymore. http://forum.1cpublishing.eu/showthread.php?t=22038
    “Ah, women. They make the highs higher and the lows more frequent.” Friedrich Nietzsche.

    Current rig: Ryzen 3600 ,16GB DDR4 3200 ram, 1TB Crucial NVMe, 500GB Samsung EVO, Seasonic platinum prime 750W, ASrock pro4, Vega56 VC, 2560x1440 144Hz Win10 64bit

  3. #3
    Veteran Combat pilot
    Join Date
    Jan 2013
    Location
    chicago
    Posts
    369
    Post Thanks / Like
    Total Downloaded
    0

    Re: Launch dedicated server problem

    This post will be edited as information changes

    Step 1
    (update 5/1/11) As of this post i understand that CLoD is making better use of multi cores but just tobe on the safe side here are some recommendations for setting processAffinityMask in your conf.ini file

    Dual-cores:

    SET processAffinityMask "3"

    Tri-cores & i5s:

    SET processAffinityMask "7"

    Quad-cores:

    SET processAffinityMask "15"

    I7s:

    SET processAffinityMask "85"

    16-core/8-core hyper-threaded

    SET processAffinityMask "21845"

    Step 1.1 (METHOD 1)

    there are 2 ways to start a Dedicated server , below is Method 1

    Right click Steam Icon (task bar) choose "library" in the upper left corner right click "il2-sturmovik cliffs of dover" and choose properties and then choose "set launch options"
    under launch option type in "-server" no quotations! click OK and then close steam windows (don't shut steam down)

    Step 1.1A Starting dedicated server(METHOD 2)

    open a CMD window navigate to the steam folder and type in
    Quote:
    steam.exe -silent -login (username) (password) no Brackets! -applaunch 63950 -server
    and here are some command line parameters for the Steam.exe
    http://developer.valvesoftware.com/w...e_parameters_3




    Step 2
    start game, DOS window will open and you may or may not get an error about "servericeservicesteam" just ignore it and continue.

    Step 3
    Setting the difficulty level, below in quotes is information that you will copy and save as "settings.cmd" in the root folder of your game \Documents\1C SoftClub\il-2 sturmovik cliffs of dover
    You can use any text editor to modify it, 0=off 1=on once you have change the values to your taste you will save the file in the root folder (as settings.cmd) and then in the DOS windows you will type "f settings.cmd" no quotes! hit enter ,now your server has the difficulty's settings you have chosen .

    Quote:

    difficulty AntropomorphicControl 0
    difficulty ComplexEManagement 0
    difficulty TorqueGyroEffects
    difficulty EngineTemperatureEffects 0
    difficulty FlutterEffects 1
    difficulty WindTurbulence 1
    difficulty StallSpins 1
    difficulty Vulnerabilty 1
    difficulty BlackoutsRedouts 1
    difficulty Realisticgunnery 1
    difficulty RealisticBombing 1
    difficulty LimitedAmmo 1
    difficulty LimitedFuel 1
    difficulty CockpitAlwaysOn 1
    difficulty NoOutsideViews 0
    difficulty HeadShake 0
    difficulty NoIcons 1
    difficulty NoPadlock 0
    difficulty Clouds 1
    difficulty TakeoffLanding 1
    difficulty RealisticLandings 1
    difficulty NoMapIcons 0
    difficulty NoMinimapPath 1
    difficulty NoAutopilot 1
    difficulty NoReplacementPlace 0
    difficulty NoReplacement 0
    difficulty NoSelect 0
    difficulty NoReplacementArmy 0
    difficulty NoSelectArmy 0
    difficulty NoCreate 0
    Step 4
    setting your map up correctly, ALL maps must have this code or one like it to keep the server from being cluttered with AI and broken aircraft.
    the script below must be dropped in the script section of what ever map you have loaded (under FMB), location is edit,script and then script tab once inserted choose save and a .cs of the same name as your mission will be generated.

    now you may place your spawn point AA and what ever else you wish.

    Now choose "view" then "object" and choose the top item from the drop menu which is "AI" under AI choose "airfield" and then hold down the CTRL button and left click the mouse with cursor right in the middle of you spawn points, then choose the AI actor tab and set the radius to 250 , this will remove broken AC from the spawn point.
    (thnx Dodhouse3 for airfield.cpp)

    once your map is done choose "save as" pick a name and make sure you move it to the root along with it .cs mate(see above) folder.

    (thnx ZaltysZ for script)
    Code:
    Quote:
    using System;
    using maddox.game;
    using maddox.game.world;
    using System.Collections.Generic;
    
    public class Mission : AMission
    {
    public void _DespawnEmptyPlane(AiActor actor)
    {
    if (actor == null)
    { return;}
    
    Player[] Players = GamePlay.gpRemotePlayers();
    
    bool PlaneIsEmpty = true;
    
    foreach (Player i in Players)
    {
    if ((i.Place() as AiAircraft) == (actor as AiAircraft))
    {
    PlaneIsEmpty = false;
    break;
    }
    }
    
    if (PlaneIsEmpty)
    { (actor as AiAircraft).Destroy(); }
    }
    
    public override void OnPlaceLeave(Player player, AiActor actor, int placeIndex)
    {
    base.OnPlaceLeave(player, actor, placeIndex);
    Timeout(1, () =>
    {
    _DespawnEmptyPlane(actor);
    });
    }
    }
    Step 6
    starting your server.
    type "missLoad" (name of you map) and hit enter
    then type "battle start" if you see an "ok" at the end your server is started
    "battle stop" will stop the server and "host" will tell you how many people our on and typing "?" will give you a list of commands


    Below is a script using .cmd i use to rotate maps
    Quote:
    battle stop

    missLoad missions/Multi/Dogfight/doom1a.mis

    timeout 180.00 chat Welcome to MadMiget PornLab Server ALL
    timeout 200.00 chat please repot all EXP to the 1C forum of this servers name ALL
    timeout 340.00 chat Maps rotate Every 4 hours ALL
    timeout 14200.000 chat Map will change in 3 minutes ALL
    timeout 14260.000 chat Map will change in 2 minutes ALL
    timeout 14320.000 chat Map will change in 1 minutes ALL
    timeout 14400.000 f mission-2.cmd
    battle start
    timeout is measured in seconds so 180.00= 3 minutes so by the time 14400.000 roles around (4 hours) the "f" command is given and a new .cmd is loaded that looks just like this one except the map is different and the messages if you choose.

    S!
    “Ah, women. They make the highs higher and the lows more frequent.” Friedrich Nietzsche.

    Current rig: Ryzen 3600 ,16GB DDR4 3200 ram, 1TB Crucial NVMe, 500GB Samsung EVO, Seasonic platinum prime 750W, ASrock pro4, Vega56 VC, 2560x1440 144Hz Win10 64bit

  4. Likes Rostic liked this post
  5. #4
    ATAG Member ATAG_Oskar's Avatar
    Join Date
    Nov 2017
    Location
    Canada
    Posts
    986
    Post Thanks / Like
    Total Downloaded
    908.31 MB

    Re: Launch dedicated server problem

    You could try decompiling the Watchdog program to see how it works. It restarts the server for each mission.

  6. Likes Rostic liked this post
  7. #5
    Ace Rostic's Avatar
    Join Date
    Sep 2015
    Posts
    1,829
    Post Thanks / Like
    Total Downloaded
    9.73 MB

    Re: Launch dedicated server problem

    Quote Originally Posted by ATAG_Oskar View Post
    You could try decompiling the Watchdog program to see how it works. It restarts the server for each mission.
    Thank you, ATAG_Oskar! I just had to set working directory
    Now it sarts!!!


    Quote Originally Posted by thee_oddball View Post
    I am not sure how much if any of this works anymore. http://forum.1cpublishing.eu/showthread.php?t=22038
    And thank to you, thee_oddball. But I had already read all that topic. It contains many usefull info. But for another part of work...
    Last edited by Rostic; Jan-12-2019 at 16:58.
    PC spec: Intel Core i7 8700K 3.7Ghz, DDR4 32Gb 2666Mhz, Asus Prime Z370-A, ADATA XPG SX8200 240Gb (PCIe Gen3x4), RTX 2060 6Gb
    Monitor: DELL P2717H (1920x1080:60Hz)
    Joystick: Android smartphone MonectPC app (virtual joystick driver)
    Hadtracker: Track IR 4 / No VR

    Enjoy multiplayer historical campaigns with Flying Tin Cans.
    Join us: https://flyingtincans.com —(•)— Discord —(•)— YouTube


  8. Likes thee_oddball liked this post

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •