Jump to content
  • Sky
  • Blueberry
  • Slate
  • Blackcurrant
  • Watermelon
  • Strawberry
  • Orange
  • Banana
  • Apple
  • Emerald
  • Chocolate
  • Charcoal

ingie

Members
  • Content Count

    41
  • Joined

  • Last visited

  • Days Won

    2

Everything posted by ingie

  1. aye, i tend to agree... although i do think it's by design so one can build, as you say, a custom purpose lite-OS but this is why i set in my configs for the disassembler to always return all bits... in case i derp my assembly in that way... i build robots IRL for a hobby, so if i can disassemble one without losing bits [unless i'm drunk ] , so should a machine at least that way you can disassemble the robot, then the memory, then change it...
  2. aye, but the calling routine should be checking the return value and exiting gracefully based upon that value...
  3. hehe.... yeah, i do think it's a shame the iron note blocks don't do the musical particles... aye, but with the iron noteblock, one can do playNote(instrument, note) and therefore not have to worry about what the block is standing on... - also, for some reason, you get an extra instrument... instrument 0 is more "harpy" to 5's "piano" i made a start on writing a polyphonic Matrisequencer last night... i'm using multiple note blocks for "surround sound" polyphony, and assigning each note in a chord to a different note block... this way you can stand in the middle of them and s
  4. you couldn't have been using those programs for that video tho [ as my example requires you to press "p" to make a note play ] but that's by-the-by... i'm guessing you used a simpler thing, it's obvious that there is a lag there, perhaps it's to do with how the adapter works. did you try my suggestion of using Computronics' iron note block? as i say - that seemed to work perfectly for me [ in 1.7.10 ] i.e. i'm using play = component.iron_noteblock.playNote majorTriad = function(root) play(root) play(root+4) play(root+7) end minorTriad = function(root) play(root) play(roo
  5. i've updated that page, TwoThe http://ocdoc.cil.li/api:robot i've added a paragraph at the top which goes some way to describing the difference... it's perhaps not as clear as it could be, but to make it any clearer it really would need a whole new page adding in the components section for the robot's lower level component api and linking to that instead... but that seems like overkill - and hopefully the way i've described the differences for the few cases i've detailed explains the other cases one might encounter.
  6. ... i was being a derp anyway, i was looking for the edit button which was on some of the pages, hadn't seen the pull-down option for it
  7. Hi, I logged into the wiki to clarify sangar's point - as the robot api page pre-amble is a little out of date, or perhaps unclear, but I don't seem to be able to edit that page :/ any reason why Sangar ?
  8. ingie

    Goto

    Darthhose, if you're using goto, then you might want to consider rethinking the code... i appreciate, however, that this isn't always obvious to a beginner... if you have an example piece of code which you think needs goto, post it here and i'll give you tips on how to avoid goto altogether... i've not used goto in code for over 20 years [ from using VB3 in banking systems development ] and i can't say i've ever missed it it's not that it doesn't have a purpose if the code is a "very quick hack" - but for better structured, functional and reusable code, it's evil and should be a
  9. p.s. this has really made me want to do more music in MC - thanks for the inspiration!
  10. i thought mine was perfectly readable - but my intent with the formatting was so it was copy-pastable into the lua prompt as a quick test, hence how it require the "requires" anyway... that aside. if you use the IronNote block from 1.7.10 Computronics - compatible with CC 1.64pr4 and OC , it works - simultaneously all the time just tried it. but that's only if i don't use event pushing... if i use event pushing, then i get the chord of played twice with a lag i.e. [ on OC ] play = component.iron_noteblock.playNote [ on CC ] play = peripheral.wrap("iron_noteblock_0
  11. not sure i really understand the scenario... why is "return value" not appropriate?
  12. docking station... a docking station... so that you can sit your tablet down and poke it while it recharges and reclines at a nice angle... [ i just like to make extra work for you ] when you say that the projectors can be rotate about the Y axis... that doesn't a. work for me - i've hit them with several wrenches ... or b. make sense... well, it makes conceptual sense, but isn't the Y axis the vertical up down, so rotating about that axis is just, well, the same as making hologram voxel(1,1,1) > (48,1,1) > (48,1,48) and is nothing more than a translation within the voxelma
  13. it's odd that you say your issue was "fixed" as that's not what the CC parallel api does... you must realise that lua isn't multitasking in a true sense, it's cooperative multi tasking, in that it can only do the "other task" when the first task isn't doing anything... i.e. has yielded or ended... as lyqyd said on the thread you cite, the "solution" with parallel should actually work *less* well than just calling the two note playing lines one after the other... if you look into what the parallel API does, it's just a wrapper for coroutine.create / start and status checks... it's not
  14. If you've never done this before, you'll love it... i hope Back in the 80s, at school, we had the wonderful Acorn [who went on to become ARM] "BBC" Machines... the BBC Model A and B... later superseded by the BBC Master series machines [of which I have two here in my flat, whoo get me and my retro stuff ] amazing machines for their time, a gazillion and one external output ports for connecting analogue devices and parallel processors n stuff. anyway, one of the wonderful things about the BBC Basic was the often missed VDU command, which could be used in certain graphical modes to
  15. i must try this out... i was wanting to do exactly this for automatically sensing a player with a motion sensor/ct radar and displaying a hologram projection of the player's skin by wrapping the png data around a hologram model... i'll report back on how that works out for me
  16. i've certainly done this myself with CC, it has many uses... [ moreso with non persistence in CC ] - i had my webserver running a db api on a mysql database for recording various stats of what my machines were up to. this wasn't "cheating" as you describe, as it was stuff which was outside the "4th wall" to an extent - a bit like how EVE Online gives you full API access to your user data within the game, for making website stat systems outside the game. one of the things i have used it for is that I have a node.js app running on one of my raspberryPis at home, and the http call was ab
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use and Privacy Policy.