Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

WebRepo 2.0 - Easy access to projects from the Codea community

124

Comments

  • Posts: 421
    @piinthesky Was an issue with the project's Info.plist file. Should be fixed now but you'll need to jump through a few hoops to fix it on your end.

    Make sure the Wrigglers project is deleted first.

    You'll need to update WebRepo, open the 'Settings' page in WebRepo and click the 'Clear Cache & Restart' button before redownloading the Wrigglers project.
  • Posts: 1,827
    Error trying to install AirCode
  • edited January 3 Posts: 421

    @UberGoober You using the 3.5 beta with WebRepo up to date?

    You need WebRepo 2.1.x

  • Posts: 1,827
    Version 321 and yes up to date.
  • Posts: 421

    Try closing WebRepo and reopening it

  • Posts: 421

    Sometimes after update Codea doesn’t quite reload it correctly

  • Posts: 661

    @Steppers i updated the webRepro version, but don't find 'clear cache and restart' in the settings?

  • Posts: 1,827
    Also MK input won’t run on my iPhone because I get an “attempt to index a nil value“ warning at this line:

    local mouseInput = objc.cls.GCMouse:current().mouseInput
  • edited January 3 Posts: 421

    @piinthesky This? Again, try reopening the WebRepo project (not re-run)

    @UberGoober Ah, my bad. I’ll look at that later

  • Posts: 661

    @steppers that worked

  • Posts: 1,827
    My WebRepo is not asking me to update it, and I’m running the latest beta build on my iPhone, but I don’t have a “Clear Cache & Restart” option on the settings page.
  • edited January 3 Posts: 421

    You should be able to update it manually like any other WebRepo supplied ‘app’ (just needs a project re-open afterwards).

    If 2.1.1 isn’t available it may be a connection issue with Github.

  • edited January 4 Posts: 421

    @UberGoober MKInput should work now with an external Keyboard or Mouse on iPhone without crashing.

    With Codea 322, on iPad, cursor hiding has also been added with the function hidecursor(boolShouldHide).

  • Posts: 1,827

    The last two times I tried to submit things I really missed tools like cut and paste and being able to double-tap to select words.

    Any chance that the new objc bindings could enable WebRepo to use native iOS text-entry fields?

  • edited April 21 Posts: 421

    Hi All,

    In the latest update (2.3.1) WebRepo has moved away from GitHub for the moment and performance seems to have improved in the process.

    With this change we’ve also now become unshackled from GitHub’s 100MB commit limit and are now limited to 20GB (compressed) instead!
    Please go easy on it though as the server only has 200GB of storage at the moment :lol:

    I’ll be releasing the source + Dockerfile in use by the backend at some point in the interest of project longevity & sharing with the community.

    Steppers
    o7

  • JohnJohn Admin Mod
    Posts: 788

    @Steppers Maybe we can look into hosting it on our server and making it more of an official thing

  • Posts: 2,728
    @steppers - in the process of tidying up my messy Codea root and noticed quite a few entries that I can't remember installing. Just a thought, does WebRepo set up any directories or add any files to the root? I don't want to delete anything that is needed by WebRepo.
  • Posts: 421

    @John That could be a great idea in the long run, though I’m no web developer so the backend nodejs code is a little rough at this stage. I’m likely to overhaul the backend a fair bit so if the offer’s still on the table at that point I’d be happy for you to take over the hosting.

    I’ll also add that I don’t pay anything for the current server (https://www.oracle.com/uk/cloud/free/) and their ‘free-tier’ is open to everyone from what I can tell.

    @Bri_G Only the webrepocache_vfs folder to my knowledge. Everything it downloads is cached in there and it gets recreated if you delete it by accident so nothing to worry about.

  • Posts: 2,728
    @Steppers - thanks for the feedback, I was pretty sure it was my own filing bad habits. Now halfway through the tidying !!!
  • Posts: 421

    Hi all,

    Just a quick update. You can now access the latest version of the WebRepo project from https://codeawebrepo.co.uk/webrepo_latest.zip. (This file will be updated automatically with each update of WebRepo so no worrying about versions when installing manually)

    As an added bonus with the new backend all the projects can be accessed from your web browser at https://codeawebrepo.co.uk/

    As ever, feel free to submit your projects!

    Thanks,
    Steppers

  • Posts: 1,827

    Current version crashes on my iPhone 8.

  • Posts: 421
    @UberGoober Was that following an upgrade or a fresh install from https://codeawebrepo.co.uk/webrepo_latest.zip ?
  • edited April 23 Posts: 421
    @UberGoober Figured out your issue!
    Make sure you only have 1 copy of WebRepo called 'WebRepo' :smile:

    Edit: 2.3.13 Adds a check at startup to let users know about this.
  • Posts: 1,827

    I downloaded a project from web repo, I made some modifications, and attempted to upload the modified project. That failed, and I wondered if it was because it was a modification of a downloaded project. So I duplicated the project, and then tried to upload that duplicate to web repo, and got this error (see screenshot).

  • Posts: 421
    @UberGoober Which project is this?
  • Posts: 1,827

    CraftSpaceX. The project I attempted to upload was called JoystickSpaceX.

  • Posts: 421
    @UberGoober Thanks!
    Have you added any new tabs to the project? If so what are they named exactly? Just trying to repro it to figure out what's going on.

    Adding 'print(file.path)' at ProjectSplit:36 and letting me know the last value printed could really help too!
  • Posts: 1,827

    I don’t have anything called ProjectSplit: 36.

    It’s a project that only has a main page and a dependency on the joystick walker.

  • edited April 30 Posts: 1,827

    I still can't upload my mod of the project. Should I just create a new project from scratch and copy-paste the tab? Or would you rather debug this? Maybe we can do both. :)

  • Posts: 421
    @UberGoober I don't think creating a new project would make a difference, it's all the same process as an update.

    What are the names of the tabs in the Joystick walker dependency? WebRepo auto includes tabs from dependencies so I'm just trying to figure out if it has an odd name or something. That and the exact name of the joystick walker project?
  • Posts: 1,827
    I should just upload the Joystick Player (actual name) to WebRepo for you. Except the latest update won’t run, it has an error at the line shown.
  • Posts: 421

    @UberGoober Sorry about this! I think you need to return to the project browser and then re-open it after the latest update.

    As for the upload issue could we return to the ProjectSplit : Line 36 (in WebRepo) thing I mentioned. I’ve attached a screenshot showing what I mean. If you can tell me the last thing it prints before the crash it could really help!

    Thanks!

  • Posts: 421
    @UberGoober Thanks. I'm really not sure what's going on there :neutral: The only thing I can think of is that a previous crash has put your project in a broken state. In that case if it's possible would you be able to redownload the original project and re-apply your changes?

    On other thing. You do have enough space on your device don't you?

    I'll try to make that system more robust in future.
  • Posts: 1,827

    What kind of space do I need?

  • Posts: 421

    @UberGoober Probably at least 1GB of free storage? iOS seems to struggle when a device is nearly full in my experience.

  • edited May 2 Posts: 421
    @UberGoober I took a look into it and managed to repro your issues.

    Unfortunately it looks like you'll have to redownload the space project and re-apply your changes to it. The large .obj model file gets split and your project is in an inconsistent state from what I can tell.

    Edit: I've also updated WebRepo to hopefully avoid similar issues in future.
  • Posts: 132

    @UberGoober, I’m also happy to help. If needed, I can re-download or send you the 3D model. I also am happy as I previously mentioned to try connecting your joystick dependency with my Egyptian demo model that has not yet been uploaded anywhere (will take me a week or so likely to finish doing so and happy to send it to you first for your review before uploading if you are interested).

    Fyi.
    Cc: @Steppers

  • Posts: 421
    @SugarRay Feel free to submit with WebRepo anyway if you want. Anyone can download pending submissions if they enable the review menu from the settings page in WebRepo. I'll just leave any submissions from you in the queue (and not add them officially) until you tell me otherwise. Just be sure to update the version for each submission or there'll be duplicates in the queue.
  • Posts: 132

    Thanks, @Steppers — will follow those instructions :-)
    Have a good week.

  • Posts: 1,827
    Well, this time it says that it succeeded in uploading, so fingers crossed…
  • Posts: 421
    @UberGoober Succeeded and now approved! It's far more useable with joysticks. Nice work!
  • Posts: 1,827
    @Steppers thanks! Shoulders of giants and all—I did it by combining @John’s cameras with @dave1707’s joysticks.
  • Posts: 50

    Um… I installed it, and ran it, and it said it wanted to update, and I let it, and now all it does when I run it is show a “sample UI widgets” screen (one with no obvious way to exit, either, until you find the hidden X).

  • Posts: 50

    NVM… deleted it, scrolled backwards to find the latest version posted here, installed that, and it’s running. Thx. I’d post my project now, but I have to take the fam out for Mother’s Day, so it will have to wait.

  • Posts: 1,827
    Thanks for accepting my update to the icon for three.js, shouldn’t that update the icon on the web repo listing also?
  • Posts: 421

    @UberGoober It doesn’t at the moment due to the old icons being cached. You can see the new one if you go to the settings page (in WebRepo) and clear the cache though.

  • Posts: 1,827
    Hmm just noticed that when ProcTree is downloaded through WebRepo the JavaScript tab borks ProcTree a little: the project doesn’t respond to touches.

    In general any implementation of touched(t) in a Craft project will prevent the Touches dependency from functioning properly, I think, and the JavaScript tab includes a touched function.

    When I commented out the touched function on the JavaScript tab, touches worked properly.
  • Posts: 421
    @UberGoober That makes sense as it'll override the one the Touches dependency defines.

    I think in the case of the JavaScript project the touched() function can be removed (I'll update this soon) and I must have left it in by accident after debugging.
Sign In or Register to comment.