Salasaga Forum
July 31, 2010, 12:31:51 PM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News: 3rd May 2010 - For new forum members

If you need your account on the forum approved, please please email me directly (justin@salasaga.org) to let me know, and I'll then approve it.

We are getting so many spam forum accounts being generated we can't keep up, and are not bothering to approve new accounts without someone pro-actively emailing us to prove they're a human being.
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: [SOLVED] Error ED 320  (Read 591 times)
0 Members and 1 Guest are viewing this topic.
rheinando
Newbie
*
Posts: 22


View Profile
« on: January 31, 2010, 03:46:51 PM »

Hello,
I created a project under Salasaga 8.0 alpha 5 and I upgraded yesterday for alpha 7.
I opend this project under the new version and did some modifications with no error messages when saving.
Today I want to open this project again and I get a error ED 320 message telling me "Erreur ED320: Une erreur est survenue avec la valeur de sortie de la durée de transition dans le fichier projet." If I get it write there is a problem with the transition duration value.
Any idea?

Christophe
« Last Edit: February 20, 2010, 04:11:04 AM by JustinClift » Logged
JustinClift
Administrator
Full Member
*****
Posts: 136


View Profile WWW
« Reply #1 on: January 31, 2010, 05:04:50 PM »

Ouch, yes.  The ED320 message points to an error with the code that loads highlight layers. Undecided

Would you be ok to attach the project file to this thread (preferred), or email it to me directly?

I'll take a look at it tonight (12 or so hours away), and try and determine how/why it's going wrong, and how to fix it.  Grin
Logged
rheinando
Newbie
*
Posts: 22


View Profile
« Reply #2 on: February 01, 2010, 05:12:54 AM »

Hello,
I sended you 2 invitations to download the file (17 Mb).
Hope you get it.
Thanks

Christophe
Logged
JustinClift
Administrator
Full Member
*****
Posts: 136


View Profile WWW
« Reply #3 on: February 01, 2010, 07:42:41 AM »

Hi Christophe,

Found the problem.  It's caused by a bug in Salasaga.  Roll Eyes

A brief explanation... when Salasaga loads a project file, it carefully checks each element of data to make sure the values are ok.

For layer fade's, the valid duration is anything from 0.0000 to 5.0000. (in seconds)

But, the time line area lets people change the fade duration to longer than the maximum value.  (that's the bug)

The rest of the program will use any value fine, including the code that saves the value.

So, after you saved your project with some fade durations longer than 5 seconds, the code to load the project rejects it.  And you get your error. Sad

Option 1 - the easy way.  Choose this if a 5 seconds maximum fade duration is ok.

I've manually edited your project file, changing the two fade duration values that were longer than 5 seconds to be 5.0 seconds exactly.  The project file now loads ok.

I'll email you a location you can download it from at your leisure. Smiley

Option 2 - the harder way.  Choose this if you need a maximum fade duration that's longer than 5 seconds

The 5 second maximum is written directly into the source code, but you can change it there fairly easily if you really need it now.

  • Open the file ide/valid_fields.h in a text editor
  • Go to the line with "TRANSITION_DURATION"
  • The sixth field on this line is "5".  Change that to what you want (ie 10)
  • Compile Salasaga again using the instructions on the wiki
  • You (should) now be able to use (and load) fade durations up to the new maximum value

As a thought, 5 seconds was chosen because I had to pick something, and it seemed reasonable at the time.

If it turns out you need something more than 5 seconds, then let me know (please).  I'll then adjust the source code of Salasaga with a better value here, so all new releases have the better value.

For good measure, and to ensure the bug gets fixed, it's been added here:

https://bugs.launchpad.net/salasaga/+bug/515461
Logged
rheinando
Newbie
*
Posts: 22


View Profile
« Reply #4 on: February 01, 2010, 09:41:01 AM »

Thanks a lot.
It is working!
I tried to open the file with gedit but it is freezing.
What soft do you use to edit the files?
I would like to see how it looks...
I'm just learning.
Thanks anyway
Logged
JustinClift
Administrator
Full Member
*****
Posts: 136


View Profile WWW
« Reply #5 on: February 02, 2010, 06:49:29 AM »

What soft do you use to edit the files?
I would like to see how it looks...

I used a program called "vim", because I'm very comfortable using it from the command line.  It's definitely not something I'd recommend to you if you're just starting out.  It's also generally not all that good with large files, but in this case it went ok. Smiley

As an alternative, maybe try "nano"?  It's another command line based editor, and is a lot easier to use than vim.  I haven't tried it with larger files though, like your 20+MB project file.  Grin
Logged
JustinClift
Administrator
Full Member
*****
Posts: 136


View Profile WWW
« Reply #6 on: February 20, 2010, 04:09:56 AM »

Hi Christophe,

We've just released a new development snapshot:

  http://www.salasaga.org/downloads/alpha8_dev/salasaga_201002202000.tar.bz2

This one has the bug fixed, to stop people being able to make a transition longer than the "maximum allowed".

Hope that's helpful. Smiley
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.11 | SMF © 2006-2009, Simple Machines LLC Valid XHTML 1.0! Valid CSS!