Build Your Own Arcade Controls Forum

Main => Software Forum => Topic started by: Martijn on November 16, 2008, 06:58:56 am

Title: NullDC and u360 and joytokey and maximus arcade
Post by: Martijn on November 16, 2008, 06:58:56 am
i am trying to run this nulldc, the emulation works fine

i just want to do the following

in maximus arcade before i run the dreamcast emulator

switch the u360 from ultimarc to 8-way map
then load joytokey
then run the emulator

and when its done, i want to unload joytokey
and go back to analog map

how can i do this?
Title: Re: NullDC and u360 and joytokey and maximus arcade
Post by: Martijn on November 16, 2008, 07:04:40 am
i can prelaunch the joytokey, or maybe start both in a batch file?
and afterlaunch batch file

but how do i disable the joytokey and i dont have 8way ugc file

in ultimap are only um files
Title: Re: NullDC and u360 and joytokey and maximus arcade
Post by: headkaze on November 16, 2008, 07:13:52 am
Batch file should do it, something like the following (untested). But I don't know how Maximus works so there might be other ways to do it.

Save this as LaunchNullDC.bat and call it from your FE using "LaunchNullDC.bat [ROM]"

Code: [Select]
@ECHO OFF
start "" "C:\Program Files\JoyToKey\JoyToKey.exe" "NullDC.cfg"
"C:\Program Files\UltraMap\UltraMap.exe" "C:\Program Files\UltraMap\Maps\8-Way.um"
cd C:\Emulators\NullDC
nulldc.exe -config ImageReader:DefaultImage="%1"
taskkill /F /IM joytokey.exe
Title: Re: NullDC and u360 and joytokey and maximus arcade
Post by: Martijn on November 16, 2008, 07:42:29 am
maximus arcade lets me start a batch file before starting the emulator

before launch they call it
and when i quit the emulator and it goed back to maximus it can also launch a batch file

does the joytokey have a /remove or disable option?

and how do i flip the ultramap back to analog after?

and i thought ultramap doesnt start um files?

Title: Re: NullDC and u360 and joytokey and maximus arcade
Post by: headkaze on November 16, 2008, 08:04:28 am
does the joytokey have a /remove or disable option?

No it doesn't you have to close the process using something like taskkill

and how do i flip the ultramap back to analog after?

Just run UltraMap again with a different ugc file

and i thought ultramap doesnt start um files?

If that's the case it's quite easy to create a ugc file. Just save the following file and change which profile you want for each joystick. Name it whatever you like with the .ugc extension on the end and load it using UltraMap.

Code: [Select]
# This is an Ultimarc UltraStik Game Configuration file
UltraStikGameConfigurationFileFormatVersion=1.0

UltraStik1MapFile=Analog
UltraStik2MapFile=Mouse Pointer
UltraStik3MapFile=Analog
UltraStik4MapFile=Analog
Title: Re: NullDC and u360 and joytokey and maximus arcade
Post by: Martijn on November 16, 2008, 08:32:41 am
like

# This is an Ultimarc UltraStik Game Configuration file
UltraStikGameConfigurationFileFormatVersion=1.0

UltraStik1MapFile=8-way

and then save it as 8way.ugc?
Title: Re: NullDC and u360 and joytokey and maximus arcade
Post by: headkaze on November 16, 2008, 09:01:19 am
Pretty much but I'd have it

Code: [Select]
# This is an Ultimarc UltraStik Game Configuration file
UltraStikGameConfigurationFileFormatVersion=1.0

UltraStik1MapFile=8-Way
UltraStik2MapFile=
UltraStik3MapFile=
UltraStik4MapFile=

It might not make a difference, but that is the format, to have the four joysticks even if you only use 1 or 2. Save it as 8-Way.ugc in C:\Program Files\UltraMap\Maps.
Title: Re: NullDC and u360 and joytokey and maximus arcade
Post by: Martijn on November 16, 2008, 12:20:30 pm
ok it works. but after i run it and the kill command was excuted the wireless keyboard crashes

is the kill command and strings right?
Title: Re: NullDC and u360 and joytokey and maximus arcade
Post by: headkaze on November 16, 2008, 06:21:42 pm
taskkill is not a very nice way to close a process. I would download process.exe (http://www.beyondlogic.org/solutions/processutil/processutil.htm) and use:

Code: [Select]
process -q joytokey.exe
That closes a process gracefully by sending it the WM_CLOSE message instead of forcing the process to end by killing it. It might help.