Jump to content
LaunchBox Community Forums

6 Screenshots

About This File

UPDATE: Using Demul with LaunchBox needs a specific setup. I've added some clear instructions on how to do so.
Furthermore, using the bat files provided in LaunchBox requires you to uncheck 'use an emulator'. Which is an easy job. However, doing that will restrict you from using the 'Running Script' which allows you to Exit the Emulator with Esc. Booo.
I want to be able to have per game controls AAAND Esc as exit when using LaunchBox.

So, again I have done just that. There are now some LB specific bat files that need be integrated into the 'Additional Apps' part for all 6 games. It's a quick job I promise. This allows the per game configs to be used while retaining the 'Esc to exit' functionality in the 'Running Script' of the emulator.

I have also added the control inputs to the documentation. This makes it easy if you for some reason need to set it yourself.
The LaunchBox side of this requires a bit of setup, so the whole procedure will be below.
ENF OF UPDATE
 

Get the Emulator here. Link may become out of date over time but you'll be in the right place for the new versions.

https://www.emu-france.com/?wpfb_dl=7038


With the release of the new Demul emulator specifically for Hikaru, a pre config is deserved. No messing with this one. It was complicated for me, but for you it's stupid easy.

Demul doesn't support per game control configs, which is a pain as these Arcade games require bespoke configs. Meaning you'll have to constantly change the defaults each time you change game. Boooo.

So, I have made some per game ini files with the correct controls set. Just figuring out the controls was a nightmare. Anyway, along with these per game ini files, I have made some .bat files to launch said games with their respective per game control ini file. Forcing per game controls into Demul. There are 2 versions. The bat files you can use standalone or anywhere else, and the ones that are LB specific. LB needs different ones as the Running Script needs to be active for Esc to be exit, and this can't be used if 'Use emulator' is checked, which is required for the normal bats to work and apply per game setting. Booo! Anyway, here are the bat examples, they are super simple.

Normal, general bat launcher that you can use standalone or anywhere else.

@echo off
cd /d "%~dp0.."
copy /Y "controls\padDemul_airtrix.ini" "padDemul.ini"
start "" demul.exe -run=hikaru -rom=airtrix
exit

LaunchBox Specific Bat

@echo off
cd /d "%~dp0.."
copy /Y "controls\padDemul_airtrix.ini" "padDemul.ini"
exit

SETUP DEMUL WITH LAUNCHBOX
-Add emulator as normal, add application path to demul.exe as normal
-Check (turn on) 'Remove quotes' & 'Remove file extension and folder path'
-Go to Associated Platforms and add Sega Hikaru as a platform (if not already there)
-In Default Command Line Perimeters IN THE ASSOCIATED PLATFORM you MUST ADD: -run=hikaru -rom=
-Go to Running Scripts and replace the one that's already there with this more reliable one:

SetKeyDelay, 0, 50
$Esc::Send !{F4}

That's the emulator done!

PER GAME CONTROLS AND LB BAT FILES INSTALL:
-Download and unzip the pre config files.
-Place 'lb bat launchers', 'bat launchers' and 'controls' folders into the root of your Demul folder.
-Right click on a Hikaru game, Edit, Metadata and Media
-Go to Additional Apps on the left and hit Add Application
-Name it whatever but I go with "Romname Per Game Controls"
-Hit browse next to Application Path
-Then select the .bat file for the game you are configuring FROM THE 'LB BAT LAUNCHERS' FOLDER PROVIDED that should be in the root of Demul, after you put it there.
-Leave Command line blank.
-Check (turn on) 'Auto Run Before Application' and 'Wait for Exit'
-Hit ok to save

-Repeat from step 3 for the other 5 games. You'll then have per game controls aaand esc as exit. Yaaaay!

If you aren't using LB, use the non LB bat launchers. These work standalone or with other front ends. But, Alt+F4 will be exit unless a solution is deployed.

As is tradition, here is the documentation. There was some really tricky stuff despite being only 6 games.

Airtrix
airtrix
airtrixo
-The 'Roll' input is surplus to requirements when using a controller. It was barely functional on the OG cab, just looked cool.
-Digital Up & Down is Ollie and Nollie (Grind). This confused the crap outa me until I look at the owner's manual.
-Configured in the Alternate Settings due to the regular one splitting the analog axis for some reason. Rather than just binding some inputs to the alt ones, all have been bound to alt settings to save confusion.
-Calibrated in the test menu for the best analog coverage.

HOW TO PLAY:
This game has been setup to play like Tony Hawks. X/A is Ollie/Tricks, Grinds are Triangle/Y. There is no "nollie" despite the board making that motion on the OG cab. Standing on the nose is just Grind/Lip Trick.
-Left Stick to move and spin
-X/A is Ollie. Press this again multiple times while in the air to do combos.
-Triangle/Y is Grind. You MUST be turning at the same time to do a grind.
-Spinning you have 2 options:
1-Simply hold left or right when hit the lip and you'll automatically do a basic spin trick.
2-Ollie at the lip while holding left or right, to do a "better" spin trick than if you hadn't ollied at all.

Doing Different Tricks:
-When doing an "combo air" (no spinning) you can use left and right on the left stick, as well as ollie, to do tricks while in the air.

Key To Getting Good
-If you are still holding a spin direction on reentry you'll slow down. Remember to let go of the stick before you go back in the ramp.
-Combos can only be performed when not spinning. As long as you aren't holding a direction at the same time as doing an ollie, you'll be doing a 'combo air'.
-However, you can still spin AND combo in the same air. As long as you let go of the direction, you can combo at any time. So, you can spin at the start of an air, let go of the stick and spam X/A to combo for the rest of the air.


DEMUL CONTROL CONFIG. ONLY WHAT THE GAME USES WILL BE LISTED. THIS IS TO HELP IF YOU NEED TO MAP CONTROLS YOURSELF.

JOY 1, use Alternative Settings:
-Digital UP = Nollie / Stand on Nose (Grind)
-Digital DOWN = Ollie / Tricks
-Digital LEFT & RIGHT = Character Select / Menu Left & Right

Analog 1 LEFT & RIGHT = Turn / Spin / Swing Boad
Analog 1 UP & DOWN = Roll (This input is not required for controller use. No need to map it)
Planet Harriers
pharrier
-Nice and easy controls to configure. Nothing bizzare of annoying here.
-Calibrated in the test menu for the best analog coverage.


DEMUL CONTROL CONFIG. ONLY WHAT THE GAME USES WILL BE LISTED. THIS IS TO HELP IF YOU NEED TO MAP CONTROLS YOURSELF.

JOY 1
-Analog 1 UP, DOWN, LEFT, RIGHT = Move (If you want inverted controls set up to down, down to up)

-PUSH 1 = Shoot
-PUSH 2 = Lock-On
-PUSH 3 = Bomb
NASCAR Arcade
sgnascar
sgnascaro
-So, most controls were easy to figure out...except gears. This ended up being looooong....
-Gears are bound to the JOY 2 slot of the configuration, despite being a 1 Player instance. Confusing to say the least.
-Now more confusion. It's a 4 way H Gear system with a Neutral position, 5 inputs technically. This is set to the Up/Down/Left/Right digital inputs of the JOY 2 config.
-Strange thing is Up is 3rd gear and Down is 4th gear, with Left and Right being inputs, just not on their own. 1st & 2nd gear are combination inputs.... FOR SOME GOD FORSAKEN REASON.
1st Gear = Digital Up/3rd Gear with DIGITAL LEFT at the same time.
2nd Gear = Digital Down/4th Gear with DIGITAL LEFT at the same time.

What digital left actually is, is a mystery. It doesn't register as a gear on its own, only in combination with 3rd and 4th gear. It's a miracle I even caught this to be honest.
Maybe on the OG cab the gear lever would pressed multiple inputs when in 1st and 2nd. It's the only explanation, bat shit!

Aaanyway, I have macro these inputs to actually work thanks to the 'Alternative Settings'. These allow multiple inputs to be bound, helping me to get the gears in sequence on the face buttons.


DEMUL CONTROL CONFIG. ONLY WHAT THE GAME USES WILL BE LISTED. THIS IS TO HELP IF YOU NEED TO MAP CONTROLS YOURSELF.

Demul Gear Settings to Macro/Combine Stupid Shit Gear Inputs (xbox buttons, just for reference):
MUST BE DONE IN JOY 2 CONFIGURATION
-In 'normal config' (not Alternative)
Digital UP = X
Digital DOWN = B
Digital LEFT = Y

-In Alternative Settings
Digital UP = A
Digital DOWN = Y
Digital LEFT = X

This means the gear controls are as below. Just like a H transmission.
X = 1st
Y = 2nd
A = 3rd
B = 4th

The rest of the controls you want to set in normal settings (not alt)
IN JOY 1
-Analog 1 LEFT & RIGHT = Steering
-Analog 1 UP = Accelerate
-Analog 1 DOWN = Brake

-Digital UP = View Change

Despite this ridiculous amount of effort,
the gears still aren't usable, unless you constantly hold the button for that gear. The age old issue of 'gears not sticking' has been around forever. This needs to be tackled at the emulation development level, or with something like joytokey. Now that I have identified them, perhaps someone can do something about it so we can have gears that stay in position.
Star Wars Arcade Racer
swracer
-Nice and easy to configure.
-Nice and easy to play, this game AUTO ACCELERATES. Kid friendly. Braking is still manual. No option for manual acceleration at all.
-Test Menu is fine at default. Calibration is correct out of the box!


DEMUL CONTROL CONFIG. ONLY WHAT THE GAME USES WILL BE LISTED. THIS IS TO HELP IF YOU NEED TO MAP CONTROLS YOURSELF.

JOY 1
-Analog 1 LEFT & RIGHT = Steering
-Digital LEFT & RIGHT = Character Select / Menu Left & Right
-PUSH 1 = Boost
-PUSH 2 = Brake
Cyber Troopers Virtual-On 4: Force
von4
-Another one that is a 1 player game but has inputs bound to JOY 2 config slot. Yay!
-All of the Right Stick controls are the same as the left in JOY 1, just in JOY 2. Because of course they are!
-Mapped exactly the same as the original. Watch the tutorial as it takes some getting used to.


DEMUL CONTROL CONFIG. ONLY WHAT THE GAME USES WILL BE LISTED. THIS IS TO HELP IF YOU NEED TO MAP CONTROLS YOURSELF.

JOY 1 (Left in game stick, shoot and boost)
-Digital UP, DOWN, LEFT, RIGHT = Move
-PUSH 1 = Left Shoot
-PUSH 2 = Left Boost

JOY 2 (Right in game stick, shoot and boost)
-Digital UP, DOWN, LEFT, RIGHT = Move
-PUSH 1 = Right Shoot
-PUSH 2 = Right Boost
Brave Firefighters
braveff
-This "light gun game" only supports mouse control with Demul. As far as I know.
-Mouse controls are kinda hard coded to the emulator. So there's nothing really for me to provide. All the .bat does is launch the game with default controls. This is just fine for 1 player.
-2 Players requires RAW input. This is done in various ways with demul, mainly DemulShooter.
-Normally I provide some kind of RAW input support for 2 players, but, everyone has their preferred way with Demul. So, it's up to you
-If you have a suggestion to provide something for 2 player Raw input, let me know!

Edited by Warped Polygon
UPDATE info didn't errm....update


What's New in Version 1.0.0   See changelog

Released

UPDATE INFO AT THE TOP

  • Like 5
  • Thanks 5

User Feedback

Recommended Comments

retrospace

Posted

Hey man, 

can you tell me where can I take the latest version of Demul ?  please. 

Warped Polygon

Posted

1 hour ago, retrospace said:

Hey man, 

can you tell me where can I take the latest version of Demul ?  please. 

Its only on the Demul Discord atm. Google will find it

boy

Posted

Well done, this is exactly what was needed.

  • Thanks 1
boy

Posted

There's a problem: when running the game using a batch file (.bat file), the controller settings work fine, but when I run the game from the launcher using the batch file without using the Demul Emulator, I can't exit the game using the ESC key. Is there a way to configure the ESC key to exit the game?

螢幕擷取畫面 (867).png

螢幕擷取畫面 (868).png

JoeViking245

Posted

3 hours ago, boy said:

when I run the game from the launcher using the batch file without using the Demul Emulator, I can't exit the game using the ESC key. Is there a way to configure the ESC key to exit the game?

One option you can do is add an Additional App to the game(s).

  1. Create a new text file and save it somewhere where you can find it.
    • Give it a name something like ExitDemul.txt
      • e.g.  D:\MyScripts\ExitDemul.txt
  2. in the text file put:
    • $Esc::
      {
        WinClose, ahk_exe demul.exe
        ExitApp
      }
  3. Save, close and then rename the file to have a .ahk file extension.
    • e.g.  D:\MyScripts\ExitDemul.ahk
    • Make sure it's NOT saved as ExitDemul.ahk.txt
  4. Add a new Additional App to the game
    • Name it whatever you want.  e.g. Exit Demul
    • Set the Application Path to ThirdParty\AutoHotkey\AutoHotkey.exe (click Browse and navigate to and select that exe file)
    • Set the Command-Line Parameters to where your file is located. WITH quotes.
      • e.g. "D:\MyScripts\ExitDemul.ahk"
    • Check Automatically Run Before Main Application
    • Click OK to save and close

image.thumb.png.11ef3634e46c998bb34dd4d2f4986187.png

 

To add the Additional App to all the games at once, you can use this plugin.

Bulk Add/Remove Additional Applications - Third-party Apps and Plugins - LaunchBox Community Forums

 

 

Another option is to convert the batch files to AutoHotkey scripts and add the escape sequence in them.

  • Like 1
JoeViking245

Posted

A 3rd Option is to setup as described in SETUP DEMUL WITH LAUNCHBOX and PER GAME CONTROLS AND LB BAT FILES INSTALL: in the description

edit the batch files, have them as the Additional App and use the emulator as normal.

This way is a bit more work as there's no automagical way to do it.

  • Edit the batch files, removing the 2nd to last line (The "Start" line)
    • All 8 files, separately
  • Use the batch file in found in 
  • Import the ROMs as normal.
  • Set them to use your DEmul emulator
    • In the Running Script for the emulator, add
    • SetKeyDelay, 0, 50
      $Esc::Send !{F4}

       

  • Add the [modified] batch files to their respective games as Additional Apps
    • Give it a name
    • Set the app path to the respective batch file for the game
    • Check Automatically Run Before Main Application
    • Save and Close
    • Yes, these will need to be done one-at-a-time for all 8 games, because each game needs its own batch file

 

  • Thanks 1
Warped Polygon

Posted

I didn't see this until after I updated it. Thanks @JoeViking245 for the help and @zugswang for the link. I'll add it to the description.

I went with bats for the per game controls as it's the easiest for everyone else. Just need to point to em with additional apps. Feel free to share! Should I bang this up on the Demul discord too? Never know if that's cool!

  • Like 1
boy

Posted

1 hour ago, JoeViking245 said:

第三種方法按照 「使用 Launchbox 設定 Demul 以及為每個遊戲設定控制和 LB BAT 檔案安裝」部分中的說明

編輯批次文件,將其作為附加應用程式添加,然後像往常一樣使用模擬器。

這種方法比較麻煩,因為沒有自動完成的方法。

  • 編輯批次文件,刪除倒數第二行(「開始」行)。
    • 所有8個文件,分別
  • 使用在以下位置找到的批次檔: 
  • 像往常一樣導入ROM。
  • 將它們設定為使用您的 DEmul 模擬器
    •  在模擬器的運行腳本中 新增
    •  

  • 將修改後的批次檔作為附加應用程式新增至各自的遊戲中。
    • 給它取個名字
    • 將應用程式路徑設定為遊戲的相應批次檔。
    • 檢查是否在主應用程式運行前自動運行
    • 儲存並關閉
    • 是的,這需要逐一對全部 8 個遊戲進行操作,因為每個遊戲都需要自己的批次檔。

 

Thank you for your answer. The new update has perfectly solved my problem.

  • Thanks 1
  • Game On 1

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Add a comment...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...