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

kevinkk525

Members
  • Content Count

    75
  • Joined

  • Last visited

  • Days Won

    4

Everything posted by kevinkk525

  1. does the program listen to touch2? My guess is that you should try putting the local function touch2 before the function manualrod.
  2. please post your code, that would be easier then
  3. if you want to use a more complex,object-oriented GUI-API you can use mine: http://oc.cil.li/index.php?/topic/580-gui-api-064beta/ I know it's more complex, has a lot of features and more files but it also has buttons in it, well kind of as you can make anything a button, e.g.: gui=require"GUI" gui.initialize() button=gui.labelbox(x,y,rx,ry,layer,fore-color,back-color,clickEvent,nil,text) x,y is the Position, rx&ry length from starting point, layer can be nil (automatically done then) clickEvent is the function you want to have executed when clicking on it. you can change everything
  4. Nevermind, modified the term.read function. You can remove this thread
  5. Update to version 0.7.2b available on github. changes: - added a textbox shape (finally an input method) - several bugfixes for listings and labels and scrolling feature - added a file with modified term.read function preventing shifts in input line and supporting color system. - new feature: configure color per line in listing shape
  6. awesome! that's how to use OC and debug card
  7. 1. Would you connect 4 real PCs to one monitor to the same input? Probably not So this is actually not a problem, just a configuration issue on your side, you could just have one pc using that screen and the other ones without a gpu at all.. If you want to control more than 1 server with a terminal, just set up something like ssh connections. 2.The idea with a light is nice. If you want an automatic way of detecting downtimes, let each server send a ping every minute. 3.A multiblock structure, don't know whether this is good, but looks good probably... 4.Definitely agree with you,
  8. Currently I'm implementing a textbox into my GUI-API and it's working so far, the only thing that i don't like is that with the term-API if you input a character it automatically pushes everything in that line to the position x+1 on the screen. Is there a way to disable this behaviour so that nothing gets shifted without editing the term-API itself? Or is there a better way to get a user input in a graphical environment?
  9. Thanks for the effort you put into this! All the global variables you are talking about actually were local originally when i discovered the problem, they are just global at the moment for debugging purposes but of course i could have created getters. But you are right about the 2 functions check_time and check_production, they should be either stored in p or be local, that was quick&dirty style shouldn't happen. p.initialize is never called, could have deleted that (was for a future extension) If it's nothing in the code it may something weird with the ME... guess I have to watch
  10. Hi guys, I programmed an auto-crafting software that is very basic at the moment and crafts every craftable in the ME in steps of 20 until they reach e.g. 100 items. Therefore it pulls the itemlist from the ME and every x secs the craftables list from the ME. It stores all informations in tables and prints failed crafting requests. So to the problem: It works perfectly most of the time and I do not know when exactly this changes but suddenly the free RAM drops a lot and keeps getting lower until it crashes. Normally i have it at around 2.9MB free RAM. But I can't see where in my code
  11. The question is what you can do with turbines.. read its values? at least for me that's not really useful, well maybe to calculate the energy output. that could be nice.. but what use for it do you have beyond that?
  12. it's in the wiki actually.. the event is wrong, the tunnel message is received as a "modem_message". so event.pull("modem_message") should work.
  13. local component=require"component" local event=require"event" local link=component.tunnel local modem=component.modem local port=100 local function forward(event,rec_addr,from,port,distance,message) modem.broadcast(port,message) end event.listen("modem_message",forward) This forwards all message received by the tunnel (and any other message as well but it does not receive messages if you don't open a port, tunnel is an exception of course) to all computers listening on port 100 in this case. Once started it will run in the background until you restart the pc. you won't see this program wo
  14. I'll also try it if i have time and tell my admin to install it if i like it ;-)
  15. You're welcome. I hope you have fun trying it ;-) Please tell me what you think about it after you tested it.
  16. I uploaded it with a 1 month expiration time intentionally. I thought that if someone is interested in my API I will upload it on github and otherwise it will just expire. Well and until now nobody was interested except the admin of the server I'm playing on But now I will upload the latest version to github. It's almost usable for a complete GUI, I'm only struggling with a textbox where you can insert something. And for using the scrolling-feature of labels and listings you need to have at least OC 1.5.13 as below that there was a bug returning the wrong coordinates for the scroll even
  17. Hello everyone, I finally made the last huge step in developing my GUI-API to give you a usable BETA to play around with. And I have a tech_demo for you! It already works quite stable, as far as I tested it, and runs on top of OpenOS. I made a gif of the tech_preview on my github. Simply put the GUI.lua and shapes_default.lua in the /lib folder and the tech_demo in / and execute it to see how it is running (or use download code in update August 18). (Or you can try it on the server where I play, "Proton Colony", http://protoncolonygen2.enjin.com/) ------------- Update June 15:
  18. OMG. thanks for sharing a way of building Skynet in Minecraft! Kind of awesome. If i have some time left I will develop Skynet
  19. I always used a string of nbt.label,nbt.name,nbt.hasTag as many items (TE Tesseract with owner) has a Tag and thus making it different. Thanks to tony I just realized I would have to add damage value to make all items truly individual.
  20. Ok I registered there. Will be interesting without an enderio driver but maybe these bugs are already fixed until I am done with the programming.
  21. Ok nice! What's your server named? Actually I do need computronics only for the enderio driver. I do not really need the rest although I did not encounter any problems with it. I am/was also running cauldron.
  22. This looks interesting as I am trying to build a good GUI for a shopping client. I will take a look at your code. Thanks for sharing.
  23. Hi guys, I am searching a special server I did not find until now. It must meet the following requirements: Minecraft 1.7.10 OpenComputers, Computronics, EnderIO, AE2, Thermal Expansion My special offer is some sort of "Online Shop" that I will present in the Showcase soon. It is not fully working at the moment but can be considered alpha. In short: A system to buy things through a client on your OpenComputers PC that will be shipped by a tesseract. In future even buying and selling energy should be possible, for server administration this could be used to sell energy from an e
  24. Although there is no parallelism in LUA you still need to have a program that kind of does multithreading by executing only tiny pieces of code one after another so that you can listen to the modem fast enough as it sadly has no buffer. If you stay too long at some calculations you could easily miss 1 to 10 modem messages. That makes it a bit hard and I understand your problem as I ran into exactly the same thing. My solution was to program a complete modem handler that works together with my "request handler" (did not have a better name^^). What these two basically do is the following:
×
×
  • Create New...

Important Information

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