Mega Man 8-bit Deathmatch · handler “Mega Man 8-bit Deathmatch”
Version 1
Release notes
First Release
- Released
- Size
- 1.8 KB
- Downloads
- 240
- Check
- Verified
- SHA-256
- bdb7defcce01961a6cd57036faf4efaac68b0113a59853ca96738935ee8228f5
Files 1
| Path | Size |
|---|---|
| handler.js | 4.9 KB |
handler.js
Plain textHub.Handler.Version = 1; // Released at https://hub.splitscreen.me/ on Mon Jan 11 2021 23:24:34 GMT+0000 (UTC).
Hub.Handler.Id = "2m3nEWzESpRJ9btv9";
Hub.Maintainer.Name = "Talos91";
Hub.Maintainer.Id = "eeL7HAz8zJovChWw4";
Game.FileSymlinkExclusions = ["autoexec.cfg"];
Game.NeedsSteamEmulation = false;
Game.HandlerInterval = 100;
Game.SymlinkExe = false;
Game.SymlinkGame = true;
Game.HardcopyGame = true;
Game.SupportsKeyboard = true;
Game.ExecutableName = "MM8BDM.exe";
Game.SteamID = "";
Game.GUID = "Mega Man 8 bit Deathmatch";
Game.GameName = "Mega Man 8-bit Deathmatch";
Game.MaxPlayers = 32;
Game.MaxPlayersOneMonitor = 32;
Game.BinariesFolder = "";
Game.LauncherTitle = "";
Game.HideTaskbar = true;
Game.NotTopMost = true;
Game.Hook.ForceFocus = true;
Game.Hook.ForceFocusWindowName = "ZANDRONUM";
Game.HasDynamicWindowTitle = true;
Game.Hook.DInputEnabled = false;
Game.Hook.DInputForceDisable = true;
Game.Hook.XInputEnabled = true;
Game.Hook.XInputReroute = false;
Game.Hook.CustomDllEnabled = false;
Game.InjectHookXinput = true;
Game.FakeFocus = true;
Game.HookFocus = true;
Game.WindowStyleValues = ["~0xC00000", "~0x40000", "~0x20000000", "~0x20000", "~0x80000", "0x40000000"];
Game.ExtWindowStyleValues = ["~0x00000001", "~0x00000200", "~0x00020000"];
Game.ResetWindows = true;
Game.Description =
"Once the first MM8BDM launcher opens go to the Host tab and host a LAN server, then go to the Play tab and start the game, you should join automatically to the server you just created. Close the launcher and minimize the server, then select the zandronum process in the Nucleus process picker window, click refresh if you do not see it, alt-tab to use the cursor and keyboard. For the other instances that open just click start in the launcher and they should join the server automatically too, next follow the same steps with process picker and you should be good to go. If you want the instances to resize correctly you need to create custom resolutions in your AMD/Nvidia/Intel panel (For example: 960x1080, 960x540, 1920x540 etc.) so the game can see them and use them. Remember to only map the buttons of your gamepad in-game, if you are using xinput gamepads the sticks should work automatically for movement and camera, do not map them again. Edit this script with your correct zandronum-Youusername .ini if the script is not editing this ini correctly.";
Game.KeepSymLinkOnExit = true;
Game.ForceProcessPick = true;
Game.KillProcessesOnClose = ["zandronum"];
Game.PauseBetweenStarts = 30;
Game.Play = function() {
var username = System.Environment.UserName;
var savePath = (Context.SavePath = Context.GetFolder(Nucleus.Folder.InstancedGameFolder) + "\\zandronum-" + username + ".ini");
Context.ModifySaveFile(savePath, savePath, Nucleus.SaveType.INI, [
new Nucleus.IniSaveInfo("Doom.AutoExec", "Path", Context.RootFolder + "\\autoexec.cfg"),
new Nucleus.IniSaveInfo("GlobalSettings", "vid_aspect", 0),
new Nucleus.IniSaveInfo("GlobalSettings", "vid_nowidescreen", false),
new Nucleus.IniSaveInfo("GlobalSettings", "vid_defheight", Context.Height),
new Nucleus.IniSaveInfo("GlobalSettings", "vid_defwidth", Context.Width),
new Nucleus.IniSaveInfo("GlobalSettings", "use_joystick", true),
new Nucleus.IniSaveInfo("GlobalSettings", "joy_xinput", true),
new Nucleus.IniSaveInfo("GlobalSettings", "joy_ps2raw", false),
new Nucleus.IniSaveInfo("GlobalSettings", "joy_dinput", false),
new Nucleus.IniSaveInfo("GlobalSettings", "mouse_capturemode", 0),
new Nucleus.IniSaveInfo("GlobalSettings", "fullscreen", false),
new Nucleus.IniSaveInfo("Doom.Player", "name", "\\cv" + Context.Nickname + "\\c-"),
new Nucleus.IniSaveInfo("Doom.ConsoleVariables", "sv_maxclientsperip", "16"),
new Nucleus.IniSaveInfo("Doom.UnknownConsoleVariables", "MM8BDM_ZandronumPath", Context.RootFolder + "\\zandronum.exe"),
new Nucleus.IniSaveInfo("Doom.UnknownConsoleVariables", "MM8BDM_IWADPath", Context.RootFolder + "\\megagame.wad"),
new Nucleus.IniSaveInfo("Doom.UnknownConsoleVariables", "MM8BDM_PK3Path", Context.RootFolder + "\\MM8BDM-v6a.pk3")
]);
var autoExec = Context.GetFolder(Nucleus.Folder.InstancedGameFolder) + "\\autoexec.cfg";
var lines = ["connect localhost"];
Context.WriteTextFile(autoExec, lines);
if (Context.IsKeyboardPlayer) {
var username = System.Environment.UserName;
var savePath = (Context.SavePath = Context.GetFolder(Nucleus.Folder.InstancedGameFolder) + "\\zandronum-" + username + ".ini");
Context.ModifySaveFile(savePath, savePath, Nucleus.SaveType.INI, [
new Nucleus.IniSaveInfo("GlobalSettings", "vid_nowidescreen", false),
new Nucleus.IniSaveInfo("GlobalSettings", "use_joystick", false),
new Nucleus.IniSaveInfo("GlobalSettings", "joy_xinput", false),
new Nucleus.IniSaveInfo("GlobalSettings", "joy_ps2raw", false),
new Nucleus.IniSaveInfo("GlobalSettings", "joy_dinput", false)
]);
}
};