I’m currently trying to upload a new script to crow and am not sure if it is uploaded- is there a way to check the current script that the crow is using in druid? Otherwise how do I know what script I’m on other than testing the outputs? I’ve tried uploading two test scripts and druid said they were “uploading” but when I tried to play them it stayed on the script that was uploaded when I received the module.

Yep! In druid, just type p and press enter. This will print the current user script.

1 Like

Gotcha @Justmat ! That makes sense now- I just tried typing p and it says “no user script”. Maybe I’m uploading it wrong?

1 Like

I have had this sort of connectivity issue before. I was going crazy wondering why the code didn’t work :sweat_smile: When it happens, I usually restart both the module and druid, then run ^^c, ^^r, and then u path/to/your/script.lua in druid. Seems to work for me.

Ok thanks for walking through that with me! Still no luck :frowning: I’ll try different combinations with my path and see if that does the trick.

forgive me if you’ve seen it already and been following along…
https://monome.org/docs/crow/scripting/

that is the simplest step by step explanation i’ve found if you want to write/save/upload to crow

6 Likes

@glia I totally missed this!! Thank you. I will follow through and report back if it still isn’t working.

2 Likes

I’m a bit confused by the way my crow/druid is responding to uploading and running scripts…

Right when I got crow, in my total beginners mind/luck, I followed available directions best I could and was able to successfully upload and run @voidstar’s first script shared in the druid script thread. I spent the next 36 hours mostly just being excited by having 2hp of useful utilities every time I turned on my small case. By that time I was ready to experiment some more, and so I went through the Scripting page linked above.

And this is where the confusion sets in: when I went back to run the first script which I had successful run, it now repeatedly locks up druid and crow. It works fine when I use any of the included example scripts. This morning, when I tried to run a version of the sweet-looking new ‘ornithopter’ script @voidstar posted, it locked up druid and crow.

So, is there some special way to save new scripts as .lua files? I’m running MacOSX and using Atom. I create a new file and just copy&paste the script into it, save it as whatever.lua. Any ideas on why this isn’t working? If I hadn’t had success the first time doing it, I would be way less confused.

1 Like

Hey I just replaced the ornithopter code section with a file which you can just download… realized that’s easier than copying and pasting…

The script is definitely uploading very smoothly for me!

@toomanatees that was my bad re modes not working the second time! I had changed something in my file and instead of copying and pasting everything back over, I just edited it on discourse and of course made a typo - sorry! I’ve removed the text code block and replaced it with a lua file that you can download. The change also takes advantage of the new time() function in the crow v1.0.0 release, so make sure you have that installed on your crow if you don’t already!

are you getting any errors when you try to upload files? the v1.0.0 should make it super smooth if you haven’t installed that already!

Also, you can always try entering ^^printscript in druid to see what’s in the flash memory already! Executing ^^clearscript will clear whatever is there.

Let me know if all that helps!

2 Likes

This is the first I am seeing of a Crow update! Any way we could post that somewhere more visible?

4 Likes

I haven’t updated the firmware at all, so I’ll try to do that

Both of files (modes and ornithopter) locked up crow and druid for me. The funny thing now is, I successfully uploaded examples/booleanlogic.lua (and its working) but its not printing the following anymore

lua bootstrapped
input loaded
asl loaded
asllib loaded
metro loaded
ii loaded
crowlib loaded

But I will update the firmware and hope that makes a difference.

…for a layperson whats the diff between entering and executing?

dont want to erase stuff if i just wanted to peek in the folder

I think that’s a typo. ^^c will clear the script. p will print the script that’s in memory.

2 Likes

sorry I’ve been up since 2am…

I meant to say “entering ^^printscript shows what is in memory. entering ^^clearscript clears the user script.”

enter/execute can be used interchangeably! execute would be the better choice!

4 Likes

Re 1.0.0: we’re announcing that officially today! Sorry for posting early…

A side note with the ^^ commands- they are all mnemonic, so perhaps the full word is clearer to use (especially talking online). Ie I’d encourage typing ^^printscript and ^^clearscript for example. They will work perfectly on crow with the full word typed out too!

3 Likes

Firmware updated successfully,

and the ornithopter script locked me up again…I ran a few of the other examples first, and then tried it: no errors just freezes.

50%20AM

Hmm it works fine for me… I’m not sure what that could be…

An FYI (again sorry this info is trickling not all at once), but you’ll need to update druid to work with correctly with the crow update.

Is this as simple as downloading it again from github and replacing the old folder with it?

20 chars of yes it is!

1 Like