New scripting options

I want to show you what I'm doing some evenings in my spare time.
At first I want to say that this is ONLY A PRIVATE HOBBY PROJECT, I don't want to "kill" eCC, But eventually wake up Andreas a bit ;-)

Moderator: DerMicha75

User avatar
DerMicha75
ECC2 (java) Developer
Posts: 521
Joined: 05 Feb 2007, 22:14
Location: Germany
Contact:

New scripting options

Unread post by DerMicha75 » 21 Aug 2012, 20:55

Hi ECC2 user,

Today I did a decision. I will not continue to do the same scripting behaviour than ECC1. But not totally different...

- I will write a eccScriptRom.dat as ECC1 does
- But there will be other keys for the rom values. The current keys are not good for me. I will generate some values, that now are calculated in eccScriptSystem.au3, I will add some new and I will remove some (in opinion) useless keys.
- I have to modify the eccScriptSystem.au3 too, so this will read the new dat and generates new global variables

So the scripts are not compatible, but can converted easily.

As an addition, ECC2 now supports key/value pairs that can be edited for each game (and defaults for each platform).

Stay tuned

Micha

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

Re: New scripting options

Unread post by Phoenix » 21 Aug 2012, 20:58

Hi Micha,

Let's see what you can "cook up" :rolleyes: , and i'll check ECC scripting...maybe we can make it compatible somehow :detective:
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: New scripting options

Unread post by Vicman » 22 Aug 2012, 21:25

:clap:
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
DerMicha75
ECC2 (java) Developer
Posts: 521
Joined: 05 Feb 2007, 22:14
Location: Germany
Contact:

Re: New scripting options

Unread post by DerMicha75 » 23 Aug 2012, 20:34

So here comes the news. You can enter key/value pairs in the platform option dialog:
keyvalue1.png
Then you can enter key/value pairs in the game meta edit dialog:
keyvalue2.png
The resulting section in the datfile is:
[KEY_VALUE]
key_test = "overwritetest"
key_test4 = "newkeytest"
key_test2 = "testvalue2_platform"
key_test3 = "testvalue3_platform"
So we need a flexible method to read in all keys in one section with AutoIT. I'm sure this is easy, but I have to study the documentation. (or maybe phoenix knows the trick).

ATM I'm working on correct writing the other values (same results with packed/not packed games and so on)

Micha

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

Re: New scripting options

Unread post by Phoenix » 23 Aug 2012, 20:45

Hi Micha,

In this case i suggest using IniReadSection : http://www.autoitscript.com/autoit3/doc ... ection.htm

Example:

Code: Select all

Local $var = IniReadSection("C:\Temp\myfile.ini", "section2")
If @error Then
    MsgBox(4096, "", "Error occurred, probably no INI file.")
Else
    For $i = 1 To $var[0][0]
        MsgBox(4096, "", "Key: " & $var[$i][0] & @CRLF & "Value: " & $var[$i][1])
    Next
EndIf
Where:
$var[0][0] = Key/Value count in section
$var[$i][0] = Key
$var[$i][1] = Value
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 1 guest