DiyLightAnimation

Software => Nutcracker: RGB Effects Builder => Topic started by: Voltorb on November 26, 2012,

Title: Error Loading Userpatterns.xml from project
Post by: Voltorb on November 26, 2012,
I get this error when starting LSP after replacing the Userpatterns.xml file from the Nutcracker project.  Any ideas?
Title: Re: Error Loading Userpatterns.xml from project
Post by: smeighan on November 26, 2012,
what target and effect name? i ll  take a look
Title: Re: Error Loading Userpatterns.xml from project
Post by: Voltorb on November 27, 2012,
I used a local install.  Even tried a clean install.  I've attached an export.  It's the only project there.  While you're looking, I was getting errors on the twinkle1 effect during creation of the project file, so I removed it from the project.  Thanks Sean!
Title: Re: Error Loading Userpatterns.xml from project
Post by: smeighan on November 27, 2012,
You are not allowed to view links. Register or Login
I used a local install.  Even tried a clean install.  I've attached an export.  It's the only project there.  While you're looking, I was getting errors on the twinkle1 effect during creation of the project file, so I removed it from the project.  Thanks Sean!

We have not yet written a program to import projects in.

In order for us to debug your project to lsp UserPatterns.php, you are going to need to get the project , abd its effects, enyered into meighan.net

I fixed the error with the twinkle effect in projects. You will need a new github zip file. This only requires doing step #5 to update the code. You do not need to run step #7 (install.php)



Title: Re: Error Loading Userpatterns.xml from project
Post by: Voltorb on November 27, 2012,
I got server errors:
Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator, your webmaster and inform them of the time the error occurred, and anything you might have done that may have caused the error.

More information about this error may be available in the server error log.
--------------------------------------------------------------------------------
Apache/2.2.22 (Ubuntu) Server at www.meighan.net Port 80

when trying to create most effects on your server, but they are in the db, and thumbnails look correct, and it let me attach them to the project.

Thanks for looking into this for me!
Title: Re: Error Loading Userpatterns.xml from project
Post by: Voltorb on November 27, 2012,
Sean, I'm sorry if I caused you pain in researching this, but I just watched the Nov 15 chat, and heard that LSP doesn't like Userpatterns.xml over a gig.  The userpatterns file generated is 1.6 gig.  Would you consider only outputting the portion of a project song that has effects if the output type is LSP?  I tried just populating the first 10 phrases of a 21 phrase song, but the XML is the same size.
Title: Re: Error Loading Userpatterns.xml from project
Post by: kgustafson on November 27, 2012,
Voltorb,

I am working on something that breaks out the UserPattern.xml file into chunks (1 minute chunks to be precise).  I am running into challenges due to phrasing and the like.  For example, if you have an effect that is running over a minute, do I a) cut the effect into a 1 minute effect and run whatever is left over in the second UserPattern? or b) have the effect run for as long as it is and just deal with potential that UserPattern could get really big or c) get rid of merged effects if they are adjacent. 

Here is what I am leaning towards:  Have the system create the master Nutcracker file as it does right now (this will merge effects, etc and create one big file that has all effects and spaces).  From this file, I will go and chunk it by 1 minute intervals (via looking at the frame rate and figuring out how many frames are used per minute) and just chunking from the master nutcracker file.  This means I have can have effects cut in the middle of their effect and it continue on the next userpattern.xml file.

Here is an ASCII rep of what I am thinking of:

Incoming phrases:

Phrase 1 Effect 1 (30 secs)
Phrase 2 Effect 2 (35 secs)
Phrase 3 Effect 2 (25 secs)
Phrase 4 Effect 3 (25 secs)
Phrase 5 Effect 4 (40 secs)
Phrase 6 No Effect (30 secs)
Phrase 7 Effect 5 (20 secs)

Master NC file:

Phrase 1 Effect 1 (30 secs)
Phrase 2 Effect 2 (60 secs)
Phrase 4 Effect 3 (25 secs)
Phrase 5 Effect 4 (40 secs)
Phrase 6 No Effect (30 secs)
Phrase 7 Effect 5 (20 secs)

Result files:
UserPattern1
Phrase 1 Effect 1 (30 secs)
Phrase 2 Effect 2 (first 30 secs)

UserPattern2
Phrase2 Effect 2 (last 30 secs)
Phrase4 Effect 3 (25 secs)
Phrase5 Effect 4 (first 5 secs)

UserPattern3
Phrase 5 Effect 4 (last 35 secs)
Phrase 6 No Effect (first 25 secs)

UserPattern4
Phrase 6 No Effect (last 5 secs)
Phrase 7 Effect 5 (20 secs)

Does this make sense?
Title: Re: Error Loading Userpatterns.xml from project
Post by: Voltorb on November 28, 2012,
That would be FANTASTIC!
Title: Re: Error Loading Userpatterns.xml from project
Post by: kgustafson on November 30, 2012,
Okay, I have just posted to Github.  The code has NOT been thoroughly tested so I expect some possible bugs.  I am not a major LSP user so it is hard for me to test it out.  Sean will let you all know when it is available on meighan.net.

Kurt
Title: Re: Error Loading Userpatterns.xml from project
Post by: Voltorb on November 30, 2012,
Wow, thank you!  I'll apply it to my local install, and let you know.  Have a GREAT day!
Title: Re: Error Loading Userpatterns.xml from project
Post by: smeighan on November 30, 2012,
Code changes to nutcracker/projects
gen_lsp.php
project_filer.php


Code is released to meighan.net and checked in to github.

With this release LSP UserPatterns.xml files will be broken into chunks so that we no longer have files that are 1.6gbytes in size.

Here is Kurt's explanation of the code change

"I am working on something that breaks out the UserPattern.xml file into chunks (1 minute chunks to be precise).  I am running into challenges due to phrasing and the like.  For example, if you have an effect that is running over a minute, do I a) cut the effect into a 1 minute effect and run whatever is left over in the second UserPattern? or b) have the effect run for as long as it is and just deal with potential that UserPattern could get really big or c) get rid of merged effects if they are adjacent. 

Here is what I am leaning towards:  Have the system create the master Nutcracker file as it does right now (this will merge effects, etc and create one big file that has all effects and spaces).  From this file, I will go and chunk it by 1 minute intervals (via looking at the frame rate and figuring out how many frames are used per minute) and just chunking from the master nutcracker file.  This means I have can have effects cut in the middle of their effect and it continue on the next userpattern.xml file.

Here is an ASCII rep of what I am thinking of:

Incoming phrases:

Phrase 1 Effect 1 (30 secs)
Phrase 2 Effect 2 (35 secs)
Phrase 3 Effect 2 (25 secs)
Phrase 4 Effect 3 (25 secs)
Phrase 5 Effect 4 (40 secs)
Phrase 6 No Effect (30 secs)
Phrase 7 Effect 5 (20 secs)

Master NC file:

Phrase 1 Effect 1 (30 secs)
Phrase 2 Effect 2 (60 secs)
Phrase 4 Effect 3 (25 secs)
Phrase 5 Effect 4 (40 secs)
Phrase 6 No Effect (30 secs)
Phrase 7 Effect 5 (20 secs)

Result files:
UserPattern1
Phrase 1 Effect 1 (30 secs)
Phrase 2 Effect 2 (first 30 secs)

UserPattern2
Phrase2 Effect 2 (last 30 secs)
Phrase4 Effect 3 (25 secs)
Phrase5 Effect 4 (first 5 secs)

UserPattern3
Phrase 5 Effect 4 (last 35 secs)
Phrase 6 No Effect (first 25 secs)

UserPattern4
Phrase 6 No Effect (last 5 secs)
Phrase 7 Effect 5 (20 secs)"

LSP users, this only happens if you are using Projects to generate your LSP output.

thanks

Kurt, Sean
Title: Re: Error Loading Userpatterns.xml from project
Post by: kgustafson on November 30, 2012,
Side note:  This code has been minimally tested.  If you encounter an issue or bug, please let me know ASAP.  I will continue to test this code to the best of my ability (however I am not a LSP super user like some of you are, so I really need some of you hard-core LSP users to test.)

Thanks,

Kurt
Title: Re: Error Loading Userpatterns.xml from project
Post by: Voltorb on December 01, 2012,
I'm not sure if anyone else has tested the new code for LSP, but here is what I'm seeing:
I have a project (The only project on Meighan.net) user: Voltorb, Target: MT30.  I'm running a local install.
The program successfully creates 4 files for the project, but there is nothing visible in 2 - 4, and only the first effect of the project is making it to the pattern for the first file.  Ideas?
Title: Re: Error Loading Userpatterns.xml from project
Post by: kgustafson on December 01, 2012,
Not sure Voltorb,

I will check it out.

Kurt
Title: Re: Error Loading Userpatterns.xml from project
Post by: kgustafson on December 03, 2012,
Voltorb,

I haven't had time to look into this (due to getting my show up this weekend--I had come very close to canceling the show this year so I could concentrate on NC, but the spouse put her foot down...) and I hate to leave you hanging with an error.  I will work on this over the week and will (hopefully) figure out what is going wrong.

Kurt
Title: Re: Error Loading Userpatterns.xml from project
Post by: Voltorb on December 03, 2012,
I TOTALLY understand, you need to take care of your own show. I feel bad asking for support at this time of year for a free program.  I appreciate all you guys have done!
Title: Re: Error Loading Userpatterns.xml from project
Post by: Voltorb on December 05, 2012,
223 views of this post must mean others are interrested. Any progress?
Title: Re: Error Loading Userpatterns.xml from project
Post by: kgustafson on December 05, 2012,
Voltorb,

I have to load LSP on another machine since my trial expired.  Haven't had time to do that yet and begin the full test.  The good news is that I am half way through reverse engineering the MSQ files (which doesn't require LSP for me to decipher).  I really think the answer is going to actually lay in the MSQ format and not userpatterns.  As I see it, Userpatterns is intended to be used for short patterns, not full sequences.  However, I haven't abandoned fixing this.  I am sure it something way obvious and something stupid in the code (it usually is *grin*).

Kurt
Title: Re: Error Loading Userpatterns.xml from project
Post by: smeighan on December 05, 2012,
You are not allowed to view links. Register or Login
Voltorb,

I have to load LSP on another machine since my trial expired.  Haven't had time to do that yet and begin the full test.  The good news is that I am half way through reverse engineering the MSQ files (which doesn't require LSP for me to decipher).  I really think the answer is going to actually lay in the MSQ format and not userpatterns.  As I see it, Userpatterns is intended to be used for short patterns, not full sequences.  However, I haven't abandoned fixing this.  I am sure it something way obvious and something stupid in the code (it usually is *grin*).

Kurt

Kurt; I checked the code back in. I did add project I'd to the project list. Column heading is " ID#"

I also put in a timer.

I did not add artist to the pull dong song list.

I am going to finish up mega_project.php.

It does work and fixed the channels for my megatee.

I will then look into gif and pictures.

If you could try and get the userpatterrns working, that would help.

Msq is going to be larger. It is not just a 7  zip file of the XML, but the zip file must have certain comment blocks added or lsp rejects loading the file.

I am just saying it its probably a couple week task for msq, hopefully your file splitter is easier.

Title: Re: Error Loading Userpatterns.xml from project
Post by: kgustafson on December 05, 2012,
Rgr that Sean.  I will add artist tonight (should be a very easy add -- like 30 minutes).  I will continue the UserPattern split test and get that working.  You have my commitment to that.

Kurt
Title: Re: Error Loading Userpatterns.xml from project
Post by: smeighan on December 05, 2012,
You are not allowed to view links. Register or Login
Rgr that Sean.  I will add artist tonight (should be a very easy add -- like 30 minutes).  I will continue the UserPattern split test and get that working.  You have my commitment to that.

Kurt

BTW, I would LOVE if you could get a msq file out of projects.

I would like to see us produce a msq file, which is a 7 zipped file. it would reduce the size of the gig files down by a huge amount.

when we get that done early next year, it will be big.

in parallel, it would be nice if LSP could impor tin a nc file.
Title: Re: Error Loading Userpatterns.xml from project
Post by: kgustafson on December 05, 2012,
You are not allowed to view links. Register or Login
You are not allowed to view links. Register or Login
Rgr that Sean.  I will add artist tonight (should be a very easy add -- like 30 minutes).  I will continue the UserPattern split test and get that working.  You have my commitment to that.

Kurt

BTW, I would LOVE if you could get a msq file out of projects.

I would like to see us produce a msq file, which is a 7 zipped file. it would reduce the size of the gig files down by a huge amount.

when we get that done early next year, it will be big.

in parallel, it would be nice if LSP could impor tin a nc file.

Agreed and I will figure this thing out.  I love challenges like this.

Kurt