Next Generation Emulation banner
1 - 11 of 11 Posts

·
Registered
Joined
·
12 Posts
Discussion Starter · #3 ·
if you see the configuracion.ini file, inside says:

C:\JUEGOS\naomi\naomi.exe
C:\JUEGOS\naomi\roms\Capcom vs SNK Pro\snkvscap.lst
3
3
13

INSTRUCTIONS

PATH FROM NULLDC-NAOMI EXECUTABLE
PATH FROM *.LST FILE OF THE ROM
TIME TO NULLDC-NAOMI WINDOW IS LOADED IN FIRST PLANE AND READY TO USE
TIME TO "FILE\OPEN" WINDOW IS LOADED AND READY
TIME TO ROM IS LOADED 100% AND READY TO SEND AT FULLSCREEN
You must open the ini file and fill it with your own parameters. You must be check the time of delay with a cronometer and put the seconds in the .ini file.

emmm... this is a very ultra beta test file xD, i made a lot of changes today, coming soon i upload it again
 

·
Registered
Joined
·
57 Posts
for each game you must have a exe an ini file
Sounds complicated. Wouldn't it be easier to pass on the LST file path on the fly? Or Write to the INI the game you are calling?

What is your loader coded in? I wrote mine in AHK. Here is the most recent source if you care to see my ideas. Most have had success with it. The purpose is to allow the loading of games through a frontend rather than using a mouse and keyboard. I hope it helps.

Code:
#NoEnv
#SingleInstance force 
#Persistent
#NoTrayIcon

;CHECKING FOR 1 PARAMS, IF NOT THEN EXIT
if 0 < 1
{
    MsgBox Usage: Naomi_Loader.exe "[rompath]\[romfile]"
    ExitApp
}

Blockinput on ; Keeps users from messing up loader my pressing buttons and moving mouse
rom = "%1%" ; error level (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, nulldc.cfg, nullDC, Emulator.AutoStart
IniWrite, 1, nulldc.cfg, nullDC, Emulator.NoConsole
IniWrite, 1, nulldc.cfg, drkpvr, Fullscreen.Enabled
IniWrite, 640, nulldc.cfg, drkpvr, Fullscreen.Res_X
IniWrite, 480, nulldc.cfg, drkpvr, Fullscreen.Res_Y
Run, nullDC-Naomi_1.0.3_nommu.exe ; launches emulator
WinWait, Open, Open as &read-only
IfWinNotActive, Open, Open as &read-only, WinActivate, Open, Open as &read-only
WinWaitActive, Open, Open as &read-only ; waits for load dialog
Sleep, 100
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, nullDC-Naomi_1.0.3_nommu.exe
MouseMove %X%, %Y%                     ; Restore mouse
return
ESC:: 
Process, Close, nullDC-Naomi_1.0.3_nommu
ExitAPP
 

·
Registered
Joined
·
12 Posts
Discussion Starter · #7 ·
i use visual basic sp6

Code:
Private ruta_nulldc, ruta_rom, delay_nulldc, delay_open, delay_loaded As String
Private contadorx   As Integer
Private Sub Command1_Click()
'ejecuto emu, alt, abajo, enter, pego text, enter, cuento 20, alt+enter


Shell Text5.Text, vbNormalFocus

    
 Clipboard.Clear
Clipboard.SetText Text1.Text
     



End Sub

Private Sub Form_Load()
contadorx = 0

Open App.Path + "\configuracion.ini" For Input As #1
    
    Line Input #1, ruta_nulldc
    Line Input #1, ruta_rom
    Line Input #1, delay_nulldc
    Line Input #1, delay_open
    Line Input #1, delay_loaded
    
Close #1

Shell Text5.Text, vbNormalFocus

    
 Clipboard.Clear
Clipboard.SetText Text1.Text
     
    

End Sub


Private Sub Timer4_Timer()
contadorx = contadorx + 1

If contadorx = Int(delay_nulldc) Then
    SendKeys "%" 'alt
    SendKeys "{ENTER}" 'bajo
    SendKeys "{ENTER}" 'enter
End If

If contadorx = Int(delay_nulldc) + Int(delay_open) Then
    SendKeys "^v" 'pego ruta
    SendKeys "{ENTER}" 'enter
End If


If contadorx = Int(delay_nulldc) + Int(delay_open) + Int(delay_loaded) Then
    SendKeys "%{ENTER}" 'pantalla completa

    
    Unload Me
    Exit Sub
End If






End Sub
i dont know AHK, but i try to do a work similar to a "macro", record the actions and play it into the gui of the emulator.
 

·
Registered
Joined
·
57 Posts
I think rather than the user trying to "guess" times that things take to load before preceding to the next step it may be a better idea to check for win title active.
Example when you click FILE>LOAD GAME a dialog box will pop up in a matter of moments depending on the specs of your machine. (thats why you have the timer) however if your application waits for the Load dialog box to popup (the win title is always the same) before moving on to the next step it will not matter how long it take each system as soon as the window pops up it moves on.

That is the way I wrote my loader and it makes it more friendly.

What do you think about implementing that?

your work is appreciated do not think that lack of responces or bumping the thread are nessary.When its good its good.. Only a handfull of people will ever compliment your efforts. If you look at the number of nulldc downloads and look at the number of thankyou threads they will pale in comparison.

Thank you for your time.
 
1 - 11 of 11 Posts
This is an older thread, you may not receive a response, and could be reviving an old thread. Please consider creating a new thread.
Top