All these language add-ones are intriguing to those like me who don’t know them, but is there any way they could ship with an example or two of what to do with them?
Of course, it’s fine to just have them there for those who know how to use them, just a thought.
Another thought is that, taken together, these form quite a powerful stack for expanding Codea’s capabilities—maybe you could also make a bundle that installs them all together? Call it the Codea Stack, or something?
@Steppers - I’m having an odd reaction when I try to run JoystickPlayer which I downloaded from WebRepo - It fires up an error related to ‘ui’ (Lower case) which I think is present in the Craft app UI, which I set up as a dependency. I tried switching to UIKit as a dependency instead, but that failed too. Can you throw some light on that ?
I think the error refers to the line, in UI Craft project below.
require 'codea.legacy':export()
@dave1707 - whilst investigating this I searched for UI in Codea and it drew up a page with a couple of hits at the top and several empty Codea folders open ie with V instead of > to show the directories we’re open. At that stage I couldn’t get a response by touch on the page to modify anything. I eventually found deleting the search term in the search field returned me to the standard Codea file page. Have you seen this before? I would expect a cancel button next to the search field to return to the main Codea menu page.
@Bri_G I went to WebRepo and couldn’t find JoystickPlayer. The only joystick I found when I did a joystick search was JoyStick SpaceX. I loaded that which ran OK.
That’s right @dave1707 that’s the only one on there.
That project does however include the tab ’_dep_Documents_Joystick Player’ which means the ‘Joystick Player’ project did exist on the device of @UberGoober and WebRepo bundled it with the project when it was submitted.
Is this what you mean @Bri_G ? If so I think you may have more luck asking @UberGoober about it
@Bri_G Clearing the search field is the only way out that I found. To make it easy, there’s an X at the right end of the search field, so that acts as a quick way out.
@UberGoober, for the WebR project in particular-- it is really coming along! As it develops, I’d be happy to to create and share some ideas for what to use the R language bridge with Codea Lua for. In my opinion, R’s strengths are:
It’s statistical analytical power-- it can crunch multiple types of data!
It’s graph creating ability-- @Steppers has some examples build into the Demo that you’ll see when you run it and those examples use just base R. There is a more modern R library (“package”) called ggplot2 (if you interested in Googling it), and you can install and use that package through the WebR project.
The possibilities that open up with an R-Codea Lua bridge. Just as @jfperusse’s work on bridging Objective C to Codea Lua scripts, and @Steppers previous work in bridging JS code to Codea, it allows novice programmers like myself the ability to create additional kinds of apps with Codea on mobile devices. R itself has not been traditionally used with GUI’s that non-R users can interact with to view or analyze data (although now it does now have a “shiny” package which helps); however, I am now able to more easily create a simple interface in Codea and have it retrieve R objects (like the previously mentioned graphs) and display them in creative ways I can design.
@dave1707 - oops, missed that. Thanks for the prompt.
@Steppers - thanks for the pointer, I wasn’t sure if those tabs were needed for the other demo or not. @UberGoober - has since posted so will check it out again.
For performance and future longevity I’ve started to move much of WebRepo’s UI to the Web.
I’ve been working on a prototype which somewhat resembles the current experience from within Codea. There are missing features currently as submissions are not available yet but the downloads system should hopefully work as intended (at least from a browser).
I’m also working on integrating it into the WebRepo project within Codea in order to maintain current behaviour (installing & updating projects directly alongside the submission flow).
If anyone has any thoughts or suggestions then please let me know
@Steppers - very impressive on the web, slick movement much faster than on my iPad. Will try a few downloads to check out that function.
Edit: downloaded a number of files onto my android phone and can unzip and view internal files without problem. Will check iPad Codea installations later when my pad is fully charged.
Noticed - some apps have installation buttons on top menu and others have both, do you intend all to have both?
The performance improvements were what I was hoping for.
The ‘install’ & ‘get’ buttons on the project lists are not quite hooked up correctly just yet so only the ‘install’ button on the project info page actually triggers a download at the moment.
@steppers@dave1707@sim - don’t know if this was intentional but I transferred some of the browser WebRepo project zips onto a network drive. From there you can install them by long pressing and sharing them. But - I accidentally unzipped one project and, on tapping it, it ran in Codea but didn’t instal in to the Codea project list ie you can run the resultant unzipped Codea project direct from an external drive without installing it into the Codea root.
@Bri_G It is a pretty great feature. I’m surprised you haven’t come across it before when downloading projects from the forum honestly. Been a thing for as long as I can remember!
For context, you can essentially register an iOS app to handle specific file types I think so when you tap on a .codea bundle it just knows to open in Codea
@steppers - I wasn’t aware of it. I have always exported zips, for external storage as you couldn’t save the files from Codea root - the components yes but not a Codea file. It was pure chance that I tried it - it means I can export zips and unzip before running. The unzipped Codea file can then be run directly from the network.
All you would need, in an ideal world, is the Codea engine on a Mac/Pc and, since @jfperusse has provided the Visual Studio Code app module, you would have the perfect development environment.
Good idea! I’ve updated the post generator to include the full description too now
I had thought about it while implementing it originally and decided against it for some reason. I think in hindsight it would have been a good idea from the start.
Dynamically Download dependency projects from WebRepo at runtime!
By adding WebRepoLib as a dependency and adding a ‘WRL’ tab to your project you can easily include projects from WebRepo as dependencies, download and load them dynamically at project launch.
Features:
Simple ‘WRL’ manifest format written in Lua.
Downloaded dependencies are cached for offline use.
Include local projects as dependencies using a ‘~’ prefix.
Dependencies can also use WebRepoLib and load dependencies of their own.
Version specifiers to load specific dependency versions.
& Many more!
Full documentation is included with this project and can be viewed when launching ‘WebRepoLib’.