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

    • Lizzy Trickster

      Latest Stable OpenComputers Version   11/26/16

      The latest released version of OpenComputers is version 1.7.2 for MC 1.7.10, 1.10.2, 1.11.2 & 1.12.2. See more information here! Beta/Dev builds can be found at the Jenkins Build Server (ci.cil.li)


  • Content count

  • Joined

  • Last visited

  • Days Won


Molinko last won the day on January 5

Molinko had the most liked content!

1 Follower

About Molinko

  • Rank
    Leading Member

Profile Information

  • Gender
    Not Telling

Recent Profile Visitors

1149 profile views
  1. Minitel for OpenOS

    This is working great, although I have some questions. I have read the docs, man, and readme files. Is there a way to route the LAN traffic of a local Relay with a Linked card to a server with the matching linked card? This is the current network diagram. c1---r1--c2 c:computer#n, --:wired connection, r1:relay(with link to s1) s1--back--s2 s1 wired via internal 'back' bus to s2 (s1 has link to r1 | s2 has link to r2)('link' is a linked card) c3--r2--c4 c:computer#n, --:wired, r2:relay (with link to s2) I hope my diagram makes sense. Am I routing all wrong? Does minitel just not support routing via linked cards? Or is it just Links via switches? I'm a bit lost Thanks in advance for your input.
  2. Thermal expansion machines

    @CptMercury nice detective work. Helpful and informative response. A+
  3. Big Reactors Grid Control

    @RGB_Leader You can try this program from the forums by @Nexarius. You can download it from pastebin or github using an internet card and the pastebin or wget program. This has worked for me in the past although I cant speak as to how far back compatibility will be possible. Anywho, it's worth a shot as I have had similar issues before with a version of OpenOS not having the thread library and this worked great for me. Good luck
  4. Big Reactors Grid Control

    @BrisingrAerowing, Thanks for the clarification. I was under the impression that the only issue was the OpenOS thread library, which could be downloaded with the latest OpenOS version and without actually needing to update the OC mod itself. My misunderstanding.
  5. Big Reactors Grid Control

    @RGB_Leader, XyFreak is referring to OpenOS, the open source OS of Opencomputers. Not the mod or mod pack. You can find it on GitHub.
  6. Minitel for OpenOS

    This is working great for me! Really sweet and tiny too! Although the link to your demo is down.. I'd like to see some examples thank you very mucho.
  7. if ("modem_message") == "test" then do computer.beep()

    The problem with your code on the left is that you never define the value of the variable 'message', so when you try to print it you get 'nil' which in lua is a value for nothing. When calling the function event.pull you must capture the return values and store them for use at a later point in the program such as printing or whatever. Here's an example. -- # your code above. this is just in the loop while true do -- # event.pull 'modem_message' return multiple values the fifth being the message data. local laddress, saddress, port, dist, message = event.pull("modem_message") print(message) if message == "test" then computer.beep() end end Hope this helps. Feel free to ask anymore questions
  8. This code isn't working, I don't know why

    The first line 'clear' should be 'term.clear()'. That's what's throwing the error.
  9. Create infinite thread in background and continue

    Threads are just fancy coroutines. This means that they still have to obey and yield like any other process, coroutine, or block of code. All blocks must yield or finish execution in a 5 seconds or they are terminated. Looking into your code as it's arranged now I would suggest yielding once or perhaps several times throughout the checkDmg function depending on the drawing performance. Here would be my two suggested alterations.. function checkDmg() local dmg=0 for i=1,li-1,1 do if inv.getStackInSlot(2,lzhs[i][3]) then dmg=inv.getStackInSlot(2,lzhs[i][3]).customDamage fillDmg(lzhs[i][1],lzhs[i][2],"LZH",dmg) else fillDmg(lzhs[i][1],lzhs[i][2],"LZH",100000) end coroutine.yield() end local r for i=1,ri-1,1 do r=inv.getStackInSlot(2,rods[i][3]) if r and not string.match(r.label,"Depleted") then dmg=inv.getStackInSlot(2,rods[i][3]).customDamage fillDmg(rods[i][1],rods[i][2],"Rod",dmg) else fillDmg(rods[i][1],rods[i][2],"Rod",20000) end coroutine.yield() end for i=1,vi-1,1 do if inv.getStackInSlot(2,vents[i][3]) then dmg=inv.getStackInSlot(2,vents[i][3]).customDamage fillDmg(vents[i][1],vents[i][2],"Vent",dmg) else fillDmg(vents[i][1],vents[i][2],"Vent",1000) end coroutine.yield() end end td=thread.create(function() while true do checkDmg() os.sleep(0) --# sleep will yield this process/thread and resume asap allowing the 'following block' to begin execution. end end) -- # no need to detach unless you really want this to continue after your program is dead.. -- # the 'folowing block' print "Now executing main block..." while true do local _continue = handleEvent(event.pull()) -- # do shit end The first example yields the 'td' thread once for every cycle of each inner loop. Mostly because of the drawing and the inv component calls. This costs time! So we yield and allow the event loop below to begin. This is my recommended solution although untested. The second example will yield the 'td' thread once after each call to checkDmg. This could work fine but I suspect the first option will perform better / be more responsive to events. Lemme know how it goes and if I can help anymore.
  10. get mouse position without clicking

    You can mock events with computer.pushSignal or event.push.
  11. get mouse position without clicking

    The mouse position is only available through the aforementioned touch event. It's a client server lag thing.
  12. Can't make new program

    The OpenOS operating system is itself a program. It needs ram too. It's the most complex program likely to be running on most OC computers. Also, it's a program that runs and controls 0 or more programs, so it uses a bit of ram. However things like the microcontroller don't load an operating system and so 1 tier 1 stick is usually quite enough for most things.
  13. How to build a Creative Computer

    The error is no bootable medium. You needed something to boot. An OS. Stuck an OpenOS floppy in there and run the install program.
  14. Can't make new program

    It could perhaps be an out of memory error? The getting started tutorial says to use a 1 tier 1 memory stick. Though technically OpenOS has been optimized to run on one it could help to add more memory to the computer. If I'm going to be able to continue to be any help I'm going to need an error message or at least some pictures to let me know where to start looking.
  15. Can't make new program

    Have you run the install program for OpenOS? Do you get any errors?