Version 3.5 - Final version released

Comments on existing version & Suggestions for future versions. If you want a new feature suggest it here. Discussions about beta versions also come in this section.
Post Reply
antp
Site Admin
Posts: 9629
Joined: 2002-05-30 10:13:07
Location: Brussels
Contact:

Version 3.5 - Final version released

Post by antp »

The final version has been released
It is available on the download page of my site:
http://www.antp.be/software/moviecatalog/download

I still keep this topic for reference, but it won't be updated anymore

--------------

This version is called "RC" (Release Candidate) since if no bug are found it will become the final version. I probably won't add new features in this one, so new features will be for the next one (there are already lots of new things since version 3.4.3).

In this version, the script window has been heavily modified, and unfortunately all scripts will have to be modified.
At the time I write this message, some have been updated.
So if you want to help my by converting some scripts, it would be nice.
See bellow for more info.

Translations
Since there were lots of changes, the translation files and toolbar images of version 3.4.3 are not compatible.
The following translations are updated for version 3.5 : Belarussian, Danish, Finnish, French, German, Italian, Korean, Lithuanian, Polish, Russian, Serbian, Spanish, Turkish.
The following translations are converted but have parts in English : Croatian, Norwegian, Swedish.
If you use one of these language (or English of course), no problem, they are included with the program.
If you were using another one, you'll have to switch back to English until your translation is updated. Go to Tools -> Languages and select either "English default" or "English for translation".

Do the same in Tools -> Preferences -> Display about the toolbar icon set if you do not use one of the sets provided with the program (you can delete Classic.bmp that is now included in the .exe file)

The English and French help files are now updated too, Polish and Spanish help files may come later.

Change log
- Link to MediaInfo.dll to import info from files other than AVI: OGM, MKV, RM, WMV, DVD (IFO/VOB)
- Completely reworked scripts window. Now scripts can define options that can be changed easily by users, and you can specify which fields can be modified. Few new functions have also been added. The Results window has been redesigned.
- Debug functionnalities for scripts : step by step execution, breakpoints, variables watch list, etc.
- Scripting engine can now use external files : when you put a unit name in the "uses" of a script (.ifs file) it will search for a file named like this unit and having a .pas or .ifs extension
- A XML parser has been added to the script engine
- "Import picture" and "Link picture" have been merged, radio-buttons are now displayed in the "Select picture" window. An option in Preferences window has been added to specify if you prefer to store or link the picture, so it is not needed anymore to modify scripts for that.
- Export, Print, Statistics and Script windows now have an option to include all movies, or only the selected, checked or visible ones.
- Separated language Window displayed the first time that the program is launched; I hope that I will receive less e-mails of people asking how to change language
- Virtual field "Formatted Title" that can be used in sorting, so it is now possible to sort properly on the translated title. The "checked" field (checkboxes of the main window's list) has been added in the available fields too.
- "Rating" field can now have one decimal like on IMDB
- Field names can be used in printed reports, so they are translated too (usage: [label:fieldname] where "fieldname" is the same than what you use to display one of the field value)
- Group mode: Option added to put together the movies that were alone in their group
- Duplicate movie numbers are accepted (and for those that still want unique numbers, I added in the "Add movie" windows actions available in the case the new number already exists)
- Some shortcuts changed in main window to make them more logical
- LOTS of small corrections and improvements
Changes for scripts
- The "GetPicture" function now does not take a second parameter anymore, it will have to be modified in all scripts.
- The "DisplayResults" is now useless, but it is not have been deleted. You can remove it from your scripts.
- Scripts must have their properties assigned. A button has been added for that in the Editor tab of the script window. Options can be defined. So scripts that had user-editable constants should be modified to either use these constants, or use the new Field selection thing (see screenshots bellow).
Since the language of the script is defined in its properties, you can filter these scripts. For example you may only want to see scripts in English and in your own language.
Pivello made a program to convert scripts if you do not want to do it "by hand" with a text editor or with AMC's editor ;)
If you modify a script, please do not post it directly here ! Post a link to the modified file if you have a webspace to host it, or send it to me by e-mail. In both cases I will upload it to my server as soon as possible to make it available to everybody.

Here is what the new script window looks like
When you double-click on an option in the window you get this
Script properties window
Results window
(sorry, I made the screenshots with a french script :D)
Scripts debugging and variables watch list

Here are the new functions for scripts :

Code: Select all

function GetPage2(address: string; referer: string): string;
function PostPage2(address: string; params: string; content: string; referer: string; forceHTTP11: Boolean; forceEncodeParams: Boolean): string;
function URLDecode(source: string): string;
function CanSetField(field: Integer): Boolean;
function CanSetPicture: Boolean;
function GetOption(OptName: string): Integer;
function UTF8Encode(Value: string): string;
function UTF8Decode(Value: string): string;
function AcceptLicense(LicenseVersion: Integer): Boolean;
procedure SetStatic(AName: string; AValue: string);
function GetStatic(AName: string): string;
procedure ShowError(message: string);
procedure ShowInformation(message: string);
function ShowWarning(message: string): Boolean;
function ShowConfirmation(message: string): Boolean;
and two constants:

Code: Select all

dirApp: string;
dirScripts: string;
There is also all the objets and functions related to the XML parser.
All these new functions are explained in the help file.

Download
This new version can be downloaded at
ftp://ftp2.antp.be/antp/software/temp/amc350rc8.rar
http://www2.antp.be/antp/software/temp/amc350rc8.rar
date: 2005-03-05; both include scripts available at this date
Win95/98/ME users: take also the file unicows.dll or AMC will crash when using mediainfo.dll
The updated scripts will be available at
http://www.antp.be/temp/scripts_v350
You can get all the updated scripts in one file by downloading the first one of the folder (this one)
The source code can be downloaded at
ftp://ftp2.antp.be/antp/software/temp/a ... ources.rar

If you find a bug or something that does not work as expected, do not hesitate to post it here.
Before that, please check that you use the latest version of the program (by comparing the dates).

About catalogs
As usual, please do backup copies of your catalog ! An accident or a bug can happen faster than you think :o
Like for previous version, simply open your old catalog with the version 3.5 and it will be converted automatically when you save it (no need to use the Import function)
If you saved your catalog to version 3.5 and want to go back to version 3.4.3, you can use this tool :
http://http2.antp.be/antp/temp/convert350to343.exe
Simply drag & drop the ".amc" file on it, it will make a backupt to a ".old" file and save the ".amc" file in 3.3/3.4 format.
Last edited by antp on 2005-03-14 22:26:04, edited 35 times in total.
scorpion7552
Posts: 182
Joined: 2004-02-05 11:57:33
Location: Paris, France

Post by scorpion7552 »

prem's :lol:

bon on y va

:) nouvelle police d'affichage ok pour les caractères ascii étendu

:) setfield(fieldxxx, ''); ok maintenant

:hihi: displayresults y a comme une confusion dans les intitulés

:??: j'ai pas de noms affichés dans la fenetre des scripts

:??: paramètres: texte pour la licence pourquoi ne pas mettre par défaut le texte qu'on avait au début des anciens scripts

:badidea: dans les fiches il n'y a plus le bouton pour aller direct à l'url mémorisée

:??: sauvegarde des options je ne sais pas si ça marche toujours (il était tard heir soir quand j'ai testé) Faut-il avoir viré les anciennes valorisations ???

:??: options langue du script: ne vaudrait-il pas mieux avoir une liste déroulante 'auto-alimentée' comme pour les autres paramètres du genre (pays, etc...)

:??: faut que je revois ça de plus près, mais le message 'voulez-vous interrompre le traitement de la liste des films' peut être ennuyeux dans le cas des script multi-site: un paramètre reply yes/no dans input ???

c'est tout pour l'instant. En tous cas bravo et continue comme ça :grinking: :grinking: :grinking:
antp
Site Admin
Posts: 9629
Joined: 2002-05-30 10:13:07
Location: Brussels
Contact:

Post by antp »

Je me demande si ça ne serait pas mieux de faire ce topic en anglais :o

« displayresults y a comme une confusion dans les intitulés »
comment ça :??: tu n'utiliserais pas par hasard un fichier de traduction de la version 3.4.3 ? :o

« j'ai pas de noms affichés dans la fenetre des scripts »
Comme indiqué dans le premier post, tous les scripts doivent être mis à jour. Le nom est tiré des propriétés et non plus du nom de fichier

« paramètres: texte pour la licence pourquoi ne pas mettre par défaut le texte qu'on avait au début des anciens scripts »
Je pourrais le faire, en effet

« dans les fiches il n'y a plus le bouton pour aller direct à l'url mémorisée »
C'est un bug, normalement la flèche à droite du champ doit afficher un menu avec "Open" et "Browse...", ça sera corrigé

« sauvegarde des options je ne sais pas si ça marche toujours (il était tard heir soir quand j'ai testé) Faut-il avoir viré les anciennes valorisations ??? »
je comprends pas la question :lol:

« options langue du script: ne vaudrait-il pas mieux avoir une liste déroulante 'auto-alimentée' comme pour les autres paramètres du genre (pays, etc...) »
Ha ouais, je vais rajouter ça

« faut que je revois ça de plus près, mais le message 'voulez-vous interrompre le traitement de la liste des films' peut être ennuyeux dans le cas des script multi-site: un paramètre reply yes/no dans input ??? »
Quel est le problème avec ce truc-là ? Il existait déjà dans la version précédente il me semble :??: (ou alors juste pour le PickTree ?)
antp
Site Admin
Posts: 9629
Joined: 2002-05-30 10:13:07
Location: Brussels
Contact:

Post by antp »

*** update : version from 2004-12-12 ***

- correction of the bug reported by scorpion7552 (URL field's button not working) + its idea for scripts properties window (picklist for language selection)
- correction of a major bug when sorting movies by title in main list, and fixed the sorting of grouped movies
KaraGarga
Posts: 50
Joined: 2004-04-03 03:33:22
Location: Turkey
Contact:

Post by KaraGarga »

Thanks for good news :D

I've just downloaded beta. News script module is really nice.

Especially modifiable fields are very useful :D

There seems to be a bug: Script windows run everytime (even one movie selected) in batch process mode.
antp
Site Admin
Posts: 9629
Joined: 2002-05-30 10:13:07
Location: Brussels
Contact:

Post by antp »

What do you mean by "in batch process mode" ?
scorpion7552
Posts: 182
Joined: 2004-02-05 11:57:33
Location: Paris, France

Post by scorpion7552 »

antp wrote:Je me demande si ça ne serait pas mieux de faire ce topic en anglais :o
OK, sorry but I was so excited :hihi:

Forget what I've said about DisplayResults , it's ok now (I haven't seen that I have to stay with english (Have you edit your post or have I missed something :hihi: ))
antp wrote:« j'ai pas de noms affichés dans la fenetre des scripts »
Comme indiqué dans le premier post, tous les scripts doivent être mis à jour. Le nom est tiré des propriétés et non plus du nom de fichier
OK now, but not really obvious, because the parm Getinfo must be equal to 1 and the default is 0 :/ )

filter
strange, because there is one item per script even if they are in the same language

Something I don't understand (but surely obvious :( ) How can I get the values of my parms . I've tried getInfo but I don't understand how to use it. Do I have to declare my parms ???

That's all for tonigth, I think ;)
antp
Site Admin
Posts: 9629
Joined: 2002-05-30 10:13:07
Location: Brussels
Contact:

Post by antp »

scorpion7552 wrote: (I haven't seen that I have to stay with english (Have you edit your post or have I missed something :hihi: ))
I edited it, but I thought it was obvious that the language files were not compatible :p
scorpion7552 wrote:
OK now, but not really obvious, because the parm Getinfo must be equal to 1 and the default is 0
I did that because by default a script is not especially made for getting info from internet. It is like the "GETINFO" added at the top of the script in old versions.
scorpion7552 wrote:
filter
strange, because there is one item per script even if they are in the same language
Maybe a bug there :D
scorpion7552 wrote:
Something I don't understand (but surely obvious :( ) How can I get the values of my parms . I've tried getInfo but I don't understand how to use it. Do I have to declare my parms ???
Know what value the user selected for each option ? It is the GetOption function ;)
You pass the option name between quotes (since it is a text string) and it returns the number that the user selected.
scorpion7552
Posts: 182
Joined: 2004-02-05 11:57:33
Location: Paris, France

Post by scorpion7552 »

antp wrote:
scorpion7552 wrote:
Something I don't understand (but surely obvious :( ) How can I get the values of my parms . I've tried getInfo but I don't understand how to use it. Do I have to declare my parms ???
Know what value the user selected for each option ? It is the GetOption function ;)
You pass the option name between quotes (since it is a text string) and it returns the number that the user selected.
Ok, my mistake. I have declared my variables as Boolean so I got an error because they have to be Integer (and treated as Integer by the way :p )

That's all for tonight. Now I'm going to bed. Really good job, Antoine. :grinking:

Good night everybody. See you soon ;)
scorpion7552
Posts: 182
Joined: 2004-02-05 11:57:33
Location: Paris, France

Post by scorpion7552 »

Hello, back again ;)

some new things
1) properties
the user's choices are only memorized during the session, aren't they?

One thing that would be usefull: a 'comments' or 'hits & tips' field for each parameter where we can store extra informations (to explain more some stuffs)

2) Message 'current file have been modified'
I know that is not a new thing, but can you distinguish between 'a script has been modified' and 'the database has been modified' (of course you can ;))

3) scripting window
in 3.4.3 this panel disappeared after end of script and we can see the result. Now this panel stays and we have to press close to see the result. Personally I prefer the old way

4) and now the 'big' part for tonight: picktreeexec, input and cancel button
now when I press cancel in picktreeexec or input, I get the message 'do you want to abort script batch process'. If I press 'yes', the script is ended directly (so what's the use of the boolean?)

But let's see the structure I use in a multiple sites script
first, enter movie name for the 1st site (input)
then select from list displayed (picktreeexec)
In this phase, if I hit 'cancel' and the script is cancelled, why not...

But continue. I select a movie in the first list, get the infos. Because I already know the name of the movie, I go directly to the search engine of the second site and display the list found (even if there is only one selection because I want to check moviename/director: cf psycho which one ??). Now if I hit 'cancel' because nothing match my request, I want to input another string and go back to the search engine or stop research. If cancel (input or picktreeexec), I only want to stop the search in the second site and keep the infos found in the first site.
Am I enough clear ???

5) Am I the only beta-tester :hihi: :hihi: :hihi:
antp
Site Admin
Posts: 9629
Joined: 2002-05-30 10:13:07
Location: Brussels
Contact:

Post by antp »

1) script properties are saved when you click "save", and user option choices should be saved when the script is executed (in scripts.ini). If they aren't, there is a bug.
You can already put a long line for description of each value of each option, I thought it was enough :p

2) I do not see what you mean. When the script window says that, it means that the script is modified, and when the main window says that it means that the whole catalog has been (or may have been) modified.

3) Actually now the results are in another window. ScorEpioN already suggested to add an option to close the script window after script execution.

4) that's when you import for multiple movies : if you click "yes" it stops after current movie. If you click "no" it continues the script for next movie. I still have to add a detection to not ask it when it reaches the last movie (or when there is only one movie). Actually this was aready existing in previous version if I remember well. But now you can use the "get info from script" when multiple movies are selected; before it was only possible with Tools->Scripting.

If no match is found in the list, it is not currently possible to handle it. The script could add an item in the list to go back to the beginning of the script, or in the window that asks if you want to cancel I could add a button to force the script to restart in current movie: I'll see that later.

5) ScorEpioN sent me a first version of his scripts by e-mail so he also tested it ;) But there are still some small changes to do to these scripts.
KaraGarga
Posts: 50
Joined: 2004-04-03 03:33:22
Location: Turkey
Contact:

Post by KaraGarga »

antp wrote:What do you mean by "in batch process mode" ?
I mean if you have run script even only one movie, it asks "Do you want to abort script process?"

Image



Also it would be nice if "modifiable fields" remembers latest checked fields.

Hope this time clear :)

EDIT: scorpion7552 have already reported these issues :D
antp
Site Admin
Posts: 9629
Joined: 2002-05-30 10:13:07
Location: Brussels
Contact:

Post by antp »

KaraGarga wrote:I mean if you have run script even only one movie, it asks "Do you want to abort script process?"
Yes, that's a bug ;) It will be corrected
KaraGarga wrote: Also it would be nice if "modifiable fields" remembers latest checked fields.
They are saved when you run the script... well, they should be. Are they ?
scorpion7552
Posts: 182
Joined: 2004-02-05 11:57:33
Location: Paris, France

Post by scorpion7552 »

Antoine, thanks for your replies :)

1) & 2) for the properties thing
I think my mistake was that I haven't saved the user's custom (may be, I don't remember :(). So the good thing is there is no bug in this part (I have found the scripts.ini after I post :hihi: ) . But that confirms my opinion that it is really important to have the name of the file mentionned in the 'do you want to save the file' panel (for average users and even for the others :D). For the 'hits & tips' field, that's true that the fields are long enough; it was just a thought ... And may be a 'restore defaults' button ???

3) ok, waiting for that option

4) I'm not sure we are speaking of the same thing. I am not talking about a script for multiple movies but I'm talking about a script with access to multiple sites (like 'MrCinéma' = MrCinéma + Cinéfil). The point is that I don't want to abort the complete script if I cancel the search for the second site.
In others words, I want that picktreeexec or input return true or false without any message, so I can decide what to do with the user's answer (like it works in 3.4.3)

5) of course, I will send you the modified scripts for 'Cinéfil', 'MrCinéma' and 'AllGame' when the test phase will be finished.

In a thread, it was mentionned the possibility to save multiple pictures. Do you plan to integrate that in 3.5 (just to know ;) )
antp
Site Admin
Posts: 9629
Joined: 2002-05-30 10:13:07
Location: Brussels
Contact:

Post by antp »

1) & 2) OK I will add the file name. A "revert to default option values" may be nice too :)

4) in 3.4.3 it was already asking if you want to cancel batch or not. But it was asking it only when applying the script to multiple movies. The fast that it asks it for only one movie is a bug that will be corrected ;)
And in this example, you click "Cancel", and the script gets "False" if the user says that he does not want to stop the batch script process.

About multiple pictures, no, not for 3.5
This will come later, but I have lots of things to add. I'd like to make a version 4 with new fields and a new list components before continuing to add smaller features (or I will not have enough numbers between 3.5 and 4 :hihi: ) But since multiple pictures may be easy to add, maybe I will add it in v4 with the new fields.
scorpion7552
Posts: 182
Joined: 2004-02-05 11:57:33
Location: Paris, France

Post by scorpion7552 »

thanks, all is clear now :grinking:
KaraGarga
Posts: 50
Joined: 2004-04-03 03:33:22
Location: Turkey
Contact:

Post by KaraGarga »

antp wrote:
KaraGarga wrote: Also it would be nice if "modifiable fields" remembers latest checked fields.
They are saved when you run the script... well, they should be. Are they ?
No they are not saved unfortunately.

I also wonder one function. There is a script option tab (Editor>Properties>Script Options). As far as I understand users can add a funtion to this option list. What type of functions are they? How this option can be used? I cannot figure out by myself.
antp
Site Admin
Posts: 9629
Joined: 2002-05-30 10:13:07
Location: Brussels
Contact:

Post by antp »

OK so I have to check why these are not saved...

The scripts options are not functions, it is simple text strings that can get an integer value associated to them.
These values are selected by the user.
You can see that on the screenshots : the options values are easily modifiable by the user from the script list, so he does not have to go to the Editor to change them. The script can know the value selected by each option with the GetOption function.
antp
Site Admin
Posts: 9629
Joined: 2002-05-30 10:13:07
Location: Brussels
Contact:

Post by antp »

ScorEpioN's scripts are updated, thanks to him:
Allocine (FR).ifs
Animeka (FR).ifs
Cinemasie (FR).ifs
Erreurs de films (FR).ifs
Update Fields (FR-US).ifs
sagitaz
Posts: 27
Joined: 2004-03-08 23:30:57

Post by sagitaz »

je suis en train de tester cette nouvelle version et c'est toujours le top.

par contre quand on lance un script, on as la possibilité de choisir ce qui seras inporter : "modifiable field" mais a chaque fois que l'on reviens sur le scripting il faut redéselectionner les elements qu'on ne souhaite pas.

y'as t'il un moyens pour que les cases cocher soit a chaque ouverture du programme celle que l'on souhaite et non toutes ?

merci
Post Reply