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

Cube World · handler “CubeWorld”

Version 1

Release notes

First Release

Released
Size
852 B
Downloads
156
Check
Unverified
SHA-256
35efe4dfd0b42ef502007d5cd2e16bf4069c0b8507ff5eb9817fc89a2e679a8f
Download v1 (.nc)All versions

Files 1

PathSize
handler.js1.5 KB

handler.js

Plain text
Hub.Handler.Version = 1; // Released at https://hub.splitscreen.me/ on Tue Nov 12 2019 21:45:41 GMT+0000 (UTC).
Hub.Handler.Id = "Cjg5fa5z5xCF9tGXj";
Hub.Maintainer.Name = "Talos91";
Hub.Maintainer.Id = "eeL7HAz8zJovChWw4";

Game.FileSymlinkExclusions = ["steam_api64.dll", "steam_appid.txt", "options.cfg"];
Game.GameName = "Cube World";
Game.HandlerInterval = 100;
Game.SymlinkExe = false;
Game.SymlinkGame = true;
Game.SymlinkFolders = true;
Game.SupportsKeyboard = false;
Game.ExecutableName = "cubeworld.exe";
Game.SteamID = "1128000";
Game.GUID = "Cube World";
Game.MaxPlayers = 10;
Game.MaxPlayersOneMonitor = 10;
Game.BinariesFolder = "";
Game.NeedsSteamEmulation = false;
Game.UseGoldberg = true;
Game.LauncherTitle = "";
Game.Hook.ForceFocus = true;
Game.Hook.ForceFocusWindowName = "Cube World";
Game.Hook.DInputEnabled = false;
Game.Hook.DInputForceDisable = true;
Game.Hook.XInputEnabled = true;
Game.Hook.XInputReroute = false;
Game.Hook.XInputNames = ["xinput1_4.dll"];
Game.PauseBetweenStarts = 30;

Game.Play = function() {
  var savePath = (Context.SavePath = Context.GetFolder(Nucleus.Folder.InstancedGameFolder) + "\\options.cfg");
  var savePkgOrigin = System.IO.Path.Combine(Context.RootInstallFolder, "options.cfg");
  System.IO.File.Copy(savePkgOrigin, savePath, true);

  var txtPath = Context.GetFolder(Nucleus.Folder.InstancedGameFolder) + "\\options.cfg";
  var dict = ["1|fullscreen 0", "2|resolutionX " + Context.Width, "3|resolutionY " + Context.Height];
  Context.ReplaceLinesInTextFile(txtPath, dict);
};