Forum Update - Announcement about May 10th, 2018 update and your password.

Instructions for running BlocklyProp OFFLINE

Ken GraceyKen Gracey Posts: 6,223
Hello,

Since a number of people are asking how to run BlocklyProp offline, I'll make a post and explain the setup. Please note that forum threads become dated (today's date is April 5, 2018). At some point we will supersede this post with more current information, like a single installer that does these little things for you. But I'll try to keep this thread current while this solution is still the only alternative.

INSTRUCTIONS TO SETUP BLOCKLYPROP TO RUN OFFLINE
Windows only, for now (Mac to follow) - unsupported!
You shouldn't install it unless you know how to remove it, because a future installer of the real thing isn't going to be smart enough to detect any of these files. Since this thread will be here, I don't think it's too complex of a process to undo these steps.

(a) Install SimpleIDE https://learn.parallax.com/tutorials/language/propeller-c/propeller-c-set-simpleide

(b) Download the following .zip:
https://drive.google.com/file/d/1SmWqw68fJb2EdEuC6qbreMjOmLq86W_9/view?usp=sharing

(b.1.) The zip has three folders. The Learn folder replaces your SimpleIDE Learn folder.
(b.2.) Place the NWJS folder in the root of the c:\ drive (i.e. C:\nwjs)
(b.3.) Place the BP-offline folder in the root of the c:\ drive (i.e. C:\BP-offline)

(c) Open the c:\nwjs folder, right click and copy the nw.exe application, navigate to the desktop, and paste shortcut (not a copy of the app itself). Right-click and open the Properties for the shortcut you created. Set the target of the shortcut to C:\nwjs\nw.exe c:\BP-offline\ Then, click advanced, and check "Run as administrator"

(d) Rename the shortcut to something like "BlocklyProp Offline"

(e) Open C:\Users\ and look for the name or path of your user folder (Nikos, Whit, etc.)

(f) Look for the following file and open it for editing with a text editor: C:\BP-offline\cdn\localCompile.js. Search for "Parallax" in the file, and replace it with the name of your user folder.

You are now running BlocklyProp Alpha offline. We obviously have some work to do with an installer, a user interface, etc. But you can save your files locally.

Post all feedback on this thread.

Thanks,

Ken Gracey

Comments

  • 20 Comments sorted by Date Added Votes
  • WhitWhit Posts: 3,906
    So excited to try this Ken! Will get it installed this weekend and let you know how it goes. Been too busy with the S3 Onboard OLED Ping)))Dar - which is now working! - to play with this. Thanks for all you and team Parallax do!
    Whit+

    "We keep moving forward, opening new doors, and doing new things, because we're curious and curiosity keeps leading us down new paths." - Walt Disney
  • Ran it today on four machines with a few hundred students. Worked reliably! What a relief.
  • PublisonPublison Posts: 10,131
    edited April 7 Vote Up0Vote Down
    Tried the install.

    Delete SimpleIDE.
    Fresh install of SimpleIde.
    Install and edit file per instructions.

    Tried to run the shortcut and I get:

    f1088beb966ee807abe9d8ae823dca.jpg

    Tried three times.
    502 x 177 - 62K
    Infernal Machine
  • run as admin setting definitely stuck ?
    .. or try right-clicking the shortcut, then run-as admin ?
  • Tried both. No joy
    Infernal Machine
  • What OS are you on? (and what SP if < Win10) ?

    Do you have a feeling this is a permissions thing, or something else ?
    Any other machine you could try on ?

  • PublisonPublison Posts: 10,131
    edited April 7 Vote Up0Vote Down
    VonSzarvas wrote: »
    What OS are you on? (and what SP if < Win10) ?

    Do you have a feeling this is a permissions thing, or something else ?
    Any other machine you could try on ?
    First install on WIN 7 Pro SP1.

    Just tried on WIN 10. Fresh install. Same error message.

    Something to do with "manifest.json" ?

    Infernal Machine
  • I used Notepad on both machines to edit "localCompile.js" I wonder if it corrupted the file?
    Infernal Machine
  • GenetixGenetix Posts: 1,247
    edited April 7 Vote Up0Vote Down
    Publison,

    Try using WordPad instead.

    When I open code files from a mac they are not formatted in Notepad but they are perfect in WordPad.

    That file may have special characters that Notepad butchers.
  • Genetix wrote: »
    Publison,

    Try using WordPad instead.

    When I open code files from a mac they are not formatted in Notepad but they are perfect in WordPad.

    That file may have special characters that Notepad butchers.

    I'll give that a shot tomorrow. Thanks!

    Infernal Machine
  • VonSzarvasVonSzarvas Posts: 1,159
    edited April 8 Vote Up0Vote Down
    Another possible...

    By default windows 7 hides the file extension for known files. The .xyz bit.

    After editing, maybe the file got saved as localCompile.js.txt my mistake, but you can't see it as the dir listing hides .txt.

    Checks...

    In explorer folder settings, uncheck the option for "hide file extensions for known file types". After that you will be able to rename the file from localCompile.js.txt to. localCompile.js. in explorer.

    You could also edit with something like notepad++ and save-as the file extension to .js

    In fact you could probably do that with notepad too, if you set the filetype to 'all' in the save windows, instead of 'txt'

  • VonSzarvas wrote: »
    Another possible...

    By default windows 7 hides the file extension for known files. The .xyz bit.

    After editing, maybe the file got saved as localCompile.js.txt my mistake, but you can't see it as the dir listing hides .txt.

    Checks...

    In explorer folder settings, uncheck the option for "hide file extensions for known file types". After that you will be able to rename the file from localCompile.js.txt to. localCompile.js. in explorer.

    You could also edit with something like notepad++ and save-as the file extension to .js

    In fact you could probably do that with notepad too, if you set the filetype to 'all' in the save windows, instead of 'txt'

    Got by the editing of the .js file with Wordpad. Now it can't find the compiler when trying to load a program to RAM. Will have to look at my SimpleIDE installation paths.

    Infernal Machine
  • I'll ask Matt to come in for a quick look. There's something simple aloof here.
  • GenetixGenetix Posts: 1,247
    edited April 9 Vote Up0Vote Down
    Publison,

    I usually use Notepad but WordPad comes in handy, especially on non-text files.

    It sounds like the compiler doesn't know where your user files are.
    Did you set the path to them in Step F?


    Ken,

    Also ask if the compiler looks in any of the sub-folders of the user file folder.
  • Matt reports it's just a matter of having things in the right place, but I'll ask him to come back here and get a closer look.
  • PublisonPublison Posts: 10,131
    edited April 9 Vote Up0Vote Down
    Success! We have a heat beat on a Quickstart board. I had SimpleIDE 1-0-2 RC2 installed before. Though I had uninstalled it. Don't know if that mattered or not. Starting over with a new install and rebooting seems to have cleared it up.

    Now if the Offline shortcut would start the client automatically. :) I always forget....
    Infernal Machine
  • Publison wrote: »
    Success! We have a heat beat on a Quickstart board. I had SimpleIDE 1-0-2 RC2 installed before. Though I had uninstalled it. Don't know if that mattered or not. Starting over with a new install and rebooting seems to have cleared it up.

    Now if the Offline shortcut would start the client automatically. :) I always forget....

    Yep, that'll be part of our installer - making it a one-click process.

  • I can't get the Blockly Prop to see my 32910 Rev A Propeller Activity Board
    SimpleIDE sees it? Help
  • When I pic the board it do not see it. I get an error
    The error "BlocklyProp-Client not found". is this the online client??
    if this make sense
  • You need to download and run the BlocklyProp client. A little program that helps the webpage connect with your propeller board.

    When you see the BlocklyProp client message, you should be able to click it to download the client?
Sign In or Register to comment.