Page 1 of 3

PCG Tools for web

Posted: Wed Jan 04, 2012 8:44 pm
by mathieumaes
We all know Michel's PCG tools described in this topic, and without a doubt everyone is thankful for this great program. Well, except for those poor Mac OS X users, who are left out to dry!

Thankfully, I'm amongst those Windows-users who feel sorry for those poor bastards... I've been talking to Michel about creating a web based solution which can be platform-independant. He was so kind to provide his source code. And since Microsoft .NET technology is so awesome, it was easy-peasy! :twisted:

Joking aside now, I was able to create a web based service that allows people to upload a PCG, make some changes and download a new version!

The service can be found here:
http://pcg.webberig.be


Features
- Upload a PCG file, make the changes you want and download an updated version of the file
- For now, (I think that) only Kronos files are supported.

Pipeline
- A more fancy upload shizzle... allow drag 'n drop to the browser window and have a progress bar
- Support more synths. Please provide me feedback, since I'm unable to test on other synths.
- Editing of setlist slot names and descriptions
- Optimize the UI while maintaining the Kronos OS look 'n feel
- Insert/cut/copy/paste buttons

Credits
Credits go to Michel and his PCG Tools. My web service uses his code behind the scenes to read/write PCG files.

I welcome your feedback, suggestions and post any errors you may find...

Warning
This is the very first version of my application, use caution!

Posted: Wed Jan 04, 2012 11:24 pm
by MarPabl
:verycool: I'll give it a try :!: :!:

Posted: Wed Jan 04, 2012 11:42 pm
by michelkeijzers
Congratulations for the effort.

I'm glad finally also the Unix/Linux users can benefit from a PCG app.

I get a 404 - File or directory not found error so I hope it's only at my location. However if others have seen it too: I get a previous version from him which shows some very nice screens and it looks very promising.

I will make sure you get the latest code you can incorporate in your app.

Credits go to you too because I don't have the knowledge for making web applications and there is quite some code to make it all work together.

Posted: Wed Jan 04, 2012 11:43 pm
by michelkeijzers
I will also add a link in my app (if you provide me with a logo and weblink) and a post in my thread forwarding to this.

Posted: Thu Jan 05, 2012 1:53 am
by Lou
On a mac here and I also keep getting :

404 - File or directory not found.
The resource you are looking for might have been removed, had its name changed, or is temporarily unavailable.

Posted: Thu Jan 05, 2012 6:47 am
by mathieumaes
I noticed this after posting my announcement... Off to a bad start :s

This worked locally, but the server refuses... Please bear with me while I try to fix this!

Posted: Thu Jan 05, 2012 7:01 am
by mathieumaes
OK, I changed the server configuration and it works for me now...

Posted: Thu Jan 05, 2012 7:21 am
by macroenie
I get this error in firefox:

De pagina verwijst niet op een juiste manier door

Firefox heeft vastgesteld dat de server het verzoek voor dit adres doorverwijst op een manier die nooit zal eindigen.

Dit probleem kan soms worden veroorzaakt door het uitschakelen of weigeren van cookies.

Posted: Thu Jan 05, 2012 7:24 am
by mathieumaes
Did you perhaps disable cookies ? :-)
When exactly does this error occur ?

Tested on 2 machines in Firefox (version 8.0), works for me...

Posted: Thu Jan 05, 2012 7:47 am
by macroenie
No, I didn“t 8)

It happens when I try to upload a pcg, after clicking on the upload button.

Tested in firefox 9.0.1 (pc version).
Chrome says

This webpage has a redirect loop
The webpage at http://pcg.webberig.be/Editor/SetList/0 has resulted in too many redirects. Clearing your cookies for this site or allowing third-party cookies may fix the problem. If not, it is possibly a server configuration issue and not a problem with your computer.
Here are some suggestions:
Reload this webpage later.
Learn more about this problem.
Error 310 (net::ERR_TOO_MANY_REDIRECTS): There were too many redirects.

IE8 just sits and waits... :3d-faint:

Posted: Thu Jan 05, 2012 8:42 am
by Lou
Lou wrote:On a mac here and I also keep getting :

404 - File or directory not found.
The resource you are looking for might have been removed, had its name changed, or is temporarily unavailable.
Sorry, but I keep getting the same error. Cleared my cache also..

Posted: Thu Jan 05, 2012 9:06 am
by mathieumaes
I made a change which will have better error handling.

Apparently, this error occurs when you try uploading a PCG file that doesn't contain set lists... And as the application only supports set lists (for now), it won't work!

You should now see a more clear error message...

Posted: Thu Jan 05, 2012 4:54 pm
by Jon Lord
Great work! Unfortunately I don't think I have any PCG's with any setlists but I tested one with none in it and it seemed to work (except no names in the setlist), nice with drag & drop

Posted: Thu Jan 05, 2012 6:01 pm
by michelkeijzers
I just have tested it with a file with set lists and it works great!

Posted: Thu Jan 05, 2012 7:27 pm
by mathieumaes
The next thing that I should add is obvious: Editing of names and descriptions. But what should I add next ?