Acorn Atom - Script needed [Part 2]

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

Acorn Atom - Script needed [Part 2]

Unread post by Vicman » 18 Apr 2010, 14:44

Hi all,
we now have a working Script for the Acorn Atom.
Thanks to Phoenix & Micha (and to te_lanus, who was also looking to it) =D>

But now, the Script needs an extension :surrender:

I've found out, that it's possible to change the Game-Colors !
The Settings are stored in the Atom.ini :
default Atom.ini
Spoiler: show

Code: Select all

[Config]
ASMLayout=0
Sound=1
SpeedIndex=
ExtROMFile=EXTROM.TAP
Use80x87=0

[Emulation]
IgnoreZpFEh=1
BoxSwitch=1
Box0onBreak=1
NMIResponse=15

[Colors]
BackGr=000000
ForeGr=002A00
GreySb=001500
Color0=002A00
Color1=3F3F2A
Color2=000000
Color3=0A0A0A

[Disk]
Drive0=
Drive1=
Drive2=
Drive3=
The Atom.ini I use for the "Game Snapper" :
Spoiler: show

Code: Select all

[Config]
ASMLayout=1
Sound=1
SpeedIndex=
ExtROMFile=EXTROM.TAP
Use80x87=0

[Emulation]
IgnoreZpFEh=1
BoxSwitch=1
Box0onBreak=1
NMIResponse=15

[Colors]
BackGr=000000
ForeGr=00FF00
GreySb=3F1600
Color0=00FF00
Color1=FFFE00
Color2=160D3F
Color3=FF0000

[Disk]
Drive0=
Drive1=
Drive2=
Drive3=
Each Game can have it's own Color-Settings, to have the "best" look =P~

My request :

Can you try to add the Template-ini-Feature into the Script, so each Game starts with it's own Settings ? [-o<
Is this possible ? :loveit:

Here are some examples for the Games, when using a: The original Atom-Settings and b: The modified Settings
Attachments
example2.jpg
examples-new1.jpg
Last edited by Vicman on 18 Apr 2010, 16:45, edited 1 time in total.
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: Acorn Atom - Script needed [Part 2]

Unread post by Vicman » 18 Apr 2010, 15:38

What have to be added to the Atom-Dosbox-Script, so my template.ini will be loaded from the DOS-Emulator Acorn-Atom ? :rolleyes:
Should work similar to the Amiga-Template-Script, right :-k
Attachments
template-ini2.jpg
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: Acorn Atom - Script needed [Part 2]

Unread post by Phoenix » 19 Apr 2010, 01:27

Hi Vicman,

Using such INI system isn't hard at all to program for autoit...

But i have really no idea how the ECC thingy works (inside ECC), and where it is saved and if it works for all systems...does anybody know? (little short on time here atm)
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: Acorn Atom - Script needed [Part 2]

Unread post by Vicman » 23 Apr 2010, 19:53

Phoenix wrote:Hi Vicman,
But i have really no idea how the ECC thingy works (inside ECC), and where it is saved and if it works for all systems...does anybody know? (littel short on time here atm)
I'm a little confused about your Answer :wacko:
We allready have this template-ini thingy in eCC, and you & "TheCyberDruid" has allready wrote such a Script for the Amiga.

I thought, it could work similar to this Amiga-Script :
For this, you have created this Lines in the eCCScriptSystem.au3 :

Code: Select all

;[EXTRA]
; $eccScriptParamsFile (amiga gameconfig INI) (TheCyberDruid)
; ============================================================
If StringLower($eccEmuEmulatorFilePlain) == "winuae" Then
	$eccScriptParamsFile = $eccSystemEccFolder & "ecc-script-user\amiga\winuae\eccscript_" & $eccFileRomCrc32 & ".ini"
	$eccMultiRoms = IniReadSection("..\eccScriptRom.dat", "MULTI")
EndIf
Then you have created this winuae.eccscript :

Code: Select all

; ------------------------------------------------------------------------------
; BEGIN OF SCRIPT
; ------------------------------------------------------------------------------

; Generate an UAE file for this game.
; Also overwrites the old content with new content.

; First let's copy the WINAUE TEMPLATE INI to the UAE ROM NAME
;
$sUAEFilename = $eccFileRomPath & $eccFileRomNamePlain & ".uae"
FileCopy(@Scriptdir & "\winuae-template.ini", $sUAEFilename,9)

bla,bla,bla and so on.....
So, I thought we could put this lines to the eCCScriptSystem.au3 :

Code: Select all

; $eccScriptParamsFile (acorn atom gameconfig INI) 
; ============================================================
If StringLower($eccEmuEmulatorFilePlain) == "dosbox" Then
	$eccScriptParamsFile = $eccSystemEccFolder & "ecc-script-user\atom\dosbox\eccscript_" & $eccFileRomCrc32 & ".ini"
EndIf
Then put this into the first lines of the Atom-Dosbox-Script :

Code: Select all

; Copy the Dosbox TEMPLATE INI to the Atom.ini
$AtomIni = $eccEmuEmulatorPath & "atom.ini"
FileCopy(@Scriptdir & "\dosbox-template.ini", $eccEmuEmulatorPath , AtomIni)
Of course, this Script is nonsens....i can't figure out what's the correct commands should be...... :-"
But i think YOU know :yes_head:
When you have the Time, please give it a try ;)

If someone else have the knowledge, please help :flowers:
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
Gruby
ECC Support
Posts: 185
Joined: 14 Jan 2007, 08:38
Location: Hungary
Contact:

Re: Acorn Atom - Script needed [Part 2]

Unread post by Gruby » 24 Apr 2010, 06:21

Look at my residual.eccscript in my ScummVM dat topic

In your case:
IniWrite($eccSystemEccFolder & "\ecc-script\atom\atom-template.ini", "Config", "ASMLayout", "0")

or "1" after this step copy atom-template.ini to emulator ini path atom.ini
Residual example
$IniFilename = "residual.ini"
FileCopy(@Scriptdir & "\residual-template.ini", $eccEmuEmulatorPath & $IniFilename, 1)
Microkey and HomeLab TOSEC Datter & Redump.org Dumper.
Since I'm no native speaker my English is unfortunately far from perfect, so please excuse any bad grammar and spelling.

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

Re: Acorn Atom - Script needed [Part 2]

Unread post by Vicman » 24 Apr 2010, 18:50

Hi Gruby,
i've changed you script this way :

Code: Select all

IniWrite($eccSystemEccFolder & "\ecc-script\atom\dosbox-template.ini", "colors", ?)

$IniFilename = "atom.ini"
FileCopy(@Scriptdir & "\dosbox-template.ini", $eccEmuEmulatorPath & $IniFilename, 1)
Where the "?" is (in the first line) , i don't know the value, to write all color-settings
but, none the less , i need the IniWrite for all ini-settings (for the whole ini)

And there is something else : :sweatdrop:
I do not only need to copy the dosbox-ini file into the atom.ini.......this would be only Step 2

Explaining :
(look screenshot)
Step 1 : First we need to copy the *.crc-based.ini for the Game (wich is selected in eCC to run), into the dosbox-template.ini
The crc.ini for each game is stored in : eCC\ecc-script-user\atom\dosbox
The dosbox-template.ini is stored in : eCC\ecc-script\atom

I think, this Step 1 has something to do, with this "extras" in the eCCScriptSystem.au3 :
Spoiler: show
;[EXTRA]
; $eccScriptParamsFile (amiga gameconfig INI) (TheCyberDruid)
; ============================================================
If StringLower($eccEmuEmulatorFilePlain) == "winuae" Then
$eccScriptParamsFile = $eccSystemEccFolder & "ecc-script-user\amiga\winuae\eccscript_" & $eccFileRomCrc32 & ".ini"
$eccMultiRoms = IniReadSection("..\eccScriptRom.dat", "MULTI")
EndIf

; $eccScriptParamsFile (acorn atom gameconfig INI) [don't know, if this is correct for the ACORN ATOM :oops:]
; ============================================================
If StringLower($eccEmuEmulatorFilePlain) == "dosbox" Then
$eccScriptParamsFile = $eccSystemEccFolder & "ecc-script-user\atom\dosbox\eccscript_" & $eccFileRomCrc32 & ".ini"
EndIf
Step 2 : Then copy the modfied dosbox-template.ini into the atom.ini

any ideas, how to solve this ???


EDIT :

Step 2 works :

Code: Select all

$IniFilename = "atom.ini"
FileCopy(@Scriptdir & "\dosbox-template.ini", $eccEmuEmulatorPath & $IniFilename, 1)
Attachments
atom-ini-example.jpg
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: Acorn Atom - Script needed [Part 2]

Unread post by Vicman » 25 Apr 2010, 08:33

Solution for Step 1 is still needed :toobad:
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: Acorn Atom - Script needed [Part 2]

Unread post by Phoenix » 25 Apr 2010, 11:22

Hi Vicman,

I've looked into it a bit, and stumbled in something where ECC is not saving the INI headers into the changed file when using the intenal eccSCript function, so i think that the eccSCript feature was never designed to hande INI files specificly, just plain textfiles with changes, so it only saves the changes, nevertheless i can make a workaround for this

I was thinking of ceating an ECC SYSTEM SCRIPT solution for this first, so please hold on!
Attachments
ecc_script_trouble.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
te_lanus
ECC Support
Posts: 265
Joined: 25 May 2009, 05:00
Location: Port Elizabeth, South Africa

Re: Acorn Atom - Script needed [Part 2]

Unread post by te_lanus » 12 Jul 2010, 19:07

Hi

just a question.

Would the script be able to autostart cartridges, and extra tapes.

here is a lot more tapes
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
Vicman
PLATINUM member
Posts: 1233
Joined: 17 Jun 2007, 16:12
Location: Germany,Bochum

Re: Acorn Atom - Script needed [Part 2]

Unread post by Vicman » 12 Jul 2010, 20:45

Hi te_lanus,

I allready use all tapes/games in your link above :yes_head:

The trick to autorun all tapes is : I put all tapes into one Tapeimage (by exporting the *.atm-files , an rewrite them on a "new" *.tap - image.
look here : http://ecc.phoenixinteractive.nl/viewto ... 601#p17601

I'll PM you for this ;)
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: Acorn Atom - Script needed [Part 2]

Unread post by Vicman » 14 Sep 2010, 21:45

*PUSH* :-"

Hi Phoenix, any news here :rolleyes:
Phoenix wrote:Hi Vicman,

I've looked into it a bit, and stumbled in something where ECC is not saving the INI headers into the changed file when using the intenal eccSCript function, so i think that the eccSCript feature was never designed to hande INI files specificly, just plain textfiles with changes, so it only saves the changes, nevertheless i can make a workaround for this

I was thinking of ceating an ECC SYSTEM SCRIPT solution for this first, so please hold on!
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: Acorn Atom - Script needed [Part 2]

Unread post by Phoenix » 18 Sep 2010, 09:15

Hi Vicman,

I'll re-examin this issue again shortly!
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.

Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests