SpiderBasic 1.30 final is out !

Everything else that doesn't fall into one of the other categories.
Fred
Site Admin
Posts: 1506
Joined: Mon Feb 24, 2014 10:51 am

SpiderBasic 1.30 final is out !

Post by Fred »

Hi there,

The final version is out, thanks to all for testing !

beta 3 is out, with a few more fixes.

beta 2 is out. It's mostly bug fixes, and add a new flag to canvas gadget:

Code: Select all

Added: #PB_Canvas_Transparent flag for CanvasGadget() to have transparent canvas.
beta 1 is out, It brings some interesting news, and fixes almost all bugs reported ! Don't hesitate to give it a try:

Code: Select all

- Added: DisableWindow(), AddKeyboardShortcut(), RemoveKeyboardShortcut()
- Added: OpenFile(), GetWindowColor(), SetWindowColor()
- Added: CountProgramParameters() and ProgramParameter() to get URL params
- Added: #PB_Mouse_Locked and #PB_Mouse_Unlocked support for InitMouse()
- Added: UseGoogleDrive() to access google drive remote files in read and write mode
- Added: #PB_GoogleDriveFile support to ReadFile(), CreateFile() and OpenFileRequester()
- Added: flag parameter to ExportFile() to support GoogleDrive

- Changed: Added a callback parameter to CreateFile()
- Changed: in the IDE, compiler option server port now needs the server address as well.
- Changed: NextSelectedFilename() replaced by NextSelectedFile() and SelectedFilename()/SelectedFileID()

- Updated: SoundJS to 0.6.2 and PixiJS to 3.0.10
Have fun,

The Fantaisie Software Team
bbanelli
Posts: 107
Joined: Mon Jul 13, 2015 7:40 am

Re: SpiderBasic 1.30 beta 1 is available

Post by bbanelli »

Go Fred! :)

What about Google Drive example?
/edit
What am I doing wrong (just logged in and got this)?

What I am doing wrong is not reading documentation. :) Sorry!
"If you lie to the compiler, it will get its revenge."
Henry Spencer
http://www.pci-z.com/
Fred
Site Admin
Posts: 1506
Joined: Mon Feb 24, 2014 10:51 am

Re: SpiderBasic 1.30 beta 1 is available

Post by Fred »

If you need more info, don't hesitate to ask, I've spent some time to make it work. There is the GoogleDriveEditor.sb which is a starting point. Using the API/Client key of this example, you can use the following dummy domain to test:

spider.test:8080

To do this, edit your 'hosts' file (in C:\Windows\System32\drivers\etc, needs admin rights) and add this line:

127.0.0.1 spider.test

Then in the SpiderBasic IDE -> Compiler Options -> Compiler/Run -> Web server address, put: spider.test:8080

It should work (first asking for right to access google drive, then on second try it should be logged automatically).
bbanelli
Posts: 107
Joined: Mon Jul 13, 2015 7:40 am

Re: SpiderBasic 1.30 beta 1 is available

Post by bbanelli »

Hi Fred,

this is what I'm getting after uploading it to my server (domain is verified by Google) when trying to open existing file from Google Docs.

Code: Select all

GET https://content.googleapis.com/discovery/v1/apis/drive/v2/rest?fields=rootU…ePath%2Cresources%2Cparameters%2Cmethods&pp=0&key=SeUUWcpqb79f_hu3rgFNkt5n 400 ()
Failed to execute 'postMessage' on 'DOMWindow': The target origin provided ('https://docs.google.com') does not match the recipient window's origin ('https://www.banelli.biz').
Invalid 'X-Frame-Options' header encountered when loading 'https://docs.google.com/picker?protocol=gadgets&origin=https%3A%2F%2Fwww.ba…%3Atrue%7D))&rpctoken=v8yjyogv11hw&rpcService=ad8rb7pgvfqj&thirdParty=true': 'ALLOW-FROM https://www.banelli.biz' is not a recognized directive. The header will be ignored.
GET https://content.googleapis.com/drive/v2/files/0B0gQR3Yid-5lRXJjaWpEZDlkUEk?key=SeUUWcpqb79f_hu3rgFNkt5n 403 ()
GET https://banelli.biz/dev/tmp/gdrive/undefined 
XMLHttpRequest cannot load https://banelli.biz/dev/tmp/gdrive/undefined. No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'https://www.banelli.biz' is therefore not allowed access. The response had HTTP status code 404.
"If you lie to the compiler, it will get its revenge."
Henry Spencer
http://www.pci-z.com/
Fred
Site Admin
Posts: 1506
Joined: Mon Feb 24, 2014 10:51 am

Re: SpiderBasic 1.30 beta 1 is available

Post by Fred »

Could you try with a simple .txt file ? Basically just upload one on Drive, and then try to read it from SpiderBasic. I don't know if google docs files can be accessed easily. Did you use your own client/API keys ?
User avatar
SparrowhawkMMU
Posts: 281
Joined: Wed Aug 19, 2015 3:02 pm
Location: United Kingdom

Re: SpiderBasic 1.30 beta 1 is available

Post by SparrowhawkMMU »

Thank you Fred!

Will start testing and report back any issues but great as ever to see the fast pace of development for SB.
bbanelli
Posts: 107
Joined: Mon Jul 13, 2015 7:40 am

Re: SpiderBasic 1.30 beta 1 is available

Post by bbanelli »

That was an attempt with simple txt. :)

Code: Select all

;Trying to save simple txt
GET https://content.googleapis.com/discovery/v1/apis/drive/v2/rest?fields=rootU…ePath%2Cresources%2Cparameters%2Cmethods&pp=0&key=SeUUWcpqb79f_hu3rgFNkt5n 400 ()
'KeyboardEvent.keyLocation' is deprecated and will be removed in M50, around April 2016. Please use 'KeyboardEvent.location' instead. See https://www.chromestatus.com/features/4997403308457984 for more details.
Uncaught ReferenceError: debug is not defined
;Trying to load simple txt already uploaded to Google Drive
Failed to execute 'postMessage' on 'DOMWindow': The target origin provided ('https://docs.google.com') does not match the recipient window's origin ('https://www.banelli.biz').
Invalid 'X-Frame-Options' header encountered when loading 'https://docs.google.com/picker?protocol=gadgets&origin=https%3A%2F%2Fwww.ba…%3Atrue%7D))&rpctoken=45e0sx1xe4ao&rpcService=2ym6afc9gc5v&thirdParty=true': 'ALLOW-FROM https://www.banelli.biz' is not a recognized directive. The header will be ignored.
GET https://content.googleapis.com/drive/v2/files/0B0gQR3Yid-5lRXJjaWpEZDlkUEk?key=SeUUWcpqb79f_hu3rgFNkt5n 403 ()
GET https://banelli.biz/dev/tmp/gdrive/undefined 
XMLHttpRequest cannot load https://banelli.biz/dev/tmp/gdrive/undefined. No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'https://www.banelli.biz' is therefore not allowed access. The response had HTTP status code 404.
I've setup permissions and API keys/secrets for OAuth 2.0 client IDs. Google Drive's file picker window shows normally when I click "Open" icon.
"If you lie to the compiler, it will get its revenge."
Henry Spencer
http://www.pci-z.com/
Fred
Site Admin
Posts: 1506
Joined: Mon Feb 24, 2014 10:51 am

Re: SpiderBasic 1.30 beta 1 is available

Post by Fred »

Do you try to create a file ? If yes, I forgot a debug() somewhere, so try to install this new lib (windows): www.spiderbasic.com/beta/File
Sirius-2337
Posts: 35
Joined: Wed Mar 26, 2014 5:47 pm

Re: SpiderBasic 1.30 beta 1 is available

Post by Sirius-2337 »

Thank you for the many bug fixes!
1.30Beta1 wrote:- Changed: Added a callback parameter to CreateFile()
It's not in the help file yet altough all ohter changes seem to be.
Motu
Posts: 17
Joined: Fri Feb 12, 2016 2:07 pm

Re: SpiderBasic 1.30 beta 1 is available

Post by Motu »

cool :)
Post Reply