Skip to content
Beta: this is a preview of the new SplitScreen.Me. Data may be reset before launch.

Dying Light · handler “DyingLight”

Version 11

Release notes

Steam fix?

Released
Size
3.5 MB
Downloads
310
Check
Verified
SHA-256
94275ae0df8126aba6dbe4baa74e0ed57c36c155580f0d8a5de46095d75f97f0
Download v11 (.nc)All versions

Files 2

PathSize
Dyinglight/EOSSDK-Win64-Shipping.dll10.6 MB
handler.js7.3 KB

handler.js

Plain text
Hub.Handler.Version = 11; // Released at https://hub.splitscreen.me/ on Sat Apr 29 2023 03:06:32 GMT+0000 (Coordinated Universal Time).
Hub.Handler.Id = "yo3feQwberZKvghmZ";
Hub.Maintainer.Name = "Talos91";
Hub.Maintainer.Id = "eeL7HAz8zJovChWw4";

Game.ExecutableContext = ["engine_x64_rwdi.dll", "DW"];
Game.KillMutex = ["ChromeEngine4DIMutex"];
Game.FileSymlinkExclusions = ["steam_api64.dll", "EOSSDK-Win64-Shipping.dll", "steam_appid.txt", "local_save.txt", "winmm.dll"];
Game.UseNucleusEnvironment = true;
Game.NeedsSteamEmulation = false;
Game.UseGoldberg = true;
Game.GoldbergNoLocalSave = true;
Game.UseNemirtingasEpicEmu = true;
Game.HandlerInterval = 100;
Game.SymlinkExe = false;
Game.SymlinkGame = true;
Game.ExecutableName = "DyingLightGame.exe";
Game.SteamID = "239140";
Game.GUID = "Dying Light";
Game.GameName = "Dying Light";
Game.MaxPlayers = 4;
Game.MaxPlayersOneMonitor = 4;
Game.LauncherTitle = "";
Game.HideTaskbar = false;
Game.StartArguments = "";
Game.Hook.ForceFocus = true;
Game.Hook.ForceFocusWindowName = "Dying Light";
Game.PreventWindowDeactivation = true;
Game.KeyboardPlayerSkipPreventWindowDeactivate = true;
Game.HookFocus = true;
Game.ResetWindows = true;
Game.Hook.DInputEnabled = false;
Game.Hook.XInputEnabled = true;
Game.Hook.XInputReroute = false;
Game.XInputPlusDll = ["xinput1_3.dll", "xinput1_4.dll"];
Game.Hook.CustomDllEnabled = false;
Game.SupportsKeyboard = true;
Game.UserProfileConfigPath = "Documents\\DyingLight\\out\\settings";
Game.UserProfileSavePath = "AppData\\Roaming\\Goldberg SteamEmu Saves\\239140\\remote";
Game.UserProfileConfigPathNoCopy = false;
Game.UserProfileSavePathNoCopy = true;
Game.Description =
  "Should work for both the Steam and Epic versions of the game. Run the game from the respective launcher once in order to create the game configuration files. All players must have completed the tutorial in order to unlock multiplayer. When multiplayer is unlocked for all, open the pause menu, set network mode to public and select the player you wanna join in the friends list (bottom right).";
Game.PauseBetweenStarts = 35;

Game.Play = function() {
  var savePath = Context.EnvironmentPlayer + Context.UserProfileConfigPath + "\\video.scr";

  var resLine = Context.FindLineNumberInTextFile(savePath, "Resolution", Nucleus.SearchType.StartsWith);
  Context.ReplacePartialLinesInTextFile(savePath, [resLine + "|" + "\\(([^\\)]+)\\)" + "|(" + Context.Width + "," + Context.Height + ")"]);

  var fsLine = Context.FindLineNumberInTextFile(savePath, "Fullscreen", Nucleus.SearchType.StartsWith);
  Context.RemoveLineInTextFile(savePath, fsLine);

  var filePath = (Context.filePath = Context.GetFolder(Nucleus.Folder.InstancedGameFolder) + "\\steam_settings");
  System.IO.Directory.CreateDirectory(filePath);

  var dlc = Context.GetFolder(Nucleus.Folder.InstancedGameFolder) + "\\steam_settings\\DLC.txt";
  var lines = [
    "302100=Dying Light - Be the Zombie",
    "302101=Dying Light - Cuisine & Cargo",
    "302102=Dying Light - Punk Queen Weapon Pack",
    "302103=Dying Light - Buzz Killer Weapon Pack",
    "325710=Dying Light - Night Club Weapon Pack",
    "325711=Dying Light - The Lacerator Weapon Pack",
    "325712=Dying Light - The Constable Weapon Pack",
    "325713=Dying Light - Wrench Kiss Weapon Pack",
    "325714=Dying Light - Ninja Outfit",
    "325715=Dying Light - Urban Explorer Outfit",
    "325716=Dying Light - Special Agent Outfit",
    "325717=Dying Light - Techland Outfit",
    "325720=Dying Light - Alienware Outfit",
    "325721=Dying Light - Nvidia Outfit",
    "325722=Dying Light - Razer Outfit",
    "325723=Dying Light - The Bozak Horde",
    "325724=Dying Light - The Following",
    "335810=Dying Light Season Pass",
    "347090=Dying Light Ultimate Survivor Bundle",
    "412920=Dying Light - Custom Maps",
    "415360=Dying Light: Razer Nabu Outfit",
    "415370=Dying Light - Custom Maps 2",
    "435110=Dying Light: Outfit and Livery 1",
    "435111=Dying Light- Crash Test Skin Pack",
    "436080=Dying Light- Harran Ranger Bundle",
    "436081=Dying Light- Gun Psycho Bundle",
    "436082=Dying Light- Volatile Hunter Bundle",
    "436083=Dying Light: CD-Action Anniversary Pack",
    "675860=Dying Light - Harran Military Rifle",
    "748340=Dying Light - White Death Bundle",
    "748341=Dying Light - Vintage Gunslinger Bundle",
    "1112520=Dying Light - Rais Elite Bundle",
    "1112521=Dying Light - Godfather Bundle",
    "1174580=Dying Light - Harran Inmate Bundle",
    "1174581=Dying Light - Left 4 Dead 2 Weapon Pack",
    "1177880=Dying Light - Retrowave Bundle",
    "1184350=Dying Light - SHU Warrior Bundle",
    "1184351=Dying Light - Chivalry Weapon Pack",
    "1241570=Dying Light - 5th Anniversary Bundle",
    "1272090=Dying Light - Unturned Weapon Pack",
    "1300710=Dying Light - Hellraid",
    "1354960=Dying Light - Volkan Combat Armor Bundle",
    "1454750=Dying Light - L4D2 Bill & Gnome Chompski Pack",
    "1468290=Dying Light - Classified Operation Bundle",
    "1498210=Dying Light - Viking: Raider of Harran Bundle",
    "1524890=Dying Light - Ox Warrior Bundle",
    "1543420=Dying Light - Harran Tactical Unit Bundle",
    "1599030=Dying Light - Rust Weapon Pack",
    "1647900=Dying Light - Savvy Gamer Bundle",
    "1702060=Dying Light - Astronaut Bundle",
    "1762700=Dying Light - Van Crane Bundle",
    "1822810=Dying Light - Snow Ops Bundle",
    "1935540=Dying Light - Dieselpunk Bundle"
  ];
  Context.WriteTextFile(dlc, lines);

  if (System.IO.Directory.Exists(Context.OrigRootFolder + "\\.egstore")) {
    Game.UseGoldberg = false;

    var eosEmuDestination = Context.GetFolder(Nucleus.Folder.InstancedGameFolder) + "\\EOSSDK-Win64-Shipping.dll";
    var eosEmuSource = System.IO.Path.Combine(Game.Folder, "EOSSDK-Win64-Shipping.dll");
    System.IO.File.Copy(eosEmuSource, eosEmuDestination, true);

    Context.StartArguments =
      "-AUTH_LOGIN=unused -AUTH_PASSWORD=bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb -AUTH_TYPE=exchangecode -epicapp=CrabTest -epicenv=Prod -EpicPortal -epiclocale=" +
      Context.EpicLang +
      " -epicusername=" +
      Context.Nickname +
      " -epicuserid=0000000000000000000000000player" +
      Context.PLayerID;

    var jsonPath = Context.GetFolder(Nucleus.Folder.InstancedGameFolder) + "\\nepice_settings\\NemirtingasEpicEmu.json";
    var params = [
      "{",
      '"EOSEmu": {',
      '"Achievements": {',
      ' "OnlineDatabase": ""',
      "},",
      '"Application": {',
      '"AppId": "f653266870894ee1acbb5250e3b04bd1",',
      '"DisableOnlineNetworking": false,',
      '"LogLevel": "off",',
      '"SavePath": "appdata"',
      "},",
      '"Ecom": {',
      '"UnlockDlcs": true',
      "},",
      '"Plugins": {',
      '"Overlay": {',
      ' "Enabled": true',
      "  }",
      " },",
      '"User": {',
      '"Language":' + '"' + Context.EpicLang + '"' + ",",
      '"UserName": ' + '"' + Context.Nickname + '"',
      "}",
      "},",
      '"Network": {',
      '"IceServers": [],',
      '"Plugins": {',
      '"Broadcast": {',
      '"Enabled": true',
      " },",
      '"WebSocket": {',
      '"SignalingServers": []',
      "}",
      " }",
      "}",
      "}"
    ];
    Context.WriteTextFile(jsonPath, params);
  } else {
    Context.StartArguments = " -nologos";
  }
};