From 5f4b3a0fe51af9e03f70720cfc40fa9e7f44d91d Mon Sep 17 00:00:00 2001 From: Kevin Trocolli Date: Sun, 5 Jun 2022 03:34:38 -0400 Subject: [PATCH] added ongeki build --- Package.mk | 17 ++++++++++++ dist/mu3/segatools.ini | 60 ++++++++++++++++++++++++++++++++++++++++++ dist/mu3/start.bat | 15 +++++++++++ 3 files changed, 92 insertions(+) create mode 100644 dist/mu3/segatools.ini create mode 100644 dist/mu3/start.bat diff --git a/Package.mk b/Package.mk index fcac6f9f..53fd8325 100644 --- a/Package.mk +++ b/Package.mk @@ -43,6 +43,22 @@ $(BUILD_DIR_ZIP)/mercury.zip: $(V)strip $(BUILD_DIR_ZIP)/mercury/*.{exe,dll} $(V)cd $(BUILD_DIR_ZIP)/mercury ; zip -r ../mercury.zip * + +$(BUILD_DIR_ZIP)/mu3.zip: + $(V)echo ... $@ + $(V)mkdir -p $(BUILD_DIR_ZIP)/mu3 + $(V)mkdir -p $(BUILD_DIR_ZIP)/mu3/DEVICE + $(V)cp $(BUILD_DIR_64)/subprojects/capnhook/inject/inject.exe \ + $(BUILD_DIR_64)/mu3hook/mu3hook.dll \ + $(DIST_DIR)/mu3/segatools.ini \ + $(DIST_DIR)/mu3/start.bat \ + $(BUILD_DIR_ZIP)/mu3 + $(V)cp pki/billing.pub \ + pki/ca.crt \ + $(BUILD_DIR_ZIP)/mu3/DEVICE + $(V)strip $(BUILD_DIR_ZIP)/mu3/*.{exe,dll} + $(V)cd $(BUILD_DIR_ZIP)/mu3 ; zip -r ../mu3.zip * + $(BUILD_DIR_ZIP)/doc.zip: \ $(DOC_DIR)/config \ $(DOC_DIR)/chunihook.md \ @@ -56,6 +72,7 @@ $(BUILD_DIR_ZIP)/segatools.zip: \ $(BUILD_DIR_ZIP)/doc.zip \ $(BUILD_DIR_ZIP)/idz.zip \ $(BUILD_DIR_ZIP)/mercury.zip \ + $(BUILD_DIR_ZIP)/mu3.zip \ CHANGELOG.md \ README.md \ diff --git a/dist/mu3/segatools.ini b/dist/mu3/segatools.ini new file mode 100644 index 00000000..3279509d --- /dev/null +++ b/dist/mu3/segatools.ini @@ -0,0 +1,60 @@ +[vfs] +; Insert the path to the game AMFS directory here (contains ICF1 and ICF2) +amfs=amfs +; Create an empty directory somewhere and insert the path here. +; This directory may be shared between multiple SEGA games. +; NOTE: This has nothing to do with Windows %APPDATA%. +appdata=appdata +option=option + +[dns] +; Insert the hostname or IP address of the server you wish to use here. +; Note that 127.0.0.1, localhost etc are specifically rejected. +default=127.0.0.1 + +[ds] +; Region code on the emulated AMEX board DS EEPROM. +; 1: Japan +; 4: Export (some UI elements in English) +; +; NOTE: Changing this setting causes a factory reset. +region=1 + +[netenv] +; Simulate an ideal LAN environment. This may interfere with head-to-head play. +; SEGA games are somewhat picky about their LAN environment, so leaving this +; setting enabled is recommended. +enable=1 + +[keychip] +; The /24 LAN subnet that the emulated keychip will tell the game to expect. +; If you disable netenv then you must set this to your LAN's IP subnet, and +; that subnet must start with 192.168. +subnet=192.168.250.0 + +[gfx] +enable=1 + +[io4] +; Input API selection for JVS input emulator. +; Set "1" to use a xinput gamepad and set "2" to use keyboard. +mode=2 + +test=0x31 +service=0x32 + +[dinput] +LEFT_A=0x53 +LEFT_B=0x44 +LEFT_C=0x46 +LEFT_MENU=0x51 +LEFT_SIDE=0x52 +RIGHT_A=0x4A +RIGHT_B=0x4B +RIGHT_C=0x4C +RIGHT_MENU=0x50 +RIGHT_SIDE=0x55 +SLIDER_LEFT=0x54 +SLIDER_RIGHT=0x59 +;Change move speed of slider when use dinput +SLIDER_SPEED=1000 \ No newline at end of file diff --git a/dist/mu3/start.bat b/dist/mu3/start.bat new file mode 100644 index 00000000..c00f2eaa --- /dev/null +++ b/dist/mu3/start.bat @@ -0,0 +1,15 @@ +@echo off +pushd %~dp0 + +taskkill /f /im amdaemon.exe > nul 2>&1 + +REM USA +REM start inject -d -k mercuryhook.dll amdaemon.exe -f -c config.json config_lan_install_client.json config_lan_install_server.json config_video_clone.json config_video_dual.json config_video_clone_flip.json config_video_dual_flip.json config_region_exp.json config_region_chn.json config_region_usa.json + +REM JP +start inject -d -k mercuryhook.dll amdaemon.exe -f -c config.json config_lan_install_client.json config_lan_install_server.json config_video_clone.json config_video_dual.json config_video_clone_flip.json config_video_dual_flip.json config_region_exp.json config_region_chn.json config_region_jpn.json +inject -d -k mercuryhook.dll ../WindowsNoEditor/Mercury/Binaries/Win64/Mercury-Win64-Shipping.exe + +taskkill /f /im amdaemon.exe > nul 2>&1 + +echo Game processes have terminated \ No newline at end of file