appendnum is true by default

Bug #716391 reported by Matt Giuca
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
HF-Lab
Fix Released
High
Matt Giuca

Bug Description

Version 0.92 introduces a new feature where files being saved automatically have a 4-digit number appended to the end, which is automatically incremented each time a file is written. This makes it much easier to script the creation of movies (in conjunction with the new repeat operator). However, it breaks existing behaviour by changing the filename of the 'save' command by default.

There is a way to turn it off: a new variable 'appendnum' may be set to false (SET APPENDNUM FALSE) to restore the original behaviour. I would argue that this should be set to false by default. If you want to output a sequence of files, turn it on.

Note that changing this would break some of the movie scripts. Test them and fix them (probably have to add 'set appendnum true' to the top).

Tags: io

Related branches

Revision history for this message
Matt Giuca (mgiuca) wrote :

This is definitely a problem, as it even causes unintended consequences for some of the included scripts.

Firstly, the single-image scripts (not in the movie directory) which write to a file will now write to a file with "0000" on the end:
- scripts/test[14].scr
- scripts/text1.scr

Secondly, the script scripts/movie/gen-movi.txt manually writes a series of files "w01.gif", "w02.gif", etc. This has the unintended consequence of now naming the files "w010000.gif", "w020001.gif", etc.

The following scripts do rely on the appendnum behaviour:
- scripts/movie/Mist-Swirls2.txt
- scripts/movie/movie-[1345].txt

I think appendnum should be false by default, and the Mist-Swirls2 and movie-[1345] scripts should be changed to have "set appendnum true" at the top.

Revision history for this message
Matt Giuca (mgiuca) wrote :

Fixed in trunk r97.

Changed in hf-lab:
status: Triaged → Fix Committed
Matt Giuca (mgiuca)
Changed in hf-lab:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.