Jump to content
  • Announcement

    The HyperSpin 2 early access beta is here!

    We’re starting the first public testing phase with Platinum Members to keep the scope manageable while we test the current feature set and begin to add more. In the future, we’ll provide a version for basic members as well.  On behalf of the entire HyperSpin team, we look forward to another exciting adventure with our community.

Panasonic 3do start problem


Flyman

Recommended Posts

Posted

Hi, I need help, Wow can set Panasonic 3do, I use 4do emulator, start but every time he stops and asks me to choose the bios rom, what's wrong??

my 3do .ahk

 
;------------------------------------------------------------------------
; Panasonic 3DO
; FourDO v1.3.1.1 r349
; by djvj
; 1.62
;
; Notes:
; This emu only supports cue/iso images
; If your bios file is called fz10_rom.bin, rename it to fz10.rom, it should be placed in the same dir as the emu exe.
; On first launch, FourDO will ask you to point it to the fz10.rom. After you do that, exit the emu and select a game in HS and it should work.
; "After Startup, Open Last game" option must be enabled, otherwise you will only get the BIOS screen.
; Escape key in emu takes it out of fullscreen. It is remapped to Return at the bottom of the script. If you use Escape to exit, it will still work. This is needed to avoid an unattractive close.
;------------------------------------------------------------------------
Fullscreen = true
;------------------------------------------------------------------------

settingsFile := CheckFile(emuPath . "Settings\FourDO.settings")

GUI_ID := FadeInStart()

7z1 := 7z(romPath, romName, romExtension, 7zExtractDir)

; Update settings file via script because the emu doesn't support CLI loading of games
xpath_load(emuXML, settingsFile ) ; need to read the existing xml otherwise xpath deletes all existing nodes
xpath(emuXML, "/Settings/GameRomFile/text()", romPath . romName . romExtension) ; update node with the rom
xpath(emuXML, "/Settings/GameRomSourceType/text()", 1) ; enable setting to autoload game on start
xpath(emuXML, "/Settings/AutoOpenGameFile/text()", "True") ; enable setting to autoload game on start

; Enable Fullscreen
If ( Fullscreen = "true" )
xpath(emuXML, "/Settings/WindowFullScreen/text()", "True")
Else
xpath(emuXML, "/Settings/WindowFullScreen/text()", "False")

xpath_save(emuXML, settingsFile) ; write new XML

MouseMove, A_ScreenWidth, A_ScreenHeight ; Moves mouse so the menubar doesn't show
Run, %executable%, %emuPath%

WinWait, 4DO
WinWaitActive, 4DO

GUI_ID2 := FadeInExit()

Process, WaitClose, %executable%

7z2 := 7zCleanUp()

GUI_ID4 := FadeOutExit()

WinActivate, Hyperspin

ExitApp


xpath(ByRef doc, step, set = "") {
static sc, scb = "" ; use EOT (\x04) as delimiter

If step contains %scb% ; i.e. illegal character
Return
sid := scb . &doc . ":" ; should be unique identifier for current XML object
If (InStr(step, "select:") == 1) { ; for quick selection
stsl = 1
StringTrimLeft, step, step, 7
}
If (InStr(step, "/") == 1)
str = 1 ; root selected
Else {
StringGetPos, p, sc, %sid% ; retrieve previous path
If ErrorLevel = 1
t = /
Else StringMid, t, sc, p += StrLen(sid) + 1, InStr(sc, scb, "", p + 2) - p
step = %t%/%step%
}

; normalize path e.g. /root/node/../child/. becomes /root/child:
step := RegExReplace(step, "(? a5
: a3 == ">=" ? sub >= a5
: a3 == "", "", InStr(doc, "", "", os) - os), InStr(fn, "+text()")
? "(?", "", os + 1)
, doc := SubStr(doc, 1, os - 1) . " " . atr . "=""""" . SubStr(doc, os)
, osx := ++os + StrLen(atr) + 3
If (InStr(fn, "+text()"))
osx := os += StrLen(atr) + 2
}
}
Else If (InStr(fn, "+text()") and nw == "") ; for text content:
os := InStr(doc, ">", "", os) + 1, osx := InStr(doc, re ? rem : "", true, os)

If InStr(fn, "+index-of()") ; get index rather than content
sub = %A_Index% 
Else StringMid, sub, doc, os, osx - os ; extract result

If (InStr(fn, "+count()")) ; increment counter if count() function is used
ct++
Else res = %res%%sub%, ; ... and concat to list

If (set != "" or InStr(fn, "+remove()")) ; modify or remove...
setb = %setb%%os%.%osx%| ; mark for modification
}

If setb !=
{
If (InStr(set, "node:") == 1) {
set := SubStr(xpath(doc, SubStr(set, 6) . "/rawsrc()"), 2)
StringReplace, set, set, 

  • 3 weeks later...
Posted

Unfortunately your post got flagged for moderation as new users will be blocked especially posting a file like that without putting it in a (CODE) (/CODE) square brackets instead of these ones ()

Post edited. Also you are asking about why an emulator has an issue with a bios.

Firstly does it run outside HyperSpin?

Secondly you have posted an AHK script? Why? The AHK scripts in HyperLaunch you do not touch if you do touch then it makes it very difficult to help as we have no common ground of discussion. :)

You are using the latest version of HyperLaunch from GIT now aren't you?

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...