Outils pour utilisateurs

Outils du site


tutos:software:systemes:bandai-super-vision-8000
Cette version est dépassée. Une version approuvée plus récente existe.DiffCette version (2017/01/31 16:29) est en ébauche.
Approuvés: 0/1

Ceci est une ancienne révision du document !


MEmu = MESS<br />
MEmuV = v0.151<br />
MURL = http://www.mess.org/<br />
MAuthor = HFS<br />
MVersion = 2.2.2<br />
MCRC = 464C9400<br />
iCRC = AA949FDC<br />
MID = 635038268905515239<br />
MSystem = &quot;Fujitsu FM-7&quot;,&quot;Kontiki 100&quot;,&quot;MicroBee&quot;,&quot;Amstrad GX4000&quot;,&quot;APF Imagination Machine&quot;,&quot;Apple IIGS&quot;,&quot;Atari 8-bit&quot;,&quot;Atari 2600&quot;,&quot;Atari 5200&quot;,&quot;Atari 7800&quot;,&quot;Atari Jaguar&quot;,&quot;Atari Lynx&quot;,&quot;Bally Astrocade&quot;,&quot;Bandai Super Vision 8000&quot;,&quot;Bandai WonderSwan&quot;,&quot;Bandai WonderSwan Color&quot;,&quot;Casio PV-1000&quot;,&quot;Casio PV-2000&quot;,&quot;Coleco ADAM&quot;,&quot;ColecoVision&quot;,&quot;Creatronic Mega Duck&quot;,&quot;Emerson Arcadia 2001&quot;,&quot;Entex Adventure Vision&quot;,&quot;Epoch Game Pocket Computer&quot;,&quot;Epoch Super Cassette Vision&quot;,&quot;Exidy Sorcerer&quot;,&quot;Fairchild Channel F&quot;,&quot;Funtech Super Acan&quot;,&quot;GCE Vectrex&quot;,&quot;Hartung Game Master&quot;,&quot;Interton VC 4000&quot;,&quot;KenSingTon Sport Vii&quot;,&quot;Magnavox Odyssey 2&quot;,&quot;Matra &amp; Hachette Alice&quot;,&quot;Mattel Aquarius&quot;,&quot;Mattel Intellivision&quot;,&quot;MGT Sam Coupe&quot;,&quot;NEC PC Engine&quot;,&quot;NEC PC Engine-CD&quot;,&quot;NEC SuperGrafx&quot;,&quot;NEC TurboGrafx-16&quot;,&quot;NEC TurboGrafx-CD&quot;,&quot;Nintendo 64&quot;,&quot;Nintendo Entertainment System&quot;,&quot;Nintendo Game Boy&quot;,&quot;Nintendo Game Boy Advance&quot;,&quot;Nintendo Game Boy Color&quot;,&quot;Nintendo Virtual Boy&quot;,&quot;Philips CD-i&quot;,&quot;RCA Studio II&quot;,&quot;Sega 32X&quot;,&quot;Sega CD&quot;,&quot;SC-3000&quot;,&quot;Sega Game Gear&quot;,&quot;Sega Genesis&quot;,&quot;Sega Master System&quot;,&quot;Sega Mega Drive&quot;,&quot;Sinclair ZX81&quot;,&quot;SNK Neo Geo AES&quot;,&quot;SNK Neo Geo CD&quot;,&quot;SNK Neo Geo Pocket&quot;,&quot;SNK Neo Geo Pocket Color&quot;,&quot;Sony PlayStation&quot;,&quot;Sony Pocketstation&quot;,&quot;Sord M5&quot;,&quot;Super Nintendo Entertainment System&quot;,&quot;Tandy TRS-80 Color Computer 3&quot;,&quot;Texas Instruments TI 99-4A&quot;,&quot;Tiger Game.com&quot;,&quot;Tomy Tutor&quot;,&quot;VTech CreatiVision&quot;,&quot;Watara Supervision&quot;,&quot;Super Control Station SF-7000&quot;,&quot;Thomson MO5&quot;,&quot;Sega Pico&quot;,&quot;Star Wars - EBC&quot;<br />
;—————————————————————————-<br />
; Notes:<br />
; Exit fade will only work correctly if you don&#39;t have Esc, the default MESS exit key, as your exit key. If you use Esc, turn off the ExitScreen<br />
; This module assumes you have bios zip in your MESS &quot;roms&quot; directory, which might be different than your actual roms directory, for each system you need this module for. All tested systems listed below<br />
; If MESS has a problem reading the bios zips, try archving them with &quot;no compression&quot;<br />
; This site can help a ton with details for the various systems supported: http://www.progettoemma.net/mess/index.html<br />
; You may get a black screen or MESS may close w/o notice if you do not have a bios rom for your system when one is needed.<br />
; If you use bezel, it is recommended to set the module bezel mode to normal, and go to your mess.ini file, on your emulator folder, and choose these options: artwork_crop 1, use_backdrops 1, use_overlays 1, use_bezels 0<br />
;<br />
; Following systems require a BIOS zip with their roms inside, placed in the &quot;Mess\Roms\&quot; directory:<br />
; Amstrad GX4000 - N/A<br />
; APF Imagination Machine - apfimag (tape games), apfm1000 (cart games)<br />
; Apple IIGS - apple2gs<br />
; Atari 800 - a800<br />
; Atari 5200 - a5200<br />
; Atari 7800 - a7800<br />
; Atari Jaguar - jaguar<br />
; Atari Lynx - lynx<br />
; Bally Astrocade - astrocde<br />
; Bandai WonderSwan - N/A<br />
; Bandai WonderSwan Color - N/A<br />
; Casio PV-2000 - pv2000<br />
; Coleco ADAM - adam, adam_ddp, adam_fdc, adam_kb, adam_prn, adam_spi<br />
; ColecoVision - coleco<br />
; Creatronic Mega Duck - N/A<br />
; Emerson Arcadia 2001 - N/A<br />
; Entex Adventure Vision - advision<br />
; Epoch Game Pocket Computer - gamepock<br />
; Epoch Super Cassette Vision - scv<br />
; Exidy Sorcerer - sorcerer<br />
; Fairchild Channel F - channelf<br />
; Funtech Super ACan - supracan<br />
; GCE Vectrex - vextrex<br />
; Hartung Game Master - gmaster<br />
; Interton VC 4000 - vc4000<br />
; KenSingTon Sport Vii - vii<br />
; Magnavox Odyssey 2 - odyssey2<br />
; Matra &amp; Hachette Alice - alice32<br />
; Mattel Aquarius - aquarius<br />
; Mattel Intellivision - intv (&quot;exec.bin&quot; [8,192 bytes] &amp; &quot;grom.bin&quot; [2,048 bytes])<br />
; MGT Sam Coupe - samcoupe<br />
; NEC PC Engine - N/A<br />
; NEC PC Engine-CD - N/A<br />
; NEC SuperGrafx - N/A<br />
; NEC TurboGrafx-16 - N/A<br />
; NEC TurboGrafx-CD - &quot;Super CD-ROM2 System V3.01 (U).pce&quot; [262,144 bytes] (placed in the roms subfolder in the emuPath)<br />
; Nintendo 64 - n64<br />
; Nintendo Entertainment System - N/A<br />
; Nintendo Game Boy - gameboy<br />
; Nintendo Game Boy Advance - gba<br />
; Nintendo Game Boy Color - gbcolor<br />
; Nintendo Virtual Boy - N/A<br />
; Philips CD-i - the cdimono1<br />
; RCA Studio II - studio2<br />
; Sega 32X - 32x<br />
; Sega CD - segacd, megacd, megacd2j (megacd2j seems to be more compatible over megacdj)<br />
; Sega Game Gear - gamegear<br />
; Sega Genesis - N/A<br />
; Sega Master System - sms<br />
; Sinclair ZX81 - zx81<br />
; SNK Neo Geo AES - aes<br />
; SNK Neo Geo CD - neocd<br />
; SNK Neo Geo Pocket - ngp<br />
; SNK Neo Geo Pocket Color - ngpc<br />
; Sony PlayStation - psa, pse, psj, psu<br />
; Sord M5 - m5<br />
; Super Nintendo Entertainment System - snes<br />
; Tandy TRS-80 Color Computer 3 - coco3<br />
; Texas Instruments TI 99-4A - ti99_4a<br />
; Tiger Game.com - gamecom<br />
; Tomy Tutor - tutor<br />
; VTech CreatiVision - crvision<br />
; Watara Supervision - N/A<br />
;<br />
; Custom Configuration Files:<br />
; If you want to use custom configuration files (.cfg files) for some games you will need to store them inside your MESS cfg folder using the following structure:<br />
; cfg\mess_system_name\HS_XML_rom_name\mess_system_name.cfg<br />
; An example of a game that requires specific settings is ICBM Attack for the Bally Astrocade, in this case special cfg file should be:<br />
; cfg\astrocde\I.C.B.M. Attack (USA) (Unl)\astrocde.cfg<br />
;<br />
; Bally Astrocade:<br />
; ICBM requires a soft reset (even on the real hardware) to launch. You can read about it here: http://www.ballyalley.com/ballyalley/ar … g_MESS.pdf<br />
; A custom build of MESS is needed to play this game if you don&#39;t want to press F3 manually each time you play ICBM. The custom build enables DirectInput so it is possible to script a soft reset in.<br />
; I compiled a mess with this turned on and it can be found in my user dir @ /Upload Here/djvj/Bally Astrocade/<br />
; Also ICBM uses different controls then the rest of the games. Make sure you follow the procedure explained above under &quot;Custom Configuration Files&quot; to create such file.<br />
; Rom extensions should be zip,bin,txt<br />
; Create a txt file in your rom dir called &quot;Gunfight+Checkmate+Calculator+Scribbling (USA).txt&quot; This game is built into the system and no rom is required to play it.<br />
;<br />
; GCE Vectrex:<br />
; Requires a vectrex.lay and a png overlay for each game. These all need to be placed in the mess\artwork\vectrex folder.<br />
; You can download all these pngs and the lay file in my ftp folder. You need to use the HyperList XML to match the pngs.<br />
;<br />
; Magnavox Odyssey 2:<br />
; Euro games should use the videopac bios instead of the odyssey2 one or you&#39;ll get some timing issues.<br />
; Use the systemName ini file in the folder with this module for this, example:<br />
; [Moto-Crash (France)]<br />
; Bios=videopac<br />
;<br />
; Texas Instruments TI 99/4A:<br />
; This system requires full keyboard emulation to work properly<br />
; Split cart dumps are not supported since MESS .145 so you&#39;ll have to convert them to RPK format or use an earlier version of MESS (and a different module)<br />
; You can check how to convert split cart dumps to RPK here:<br />
; http://www.ninerpedia.org/index.php/MES … art_system<br />
; For floppy games make sure you have a RPK dump of an extended basic rom on your roms folder. It should be named &quot;extended_basic.rpk&quot;<br />
;—————————————————————————-<br />
StartModule()<br />
BezelGUI()<br />
FadeInStart()</p>

<p>; This object controls how the module reacts to different systems. MESS can play a lot of systems, but needs to know what system you want to run, so this module has to adapt.<br />
mType := Object(&quot;Fujitsu FM-7&quot;,&quot;fm7&quot;,&quot;Kontiki 100&quot;,&quot;kontiki&quot;,&quot;MicroBee&quot;,&quot;mbeeic&quot;,&quot;Amstrad GX4000&quot;,&quot;gx4000&quot;,&quot;APF Imagination Machine&quot;,&quot;apfimag&quot;,&quot;Apple IIGS&quot;,&quot;apple2gs&quot;,&quot;Atari 8-bit&quot;,&quot;a800&quot;,&quot;Atari 2600&quot;,&quot;a2600&quot;,&quot;Atari 5200&quot;,&quot;a5200&quot;,&quot;Atari 7800&quot;,&quot;a7800&quot;,&quot;Atari Jaguar&quot;,&quot;jaguar&quot;,&quot;Atari Lynx&quot;,&quot;lynx&quot;,&quot;Bally Astrocade&quot;,&quot;astrocde&quot;,&quot;Bandai WonderSwan&quot;,&quot;wswan&quot;,&quot;Bandai WonderSwan Color&quot;,&quot;wscolor&quot;,&quot;Bandai Super Vision 8000&quot;,&quot;sv8000&quot;,&quot;Casio PV-1000&quot;,&quot;pv1000&quot;,&quot;Casio PV-2000&quot;,&quot;pv2000&quot;,&quot;Coleco ADAM&quot;,&quot;adam&quot;,&quot;ColecoVision&quot;,&quot;coleco&quot;,&quot;Creatronic Mega Duck&quot;,&quot;megaduck&quot;,&quot;Emerson Arcadia 2001&quot;,&quot;arcadia&quot;,&quot;Entex Adventure Vision&quot;,&quot;advision&quot;,&quot;Epoch Game Pocket Computer&quot;,&quot;gamepock&quot;,&quot;Epoch Super Cassette Vision&quot;,&quot;scv&quot;,&quot;Exidy Sorcerer&quot;,&quot;sorcerer&quot;,&quot;Fairchild Channel F&quot;,&quot;channelf&quot;,&quot;Funtech Super Acan&quot;,&quot;supracan&quot;,&quot;GCE Vectrex&quot;,&quot;vectrex&quot;,&quot;Hartung Game Master&quot;,&quot;gmaster&quot;,&quot;Interton VC 4000&quot;,&quot;vc4000&quot;,&quot;KenSingTon Sport Vii&quot;,&quot;vii&quot;,&quot;Magnavox Odyssey 2&quot;,&quot;odyssey2&quot;,&quot;Matra &amp; Hachette Alice&quot;,&quot;alice32&quot;,&quot;Mattel Aquarius&quot;,&quot;aquarius&quot;,&quot;Mattel Intellivision&quot;,&quot;intv&quot;,&quot;MGT Sam Coupe&quot;,&quot;samcoupe&quot;,&quot;NEC PC Engine&quot;,&quot;pce&quot;,&quot;NEC PC Engine-CD&quot;,&quot;pce&quot;,&quot;NEC SuperGrafx&quot;,&quot;sgx&quot;,&quot;NEC TurboGrafx-16&quot;,&quot;tg16&quot;,&quot;NEC TurboGrafx-CD&quot;,&quot;tg16&quot;,&quot;Nintendo 64&quot;,&quot;n64&quot;,&quot;Nintendo Entertainment System&quot;,&quot;nes&quot;,&quot;Nintendo Game Boy&quot;,&quot;gameboy&quot;,&quot;Nintendo Game Boy Advance&quot;,&quot;gba&quot;,&quot;Nintendo Game Boy Color&quot;,&quot;gbcolor&quot;,&quot;Nintendo Virtual Boy&quot;,&quot;vboy&quot;,&quot;Philips CD-i&quot;,&quot;cdimono1&quot;,&quot;RCA Studio II&quot;,&quot;studio2&quot;,&quot;Sega 32X&quot;,&quot;32x&quot;,&quot;Sega CD&quot;,&quot;segacd&quot;,&quot;Sega Game Gear&quot;,&quot;gamegear&quot;,&quot;Sega Genesis&quot;,&quot;genesis&quot;,&quot;Sega Master System&quot;,&quot;sms&quot;,&quot;Sega Mega Drive&quot;,&quot;genesis&quot;,&quot;SC-3000&quot;,&quot;sc3000&quot;,&quot;Sinclair ZX81&quot;,&quot;zx81&quot;,&quot;SNK Neo Geo AES&quot;,&quot;aes&quot;,&quot;SNK Neo Geo CD&quot;,&quot;neocdz&quot;,&quot;SNK Neo Geo Pocket&quot;,&quot;ngp&quot;,&quot;Super Control Station SF-7000&quot;,&quot;sf7000&quot;,&quot;SNK Neo Geo Pocket Color&quot;,&quot;ngpc&quot;,&quot;Sony PlayStation&quot;,&quot;psx&quot;,&quot;Sony Pocketstation&quot;,&quot;pockstat&quot;,&quot;Sord M5&quot;,&quot;m5&quot;,&quot;Super Nintendo Entertainment System&quot;,&quot;snes&quot;,&quot;Tandy TRS-80 Color Computer 3&quot;,&quot;coco3&quot;,&quot;Texas Instruments TI 99-4A&quot;,&quot;ti99_4a&quot;,&quot;Tiger Game.com&quot;,&quot;gamecom&quot;,&quot;Tomy Tutor&quot;,&quot;tutor&quot;,&quot;VTech CreatiVision&quot;,&quot;crvision&quot;,&quot;Watara Supervision&quot;,&quot;svision&quot;,&quot;Thomson MO5&quot;,&quot;mo5&quot;,&quot;Sega Pico&quot;,&quot;picou&quot;,&quot;Star Wars - EBC&quot;,&quot;starwbc&quot;)</p>

<p>ident := mType[systemName] ; search object for the systemName identifier MESS uses<br />
If !ident<br />
ScriptError(&quot;Your systemName is: &quot; . systemName . &quot;`nIt is not one of the known supported systems for this MESS module: &quot; . moduleName)</p>

<p>settingsFile := modulePath . &quot;\&quot; . moduleName . &quot;.ini&quot;<br />
Fullscreen := IniReadCheck(settingsFile, &quot;Settings&quot;, &quot;Fullscreen&quot;,&quot;true&quot;,,1) ; Set fullscreen mode<br />
Videomode := IniReadCheck(settingsFile, &quot;Settings&quot;, &quot;Videomode&quot;,&quot;d3d&quot;,,1) ; Choices are gdi,ddraw,d3d. If left blank, mess uses d3d by default<br />
hlsl := IniReadCheck(settingsFile, &quot;Settings|&quot; . systemName, &quot;HLSL&quot;,&quot;false&quot;,,1)<br />
bezelMode := IniReadCheck(settingsFile, &quot;Settings&quot;, &quot;BezelMode&quot;,&quot;layout&quot;,,1) ; &quot;layout&quot; or &quot;normal&quot;<br />
UseSoftwareList := IniReadCheck(settingsFile, SystemName, &quot;UseSoftwareList&quot;,&quot;false&quot;,,1)<br />
userparams := IniReadCheck(settingsFile, SystemName, &quot;Parameters&quot;,A_Space,,1)<br />
Artwork_Crop := IniReadCheck(settingsFile, systemName . &quot;|&quot; . romName, &quot;Artwork_Crop&quot;, &quot;true&quot;,,1)<br />
Use_Bezels := IniReadCheck(settingsFile, systemName . &quot;|&quot; . romName, &quot;Use_Bezels&quot;, &quot;true&quot;,,1)<br />
Use_Overlays := IniReadCheck(settingsFile, systemName . &quot;|&quot; . romName, &quot;Use_Overlays&quot;, &quot;true&quot;,,1)<br />
Use_Backdrops := IniReadCheck(settingsFile, systemName . &quot;|&quot; . romName, &quot;Use_Backdrops&quot;, &quot;true&quot;,,1)</p>

<p>7z(romPath, romName, romExtension, 7zExtractPath)</p>

<p>If (bezelEnabled = &quot;true&quot;) {<br />
artworkCrop := If (Artwork_Crop = &quot;true&quot;) ? &quot;-artwork_crop&quot; : &quot;-noartwork_crop&quot;<br />
useBezels := If (Use_Bezels = &quot;true&quot;) ? &quot;-use_bezels&quot; : &quot;-nouse_bezels&quot;<br />
useOverlays := If (Use_Overlays = &quot;true&quot;) ? &quot;-use_overlays&quot; : &quot;-nouse_overlays&quot;<br />
useBackdrops := If (Use_Backdrops = &quot;true&quot;) ? &quot;-use_backdrops&quot; : &quot;-nouse_backdrops&quot;<br />
ListXMLtable := []<br />
ListXMLtable := ListXMLInfo(ident)<br />
If bezelMode = layout<br />
BezelStart(ident,ListXMLtable[1],ListXMLtable[2],ListXMLtable[3],ListXMLtable[4])<br />
Else if !(Use_Bezels = &quot;true&quot;)<br />
BezelStart(,,ListXMLtable[2])<br />
} Else {<br />
artworkCrop := &quot;-artwork_crop&quot;<br />
useBezels := &quot;-nouse_bezels&quot;<br />
useOverlays := &quot;-nouse_overlays&quot;<br />
useBackdrops := &quot;-nouse_backdrops&quot;<br />
}</p>

<p>winstate := If (Fullscreen = &quot;true&quot;) ? &quot;Hide UseErrorLevel&quot; : &quot;UseErrorLevel&quot;<br />
fullscreen := If (Fullscreen = &quot;true&quot;) ? &quot;-nowindow&quot; : &quot;-window&quot;<br />
videomode := If (Videomode != &quot;&quot; )? &quot;-video &quot; . videomode : &quot;&quot;<br />
hlsl := If hlsl = &quot;true&quot; ? &quot;-hlsl_enable&quot; : &quot;-nohlsl_enable&quot;<br />
param1 := &quot;-cart &quot; . &quot;&quot;&quot;&quot; . romPath . &quot;\&quot; . romName . romExtension . &quot;&quot;&quot;&quot; ; default param1 used for launching most systems.</p>

<p>If romExtension = .txt ; This can be applied to all systems<br />
param1:=</p>

<p>If ident = apfimag ; APF Imagination Machine<br />
If romExtension != .tap<br />
ident = apfm1000 ; cart games for APF Imagination Machine require a different bios to be loaded</p>

<p>If UseSoftwareList != true<br />
{ ; Now that we know the system we are loading, determine if we use an ini assocated with that system for custom game configs a user might need. Then load the configs associated to that game.<br />
If ident in apple2gs,odyssey2,ti99_4a ; these systems will use an ini to store game specific settings<br />
{ messSysINI := CheckFileMESS(modulePath . &quot;\&quot; . systemName . &quot;.ini&quot;) ; create the ini if it does not exist<br />
If ident = ti99_4a ; Texas Instruments TI 99-4A<br />
{ mainCart := IniReadCheck(messSysINI, romName, &quot;Main_Cart&quot;,A_Space,,1)<br />
basicCart := IniReadCheck(messSysINI, romName, &quot;Basic_Cart&quot;,&quot;extended_basic.rpk&quot;,,1) ; user can specify a rom specific cart instead of the default basic one<br />
expansionLocation := IniReadCheck(messSysINI, romName, &quot;Expansion_Location&quot;,&quot;extended_basic.rpk&quot;,,1)<br />
; Now set the parameters to send to mess<br />
If romExtension = .dsk ; Expansion Disk<br />
; If using the mainCart , send expansionLocation to MESS. This will require DirectInput to be enabled on the MESS build! Else we are loading a Disk game<br />
param1:=&quot;-gromport multi -cart1&quot;, param2:=&quot;&quot;&quot;&quot; . romPath . &quot;\&quot; . (If mainCart ? (mainCart):(basicCart)) . &quot;&quot;&quot;&quot;, param3:=&quot;-peb:slot2 32kmem -peb:slot3 speech -peb:slot6 tirs232 -peb:slot8 hfdc&quot;, param4:=&quot;-flop1&quot;, param5:=&quot;&quot;&quot;&quot; . romPath . &quot;\&quot; . romName . romExtension . &quot;&quot;&quot;&quot;<br />
Else If romExtension = .rpk ; Cart Game (RPK Format)<br />
param1:=&quot;-gromport multi -cart1&quot;, param2:=&quot;&quot;&quot;&quot; . romPath . &quot;\&quot; . romName . romExtension . &quot;&quot;&quot;&quot;, param3:=&quot;-peb:slot3 speech&quot;<br />
param6 := &quot;-ui_active&quot; ;Enable partial keyboard mode at startup<br />
}Else if ident = apple2gs ; Apple IIGS<br />
{ externalOS := IniReadCheck(messSysINI, romName, &quot;External_OS&quot;,&quot;false&quot;,,1)<br />
2gsSystemFile:=&quot;System6.2mg&quot; ;For games without OS included, always force this name and error out if not found<br />
multipartTable:=CreateRomTable(multipartTable)</p>

<p>If externalOS = true<br />
{ CheckFile(romPath . &quot;\&quot; . 2gsSystemFile)<br />
param1:=&quot;-flop3&quot;, param2:=&quot;&quot;&quot;&quot; . romPath . &quot;\&quot; . 2gsSystemFile . &quot;&quot;&quot;&quot;, param3:=&quot;-flop4&quot;, param4:=&quot;&quot;&quot;&quot; . romPath . &quot;\&quot; . romName . romExtension . &quot;&quot;&quot;&quot;<br />
}Else{<br />
param1:=&quot;-flop3&quot;, param2:=&quot;&quot;&quot;&quot; . romPath . &quot;\&quot; . romName . romExtension . &quot;&quot;&quot;&quot;<br />
If (multipartTable.MaxIndex() &gt; 1)<br />
param3:=&quot;-flop4&quot;, param4:=&quot;&quot;&quot;&quot; . multipartTable[2,1] . &quot;&quot;&quot;&quot;<br />
}<br />
param5 := &quot;-ui_active&quot; ;Enable partial keyboard mode at startup<br />
}Else if ident = odyssey2 ; Magnavox Odyssey 2<br />
param2 := &quot;-ui_active&quot; ;Enable partial keyboard mode at startup</p>

<p>;Use a different bios if needed (This must be done after the above if conditions since the ident will change)<br />
iniBios := IniReadCheck(messSysINI, romName, &quot;Bios&quot;,ident,,1) ; for all games, we use the default bios. Some games might require different bios like Odyssey2&#39;s Jopac games use the videopac bios instead, which should be defined in the ini<br />
If (iniBios != &quot;&quot;)<br />
ident := iniBios ; need to change the bios name for some games<br />
}</p>

<p>; These systems don&#39;t use an ini, but do require parameters to be changed from the default method of launching Mess<br />
If ident = aes ; SNK Neo Geo AES<br />
{ param1 := &quot;-bios asia&quot; ; can also be japan, but the asian one has english menus for most games<br />
param2 := &quot;-rompath &quot; . &quot;&quot;&quot;&quot; . &quot;roms;&quot; . romPath . &quot;&quot;&quot;&quot;<br />
param3 := &quot;-cart &quot; . romName<br />
}Else If (ident = &quot;neocdz&quot; || ident = &quot;cdimono1&quot; || ident = &quot;segacd&quot; || ident = &quot;psx&quot; || (ident = &quot;tg16&quot; &amp;&amp; systemName = &quot;NEC TurboGrafx-CD&quot;) || (ident = &quot;pce&quot; &amp;&amp; systemName = &quot;NEC PC Engine-CD&quot;)) ; SNK Neo Geo CD, Philips CD-i, Sega CD, Sony PlayStation, NEC PC Engine-CD or NEC TurboGrafx-CD<br />
{ If romExtension not in .chd,.cue<br />
ScriptError(&quot;MESS only supports &quot; . systemName . &quot; games in chd and cue format. It does not support:`n&quot; . romExtension)<br />
If (systemName = &quot;NEC TurboGrafx-CD&quot;) { ; NEC TurboGrafx-CD needs an additional bios mounted as a cart to run<br />
; tgcdBios := CheckFile(emuPath . &quot;\roms\CD-ROM System V2.01 (U).pce&quot;) ; older bios that doesn&#39;t seem to work with many games<br />
tgcdBios := CheckFile(emuPath . &quot;\roms\Super CD-ROM2 System V3.01 (U).pce&quot;)<br />
param2 := &quot;-cart &quot; . &quot;&quot;&quot;&quot; . tgcdBios . &quot;&quot;&quot;&quot;<br />
} Else If (ident = &quot;psx&quot;) { ; Sony PlayStation<br />
ident = psu ; changing ident sent to Mess to use the USA bios<br />
; SelectMemCard() ; future function to swap around memcards<br />
; Usage: mc1 &quot;J:\MESS\software\psu\card1.mc&quot;<br />
} If (systemName = &quot;Sega CD&quot;) { ;<br />
If InStr(romName,&quot;(Jap&quot;) ; Mega CD Japanese v2<br />
ident = megacd2j<br />
Else If InStr(romName,&quot;(Euro&quot;) ; Mega CD European (PAL)<br />
ident = megacd<br />
}<br />
param1 := &quot;-cdrm &quot; . &quot;&quot;&quot;&quot; . romPath . &quot;\&quot; . romName . romExtension . &quot;&quot;&quot;&quot;<br />
}Else If ident = gamecom ; Tiger Game.com<br />
{ If romExtension != .txt<br />
param1 := &quot;-cart1 &quot; . &quot;&quot;&quot;&quot; . romPath . &quot;\&quot; . romName . romExtension . &quot;&quot;&quot;&quot;<br />
}Else If ident = vii ; KenSingTon Sport Vii<br />
{ If romName = Built-In Games (China) ; Has some built-in games, gotta launch just BIOS for it.<br />
param1:=<br />
}Else If ident = alice32 ; Matra &amp; Hachette Alice<br />
{ If romExtension != .txt<br />
param1 := &quot;-cass1 &quot; . &quot;&quot;&quot;&quot; . romPath . &quot;\&quot; . romName . romExtension . &quot;&quot;&quot;&quot;<br />
}Else If ident = coco3 ; Tandy TRS-80 Color Computer 3<br />
{ If romExtension != .txt<br />
param1 := &quot;-cart &quot; . &quot;&quot;&quot;&quot; . romPath . &quot;\&quot; . romName . romExtension . &quot;&quot;&quot;&quot;<br />
}Else If ident = zx81 ; Sinclair ZX81<br />
{ If romExtension != .txt<br />
param1 := &quot;-cass1 &quot; . &quot;&quot;&quot;&quot; . romPath . &quot;\&quot; . romName . romExtension . &quot;&quot;&quot;&quot;<br />
}Else If ident = sorcerer ; Exidy Sorcerer<br />
{ If romExtension = .snp ; Snapshot file<br />
{<br />
param1 := &quot;-dump &quot; . &quot;&quot;&quot;&quot; . romPath . &quot;\&quot; . romName . romExtension . &quot;&quot;&quot;&quot;<br />
} Else If romExtension = .bin<br />
{<br />
param1 := &quot;-quik &quot; . &quot;&quot;&quot;&quot; . romPath . &quot;\&quot; . romName . romExtension . &quot;&quot;&quot;&quot;<br />
}<br />
}Else If ident = a800 ; Atari 8-bit<br />
{ If romExtension != .txt<br />
param1 := &quot;-flop1 &quot; . &quot;&quot;&quot;&quot; . romPath . &quot;\&quot; . romName . romExtension . &quot;&quot;&quot;&quot;<br />
}Else If ident = samcoupe ; MGT Sam Coupe<br />
{ If romExtension != .txt<br />
param1 := &quot;-flop1 &quot; . &quot;&quot;&quot;&quot; . romPath . &quot;\&quot; . romName . romExtension . &quot;&quot;&quot;&quot;<br />
}Else If ident = vectrex ; GCE Vectrex<br />
{ If romName = Mine Storm (World) ; Mess dumps an error if you try to launch Mine Storm using a rom instead of just booting vectrex w/o a game in it (Mine Storm is built into vectrex)<br />
param1:=<br />
}Else If ident = adam ; Coleco ADAM<br />
param1 := (If romExtension = &quot;.ddp&quot; ? &quot;-cass1&quot; : &quot;-floppydisk&quot;) . &quot; &quot;&quot;&quot; . romPath . &quot;\&quot; . romName . romExtension . &quot;&quot;&quot;&quot; ; Decide if disk or ddp game<br />
}Else{ ; Use Software List<br />
hashname := ident<br />
param1 := &quot;-rompath &quot; . &quot;&quot;&quot;&quot; . &quot;roms;&quot; . romPath . &quot;&quot;&quot;&quot; . A_Space . romName ; param1 used for launching from software lists</p>

<p>If ident = aes ; SNK Neo Geo AES<br />
{ hashname := &quot;neogeo&quot;<br />
param2 := &quot;-bios asia&quot; ; can also be japan, but the asian one has english menus for most games<br />
}</p>

<p>CheckFile(emuPath . &quot;\hash\&quot; . hashname . &quot;.xml&quot;,&quot;Could not find a software list for the system &quot; . ident) ;Check if software list for selected system exists<br />
}</p>

<p>If ident = vectrex ; GCE Vectrex<br />
param2 := &quot;-view &quot; . (If (FileExist(emuPath . &quot;\artwork\Vectrex\&quot; . romName . &quot;.png&quot;))?(&quot;&quot;&quot;&quot; . romName . &quot;&quot;&quot;&quot;):&quot;standard&quot;) ; need overlays extracted in the artwork\vectres folder. PNGs must match romName</p>

<p>; use a custom cfg file if it exists and append it to param1<br />
IfExist, % emuPath . &quot;\cfg\&quot; . ident . &quot;\&quot; . dbName<br />
param1 := &quot;-cfg_directory &quot; . &quot;&quot;&quot;&quot; . emuPath . &quot;\cfg\&quot; . ident . &quot;\&quot; . dbName . &quot;&quot;&quot;&quot; . A_Space . param1</p>

<p>If ident = mbee<br />
{<br />
sleep, 10<br />
param1 := &quot;-quik1 &quot; . &quot;&quot;&quot;&quot; . romPath . &quot;\&quot; . romName . romExtension . &quot;&quot;&quot;&quot;<br />
}</p>

<p>If ident = mbeeic<br />
{<br />
sleep, 10<br />
param1 := &quot;-quik1 &quot; . &quot;&quot;&quot;&quot; . romPath . &quot;\&quot; . romName . romExtension . &quot;&quot;&quot;&quot;<br />
}</p>

<p>If ident = fm7<br />
{<br />
sleep, 10<br />
param1 := &quot;-flop1 &quot; . &quot;&quot;&quot;&quot; . romPath . &quot;\&quot; . romName . romExtension . &quot;&quot;&quot;&quot;<br />
}</p>

<p>If ident = kontiki<br />
{<br />
sleep, 10<br />
param1 := &quot;-flop1 &quot; . &quot;&quot;&quot;&quot; . romPath . &quot;\&quot; . romName . romExtension . &quot;&quot;&quot;&quot;<br />
}</p>

<p>If ident = starwbc<br />
{<br />
sleep, 100<br />
Run(executable . A_Space . ident . A_Space . param1 . A_Space . param2 . A_Space . param3 . A_Space . param4 . A_Space . param5 . A_Space . param6 . A_Space . userparams . A_Space . fullscreen . A_Space . hlsl . A_Space . videomode . A_Space . artworkCrop . A_Space . useOverlays . A_Space . useBackdrops . &quot; -skip_gameinfo&quot;, emuPath, winstate)<br />
}<br />
else<br />
{<br />
sleep, 100<br />
Run(executable . A_Space . ident . A_Space . param1 . A_Space . param2 . A_Space . param3 . A_Space . param4 . A_Space . param5 . A_Space . param6 . A_Space . userparams . A_Space . fullscreen . A_Space . hlsl . A_Space . videomode . A_Space . artworkCrop . A_Space . useBezels . A_Space . useOverlays . A_Space . useBackdrops . &quot; -skip_gameinfo&quot;, emuPath, winstate)<br />
}</p>

<p>; Run(executable . A_Space . ident . A_Space . param1 . A_Space . param2 . A_Space . param3 . A_Space . param4 . A_Space . param5 . A_Space . param6 . A_Space . userparams . A_Space . fullscreen . A_Space . hlsl . A_Space . videomode . A_Space . artworkCrop . A_Space . useBezels . A_Space . useOverlays . A_Space . useBackdrops . &quot; -skip_gameinfo&quot;, emuPath, winstate)</p>

<p>If(ErrorLevel != 0){<br />
If (ErrorLevel = 1)<br />
Error = Failed Validity<br />
Else If(ErrorLevel = 2)<br />
Error = Missing Files<br />
Else If(ErrorLevel = 3)<br />
Error = Fatal Error<br />
Else If(ErrorLevel = 4)<br />
Error = Device Error<br />
Else If(ErrorLevel = 5)<br />
Error = Game Does Not Exist<br />
Else If(ErrorLevel = 6)<br />
Error = Invalid Config<br />
Else If ErrorLevel in 7,8,9<br />
Error = Identification Error<br />
Else<br />
Error = MESS Error<br />
ScriptError(&quot;MESS Error - &quot; . Error)<br />
}</p>

<p>WinWait(&quot;ahk_class MAME&quot;)<br />
WinWaitActive(&quot;ahk_class MAME&quot;)</p>

<p>BezelDraw()</p>

<p>If romName = ICBMromName ; for Bally Astrocade only<br />
{ Sleep, 2000 ; increase if you don&#39;t see the title screen<br />
SetKeyDelay, 50<br />
Send, {F3 down}{F3 up} ; sends a reset to MESS, needed for ICBM to boot<br />
}</p>

<p>FadeInExit()<br />
Process(&quot;WaitClose&quot;, executable)<br />
7zCleanUp()<br />
BezelExit()<br />
FadeOutExit()<br />
ExitModule()</p>

<p>; This will simply create a new blank ini if one does not exist<br />
CheckFileMESS(file){<br />
IfNotExist, %file%<br />
FileAppend,, %file%<br />
Return file<br />
}</p>

<p>ListXMLInfo(rom){ ; returns MAME/MESS info about parent rom, orientation angle, resolution<br />
Global emuFullPath, emuPath<br />
ListXMLtable := []<br />
Log(&quot;Module - RunWait`, &quot; . comspec . &quot; /c &quot; . &quot;&quot;&quot;&quot; . emuFullPath . &quot;&quot;&quot;&quot; . &quot; -listxml &quot; . rom . &quot; &gt; tempBezel.txt`, &quot; . emuPath . &quot;`, Hide&quot;)<br />
RunWait, % comspec . &quot; /c &quot; . &quot;&quot;&quot;&quot; . emuFullPath . &quot;&quot;&quot;&quot; . &quot; -listxml &quot; . rom . &quot; &gt; tempBezel.txt&quot;, %emuPath%, Hide<br />
Fileread, ListxmlContents, %emuPath%\tempBezel.txt<br />
RegExMatch(ListxmlContents, &quot;s)<game.*name=&quot; .=“”> RegExMatch(parent,&quot;cloneof=&quot; . &quot;&quot;&quot;&quot; . &quot;.*&quot;, parent)<br />
RegExMatch(parent,&quot;&quot;&quot;&quot; . &quot;.*&quot;, parent)<br />
StringTrimLeft, parent, parent, 1<br />
RegExMatch(ListxmlContents, &quot;s)<display.*rotate=&quot; .=“”> RegExMatch(angle,&quot;[0-9]+&quot;, angle, &quot;-6&quot;)<br />
RegExMatch(ListxmlContents, &quot;s)<display.*width=&quot; .=“”> RegExMatch(width,&quot;[0-9]+&quot;, width, &quot;-6&quot;)<br />
RegExMatch(ListxmlContents, &quot;s)<display.*height=&quot; .=“”> RegExMatch(Height,&quot;[0-9]+&quot;, Height, &quot;-6&quot;)<br />
ListXMLtable[1] := parent<br />
ListXMLtable[2] := angle<br />
If (ListXMLtable[2]&lt;&gt;0)<br />
ListXMLtable[3] := height<br />
Else<br />
ListXMLtable[3] := width<br />
If (ListXMLtable[2]&lt;&gt;0)<br />
ListXMLtable[4] := width<br />
Else<br />
ListXMLtable[4] := height<br />
FileDelete, %emuPath%\tempBezel.txt<br />
Return ListXMLtable<br />
}</display.*height=&quot;></display.*width=&quot;></display.*rotate=&quot;></game.*name=&quot;></p>

<p>BezelLabel:<br />
WinSet, Transparent, 0, ahk_class ConsoleWindowClass<br />
Return</p>

<p>CloseProcess:<br />
FadeOutStart()<br />
WinClose(&quot;ahk_class MAME&quot;)<br />
Return</p>

tutos/software/systemes/bandai-super-vision-8000.1485876595.txt.gz · Dernière modification: 2017/01/31 16:29 de oijkn