Hyperspin







Reply
 
Thread Tools Display Modes
Old 01-11-2010, 01:29 PM   #1
rugal666
HyperNewbie
 
Join Date: Jul 2009
Posts: 4
Default Problem With Naomi Emulator Nulldc

hi, i from chile, and try to configure nulldc in Hyperspin and no have great lucky, i made all steps of configuration on this forum but dont work for mi

1- copy the code and compile the exe
2- create the ini file

but y have error messager
error: else with no matching if

line#
339:else

the program will exit

this is my code
;***********************************SEGA Naomi***********************************

else if (systemName = "SEGA Naomi")
{
if(executable = "NAOMI.exe" || executable = "nullDC-Naomi_1.0.3_mmu.exe" )
SetWorkingDir, %emuPath%
Hotkey, %exitEmulatorKey%, CloseProcess
Run, %executable% %romPath%%romName%%romExtension%
Process, WaitClose, %executable%
exitapp
}

ini file
[exe info]
path=C:\HyperSpin\Emulators\Sega Naomi\
rompath=C:\HyperSpin\Emulators\Sega Naomi\roms\
userompath = true
exe= nullDC-Naomi_1.0.3_nommu.exe
romextension = lst
parameters =
searchsubfolders = false
pcgame = false
winstate = HIDDEN
hyperlaunch = true

[themes]
themes_only = false
animate_out_default = true

[wheel]
alpha = .15
style = normal
speed = high
vert_wheel_position = right
text_with_images = true
text_width = 700
text_font = Style2
small_text_width = 260
large_text_width = 400
text_stroke_size = 8
text_stroke_color=0x000000
text_color1=0x00BFFD
text_color2=0xFFFFFF
text_color3=0x00BFFD
color_ratio = 100
shadow_distance = 0
shadow_angle = 45
shadow_color=0x000000
shadow_alpha = 1
shadow_blur = 0

[pointer]
x = 965
y = 384

[video defaults]
path =
width = 309
height = 340
x = 300
y = 430
rotation = -15
animation_time = .5
animation_type = ease
animation_start = left
border_color = 0x000000
border_size = 0
border_color2 = 0X000000
border_size2 = 0
border_color3 = 0X000000
border_size3 = 0
forceaspect = none
belowwheel = false

[sounds]
game_sounds = true
wheel_click = true

[navigation]
game_jump = 50
sort_by_name = false
remove_info_wheel = false
remove_info_text = false
use_parent_vids = false
use_parent_themes = false

[artwork1 defaults]
x = 512
y = 117
rotation = 0
animation_time = 1
animation_type = ease
animation_start = top
animation_rest = none

[artwork2 defaults]
x = 800
y = 460
rotation = 8
animation_time = .5
animation_type = ease
animation_start = right
animation_rest = none

[artwork3 defaults]
x = 200
y = 500
rotation = 0
animation_time = .5
animation_type = ease
animation_start = left
animation_rest = none

[artwork4 defaults]
x = 512
y = 500
rotation = 0
animation_time = .5
animation_type = ease
animation_start = none
animation_rest = none

[Special Art A]
default = false
active = true
x = 512
y = 720
in = .4
out = .4
length = 3
delay = .1
type = normal
start = bottom

[Special Art B]
default = true
active = true
x = 512
y = 740
in = .4
out = .4
length = 3
delay = .1
type = fade
start = none

[Game Text]
game_text_active = true
show_year = true
show_manf = true
show_description = true
text_color1 = 0xffffff
text_color2 = 0x0099cc
stroke_color = 0x000000
text_font = Style1
text1_textsize = 26
text1_strokesize = 7
text1_x = 32
text1_y = 610
text2_textsize = 36
text2_strokesize = 8
text2_x = 30
text2_y = 640

[Genre Screen]
allgames_title = All Games
text_color = 0x000000
text_x = 150
text_y = 200
stroke_color = 0xffffff
stroke_size = 7


i try with others codes bot nothing happen
rugal666 is offline   Reply With Quote
Old 01-11-2010, 01:34 PM   #2
minooye
HyperNewbie
 
Join Date: Dec 2009
Posts: 1
Default

Did you compile the script ?
minooye is offline   Reply With Quote
Old 01-11-2010, 02:27 PM   #3
SophT
Ultimate HyperSpin Guru
 
SophT's Avatar
 
Join Date: Dec 2008
Location: UTC +8
Posts: 3,924
Default

please post your naomi settings from the emulator (not hyperspin)
SophT is offline   Reply With Quote
Old 01-11-2010, 03:37 PM   #4
BadBoyBill
Administrator
 
BadBoyBill's Avatar
 
Join Date: Jun 2008
Location: Cali
Posts: 5,355
Default

;***********************************SEGA Naomi***********************************

else if (systemName = "SEGA Naomi")
{
if(executable = "NAOMI.exe" || executable = "nullDC-Naomi_1.0.3_mmu.exe" )
{ ADD THIS HERE
SetWorkingDir, %emuPath%
Hotkey, %exitEmulatorKey%, CloseProcess
Run, %executable% %romPath%%romName%%romExtension%
Process, WaitClose, %executable%
exitapp
} ADD THIS HERE TO
}

Looks like your missing a curly braces for the second if statment.
__________________
Download every Theme all at once with FTP access! If your a Gold Member please PM me a request for an account.

BadBoyBill is online now   Reply With Quote
Old 01-12-2010, 07:33 AM   #5
rugal666
HyperNewbie
 
Join Date: Jul 2009
Posts: 4
Default

I try this but show me the same error

error: else with no matching if

line#
339:else

the program will exit

this is the code of the ank file i compile with autohoykey (in finals lines are the naomi code)

/**
* HyperLaunch Version 1.03
* Autohotkey script by BadBoyBill badboybill@hyperspin-fe.com
* CursorHide by Lazlo
* Integrated FreeDO wrapper by brian_hoffman
*
* If you are reading this and do not have autohotkey you can get it
* @ http://www.autohotkey.com/download/
* If you would like to modify this script and share it thats OK, but
* see if your modification is something that we would like to add
* to the official version.
*
* Refer to the autohotkey documentation for the keyoboard keylist
*
* If this script does not support your favorite emulator
* then please request support @ http://www.hyperspin-fe.com/forum
*
* :Supported emulators:
* :System: :Emulators:
*Atari 5200.............................messpp.exe
*Atari Lynx.............................handy.exe
*Daphne.................................daphne.exe
*Future Pinball.........................Future Pinball.exe
*Gameboy Advance........................visualboyadvance.ex e
*Gameboy................................visualboya dvance.exe
*Gameboy Color..........................visualboyadvance.ex e
*MAME...................................mame.exe
*Neo Geo................................mame.exe
*Neo Geo Pocket Color...................NeoPop-Win32.exe
*Nintendo 64............................project64.exe
*Nintendo Entertainment System..........nestopia.exe
*Panasonic 3DO..........................FreeDO.exe
*Sega 32X...............................fusion.exe
*Sega CD................................fusion.exe
*Sega Dreamcast.........................nullDC_100b1_6.e xe
*Sega Game Gear.........................fusion.exe
*Sega Genesis...........................fusion.exe
*Sega Master System.....................fusion.exe
*Sony Playstation.......................psxfin.exe
*Super Nintendo Entertainment System....zsnesw.exe
*TurboGrafx 16..........................mednafen.exe
*Zinc...................................zinc.exe
*JukeBox................................silverjuke .exe
*JukeBox................................SKJukebox. exe
*
*
*/

#SingleInstance force ;Prevent multiple instances
#InstallKeybdHook
SetTitleMatchMode 2

;------------------------------------------------------------------------------;
; MAIN SETTINGS ;
;------------------------------------------------------------------------------;

;[UNIVERSAL HOTKEYS] ;SEPERATE MULTIPLE KEYS WITH &(ampersand) up to 2 keys.
exitScriptKey = q & s ;Secret hotkey(s) to exit script if needed
;Not to be confused with exit emulator keys

exitEmulatorKey = Esc ;This key/key combo will close any emulators
;that do not have normal closing methods.

toggleCursorKey = t ;hotkey(s) to show or hide cursor if needed
;when hideCursor below is true

;[MOUSE CURSOR]
hideCursor = false ;Automatically hide cursor during script
;WARNING: Make sure ALL your emu's are running fine
;before setting this to true as a precaution.*

;[WINDOWS]
hideDesktop = true ;Attempts to hide desktop with black screen, might help
;on some emu's for hiding launching windows.

hideTaskbar = false ;Hide the windows taskbar when running emu's.
;WARNING: Make sure ALL your emu's are running fine
; before setting this to true as a precaution.*

daemontools = "C:\Program Files\DAEMON Tools Lite\daemon.exe" ;Hide the windows taskbar when running emu's.
;WARNING: Make sure ALL your emu's are running fine
; before setting this to true as a precaution.*

/*
*:If for some weird reason the script hangs follow these steps to get back to normal.
1. If an emulator hangs up or cant load your game then first try to exit the emu
by pressing your Emulator exit hotkey above.
2. If your emu exited but your mouse cursor is gone use your cursor toggle hotkey.
3. Next try to exit the script by pressing your Exit Script Hotkey above. This
will also bring back your cursor and taskbar is they are set to true.
*/







;************************************************* ******************************
;* EDIT BELOW THIS POINT AT YOUR OWN RISK *
;************************************************* ******************************

;------------------------------------------------------------------------------;
; GET PARAMATERS AND SET HOTKEYS ;
;------------------------------------------------------------------------------;

;CHECKING FOR 2 PARAMS, IF NOT THEN EXIT
if 0 < 2
{
MsgBox Usage: HyperLaunch.ahk/exe "System Name" "Rom Name"
ExitApp
}

systemName = %1%
romName = %2%

Hotkey, %exitScriptKey%, ExitScript
if (hideCursor = "true")
{
Hotkey, %toggleCursorKey%, ToggleCursor
SystemCursor("Off")
}

WinClose, cmd.exe
;------------------------------------------------------------------------------;
; GET AND CHECK PATHS ;
;------------------------------------------------------------------------------;
GoSub, CheckINI
IniRead, iniEmuPath, %A_ScriptDir%\Settings\%systemName%.ini, exe info, path
emuPath := GetFullName(iniEmuPath)
IniRead, iniRomPath, %A_ScriptDir%\Settings\%systemName%.ini, exe info, rompath
romPath := GetFullName(iniRomPath)
IniRead, executable, %A_ScriptDir%\Settings\%systemName%.ini, exe info, exe
IniRead, romExtensions, %A_ScriptDir%\Settings\%systemName%.ini, exe info, romextension

romExtension =
GoSub, CheckPaths

;------------------------------------------------------------------------------;
; RUN SYSTEM ;
;------------------------------------------------------------------------------;


;**********************************ATARI 5200***********************************
if (systemName = "Atari 5200" && (executable = "messpp.exe" || executable = "mess.exe"))
{
hideDesktop()
Hotkey, %exitEmulatorKey%, CloseProcess
RunWait, %executable% a5200 -cart "%romPath%%romName%%romExtension%" -skip_gameinfo -nowindow -nonewui, %emuPath%, Hide UseErrorLevel
}

;**********************************ATARI Lynx***********************************
else if (systemName = "Atari Lynx" && executable = "handy.exe")
{
hideDesktop()
Hotkey, %exitEmulatorKey%, CloseProcess
RunWait, %executable% "%romPath%%romName%%romExtension%", %emuPath%, UseErrorLevel
}

;************************************DAPHNE******* ******************************
else if (systemName = "Daphne" && executable = "daphne.exe"){
hideDesktop()
Hotkey, %exitEmulatorKey%, CloseProcess
daphneParams = vldp -fullscreen -x 640 -y 480 -nohwaccel -framefile
frameFilePath = %romPath%%romName%%romExtension%
RunWait, %executable% %romName% %daphneParams% %frameFilePath%, %emuPath%, UseErrorLevel
}

;********************************GAMEBOY ADVANCE********************************

else if (systemName = "Gameboy Advance" && executable = "visualboyadvance.exe")
{
hideDesktop()
Hotkey, %exitEmulatorKey%, CloseProcess
RunWait, "%emuPath%%executable%" "%romPath%%romName%%romExtension%", UseErrorLevel
}

;********************************GAMEBOY********** **********************
else if (systemName = "Gameboy" && executable = "visualboyadvance.exe")
{
hideDesktop()
Hotkey, %exitEmulatorKey%, CloseProcess
RunWait, "%emuPath%%executable%" "%romPath%%romName%%romExtension%", UseErrorLevel
}

;********************************GAMEBOY COLOR********************************
else if (systemName = "Gameboy Color" && executable = "visualboyadvance.exe")
{
hideDesktop()
Hotkey, %exitEmulatorKey%, CloseProcess
RunWait, "%emuPath%%executable%" "%romPath%%romName%%romExtension%", UseErrorLevel
}

;********************************Future Pinball********************************
else if (systemName = "Future Pinball" && executable = "Future Pinball.exe")
{
hideDesktop()
Hotkey, %exitEmulatorKey%, CloseProcess
Runwait, "%emuPath%%executable%" /open "%romPath%%romName%%romExtension%" /play /exit %emuPath%, Hide UseErrorLevel
}

;*************************************MAME******** ******************************

else if (systemName = "MAME" && executable = "mame.exe")
{
hideDesktop()
Hotkey, %exitEmulatorKey%, CloseProcess
Runwait, %executable% %romName%, %EmuPath%, Hide UseErrorLevel
Process, waitClose, %executable%
exitapp
}

;***********************************NEO GEO*************************************

else if (systemName = "Neo Geo" && executable = "mame.exe")
{
hideDesktop()
Hotkey, %exitEmulatorKey%, CloseProcess
RunWait, %executable% "%romName%", %emuPath%, Hide UseErrorLevel
}

;*****************************NEO GEO POCKET COLOR******************************

else if (systemName = "Neo Geo Pocket Color" && executable = "NeoPop-Win32.exe")
{
hideDesktop()
Hotkey, %exitEmulatorKey%, CloseProcess
RunWait, %executable% "%romPath%%romName%%romExtension%", %emuPath%, UseErrorLevel
}

;***********************************NINTENDO 64*********************************

else if (systemName = "Nintendo 64" && executable = "Project64.exe")
{
hideDesktop()
Sleep, 2000
Hotkey, %exitEmulatorKey%, CloseProcess
RunWait, %executable% "%romPath%%romName%%romExtension%", %emuPath%, Hide UseErrorLevel
}

;****************************NINTENDO ENTERTAINMENT SYSTEM**********************

else if (systemName = "Nintendo Entertainment System" && executable = "Nestopia.exe")
{
Gui, Color, 000000
Gui -Caption +ToolWindow +AlwaysOnTop
Gui, Show, W%A_ScreenWidth% H%A_ScreenHeight%, BlackGui
Hotkey, %exitEmulatorKey%, CloseProcess
Run, %executable% "%romPath%%romName%%romExtension%", %emuPath%, UseErrorLevel
Sleep, 2000
Gui, destroy
Process, waitClose, %executable%
exitapp
}

;***********************************Panasonic 3DO*******************************

else if (systemName = "Panasonic 3DO" && executable = "FreeDO.exe")
{
hideDesktop()
Hotkey, %exitEmulatorKey%, CloseProcess
Run, "%EmuPath%%Executable%",,Hide UseErrorLevel
DetectHiddenWindows, on
WinShow, FreeDO Beta 1.6.2
WinWait, FreeDO Beta 1.6.2
ControlSend, , {F4}, FreeDO Beta 1.6.2
WinWaitActive, FreeDO Beta 1.6.2
SendInput, {ALTDOWN}f{ALTUP}{ENTER}
IfWinNotActive, Open, Common Places Host W
WinActivate, Open, Common Places Host W
WinWaitActive, Open, Common Places Host W
clipboard=
clipboard=%romPath%%romName%%romExtension%
ClipWait
Sleep,100
Send,^v
Sleep,100
send, {ENTER}
WinWait, FreeDO Beta 1.6.2
IfWinNotActive, FreeDO Beta 1.6.2, , WinActivate, FreeDO Beta 1.6.2,
WinWaitActive, FreeDO Beta 1.6.2,
SendInput, {ALTDOWN}c{ALTUP}{ENTER}{ENTER}
Process, WaitClose, FreeDO.exe
}

;***********************************SEGA 32X************************************

else if (systemName = "Sega 32X" && executable = "Fusion.exe")
{
hideDesktop()
Hotkey, %exitEmulatorKey%, CloseProcess
Run, %Executable% "%romPath%%romName%%romExtension%" -auto -32X -fullscreen, %EmuPath%, Hide UseErrorLevel
Process, WaitClose, fusion.exe
}

;***********************************SEGA CD*************************************

else if (systemName = "Sega CD" && executable = "Fusion.exe")
{
hideDesktop()
Hotkey, %exitEmulatorKey%, CloseProcess
Run, %Executable% "%romPath%%romName%%romExtension%" -auto -scd -fullscreen, %EmuPath%, Hide UseErrorLevel
Process, WaitClose, %Executable%
exitapp
}

;*********************************SEGA DREAMCAST********************************

else if (systemName = "Sega Dreamcast" && executable = "nullDC_100b1_6.exe")
{
hideDesktop()
Hotkey, %exitEmulatorKey%, CloseProcess
Run, %Executable% -config ImageReaderefaultImage="%romPath%%romName%%romEx tension%", %EmuPath%,Hide UseErrorLevel
WinWait, nullDC
Sleep,1000
WinShow, ahk_class ndc_main_window
Process, WaitClose, nullDC_100b1_6.exe
}


;*********************************SEGA Game Gear********************************

else if (systemName = "Sega Game Gear" && executable = "Fusion.exe")
{
hideDesktop()
Hotkey, %exitEmulatorKey%, CloseProcess
Run, %Executable% "%romPath%%romName%%romExtension%" -auto -sms -fullscreen, %EmuPath%, Hide UseErrorLevel
Process, WaitClose, fusion.exe
}

;*********************************SEGA Genesis**********************************

else if (systemName = "Sega Genesis" && executable = "Fusion.exe")
{
hideDesktop()
Hotkey, %exitEmulatorKey%, CloseProcess
Run, %Executable% "%romPath%%romName%%romExtension%" -auto -gen -fullscreen, %EmuPath%, Hide UseErrorLevel
Process, WaitClose, fusion.exe
}

;*******************************SEGA Master System******************************

else if (systemName = "Sega Master System" && executable = "Fusion.exe")
{
hideDesktop()
Hotkey, %exitEmulatorKey%, CloseProcess
Run, %Executable% "%romPath%%romName%%romExtension%" -auto -sms -fullscreen, %EmuPath%, Hide UseErrorLevel
Process, WaitClose, fusion.exe
}

;***********************************SEGA MODEL 2*********************************

else if (systemName = "Sega Model 2")
{
if(executable = "emulator_multicpu.exe" || executable = "emulator.exe" )
{
;hideDesktop()
Hotkey, %exitEmulatorKey%, CloseProcess
Run, %executable% %romName%, %emuPath%, Hide UseErrorLevel
DetectHiddenWindows, on
WinWait, Model 2
WinShow
Process, WaitClose, %executable%
}
}

;***********************************SEGA Naomi***********************************

else if (systemName = "SEGA Naomi")
{
if(executable = "NAOMI.exe" || executable = "nullDC-Naomi_1.0.3_mmu.exe" )
SetWorkingDir, %emuPath%
Hotkey, %exitEmulatorKey%, CloseProcess
IniWrite, %romPath%%romName%%romExtension%, %A_WorkingDir%\DIMM.ini, Settings, image
Run, %executable% ; launches emulator
Process, WaitClose, %executable%
exitapp
}


;**********************************SEGA SATURN***********************************
else if (systemName = "Sega Saturn" && executable = "SSF.exe")
{
RunWait, %DAEMONTOOLS% -mount 0`,"%romPath%%romName%%romExtension%"
hideDesktop()
Hotkey, %exitEmulatorKey%, CloseProcess
Run, %executable% , %emuPath%, UseErrorLevel
}

;********************************Sony Playstation*******************************

else if (systemName = "Sony Playstation" && executable = "psxfin.exe")
{
psxParams = -f
Hotkey, %exitEmulatorKey%, CloseProcess
Run, %Executable% %psxParams% "%romPath%%romName%%romExtension%", %EmuPath%, Hide UseErrorLevel
DetectHiddenWindows, on
WinWait, ahk_class pSX
hideDesktop()
WinWaitClose, ahk_class pSX
}

;***********************Super Nintendo Entertainment System*********************

else if (systemName = "Super Nintendo Entertainment System" && executable = "zsnesw.exe")
{
hideDesktop()
SetKeyDelay, 250
Hotkey, %exitEmulatorKey%, CloseProcess
RunWait, %Executable% "%romPath%%romName%%romExtension%", %EmuPath%
}

;**********************************Turbo Duo***********************************
else if (systemName = "Turbo Duo" && executable = "pce.exe")
{
RunWait, %DAEMONTOOLS% -mount 0`,"%romPath%%romName%%romExtension%"
hideDesktop()
Hotkey, %exitEmulatorKey%, CloseProcess
Run, %executable% syscard3.pce , %emuPath%, UseErrorLevel
}

;**********************************TurboGrafx 16********************************

else if (systemName = "TurboGrafx 16" && executable = "mednafen.exe")
{
hideDesktop()
Hotkey, %exitEmulatorKey%, CloseProcess
RunWait, "%EmuPath%%Executable%" "%romPath%%romName%%romExtension%" -fs 1,, UseErrorLevel
}

;***********************************JukeBox******* ******************************

else if (systemName = "Jukebox" && executable = "Silverjuke.exe")
{
hideDesktop()
Hotkey, %exitEmulatorKey%, CloseJuke
RunWait, %emuPath%%executable% --kiosk, Hide UseErrorLevel
}
else if (systemName = "Jukebox" && executable = "SKJukebox.exe")
{
hideDesktop()
Hotkey, %exitEmulatorKey%, CloseProcess
RunWait, %emuPath%%executable%, Hide UseErrorLevel
}

;***************************************Zinc****** ******************************

else if (systemName = "Zinc" && executable = "zinc.exe")
{
hideDesktop()
Hotkey, %exitEmulatorKey%, CloseProcess
RunWait, %Executable% %romName%, %EmuPath%, Hide UseErrorLevel
}

else
{
MsgBox,48,Error,%systemName% is an invalid System Name or %executable% isnt supported yet,6
}


;------------------------------------------------------------------------------;
; WHEN EMULATOR FINISHES OR IF LAUNCH EXE FAILS ;
;------------------------------------------------------------------------------;
;************PROBABLY DO NOT NEED TO EDIT THIS AREA*************

if (ErrorLevel = "ERROR")
{
MsgBox,48,Error,Failed to run executable check your paths,6
}
Goto ExitScript ; Exits script and returns to frontend


;------------------------------------------------------------------------------;
; KILL COMMANDS ;
;------------------------------------------------------------------------------;
;************PROBABLY DO NOT NEED TO EDIT THIS AREA*************

/*
Most emu's can be closed with CloseProcess when using a 2 key combo, if not set a custom
close.
*/
CloseJuke:
RunWait, %emuPath%%executable% --execute="program.shutdown(30);", Hide UseErrorLevel
return

CloseProcess:
Hotkey, %exitScriptKey%, Off
Process, Close, %Executable%
Process, WaitClose, %Executable%
Gui, Color, 000000
Gui -Caption +ToolWindow +AlwaysOnTop
Gui, Show, W%A_ScreenWidth% H%A_ScreenHeight%, BlackGui
return

ExitScript:
Process, Exist, HyperSpin.exe
PID := errorLevel
if (PID)
{
WinActivate, ahk_pid %PID%
WinWaitActive, ahk_pid %PID%
Gui, destroy
if (hideCursor)
SystemCursor("On")
if (hideTaskbar)
WinShow ahk_class Shell_TrayWnd
ExitApp
}


OnExit, ExitScript
return








;------------------------------------------------------------------------------;
; REST OF SCRIPT ;
;------------------------------------------------------------------------------;
;************PROBABLY DO NOT NEED TO EDIT THIS AREA*************



SystemCursor(OnOff=1) ; INIT = "I","Init"; OFF = 0,"Off"; TOGGLE = -1,"T","Toggle"; ON = others
{
static AndMask, XorMask, $, h_cursor
,c0,c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,c13 ; system cursors
, b1,b2,b3,b4,b5,b6,b7,b8,b9,b10,b11,b12,b13 ; blank cursors
, h1,h2,h3,h4,h5,h6,h7,h8,h9,h10,h11,h12,h13 ; handles of default cursors
if (OnOff = "Init" or OnOff = "I" or $ = "") ; init when requested or at first call
{
$ = h ; active default cursors
VarSetCapacity( h_cursor,4444, 1 )
VarSetCapacity( AndMask, 32*4, 0xFF )
VarSetCapacity( XorMask, 32*4, 0 )
system_cursors = 32512,32513,32514,32515,32516,32642,32643,32644,32 645,32646,32648,32649,32650
StringSplit c, system_cursors, `,
Loop %c0%
{
h_cursor := DllCall( "LoadCursor", "uint",0, "uint",c%A_Index% )
h%A_Index% := DllCall( "CopyImage", "uint",h_cursor, "uint",2, "int",0, "int",0, "uint",0 )
b%A_Index% := DllCall("CreateCursor","uint",0, "int",0, "int",0
, "int",32, "int",32, "uint",&AndMask, "uint",&XorMask )
}
}
if (OnOff = 0 or OnOff = "Off" or $ = "h" and (OnOff < 0 or OnOff = "Toggle" or OnOff = "T"))
$ = b ; use blank cursors
else
$ = h ; use the saved cursors

Loop %c0%
{
h_cursor := DllCall( "CopyImage", "uint",%$%%A_Index%, "uint",2, "int",0, "int",0, "uint",0 )
DllCall( "SetSystemCursor", "uint",h_cursor, "uint",c%A_Index% )
}
}
ToggleCursor:
SystemCursor("Toggle")
return

IniRead(Filename, Section, Key, Default = "") {
FileRead, text, *t %Filename%
text = `n%text%`n
StringTrimLeft, text, text, InStr(text, "`n[" . Section . "]`n")
Loop, 8 {
sp := sp . " "
StringReplace, text, text, %Key%%sp%=, %Key%=
If ErrorLevel
Break
}
start := InStr(text, "`n" . Key . "=")
If !start
Return, Default
start += StrLen(Key) + 2
StringMid, Value, text, start, InStr(text, "`n", false, start) - start
Return, Value
}

;Get Full Path from Relative Path
GetFullName( fn ) {
static buf, i
if !i
i := VarSetCapacity(buf, 512)
DllCall("GetFullPathNameA", "str", fn, "uint", 512, "str", buf, "str*", 0)
return buf
}

hideDesktop(){
;WinHide ahk_class Shell_TrayWnd
;Gui, +toolwindow
;Gui, -Caption
;Gui, Color, black
;Gui, show, +toolwindow Maximize
Gui, Color, 000000
Gui -Caption +ToolWindow
Gui, Show, W%A_ScreenWidth% H%A_ScreenHeight%, BlackScreen

}

CheckINI:
IfNotExist, %A_ScriptDir%\HyperSpin.exe
{
MsgBox,48,Error, Must be in same directory as HyperSpin.exe,6
Goto ExitScript
}
IfNotExist, %A_ScriptDir%\Settings\%systemName%.ini
{
MsgBox,48,Error,Cannot Find %A_ScriptDir%\Settings\%systemName%.ini,6
Goto ExitScript
}
return

CheckPaths:
romFound =
StringRight, emuPathBackSlash, EmuPath, 1
StringRight, romPathBackSlash, RomPath, 1

If (emuPathBackSlash != "\" || romPathBackSlash != "\")
{
MsgBox,48,Error, Make sure your paths contains a backslash on the end ,6
Goto ExitScript
}
If (executable = "")
{
MsgBox,48,Error, Missing executable in %systemName%.ini ,6
Goto ExitScript
}
If (romPath = "")
{
MsgBox,48,Error, Missing rom path in %systemName%.ini ,6
Goto ExitScript
}
If (emuPath = "")
{
MsgBox,48,Error, Missing emulator path in %systemName%.ini ,6
Goto ExitScript
}
IfNotExist, %EmuPath%%Executable%
{
MsgBox,48,Error,Cannot Find %EmuPath%%Executable%,6
Goto ExitScript
}
if(systemName != "zinc")
{
If (romExtensions = "")
{
MsgBox,48,Error, Missing rom extension in %systemName%.ini ,6
Goto ExitScript
}
Loop, parse, romExtensions, `,
{
inputVar = %A_LoopField%
StringLeft, charToCheck, inputVar, 1
If(charToCheck = ".")
{
MsgBox,48,Error, Make sure your rom extensions do not contain a ".",6
Goto ExitScript
}
IfExist %RomPath%%RomName%.%A_LoopField%
{
romExtension = .%A_LoopField%
romFound = true
break
}else{
IfExist %RomPath%%RomName%\%RomName%.%A_LoopField%
{
RomPath = %RomPath%%RomName%\
MsgBox %RomPath%
romExtension = .%A_LoopField%
romFound = true
break
}else{
romFound = false
}
}
}
}
if (romFound = "false")
{
if(systemName != "daphne"){
MsgBox,48,Error,Cannot find Rom - %RomPath%%RomName% with any provided extension,6
Goto ExitScript
}else{
MsgBox,48,Error,Cannot find Daphne framefile - %RomPath%%RomName% with any provided extension,6
Goto ExitScript
}
}
return



;***********************************SEGA Naomi***********************************

else if (systemName = "SEGA Naomi")
{
if(executable = "NAOMI.exe" || executable = "nullDC-Naomi_1.0.3_mmu.exe" )
{
SetWorkingDir, %emuPath%
Hotkey, %exitEmulatorKey%, CloseProcess
Run, %executable% %romPath%%romName%%romExtension%
Process, WaitClose, %executable%
exitapp
}
}




Originally Posted by BadBoyBill View Post
;***********************************SEGA Naomi***********************************

else if (systemName = "SEGA Naomi")
{
if(executable = "NAOMI.exe" || executable = "nullDC-Naomi_1.0.3_mmu.exe" )
{ ADD THIS HERE
SetWorkingDir, %emuPath%
Hotkey, %exitEmulatorKey%, CloseProcess
Run, %executable% %romPath%%romName%%romExtension%
Process, WaitClose, %executable%
exitapp
} ADD THIS HERE TO
}

Looks like your missing a curly braces for the second if statment.
rugal666 is offline   Reply With Quote
Old 01-12-2010, 10:24 AM   #6
chillinwater
Not Even Remotely Dorky!
 
chillinwater's Avatar
 
Join Date: Mar 2009
Location: Concord, Californee
Posts: 825
Send a message via AIM to chillinwater Send a message via MSN to chillinwater Send a message via Yahoo to chillinwater
Default

Since it doesnt look like you have added any Un-Official Systems to the script,
(If you have added some systems, make a backup of your Hyperlaunch.ahk)
Start over with a fresh install, of Hyperlaunch.ahk
test with any of the (3) below.

Hyperlaunch 1.0.4
HyperLaunch 1.04.5
HyperLaunch 1.0.5

Just for reference @ the top of your script it says the Hyperlaunch version is:
"HyperLaunch Version 1.03"
but it looks like its actually its from "Hyperlaunch 1.0.5"

Once you've unzipped them,
-move\overwrite them to the Hyperspin root Directory.
-left click on either Hyperlaunch.ahk or exe, to see if you get this correct message:
Usage:HyperLaunch.ahk/exe "System Name" "Rom Name"

Also for reference, you didnt place the code from BadBoyBill in the correct spot and now there are (2) references of "Sega Naomi"
(one between "Sega Model 2" and "Sega Saturn") (where it should be) and the other at the bottom of your Hyperlaunch script.
(I believe its out of bounds with the rest of the script and wont function at all down there).

Last edited by chillinwater; 01-12-2010 at 10:32 AM.
chillinwater is offline   Reply With Quote
Old 01-12-2010, 02:02 PM   #7
rugal666
HyperNewbie
 
Join Date: Jul 2009
Posts: 4
Default

i make yours instructions, and works but in the moment of emulator changes to fullscreen not recive signal in the monitor, and sound the music of game but not image.

this is the code used
;*********************************SEGANAOMI******* ************************


else if (systemName = "SEGA Naomi")
{
if(executable = "nullDC-Naomi_1.0.3_mmu.exe" ||executable = "nullDC-Naomi_1.0.3_nommu.exe" )
SetWorkingDir, %emuPath%
Hotkey, %exitEmulatorKey%, CloseProcess
Blockinput on ; Keeps users from messing up loader my pressing buttons and moving mouse
rom = "%romPath%%romName%%romExtension%"
; (rompath romfile) gives friendly name as ROM
SetBatchLines -1
Gui +AlwaysOnTop -Caption +ToolWindow
; No title, No taskbar icon
Gui Color, 0
;Color Black
Gui Show, x0 y0 h%A_ScreenHeight% w%A_ScreenWidth%, HSHIDE
;WinSet Transparent, 200, A
;Can be semi-transparent
MouseGetPos X, Y
;Remember pos to return
MouseMove %A_ScreenWidth%,%A_ScreenHeight%
; Move pointer off screen
IniWrite, 1, %A_WorkingDir%\nulldc.cfg, nullDC, Emulator.AutoStart
IniWrite, 1, %A_WorkingDir%\nulldc.cfg, nullDC, Emulator.NoConsole
IniWrite, 1, %A_WorkingDir%\nulldc.cfg, drkpvr, Fullscreen.Enabled
IniWrite, 640, %A_WorkingDir%\nulldc.cfg, drkpvr, Fullscreen.Res_X
IniWrite, 480, %A_WorkingDir%\nulldc.cfg, drkpvr, Fullscreen.Res_Y
Run, %executable%
;launches emulator
;waits for load dialog
Sleep, 1000
SendInput, %rom% ; sends rompath romfile from exe syntax
Send, {enter}
;loads roms by pressing enter
Sleep, 7000
;Gives time for loading to finish before unhiding desktop
Gui Destroy
;Remove blinds from desktop
Blockinput off
;Allows user to send inputs so games can be played
Process, WaitClose, %executable%
exitapp
}



Originally Posted by chillinwater View Post
Since it doesnt look like you have added any Un-Official Systems to the script,
(If you have added some systems, make a backup of your Hyperlaunch.ahk)
Start over with a fresh install, of Hyperlaunch.ahk
test with any of the (3) below.

Hyperlaunch 1.0.4
HyperLaunch 1.04.5
HyperLaunch 1.0.5

Just for reference @ the top of your script it says the Hyperlaunch version is:
"HyperLaunch Version 1.03"
but it looks like its actually its from "Hyperlaunch 1.0.5"

Once you've unzipped them,
-move\overwrite them to the Hyperspin root Directory.
-left click on either Hyperlaunch.ahk or exe, to see if you get this correct message:
Usage:HyperLaunch.ahk/exe "System Name" "Rom Name"

Also for reference, you didnt place the code from BadBoyBill in the correct spot and now there are (2) references of "Sega Naomi"
(one between "Sega Model 2" and "Sega Saturn") (where it should be) and the other at the bottom of your Hyperlaunch script.
(I believe its out of bounds with the rest of the script and wont function at all down there).
rugal666 is offline   Reply With Quote
Old 01-12-2010, 03:38 PM   #8
brian_hoffman
Super Moderator
 
brian_hoffman's Avatar
 
Join Date: Jun 2008
Location: California
Posts: 1,233
Default

Originally Posted by rugal666 View Post
i make yours instructions, and works but in the moment of emulator changes to fullscreen not recive signal in the monitor, and sound the music of game but not image.

this is the code used
;*********************************SEGANAOMI******* ************************


else if (systemName = "SEGA Naomi")
{
if(executable = "nullDC-Naomi_1.0.3_mmu.exe" ||executable = "nullDC-Naomi_1.0.3_nommu.exe" )
SetWorkingDir, %emuPath%
Hotkey, %exitEmulatorKey%, CloseProcess
Blockinput on ; Keeps users from messing up loader my pressing buttons and moving mouse
rom = "%romPath%%romName%%romExtension%"
; (rompath romfile) gives friendly name as ROM
SetBatchLines -1
Gui +AlwaysOnTop -Caption +ToolWindow
; No title, No taskbar icon
Gui Color, 0
;Color Black
Gui Show, x0 y0 h%A_ScreenHeight% w%A_ScreenWidth%, HSHIDE
;WinSet Transparent, 200, A
;Can be semi-transparent
MouseGetPos X, Y
;Remember pos to return
MouseMove %A_ScreenWidth%,%A_ScreenHeight%
; Move pointer off screen
IniWrite, 1, %A_WorkingDir%\nulldc.cfg, nullDC, Emulator.AutoStart
IniWrite, 1, %A_WorkingDir%\nulldc.cfg, nullDC, Emulator.NoConsole
IniWrite, 1, %A_WorkingDir%\nulldc.cfg, drkpvr, Fullscreen.Enabled
IniWrite, 640, %A_WorkingDir%\nulldc.cfg, drkpvr, Fullscreen.Res_X
IniWrite, 480, %A_WorkingDir%\nulldc.cfg, drkpvr, Fullscreen.Res_Y
Run, %executable%
;launches emulator
;waits for load dialog
Sleep, 1000
SendInput, %rom% ; sends rompath romfile from exe syntax
Send, {enter}
;loads roms by pressing enter
Sleep, 7000
;Gives time for loading to finish before unhiding desktop
Gui Destroy
;Remove blinds from desktop
Blockinput off
;Allows user to send inputs so games can be played
Process, WaitClose, %executable%
exitapp
}

Ya, you have some issues, first your using a loader I wrote and trying to intergrate it in HL, which already shares features of my stand alone wrapper. (you pulled the source from either byoac or ngemu) Check the screen names of the poster

If there are majior requests for NullDC naomi I can add it, but it would be much better to just use makaron for naomi emulation as it is superior and more compatable.
__________________
You must defeat Sheng Long to stand a chance.
brian_hoffman is offline   Reply With Quote
Old 01-12-2010, 12:44 PM   #9
BadBoyBill
Administrator
 
BadBoyBill's Avatar
 
Join Date: Jun 2008
Location: Cali
Posts: 5,355
Default

You didnt add the fix like I suggested. It still shows it without the brackets, and you should never add anything to the bottom of the script.
__________________
Download every Theme all at once with FTP access! If your a Gold Member please PM me a request for an account.

BadBoyBill is online now   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
NullDC Naomi request rygarmaster HyperSpin Main Forum 10 08-18-2009 08:54 PM
NullDC Problem gillhaj02 HyperSpin Support 7 08-10-2009 07:57 PM
naomi problem robcat HyperSpin Support 1 08-05-2009 11:49 AM
NullDC Naomi Bios Question - Capcom Vs. SNK Millennium Fight 2000 Pro jhabers HyperSpin Support 16 07-12-2009 07:18 PM
What is wrong ? NullDC Naomi problem rygarmaster HyperSpin Main Forum 3 05-01-2009 11:45 AM


All times are GMT -8. The time now is 01:05 PM.
Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd. Ad Management plugin by RedTyger