[MECH] RedstoneChips 0.97 - Integrated circuits plugin [1.5.1-R0.2]

Discussion in 'Archived: Plugin Releases' started by eisental, Jan 19, 2011.

  1. Offline

    eisental

    RedstoneChips 0.97 / BasicCircuits 0.97 / SensorLibrary 0.34
    (Last update on April 30th, 2013, cb 1.5.1-R0.2)


    [​IMG]

    Features:
    • Build chips with any number of input and output pins, from compact 2 block chips up to whatever you can imagine.
    • Choose from over 50 different chip types and several 3rd party chip libraries.
    • Most chip types can work with a wide or infinte range of i/o configurations. Sign arguments allow you to customize chip behavior.
    • Chips can communicate through redstone, or directly by touching each other. Some chip types can also communicate over wireless channels.
    • Chips can be built in almost any imaginable structure allowing very compact circuits.
    • Debug and maintain large projects using various tools and commands.
    [​IMG]

    [cake] Help me spend more time working on RedstoneChips. Please donate

    Circuit libraries made by other people:
    Changelog (open)

    RedstoneChips 0.97 (Apr 30th, 2013)
    • Fixed the saving bug on cb 1.5.1.
    • Added an option to disable update checking.
    BasicCircuits 0.96 (Apr 30th, 2013)
    • pixel: Added a maximum distance value preference to prevent lags and server crashes. The max can be changed using/rcprefs pixel.maxDistance x and defaults to 7.
    • sram: Fixed a problem with anonymous memory.
    SensorLibrary 0.34 (Dec 1st, 2012)
    • daytime: Fixed daytime offset bug.



    Full changelogs and source code @ github.com:
    RedstoneChips [gunpowder] BasicCircuits [gunpowder] SensorLibrary
     
    DoomLord, Shamebot, Vecht and 6 others like this.
  2. Offline

    eisental

    So you mean that you activated a clock chip and a bunch of other chips broke? Are you sure it's connected?

    @treve Awesome video! :)

    @brad95411 And about the error you posted: I believe your iptransmitter.ports preferences value is 1 number instead of a range in the format of x..y . It's a known bug. If you want to allow only 1 port, for ex. 25666 use
    Code:
    /rcprefs iptransmitter.ports 25666..25666
    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: Jul 18, 2016
  3. Offline

    treve

    2 bad its not going to be used like it should, its just going to be there, not-active. maybe have like 7 stations or so, while its made to handle alot more :( i think its the player id chip that is using to much ram. or give it clock input?

    i really hope for some smart ass to see this vid, and the request for cart - ipteleportals, to teleport to other servers, so i could make a network, and it would even request less ram from the server :p

    darn i really hope that is possible 1 day, but doesnt look good i am told. i have several option then. 1: each station teleports to nalas server directly. or2: each server has a small collector and router, so it only has 1 outging-exit that will collect all carts and send to nala, and 1 incoming, that will send incoming carts to station (don't care how much stations, my circuit is programmed for 101, but with small modification it can handle alot more (without using that much more ram)
     
  4. Offline

    brad95411

    @eisental that is probably it, I know under that preference file there is only one number, because I remember putting it in there. I'll fix it up and see what happens. I'll let you know if there's any more trouble. and to the second thing, It was very abrupt, I logged out for a moment and returned later and all of the chips were off. I simply turned them all back on, and everything worked fine afterwards. It was just kinda awkward because it seemed to happen after I did the /save-all command in the server.

    Thanks Brad95411
     
  5. Offline

    Mordenkainen

    @treve

    Does the same thing happen if you use a vehicleid chip?

    There should be no difference between them.

    If it does happen, then either there is an issue with both those chips or the issue lies elsewhere in your circuit.

    Have you tried just a playerid chip with no other circuitry and see if it still consumes a lot of memory?
     
  6. Offline

    Dezman78

    @treve

    The plug-in itself uses a bit of ram but i have not built anything yet with the circuits that extends the server ram much more then the initial plug-in does. Depending on what server host you use, you might just disable all other plug-ins just to see if you get the same result.
     
  7. Offline

    treve

    well, we did it otherwise.... we killed all redstone, and everything was fine, activating the stations (player id chips) made the ram go up and up... (when using the stations) so i think its loading the chunk into the ram and doesnt unload it anymore... it has to be... or i dont know it anymore
     
  8. Offline

    Dezman78

    @treve

    i could be wrong but if i remember....the player id chips are a user extension to the redstone chips library ? if so have you contacted the person that made that extension ? Also with bukkit 818 there are a few bugs ppl have found with other add-ons that were not there with the previous version of bukkit. so the problem could also have something to do with the most recent bukkit. It would be tough to test that it if your server host is like mine.
     
  9. Offline

    eisental

    Sorry I don't have time to answer everything, but in any case, playerid is a chip under development (by @Mordenkainen and me) and will be part of SensorLibrary. I'll get into these memory issues once I have the time again.
     
  10. Offline

    Mordenkainen

    He has contacted the author.

    The PlayerID chip is a small modification of the vehicleid chip added to the next version of RC. Neither of these chips should cause a leak as they retain only an integer of data between runs. They also should not cause a chunk to stay loaded.

    EDIT - Wow.. posted at the same time...!
     
  11. Offline

    treve

    now you just screwed the time with editing, its 2 mins wrong now ;)
    first of all, i want to make clear that i do not want to throw any rocks or something, i am very thankfull for the vehicle and player id chips!!! even if they would have alot more trouble then they have now, also, its not 100% that they are causing the problem, only logic sense make me conclude that, but logic sense doesnt count always.... i also use cart teleport, and that should keep chunks loaded if i read correctly, but still makes no sense that there is no ram issue when the redstonechips from the stations are not activated while cart teleports are just working the same as when activated (you just cannot enter a new destination, and it will not be stored, and the door will stay closed on arrival etc). also, the chip is new, so no way to tell if the problem is gone in older version (but i guess it would not make any difference)
     
  12. Offline

    Dezman78

    I had used the cart teleport from craftbook circuits a while ago. It seemed there were all kinds of problems with RC when i had the craftbook IC's also loaded. Between the two i like RC much better so i find ways to do the same things only using RC. If you are using chips that are for the next version then i can't trouble shoot on my server and pin it down because i don't think i have access to the chips you are using. I had thought though there were chips in one of the extension library's that expanded on what the PIRSENSOR chip does, in that you can identify only players or only player by name ect. It does make sense that if the chip only stores a single integer long enough to activate then releases it after, then that in itself should not cause the memory leak unless for some reason there is something going on that keeps it from releasing the int value even after you are out of range of the id chip. if you are using a chip that i have access to, tell me what library it's in and i'll see if i can duplicate the issue. if i can't then i would hazard to guess it is a conflict with another plug-in like the craftbook cart teleport calling the same Class Name, api, public variable ect. idk if that's even possible. i can code in java but i know i don't have the skill yet to make a plug-in like RC.
     
  13. Offline

    treve

    thanks for the attention :) i dunno, i think the server is running 0.91 and the latest libary that mordenkainen added, but i dont really know much about libarys and company. with some luck i could ask a full server backup on nala and give it to you, then you can host a second server and try-out somethings. what i do know is that there are alot other plugins active on the server... i will try to make a tutorial vid as well...
     
  14. Offline

    AdamDaBomb11

    I am having a problem with the dclock signs in your youtube tutorial. I dont know too much about plugins ;p but im trying to learn. Would you be able to tell me possible solutions i could use to fix this problem. Basically the dclock command is not recognized at all when i place the sign. Thanks very much man, im trying to get a clock up for my server :)
     
  15. Offline

    treve

    use the bintobcd chip and segdriver, its really easy
     
  16. Offline

    AdamDaBomb11

    I dont have much experience with this plugin, never used a bintobcd chip, how would i implement those into the circuit? (im following the basic guideline of what the youtube video shows)
     
  17. Offline

    eisental

    The dclock chip is an extension to RedstoneChips that you must add separately. See the link to the plugin thread in the first post under "Circuit libraries made by other people".
     
  18. Offline

    treve

    how to build a clock: daytime chip ->bintobcd chip->segdrivers-> transmitter -> receiver -> pixel.
    if you need a driver for a 16 segment display instead of 7 i could give you sram schematics/file. it can show letters as well. (a clock is done alot already on different ways, but a clock that will display date and day would be kinda new :) )
     
  19. Offline

    AdamDaBomb11

    I may try that later, but the owner of the server really wants a clock ;p I just need to know how to get the dclock chip to work for now. Once i get used to redstonechips ill be able to fool around with alternative ways to make it.

    -Sry didnt see eisental message, thx :)

    either im stupid or blind, you pick.. but i cant find the link ;p

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: Jul 18, 2016
  20. Offline

    Mordenkainen

     
  21. Offline

    treve

    i do not agree :) the server host needs an extra plugin to let it run, while its possible with simple chips. to see how things work, see circuit docs page on eisentals website (repeat)
    but ok, youre free to build things like you want offc, both ways are quite the same
     
  22. Offline

    Dezman78

    i agree both ways work. I would not say simple until you get the hang of how things work. using the dclock you can fit everything in a much smaller space. You can go a lot smaller then what is shown in the dclock tutorial because you can have the input and output pins side by side in your circuits. to connect them you have you have them one block above ground then put one redstone on top next one put the redstone under the lever. using this way you can compact the input-output of those same circuits. Arashidragon was able to fit the entire set-up inside of a 16x16 space doing it this way. if you are curious how to make things work with pins side by side let me know and i'll make a screen shot. edit: might not be clear what i meant. i dont mean just having input and out put pins touching. i mean having all input pins next to each other and all output pins next to each other, no space.
     
  23. Offline

    Mlah

    SO I realized my sram was working and that it only writes to an address when the input actually changes to write mode. That being said does any one know a good way to store the output from a terminal when you give it a complete sentence or at least a way to slow the terminal down?
     
  24. Offline

    Dezman78

    depends on what format you are storing it as. you know each letter sends out a unique code. you could have an adder to add up all then codes before it goes into sram then to get it out do the opposite. if you are using it to display letters to a large pixel sign you might try using the terminal out put as memory address and have the letters already stored for each address. so the terminal ends up translating to letters on your large pixel display.
    i enjoy working with this plug-in perhaps a little too much. can't wait for the update. Also need full time work so i can support this plug-in.
     
  25. Offline

    Mlah

    I'm using it for a display much like you said. I have an sram that stores the pixel data in chunks of six, so the first six addresses are A the next six B and so forth. The display itself is a scrolling one using shift registers so I just move start at a given addresses and load them in then keep incrementing till I hit the end of the letter. My problem is I need to wait six of the displays clock cycles before I can take the next letter as input and the terminal cycles too the next letter too fast. I was trying to store it in a separate sram but I can't toggle the read write switch fast enough to get it to store each letter. Could yous explain a bit more how the adder one would work, what would I subtract to reverse it?
     
  26. Offline

    Dezman78

    there is no ic for subtraction i have just looked and it was just an idea i have not tried it that way. perhaps that would not work. was only a suggestion as a different method for storing a string but like you mentioned, i don't see an easy way to separate the outputs from the sum. your way of using shift registers, i have seen others mention as a way to display. although i have not seen the scrolling. just a static display. can you possibly have it start scrolling only after you use a certain character to signal the end of the message ? something you might not use normally in the display might be used to start the shift resistors doing their thing. Again just a suggestion. i'm switching my server to a new host right now so i can't run tests just now. Edit: looks like the adder can do subtraction with a sign argument. i'll mess with it when i can see if there is an easier way to do it. there are ppl on here that know way more then i do but they don't speak up all that often.
     
  27. Offline

    treve

    the adder ic can subtract.... add it as argument, read edit to late, to lazy do delete
     
  28. Offline

    Mordenkainen


    Here is how to store the output of a terminal in an sram:

    Connect the outputs of the terminal to the inputs of the SRAM.
    Connect a counter to the address input of the SRAM.
    Connect the clock output of the terminal to input of a pulsar chip (set for 3 pulses) from the SpeedCircuits library.
    Connect the output of the pulsar to a ringcounter with 3 outputs.
    First output of rincounter is not connected, second is connected to write pin of SRAM, third output is connected to the increment input of the counter.
    Set the ringcounter so that the first output is on.

    With this setup, when you type a message into the terminal, it will be written, character by character, into the SRAM starting with address 0.

    How it works:
    For each character:
    - Terminal sets character on output pins.
    - Terminal toggles it's clock.
    - Terminal clock activates pulsar, which pulses 3 times.
    - First pulsar pulse sets ring counter to 2nd output, which toggles the write pin of the SRAM, storing the character.
    - Second pulsar pulse sets ringcounter to 3rd output, which toggles the counter to increment.
    - Counter selects the next address in the SRAM.
    - Third pulsar pulse sets ringcounter back to first output.
    - Back to beginning for next character.

    EDIT - IIRC you will also need a NOT on the write pin of the SRAM.

    Morden.
     
  29. Offline

    Mlah

    Thank you that seems to be working great although I had to remove the NOT on the write pin.
     
  30. Offline

    Mordenkainen

    Glad that worked for you.

    With the next version of RC you will not need the pulsar chip or ringcounter, the pulse chip for the standard BasicCircuits Library has been enhanced to allow multiple outputs, and will activate them in a staggered manner just like this combination of chips does. Once that is released you can simply replace the pulsar and ringcounter with a standard 2 output pulse chip, with a pulse duration of "0". (I actually asked Eisental to add it so that I could more easily build the exact circuit you are! LOL!)
     
  31. Offline

    treve

    removed the not? sram on 1: reading mode sram on 0: store mode, i dont get why its working lol :)
    also, i do it differently, but the way mordenkainen explained is prob. much better so not going to tell how. again this is a very nice post of mordenkainen! thanks for you heavy support on rc chips ;) and i think i was building almost the same circuit as you two :p (months ago), maybe i finish it in the near future, but busy with other circuits :p and looking for a cart teleportal for multi-servers (bit offtopic, but cant spam it enough :p)
     

Share This Page