Sord M5 Script needed

Do you have trouble to set-up your emulator for a platform?, need a script?...ask here, we might be able to help you!
User avatar
Vicman
PLATINUM member
Posts: 1233
Joined: 17 Jun 2007, 16:12
Location: Germany,Bochum

Sord M5 Script needed

Unread post by Vicman » 08 Nov 2009, 17:08

Hi all,

we have allready talked about the Sord M5 here.

Now, i know, how to start the Emulator Mess v 0.115 in eCC.
But I need your help for a Script, to Autostart the Games in eCC. :surrender:
I've tried it myslef, but....i hang.... ](*,)

Here are the facts :
Don't use a Mess Version above 0.115 , 'cause the Tape support is broken there !
1. Create in MESS 0.115 folder the subdirectories called "roms" and "software".
2. Put the "sordm5.zip" into the "roms" , and the "basic-i.zip" into "software" (look Attachments)
3. The Commandline Parameter in eCC for *.cas-Files is (in my Case) :
[Emulator for fileextension cas /enable:escape path and do not unpack the zipfiles
sordm5 -cart E:\eCC\ecc-user\sordm5\emus\mess\software\basic-i.zip -cass %ROM%
4. The Commandline Parameter for *.rom-Files
[use Global or fileextension rom / other settings same as for cas ]
sordm5 -cart %ROM%

O.K. , but we also need a script for autostart the Games.
1. For the *.rom-Files , we only need a "send space"
2. The Tape files are different...
- some needs typing "chain" and send enter....
- other needs typing "tape" and send enter....

Here's what i've thought for solution : (but don't know the script-commands.... :cry: )
I want to use the MetaID-Field. For "rom" , "tape" and "chain"
Spoiler: show
1. EmuWindowControl("Mess") ???
2. If StringInStr($eccMetaInfoId, "roms") Then use Mess with commandline-Parameter:
- sordm5 -cart %ROM%
- Sleep(500)
- Send("{ENTER}")

3. If StringInStr($eccMetaInfoId, "chain") Then use Mess with commandline-Parameter:
- sordm5 -cart E:\eCC\ecc-user\sordm5\emus\mess\software\basic-i.zip -cass %ROM%
- AutoItSetOption("SendKeyDownDelay", 200)
- Sleep(500)
- Send("chain")
- Send("{ENTER}")
- mess commandline "-no throttle" ; for faster tapeloading
- Sleep(1000) ; while tape is load
- mess commandline "throttle" ; for playing game in normal speed


3. If StringInStr($eccMetaInfoId, "tape") Then use Mess with commandline-Parameter:
- sordm5 -cart E:\eCC\ecc-user\sordm5\emus\mess\software\basic-i.zip -cass %ROM%
- AutoItSetOption("SendKeyDownDelay", 200)
- Sleep(500)
- Send("tape")
- Send("{ENTER}")
- mess commandline "-no throttle" ; for faster tapeloading
- Sleep(1000) ; while tape is load
- mess commandline "throttle" ; for playing game in normal speed

We also need the Mess Commandline "-no throttle" for the tapeloading-process. And "throttle" when finished loading.
If you can't insert the "no throttle/throttle" to the script, it's o.k. for me ;)
But all other would be great :loveit:

Download Mess v0.115b here :

http://www.mess.org/download.php
Attachments
eccdat_sordm5_complete.20091108_1638.eccDat.zip
The new DAT-File with the MetaID-Field
(1.49 KiB) Downloaded 52 times
sordm5.zip
The "sordm5.zip" for Folder roms
(6.53 KiB) Downloaded 48 times
basic-i.zip
The "basic-i.zip" for Folder software
(6.4 KiB) Downloaded 48 times
roms.zip
The Games
(126.07 KiB) Downloaded 48 times
imagepacks:
Done: Vic20, N64, Philips VG-5000 G7000 G7400, SordM5, Amstrad GX4000, Enterprise 64/128
Progress: Atari 8bit, Dosbox, Exelvision EXL 100
Vicman's eCC-Clips on You Tube

User avatar
Vicman
PLATINUM member
Posts: 1233
Joined: 17 Jun 2007, 16:12
Location: Germany,Bochum

Re: Sord M5 Script needed

Unread post by Vicman » 28 Apr 2010, 19:31

some news here :
I've asked a good guy from the GameBase-Forum, to write me an AutoIt-Script, to run the Games.
It seems, it is not possible to send any keys to MESS :cryhard:

quote :
Spoiler: show
mmm this is harder than i thought...

after finally making a semi-universal utility with directinput i have discovered it doesnt work with mess....

After further investigation it uses rawinput that gets it input directly from an input device. The only way to get round this is installing a fake device driver. This is far lower input than the api's used to send keys in gamebase and autoit. I will keep looking but i am not holding out much hope in finding a method to send keys to mess. This is beyong my knowledge i'm afraid.....
Does anyone have the knowledge, to make it working ?
imagepacks:
Done: Vic20, N64, Philips VG-5000 G7000 G7400, SordM5, Amstrad GX4000, Enterprise 64/128
Progress: Atari 8bit, Dosbox, Exelvision EXL 100
Vicman's eCC-Clips on You Tube

User avatar
te_lanus
ECC Support
Posts: 265
Joined: 25 May 2009, 05:00
Location: Port Elizabeth, South Africa

Re: Sord M5 Script needed

Unread post by te_lanus » 29 Apr 2010, 05:29

Hi vicman

Seems Mess lives in it own little universe once it starts up. And doesn't like anybody messing with it exept a physical human.

But will try later on. My bed is calling me.
Busy with:
image packs:
- EPOCH Super Cassette Vision, Exelvision EXL100
Platforms:
- Cybiko Xtreme
- Matsushita (Panasonic) National JR-200
- PDP-8, PDP-11, TRS-80 Model 100
- Tangerine Microtan 65, Terminal Computer SOL-20, Wang VS

User avatar
Phoenix
ECC Developer 2006-2016
Posts: 9057
Joined: 27 Aug 2006, 01:17
Location: Deventer, The Netherlands
Contact:

Re: Sord M5 Script needed

Unread post by Phoenix » 29 Apr 2010, 10:52

Hi Guys,

I'll also take a look at this this evening.
Sebastiaan Ebeltjes | ECC Developer 2006-2016 | ECC Forum Admin | Phoenix Interactive WebMaster
[- ECC programs -]
eccUpdate, eccScriptSystem, GtkThemeSelect, DatFileUpdater (DFU), ImagePackCenter (IPC), eccDiagnostics, 3dGallery, iccImageInject
eccKameleonCode, eccCreateStartmenuShotcut, eccThirdPartyConfig (TPC), EmuMoviesDownloader (EMD), eccVideoPlayer
MobyGamesImporter (MGI), ECC Amiga GetGemusConfig.

User avatar
Phoenix
ECC Developer 2006-2016
Posts: 9057
Joined: 27 Aug 2006, 01:17
Location: Deventer, The Netherlands
Contact:

Re: Sord M5 Script needed

Unread post by Phoenix » 29 Apr 2010, 22:33

Tested it so far...work like a charm, this is just a prtotype script for CAS files where MESS is perfectly responding to keypresses...i think the trick was to geve the MESS: windows back the focus to send the keypresses to ;)

Also i would not recommend to choose from ROM/CAS ect. from a info-thingy insite the META info, but rather get it from the FILE EXTENSION, i can do this easily, please try out this script (only works pure for .CAS files at the moment)

change the "c:\emuControlCenter\ecc-user\sordm5\emus\software\basic-i.zip" to you own situation!

Code: Select all

; ------------------------------------------------------------------------------
; BEGIN OF SCRIPT
; ------------------------------------------------------------------------------
AutoItSetOption("SendKeyDownDelay", 200)

Run($Emulator & " sordm5 -cart c:\emuControlCenter\ecc-user\sordm5\emus\software\basic-i.zip -cass " & $RomFile)
WinWaitActive("Mess:", "", 3)
WinActivate("Mess:", "")
Sleep(2000) ;some time for MESS to load
Send("{LEFT}")
Send("{RIGHT}")
Sleep(2000) ;some time for I-BASIC to load
Send("chain")
Send("{ENTER}")

; ------------------------------------------------------------------------------
; END OF SCRIPT
; ------------------------------------------------------------------------------
Sebastiaan Ebeltjes | ECC Developer 2006-2016 | ECC Forum Admin | Phoenix Interactive WebMaster
[- ECC programs -]
eccUpdate, eccScriptSystem, GtkThemeSelect, DatFileUpdater (DFU), ImagePackCenter (IPC), eccDiagnostics, 3dGallery, iccImageInject
eccKameleonCode, eccCreateStartmenuShotcut, eccThirdPartyConfig (TPC), EmuMoviesDownloader (EMD), eccVideoPlayer
MobyGamesImporter (MGI), ECC Amiga GetGemusConfig.

User avatar
Vicman
PLATINUM member
Posts: 1233
Joined: 17 Jun 2007, 16:12
Location: Germany,Bochum

Re: Sord M5 Script needed

Unread post by Vicman » 30 Apr 2010, 13:59

Wich Mess version do you use ?
I've problems to run mess (115b) & (137b)

Somehow i get it working...only one time.....
Mess starts, and "chain" was written....Tape was loading...BUT :
The Game/Tape could not loading perfectly. (no ending while loading)
So, I think we need the Games/Tapes as *.zip-File, not as *.cas-file in MESS :surrender:

As i said, up to now i've problems with the script & MESS....
Most times when clicking in eCC on "Start Game" , the MESS-Window is shown very shortly, and then it's gone... :(
imagepacks:
Done: Vic20, N64, Philips VG-5000 G7000 G7400, SordM5, Amstrad GX4000, Enterprise 64/128
Progress: Atari 8bit, Dosbox, Exelvision EXL 100
Vicman's eCC-Clips on You Tube

User avatar
Phoenix
ECC Developer 2006-2016
Posts: 9057
Joined: 27 Aug 2006, 01:17
Location: Deventer, The Netherlands
Contact:

Re: Sord M5 Script needed

Unread post by Phoenix » 30 Apr 2010, 17:28

Hi Vicman,

i use MESS v0.115b

I have the same problem, the problem is that there is a 0 byte file created (by MESS?) it seems, delete this file and the game will start-up again, we have to know what's causing this 0-byte file because the game won't start if this file exists:
Attachments
sordm5_0bytes.png
Sebastiaan Ebeltjes | ECC Developer 2006-2016 | ECC Forum Admin | Phoenix Interactive WebMaster
[- ECC programs -]
eccUpdate, eccScriptSystem, GtkThemeSelect, DatFileUpdater (DFU), ImagePackCenter (IPC), eccDiagnostics, 3dGallery, iccImageInject
eccKameleonCode, eccCreateStartmenuShotcut, eccThirdPartyConfig (TPC), EmuMoviesDownloader (EMD), eccVideoPlayer
MobyGamesImporter (MGI), ECC Amiga GetGemusConfig.

User avatar
Vicman
PLATINUM member
Posts: 1233
Joined: 17 Jun 2007, 16:12
Location: Germany,Bochum

Re: Sord M5 Script needed

Unread post by Vicman » 30 Apr 2010, 19:47

Yes, I see..... ;) ......and
Problem solved
Use unzipped Games (*.cas) in your Rom-Folder. That works ! :smartass:

Just tried it with "Snaky". zipped-size = 2 KB. Unzipped = 4 KB....
All Games (36) zipped = 138 KB , unzipped = 247 KB.....so, no problem for the Harddisk :D
imagepacks:
Done: Vic20, N64, Philips VG-5000 G7000 G7400, SordM5, Amstrad GX4000, Enterprise 64/128
Progress: Atari 8bit, Dosbox, Exelvision EXL 100
Vicman's eCC-Clips on You Tube

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest