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

Vexatos

Developer
  • Content Count

    11
  • Joined

  • Last visited

  • Days Won

    4

Posts posted by Vexatos

  1. 2 minutes ago, XyFreak said:

    From what zero told us here I was under the impression that he already is using the api as it's supposed to be used.

    @payonel I did not know the github issue gained some steam during the last couple of days. Thanks for bringing that to my attention.

    You've been saying that oc is not a realtime system and i agree. if yielding after each component api call is the intended bebaviour i'd like to see that documented somewhere. Also that limit should be enforced for all mods/apis. And if that's really the case then ... let's say I'm going to be sad ;)

    A component call can do either: It depends on what the mod author implementing the method wants. They can set a component call to last the entire tick, or allow multiple executions per tick.

  2. 5 minutes ago, Arcanox said:

    I don't believe the cursor blinks at its normal rate; I would have to check after work to be sure, but if I recall correctly, it blinks much slower (it appears to not blink at all because it is so slow).

    I didn't figure it was by design to have such a large delay; I can understand only being able to make 20 or 10 or maybe even 5 API calls per tick, but the restriction seems to be effectively "less than one" per tick, judging by the way BRGC runs. I would at least expect BRGC to be able to acquire the energy/steam produced last tick once a tick, and reactor core temperature, and turbine RPM at least once every couple ticks without the computer being slowed down. 

    That is possible, but has nothing to do with OC. That would require a change on the side implementing the methods, so ER in this case.

  3. Okay, here we are:
    I'm currently maintaing Computronics, a mod made by asie that adds ComputerCraft/OpenComputers integration to a lot of mods (15 to 20, can't remember) and adds a whole bunch of more or less interesting new blocks and items for those mods, especially OpenComputers. If you ever wanted to play your own music to other people using in-game tape drives, wanted to create your own highly secure money system using RSA codes, wanted to automate an entire Railcraft rail network using computers, this is a mod you might like. As far as I know, it's currently one of the largest OC addons out there.

     

    Regarding contributions to OpenComputers, well,

    All those programs are built into OC now, but

    • I also created the Song API which allows you to play whole songs using only the computers' beep sounds or, alternatively, the Computronics Beep Card. This API, among many, many other programs, can be found on
    • OpenPrograms, an open place on the Internet I made where everyone may upload their OpenComputers programs to, think of it as a more organized and more permanent version of pastebin dumps, with the additional benefit of Version Control. For this place I also created
    • OPPM, the OpenPrograms Package Manager, a nice program found on an OpenComputers loot disk which allows you to easily download and update those programs you find on OpenPrograms, but also some programs not found on there. It is designed to be as light as possible and currently fits into 17 kilobytes. Everyone may contribute to the packages it publicly provides, but it also allows local package registration.
    • Obviously I created a few other OpenPrograms programs as well, like a very light BigReactors reactor control program.

    Also,

    This should be enough for now. Requesting special thinger™ No. (0.18, 0.95, 0.922). IGN is Vexatos (shocking, I know). Thank you very much.

    [/brag]

  4. Since Computronics 1.0.0, there is a built in program called "tape". If you have a tape inside a tape drive connected to your computer, just run "tape write <URL>" (the URL being the online link to your file) to automatically download the file and put it onto the tape. the "tape" program also provides a lot of other useful commands which you might want to check out, like play, stop, pause and rewind.

    You might also want to check out the tape drive tutorial I made: https://docs.google.com/document/d/1RYjLuXdsiadIHY0cfMR5UMSJbETLQZBfnQJMFrt39ss/edit?usp=sharing

  5. Hello everyone!

    I made a tutorial for my server mates and myself, showing to them how to craft a basic Tier 2 Computer with all the necessary and recommended components in hard recipe mode. I did that because this recipe mode contains a lot of crafting steps, so I derived the most efficient way of crafting all the parts you need (with as few steps as possible). Also, the tutorial also shows all the basic materials required to get the Computer, so you know exactly when you are ready to craft it. Now I am posting this tutorial here in case anyone wants to use it. It might also be useful as an example for the difficulty involved in the hard recipe mode.

    The tutorial consists of two parts, the first part shows how to craft a basic Computer, the second one covers specifically crafting the Internet Card (also including material list and all the crafting steps).

     

    You can find the tutorial here.

     

    I hope someone will find this tutorial useful. I would appreciate feedback on this, I might do more of these (for other recipe modes as well).

    Sincerely,

    Vexatos

  6. Would you mind making me a repo? I am working on a computercraft wrapper, it's "mostly" functional. I can run the shell, change directory, so on. I can even play the adventure game, but a bug with scrolling makes it glitchy after a short time. I'll probably end up putting my other OC related things in there too.

    Sure, just give me your github username.

  7. Basically, this API provides a single function:

    song.play(notes: table or string,shortest: number)
    

    Input being either a table or a string. Using a table, each note-duration combination is a string in a table value. The function will iterate through every entry of the table and play all the notes with their specified duration. Using a string, every note-duration combination is seperated by a free space " ".

    Regarding the special syntax used, this is copied from the header of the song API:

    Examples:
      "E5": Plays the note "E5" for the duration specified in the second parameter (default 0.125, equaling 120 bpm)
      "-E5": Plays the note "E5" with double the specified duration
      "E5_4": Plays the note "E5" with 4 times the specified duration, change "4" to any number x to play the note x times the duration specified
      "P_4": Plays a pause with 4 times the specified duration, change "4" to any number x to play the note x times the duration specified
      For note names, use the syntax of the strings of the Note API
    

    If you haven't already guessed, you require the note API for this to work, just run "pastebin get XwLD0xa8 note" inside the folder you are going to have the song API in. This method utilizes the Note API which is now natively included in OpenComputers. To get the song API, install it via OPPM using "oppm install song" or run "pastebin get R88y1eD2 song". Find the song API on OpenPrograms, at https://github.com/OpenPrograms/Vexatos-Programs/tree/master/song.

     

    For an example song, check out the github folder linked, or, alternatively, run "pastebin get i1YC56vJ example" in your computer console and run "example" then.

     

    I hope you have fun with the API. Feel free to post any songs you make in the section below!

    Sincerely,

    Vexatos

  8. I recognize this website... It looks familiar, definitely...

    Anyways: There is also a repository in the organization called "MiscPrograms" (https://github.com/OpenPrograms/MiscPrograms) where anyone may post his/her programs at, just fork the repository and make a pull request. If you have multiple or larger programs you want to dump onto OpenPrograms, just ask here or on IRC and I'll happily give you the ability to create your own repositories just for you on there. Noone in the team but you will be able to edit the files in your repos directly (unless you give them access), just via Pull Request, so it's like if you had the programs in a repository on your own account, just that all programs of the community are in the same, easy-to-browse-through place, which is the main purpse of OpenPrograms: A shared place where everyone may dump their OC programs, like a more organized and centralized version of a few hundred pastebin links. Also, feel free to fork and modify other people's programs there and make pull requests if you think you can improve them, that's, of course, possible, like with all other github repos. I'd be more than happy to see more people join the OpenPrograms team. Again, for only a few small programs, use the MiscPrograms repo, if you have many programs or just want to have easy and direct modification rights, request your own repo creation permissions. If you have that, you may create as many repos as you want, maybe one for your smaller programs and, if you have a large project, dedicate an own repo to it.

     

    Sincerely,

    Vexatos

     

    [/wallOfText]

×
×
  • Create New...

Important Information

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