<<Prev Next>> Scroll to Bottom
Stuff goes here
L1[00:02:20] <Mic​hiyo> https://tinyurl.com/2n9ucryg
L2[00:02:23] <Mic​hiyo> I think htop might be drunk
L3[00:03:34] <Hawk777> Wow. Pretty nice mess!
L4[00:11:08] <AR2​000> >pea: what about debuging, you have to do it in the game right ? Load the code …
L5[00:11:08] <AR2​000> unfortunately, print is your best friend for debugging.
L6[00:11:08] <AR2​000> Making a logging function that write in a file, or even crazier, in a socket, can help
L7[00:14:02] <AR2​000> else for the bufferChanges trick, you can find the files in your game save, in the opencomputers folder. check your disk filesystems uuid to find the correct folder
L8[00:14:22] <Amanda> %choose waves or halucinate
L9[00:14:22] <MichiBot> Ama​nda: If I've learned anything in life it's that you always pick "halucinate"
L10[00:14:53] <S​ky> >Michiyo: I think htop might be drunk
L11[00:14:53] <S​ky> A little bit
L12[00:15:17] <AR2​000> it's weird how green text is fine
L13[00:16:05] <Amanda> @Michiyo "I swear officer, there's no blood in my alchol system!" - Htop, probably
L14[00:16:33] * Amanda curls up around Elfi, reads stories to her, about so many different lesibabs
L15[00:18:54] <Mic​hiyo> lmao, sounds about right
L16[00:20:04] <p​ea> i am using older version of open computer and it has debug card, i want to get player position, so first i link it with my player and then i should just do : ?
L17[00:20:04] <p​ea> x, y, z = debug.getPosition
L18[00:20:04] <p​ea> and the x should be a number ?
L19[00:20:12] <AR2​000> I just found that : https://www.youtube.com/watch?v=8d-Wv0eznhc
L20[00:20:12] <AR2​000> I guess I was not the fist doing full disk encryption
L21[00:20:17] <AR2​000> Looks nice
L22[00:20:35] <p​ea> https://ocdoc.cil.li/component:debug
L23[00:22:09] <AR2​000> Code Block pastebined https://paste.pc-logix.com/igeqazumin
L24[00:22:52] <AR2​000> First you need to get a player object, then you can get it's position from the object
L25[00:23:06] <p​ea> oh
L26[00:23:10] <p​ea> player.getPosition
L27[00:23:11] <p​ea> i see
L28[00:24:27] <p​ea> yup it works, thank you, needed to use the player
L29[00:24:46] <AR2​000> same issue with the world object just in case
L30[00:25:01] <AR2​000> and it's technically a dimension object
L31[00:28:17] <p​ea> can you make your world laggy or mess it up somehow with open computers ? I guess the components in the computer case should protect but what if you use creative case ?
L32[00:29:01] <p​ea> like, is there anything i should be careful with ? having long complex loops or something ?
L33[00:30:26] <Mic​hiyo> There is nothing special about a creative case, other than no power use, and higher component tier limits
L34[00:30:49] <Mic​hiyo> Oh, and it locks non creative / op users out of opening its UI
L35[00:32:01] <p​ea> oh, good to know, thanks
L36[00:32:17] <AR2​000> Message contained 4 or more newlines and was pastebined https://paste.pc-logix.com/epufazisez
L37[00:32:17] <Hawk777> Code that doesn’t interact with the world (e.g. just doing complex calculations) shouldn’t really affect lag much, since it runs in a separate (real-computer) thread. I guess building lots of computers could consume RAM and disk space, and doing a lot of component interactions could slow down the main Minecraft world thread a bit.
L38[00:33:19] <Hawk777> Yeah, and to clarify the “crash” refers to the OC computer crashing, not Minecraft crashing. That’s just because there’s a fixed pool of threads to run OC computer code, so if you don’t yield, you’re stopping other OC computers from making progress. So you’re forced to yield once in a while.
L39[00:36:59] ⇦ Quits: Vexatos (~Vexatos@pd9e21222.dip0.t-ipconnect.de) (Quit: Insert quantum chemistry joke here)
L40[00:37:11] <p​ea> so if you had no idea what you where doing you would be safe, like not using all your real life RAM or CPU
L41[00:37:22] <p​ea> hawk when you mention ram and disk space you mean in minecraft or in real life
L42[00:38:26] <AR2​000> both ?
L43[00:38:26] <AR2​000> When you build a PC in game, you give it RAM and storage. It will use at most what you gave it on the host (real life)
L44[00:38:53] <p​ea> oh, but the amounts really small
L45[00:39:06] <p​ea> like people could not use open computers as lag machines
L46[00:39:28] <AR2​000> or you would need a LOT of them, and they would crash as soon as they start to lag
L47[00:39:40] <p​ea> so is that some safety feature ?
L48[00:39:43] <AR2​000> that's what the "too long without yielding" crash is for
L49[00:40:08] <AR2​000> avoid infinite loops that do nothing, and avoid lag because of them
L50[00:40:40] <p​ea> what if i would want to have a while loop that would basically have a timer and after some time would activate some function forever ?
L51[00:40:49] <AR2​000> if you have a 🥔 PC, you can make this crash happen after a longer time. I remember crashing on a bad PC just by booting openOS
L52[00:41:21] <AR2​000> >pea: what if i would want to have a while loop that would basically have a tim…
L53[00:41:21] <AR2​000> https://ocdoc.cil.li/api:event#:~:text=was%20registered%20for.-,event.timer,-(interval%3A%20number%2C%20callback
L54[00:41:31] <AR2​000> >pea: what if i would want to have a while loop that would basically have a tim…
L55[00:41:31] <AR2​000> event.timer dose just that
L56[00:41:32] <p​ea> the reason i am saying this because in some other games you have to be carefull what you write or you might crash your game
L57[00:42:08] <AR2​000> you won't crash your game with a badly written program thx to the good isolation from MC main thread
L58[00:42:17] <p​ea> >AR2000: https://ocdoc.cil.li/api:event#:~:text=was%20registered%20for.-,event.…
L59[00:42:17] <p​ea> this looks complex but i will check it out thanks
L60[00:42:56] <AR2​000> >pea: this looks complex but i will check it out thanks
L61[00:42:57] <AR2​000> it's not that hard.
L62[00:42:57] <AR2​000> You set a timer for x second, and once it's over, it call a function. By default it does it once
L63[00:43:23] <p​ea> when you mentioned too long without yealding in a loop ? if loop does nothing for some time it stops the program running ?
L64[00:43:46] <AR2​000> you must learn how to use the event lib, as it's how you will handle keyboard manually (input can be done with io or term), modem and other stuff
L65[00:45:00] <AR2​000> >pea: when you mentioned too long without yealding in a loop ? if loop does not…
L66[00:45:00] <AR2​000> Message contained 4 or more newlines and was pastebined https://paste.pc-logix.com/nerokanuru
L67[00:45:58] <p​ea> if you use the event library, you still need a loop to check for event to happen ?
L68[00:46:30] <AR2​000> only os.sleep() and event.pull() can prevent this crash Or any function waiting for a event like term.read()
L69[00:47:40] <AR2​000> >pea: if you use the event library, you still need a loop to check for event to…
L70[00:47:40] <AR2​000> no, you can use a event listener
L71[00:47:40] <AR2​000> Code Block pastebined https://paste.pc-logix.com/aciroqacun
L72[00:48:04] <AR2​000> `event.pull` is blocking
L73[00:48:04] <AR2​000> `event.listen` is not blocking
L74[00:48:21] <p​ea> Message contained 4 or more newlines and was pastebined https://paste.pc-logix.com/umapaqavev
L75[00:48:21] <p​ea> so you run the program named test1, and the machine will be busy with the program ?
L76[00:48:40] <p​ea> like in openOS you have to run the program
L77[00:48:44] <p​ea> for it to work
L78[00:48:52] <AR2​000> the event listener persist after the program end
L79[00:49:04] <p​ea> oh, thats interesting
L80[00:49:15] <p​ea> so then you can run other programs ?
L81[00:49:20] <AR2​000> yep
L82[00:50:01] <AR2​000> for example you can make a srv that wait form `modem_message` events, but still work on other things
L83[00:50:14] <p​ea> and if the function is an infinite loop ? then it will overtake the program ?
L84[00:50:54] <AR2​000> Just remember that openOS, and OC in general is single CPU core, so handling the event will pause everything else. A event handler for a event.listen should be quick
L85[00:51:16] <AR2​000> >pea: and if the function is an infinite loop ? then it will overtake the progr…
L86[00:51:17] <AR2​000> yeah, like I said, one task at the time. So avoid that in a event handler
L87[00:52:44] <p​ea> what about if i have mutliple conditions that have to be met for a function to work ?
L88[00:53:05] <p​ea> would it not be better to have a while loop that just checks if those conditions are met and then activates
L89[00:54:04] <AR2​000> or you can have event handlers that set a variable to true when a condition is met
L90[00:54:22] <AR2​000> you can stop a function midway with a return
L91[00:55:25] <p​ea> and what would be the advantages disadvantages, because i can just have a long while loop with different conditions for different functions
L92[00:55:46] <AR2​000> Code Block pastebined https://paste.pc-logix.com/uqexalivuj
L93[00:55:49] <Hawk777> OpenOS has a threads API if you want to run things in the background, too; you won’t get better performance, because OC computers in-game are effectively single-core, but it can be more convenient.
L94[00:56:01] <Hawk777> (under the hood they’re built on top of Lua coroutines)
L95[00:56:53] <AR2​000> >pea: and what would be the advantages disadvantages, because i can just have a…
L96[00:56:53] <AR2​000> avoid loops when possible, it's a source of error. A infinite loop can easily appear where you don't want it
L97[00:57:13] <AR2​000> that's my opinion, I'm not claiming that's the only one correct
L98[00:57:59] <p​ea> are event handlers just something that runs in the game loop anyway ?
L99[00:58:27] <p​ea> like you cant avoid the loop, the head bites the tail
L100[00:58:30] <AR2​000> I just like event driven programming, where you react to event instead of looking for a condition to finally be true in a loop.
L101[00:58:30] <AR2​000> A good example is the keyboad : you don't every keys status (pressed or not) in a loop. You wait for a event to tell you that the status of a key changed
L102[00:58:48] <p​ea> yea i agree
L103[00:59:08] <AR2​000> >pea: are event handlers not just something that runs in the game loop anyway ?
L104[00:59:08] <AR2​000> it might be a loop, but done by someone else and reliable
L105[00:59:38] <p​ea> but doing event handling with for keyboard, there is still a loop somewhere doing that(checking if the key is pressed) ?
L106[01:00:01] <p​ea> i feel like we are getting to philosophical, like arent just computers a big loop
L107[01:00:19] <AR2​000> Just know that any error raised in a event handler is written in `/tmp/event.log` instead
L108[01:02:17] <AR2​000> >pea: but doing event handling with for keyboard, there is still a loop somewhe…
L109[01:02:17] <AR2​000> Old keyboards (PS2 ones) sent a interrupt to the CPU. A interrupt is a way for a component to tell the CPU : stop what you are doing, I have something for you. So no, no loop to read a keyboard
L110[01:02:33] <AR2​000> USB is more complex, but there is still no loops
L111[01:02:46] <AR2​000> One some of them
L112[01:03:11] <p​ea> ok, so i have a while loop running for a while now spamming some text, so far no crash
L113[01:03:11] <p​ea> a = a + 1
L114[01:03:12] <p​ea> print(a)
L115[01:03:37] <AR2​000> A other way to see it is with a loop you ask : "do you have something for me". With a event/interrupt, you wait for the component to tell you that something is ready
L116[01:03:51] <AR2​000> >pea: ok, so i have a while loop running for a while now spamming some text, so…
L117[01:03:51] <AR2​000> print() might be yielding
L118[01:04:17] <p​ea> >AR2000: print() might be yielding
L119[01:04:17] <p​ea> oh wait, its io.write
L120[01:04:21] <AR2​000> I think it's defined by openOS, and call the gpu component. Component call are for the most part (maybe all) yielding
L121[01:04:31] <AR2​000> >pea: oh wait, its io.write
L122[01:04:31] <AR2​000> same answer
L123[01:04:59] <p​ea> >AR2000: same answer
L124[01:04:59] <p​ea> so if i want to show something constantly on the screen that is updating its no good ?
L125[01:05:11] <p​ea> like time, seconds ticking, minutes
L126[01:05:19] <p​ea> or display constant player coordinates
L127[01:05:36] <AR2​000> os.sleep() is yielding. You can wait as long as you want. It is a while loop
L128[01:05:45] <AR2​000> that's how it's implemented
L129[01:05:57] <AR2​000> >pea: so if i want to show something constantly on the screen that is updating …
L130[01:05:57] <AR2​000> it's good
L131[01:06:12] <p​ea> wait so yielding is good or bad ?
L132[01:06:16] <AR2​000> showing something on screen will avoid the "too long without yielding" crash
L133[01:06:26] <p​ea> oh i see, my mistake, i mixed it up
L134[01:06:27] <AR2​000> >pea: wait so yielding is good or bad ?
L135[01:06:28] <AR2​000> it good. You want to do it to not crash
L136[01:07:19] <AR2​000> I think the default is 5 second before it crash
L137[01:07:30] <p​ea> yea so should have crashed by now
L138[01:07:36] <p​ea> i had empty loop as test and it crashed
L139[01:07:56] <ThePi​Guy24> >AR2000: I think it's defined by openOS, and call the gpu component. Component call ar…
L140[01:07:56] <ThePi​Guy24> iirc component calls do not yield
L141[01:08:25] <p​ea> when i have 4 screens connected, any way i can make print() be bigger ?
L142[01:08:39] <ThePi​Guy24> reduce the resolution
L143[01:08:51] <p​ea> how i do that ?
L144[01:09:09] <p​ea> use worse apu ?
L145[01:09:41] <AR2​000> in the terminal `resolution x y`
L146[01:09:41] <AR2​000> or in lua
L147[01:09:42] <AR2​000> Code Block pastebined https://paste.pc-logix.com/uboqiqigel
L148[01:09:52] <p​ea> oh, i see, thank you
L149[01:10:03] <ThePi​Guy24> either the `resolution <x> <y>` command in openos or `gpu.setResolution(<x>,<y>)` in a program (replacing <x> and <y> with the corresponding values ofc)
L150[01:10:48] <ThePi​Guy24> though it only affect the currently bound screen, to apply to other screens you need to bind them and then run the command
L151[01:10:51] <Hawk777> I’m pretty sure component calls effectively do yield.
L152[01:11:02] <Amanda> @TPG it depends on the component call that you're doing, some yield silently some don't
L153[01:11:17] <Hawk777> Yes, direct calls don’t yield, but most of them—the synchronous ones—do.
L154[01:11:46] <ThePi​Guy24> im not sure. i am a) drunk, and b) it has been a while since i last had a deep dive into oc
L155[01:11:48] <AR2​000> >Amanda: @TPG it depends on the component call that you're doing, some yield silen…
L156[01:11:48] <AR2​000> that's what I thought
L157[01:12:19] <ThePi​Guy24> i know that gpu calls atleast do not yield, and that is what i often work with
L158[01:12:37] <Hawk777> Synchronous component calls are done by the running coroutine suspending, jumping back to machine.lua, returning from there, at which point OC migrates execution from the dedicated computer thread to the Minecraft thread for the component call, then migrates it back to resume execution of the OC code.
L159[01:13:20] <Amanda> %choose waves; em or pressure
L160[01:13:20] <MichiBot> Ama​nda: em waves
L161[01:14:54] <Hawk777> Yeah, looks like a lot of the GPU calls are direct.
L162[01:20:23] ⇦ Quits: Hawk777 (~Hawk777@2607:c000:8292:4400:2e19:182b:15fb:5d7) (Quit: Leaving.)
L163[01:31:30] <p​ea> is there a way to clear the screen somehow ? like there is text written and you want it cleared ? using io.write(" ") perhaps ?
L164[01:32:31] <Amanda> There's an ansi escape code for that I believe
L165[01:33:27] <AR2​000> >pea: is there a way to clear the screen somehow ? like there is text written a…
L166[01:33:28] <AR2​000> if you want to clear the entire screen and place the cursor at the top left, use `term.clear()`
L167[01:33:28] <AR2​000> Code Block pastebined https://paste.pc-logix.com/ikupafobub
L168[01:34:08] <AR2​000> >Amanda: There's an ansi escape code for that I believe
L169[01:34:08] <AR2​000> does openOS support ansi escape codes ?
L170[01:36:48] <ThePi​Guy24> it supports some, but it is rather limited
L171[01:37:32] <ThePi​Guy24> iirc one (or all) of ocawesome101s support all of the repertoire of escape sequences
L172[01:39:29] <p​ea> >AR2000: if you want to clear the entire screen and place the cursor at the top…
L173[01:39:30] <p​ea> it works thanks, anyway to display messages in the text of the game, like someone writing a message in a mutliplayer server ?
L174[01:40:02] <AR2​000> >pea: it works thanks, anyway to display messages in the text of the game, like…
L175[01:40:03] <AR2​000> can't
L176[01:40:03] <AR2​000> Or use the `/say` cmd with the debug car
L177[01:40:21] <AR2​000> or computronix's chat box
L178[01:41:20] ⇨ Joins: S|h|a|w|n (~shawn156@67.218.67.153)
L179[01:44:23] <p​ea> >AR2000: can't
L180[01:44:23] <p​ea> Or use the `/say` cmd with the debug card
L181[01:44:23] <p​ea> thanks, it works
L182[01:44:58] <AR2​000> Just remember that the debug card is creative only
L183[01:46:26] <AR2​000> good night. Sorry I can't help more for today
L184[01:47:37] ⇦ Quits: S|h|a|w|n (~shawn156@67.218.67.153) (Quit: Leaving)
L185[01:48:24] <p​ea> you helped enough, thank you very much
L186[01:48:34] <p​ea> it would have taken ages to figure these things on my own
L187[01:49:08] <p​ea> i would have probably given up lol
L188[01:50:54] <AR2​000> Last thing : read this
L189[01:50:54] <AR2​000> <https://ocdoc.cil.li/&gt;
L190[01:51:01] <AR2​000> The wiki
L191[01:54:53] <Amanda> I'd recommend installing computronics, the debug cad is a massive foot gun
L192[02:13:03] <Amanda> %choose interactive em waves; non or
L193[02:13:03] <MichiBot> Ama​nda: non or interactive em waves
L194[02:13:28] <Amanda> %chooae interactive em waves?
L195[02:13:33] <Amanda> Bah
L196[02:13:39] <Amanda> Forget this, rain box
L197[02:29:32] <p​ea> can you have multiple checks in one if in lua like ?
L198[02:29:32] <p​ea> if (a > 5 || b > 1)
L199[02:29:32] <p​ea> then
L200[02:30:35] <p​ea> ok you can
L201[02:30:41] <p​ea> should have checked the documentation first
L202[02:33:55] <Amanda> You can, but every condition adds a 5% chance of the abyss meowing hello to you
L203[02:34:19] <Amanda> %choose interactive em waves?
L204[02:34:19] <MichiBot> Ama​nda: I flipped a coin. It said "Aaaaaaaaah!". It might have been a sapient coin...
L205[02:34:39] <Amanda> Who keeps giving MichiBot sapient coins!?
L206[02:38:24] <Amanda> %remindme 12h bind stadia to the deck, connect the dock to the light box
L207[02:38:24] <MichiBot> I'll tell you "bind stadia to the deck, connect the dock to the light box" in 12h at 01/28/2023 02:38:24 PM
L208[03:14:38] * Amanda lays down ontop of Elfi, burying her in warms and floof, does a heccen zzzmew
L209[03:14:46] <Amanda> Night girls
L210[03:36:21] <n​il> wow i asked chatgpt to refer to opencomputers as OC and then said "write a function that draws a line from an x and y position to another x and y position using a FOR loop instead of a while loop for OC" and it pumped out this
L211[03:36:21] <n​il> Code Block pastebined https://paste.pc-logix.com/anapunicim
L212[03:36:45] <n​il> then i said "instaed of gpu.set use gpu.fill"
L213[03:37:48] <n​il> lol and it did it
L214[03:37:49] <n​il> Code Block pastebined https://paste.pc-logix.com/damepiqodo
L215[03:38:07] <n​il> and that shit works
L216[04:01:04] <Ar​iri> Amanda vs hooman: https://cdn.discordapp.com/attachments/800208671430279178/1068730007855317102/lv_0_20230128111038.mp4
L217[04:02:25] <p​ea> does asci art work in lua ?
L218[04:02:33] <p​ea> or more specifically openComputers
L219[04:08:01] <Izaya> yup, also ANSI art, assuming it uses unicode characters
L220[04:11:25] <p​ea> whats the best way to do it ?
L221[04:11:29] <p​ea> load it from a file ?
L222[04:11:35] <p​ea> or print ?
L223[04:11:39] <p​ea> i guess depends on the size
L224[04:14:02] <Izaya> generate it at runtime B)
L225[04:42:01] ⇨ Joins: Hawk777 (~Hawk777@2607:c000:8292:4400:33d5:64f2:fa83:a88d)
L226[04:57:22] <p​ea> hawk no longer sleepy, the goer to bed
L227[06:45:15] <Mic​hiyo> %tonkout
L228[06:45:15] <MichiBot> Dogast! Mic​hiyo! You beat Forec​aster's previous record of 13 hours, 25 minutes and 39 seconds (By 2 minutes and 56 seconds)! I hope you're happy!
L229[06:45:17] <MichiBot> Mic​hiyo has stolen the tonkout! Tonk has been reset! They gained 0.013 tonk points! plus 0.012 bonus points for consecutive hours! (Reduced to 50% because stealing) Current score: 0.18366. Position #3 Need 0.00279 more points to pass Compan​ionCube!
L230[06:45:22] <Mic​hiyo> \o/
L231[06:48:30] <Forec​aster> Dangit
L232[07:04:54] ⇨ Joins: Borland (~Borland@ns31257187.ip-51-178-176.eu)
L233[07:05:13] ⇦ Quits: Borland (~Borland@ns31257187.ip-51-178-176.eu) (Client Quit)
L234[07:18:21] ⇨ Joins: ben_mkiv (~ben_mkiv@200116B8147B1a00fE3497ffFEA975F2.dip.versatel-1u1.de)
L235[07:30:27] <Forec​aster> %skull
L236[07:30:28] <MichiBot> You drink a soft void potion (New!). Forecaster turns into an otter platypus girl until an elephant forgets.
L237[07:30:43] <Forec​aster> Dangit
L238[08:53:58] ⇦ Quits: Hawk777 (~Hawk777@2607:c000:8292:4400:33d5:64f2:fa83:a88d) (Quit: Leaving.)
L239[09:23:03] <Forec​aster> %tonk
L240[09:23:04] <MichiBot> Gadsbudlikins! Forec​aster! You beat Mic​hiyo's previous record of <0 (By 2 hours, 37 minutes and 47 seconds)! I hope you're happy!
L241[09:23:05] <MichiBot> Forecaster's new record is 2 hours, 37 minutes and 47 seconds! Forecaster also gained 0.00263 tonk points for stealing the tonk. Position #1.
L242[09:35:34] <Va​ur> %sip
L243[09:35:36] <MichiBot> You drink a liquid diamond potion (New!). Vaur now knows how not to be seen.
L244[09:37:23] ⇨ Joins: S|h|a|w|n (~shawn156@67.218.67.153)
L245[09:37:49] ⇦ Quits: S|h|a|w|n (~shawn156@67.218.67.153) (Client Quit)
L246[09:46:25] ⇨ Joins: Vexatos (~Vexatos@pd9e21222.dip0.t-ipconnect.de)
L247[09:46:25] zsh sets mode: +v on Vexatos
L248[10:05:32] <AR2​000> >pea: whats the best way to do it ?
L249[10:05:32] <AR2​000> `loadfile` load lua code, not text.
L250[10:05:33] <AR2​000> To print something you can hardcode it, or read from a file. I recommend loading from a file, even if it's name/path is hardcoded
L251[10:44:39] <Forec​aster> You use the law of equivalent exchange to materialize the bytes when you need them
L252[10:44:44] <Forec​aster> it's the only correct way to do it
L253[11:26:23] ⇨ Joins: matesaman (~matesaman@51.159.14.97)
L254[11:26:27] ⇦ Quits: matesaman (~matesaman@51.159.14.97) (Client Quit)
L255[12:19:35] * Amanda meows and looks around
L256[12:22:21] <Forec​aster> an elephant's probably forgotten something by now
L257[12:22:25] <Forec​aster> %skull
L258[12:22:26] <MichiBot> You drink a viscous bavarium potion (New!). Forecaster's bones turn the color of avesmingo until someone turns on a lamp.
L259[12:47:28] <Amanda> But an elephant never forgets
L260[12:47:43] <Forec​aster> that's what they claim
L261[13:00:49] <CompanionCube> %tonk
L262[13:00:49] <MichiBot> Yay! Compan​ionCube! You beat Forec​aster's previous record of 2 hours, 37 minutes and 47 seconds (By 59 minutes and 58 seconds)! I hope you're happy!
L263[13:00:50] <MichiBot> CompanionCube's new record is 3 hours, 37 minutes and 46 seconds! CompanionCube also gained 0.003 (0.001 x 3) tonk points for stealing the tonk. Position #2. Need 0.04701 more points to pass Forec​aster!
L264[13:08:53] <Va​ur> %sip
L265[13:08:54] <MichiBot> You drink a muddy bavarium potion (New!). Vaur's favourite hat suddenly disintegrates.
L266[13:27:53] <Amanda> I have found the worst nether spawn in MC 1.19 Modded.
L267[13:27:57] <Amanda> "Embur bog"
L268[13:28:00] <ThePi​Guy24> >nil: wow i asked chatgpt to refer to opencomputers as OC and then said "write a fu…
L269[13:28:00] <ThePi​Guy24> good old bresenhams ;p
L270[13:28:42] <Amanda> It's a swamp-like biome, but with lava and those firey blocks that hurt to stand on that escape the name part of my brain atm
L271[13:29:46] <ThePi​Guy24> magma blocks
L272[13:30:06] <Amanda> That's it!
L273[13:30:36] <Amanda> It's from BYG
L274[13:30:48] <Amanda> ( The biome )
L275[13:36:43] <Amanda> Probably about time I make armor....
L276[13:43:47] <Amanda> Protip: Power bricks work better when the strip they're plugged into is on
L277[14:24:01] <Forec​aster> Bring Yourown Ground
L278[14:38:25] <MichiBot> Amanda REMINDER: bind stadia to the deck, connect the dock to the light box
L279[15:23:02] <n​il> im having a blast with this chatgpt thing
L280[15:25:24] <Forec​aster> sounds illegal
L281[15:30:08] <Va​ur> %sip
L282[15:30:09] <MichiBot> You drink an invisible coralcreep potion (New!). Vaur turns into a cat girl until they recite the litany against fear.
L283[15:30:42] <Forec​aster> Recite it quickly!
L284[15:34:51] <n​il> if anyone want me to see if chat gpt can write some code for you ill so give it a shot 🙂
L285[15:35:13] <Forec​aster> have you asked it to do something that requires a gui yet
L286[15:35:30] <n​il> a little
L287[15:36:08] <n​il> im making it creat a bunch of ui elements like progress bar etc
L288[15:37:01] <Forec​aster> what does that look like
L289[15:37:37] <n​il> this is what it gave me for a progress bar
L290[15:37:37] <n​il> Code Block pastebined https://paste.pc-logix.com/wejerugeyu
L291[15:37:53] <Forec​aster> I meant what it looks like in use
L292[15:38:14] <n​il> loading minecraft now
L293[15:38:36] <n​il> i got over 100 mods so it takes a min
L294[15:41:17] <n​il> here is what it gave me for the question "write a function that draws a line from an x and y position to another x and y position using a FOR loop instead of a while loop for OC" i told it before to refer to opencomputers as OC
L295[15:41:17] <n​il> Code Block pastebined https://paste.pc-logix.com/ceyamenija
L296[15:41:55] <n​il> not bad and it works
L297[15:42:00] <Forec​aster> you said that yesterday I think
L298[15:42:18] <n​il> prob but still kinda kool
L299[15:42:28] <Forec​aster> I'd be more interested in the result of things that require aesthetics rather than just generic functions
L300[15:43:37] <n​il> devise me a question and ill query it the more detailed the more likely it will wiork
L301[15:46:00] <n​il> im curius to see if with enough info it can write complicated code
L302[15:46:11] <n​il> it can even do fiveM
L303[15:47:47] <n​il> and that surprises me as thats kinda an obscure mod for gta5
L304[15:48:04] <Forec​aster> I don't know what that is
L305[15:48:41] <n​il> custom servers for gta 5 mostly for racing rp and police rp
L306[15:54:00] <Forec​aster> "Write a program that toggles a redstone output when an on-screen button is touched"
L307[15:56:17] <Forec​aster> probably needs some context to that
L308[15:56:25] <n​il> "Write a program that toggles a redstone output on left side of computer so that when an on-screen button at location 2, 2, with a size of 10, 3 is touched for OC"
L309[15:57:10] <n​il> had to add some extra details
L310[15:57:29] <Forec​aster> does it not do anything if you don't specify the button position
L311[15:58:19] <n​il> idk
L312[15:58:43] <n​il> im just trying to give it the most info i can
L313[15:58:59] <Forec​aster> I'd do the opposite
L314[15:59:01] <Suk​hoi> I remember being able to convert javascript code into various languages
L315[15:59:04] <Suk​hoi> Even COBOL
L316[15:59:06] <Suk​hoi> Was fun
L317[15:59:13] <Suk​hoi> Oh yeah what was really fun was
L318[15:59:13] <Forec​aster> I'd give it as little information as possible until it does what I want
L319[15:59:16] <Suk​hoi> Converting it to forth
L320[15:59:19] <n​il> this is what it gave its wrong but hey
L321[15:59:19] <n​il> Code Block pastebined https://paste.pc-logix.com/evinoluvaq
L322[15:59:22] <Suk​hoi> Then having it start writing a forth interpreter
L323[15:59:50] <n​il> how would i word that
L324[15:59:53] <Forec​aster> ah, that makes sense, nowhere does it say the button needs to be visible
L325[16:01:06] <Suk​hoi> dumb shit https://tinyurl.com/2pzlanps
L326[16:01:19] <n​il> its easier and more accurate to have it 1 function at a time
L327[16:01:40] <n​il> LOL having fun with it?
L328[16:01:58] <Forec​aster> can you give it a function and tell it to do something with it?
L329[16:02:08] <n​il> YES
L330[16:02:13] <Suk​hoi> Now *that's* more like it https://tinyurl.com/2mfjxfhu
L331[16:02:32] <n​il> ROFL
L332[16:02:50] <Suk​hoi> That's why Forth is so good though, it's incredibly simple
L333[16:03:31] <n​il> and you can talk to it like a normal person referencing stuff that happend earlier in the convo
L334[16:04:40] <n​il> tell it to use XXX function(x,x) from earlier
L335[16:05:01] <Suk​hoi> God damn it's really thinking hard on that https://tinyurl.com/2jh4eopf
L336[16:05:30] <n​il> sometimes it gotta think about it
L337[16:05:36] <n​il> lol
L338[16:09:20] <n​il> i asked it to "write a playercontroller for a asteroids game on opencomputers mod"
L339[16:09:20] <n​il> Code Block pastebined https://paste.pc-logix.com/unofoxuwud
L340[16:10:04] <Suk​hoi> Well there's no graphics
L341[16:10:06] <Suk​hoi> Also
L342[16:10:11] <ThePi​Guy24> > `local movement = component.get("movement_component_address")`
L343[16:10:11] <ThePi​Guy24> ah yes a real component ;p
L344[16:10:11] <Suk​hoi> Tf is "movement_component_address"
L345[16:10:16] <Forec​aster> the heck is a rotor
L346[16:10:26] <Suk​hoi> oh i see
L347[16:10:28] <ThePi​Guy24> something that rotates
L348[16:11:11] <Forec​aster> no kidding
L349[16:12:25] <n​il> all you have to do is tell it that "movement_component_address" is not a component
L350[16:12:40] <Forec​aster> that's clearly a placeholder
L351[16:12:54] <n​il> I apologize, you are correct that "movement_component_address" is not a valid component in OpenComputers. It was used in the example as a placeholder to indicate where you would need to specify the address of the movement component you wish to use in your game.
L352[16:12:55] <n​il> In the OpenComputers mod, you can use components such as the "drive" and "rotor" to control the movement of an entity. To get the address of the movement component, you can use the component.list() function and check the type of the returned components, then you can use the component.get() function to get a reference to the component.
L353[16:12:55] <n​il> For example, if you want to use the first rotor component, you can use the following code:
L354[16:12:58] <n​il> LOL
L355[16:13:49] <Forec​aster> I wonder what mod adds a "rotor" component
L356[16:13:55] <n​il> pretty fun to see what it can do though
L357[16:14:08] <Forec​aster> it has to be getting that from somewhere
L358[16:14:34] <n​il> thats why its important to have as much details as possible
L359[16:14:56] <Forec​aster> ask it what the rotor component is from
L360[16:15:13] <n​il> i just DID its thinking
L361[16:16:00] <n​il> IC2 it seems
L362[16:16:08] <Forec​aster> huh, interesting
L363[16:16:28] <Forec​aster> maybe that's the name of one of the machine components
L364[16:16:44] <Forec​aster> there's a "rotary something" machine if I recall correctly
L365[16:16:49] <n​il> yeah thats what it looks like
L366[16:17:07] <n​il> Message contained 4 or more newlines and was pastebined https://paste.pc-logix.com/rudiwevese
L367[16:18:05] <Forec​aster> interesting
L368[16:18:59] <n​il> Message contained 4 or more newlines and was pastebined https://paste.pc-logix.com/yolosaveco
L369[16:19:23] <n​il> FUN!
L370[16:25:23] <n​il> mmmm
L371[16:25:42] <n​il> lest see what this yields
L372[16:25:42] <n​il> "can you write an API that can run computercraft code pertaining to screen functions on an opencomputers computer in other words make some functions that take in computercraft code to display stuff and make it work on opencomputers"
L373[16:27:04] <n​il> resilts
L374[16:27:04] <n​il> Code Block pastebined https://paste.pc-logix.com/jekuqafajo
L375[16:33:55] <n​il> im beginning to love the word optimize
L376[16:36:41] <n​il> lets see it it can obfuscate some code lol
L377[16:37:58] <Amanda> %remindme do the thing?
L378[16:37:58] <MichiBot> Ama​nda: Unable to parse "do" as a time string.
L379[16:38:02] <Amanda> er
L380[16:38:06] <Amanda> %choose do the thing?
L381[16:38:07] <MichiBot> Ama​nda: Fine, but only if I receive pats after.
L382[16:38:56] <Amanda> Hrm. Nah, michibot's not done anything recently to receive pats for
L383[16:45:43] <Amanda> You know. Maybe this isn't a good place to build my base
L384[16:46:11] <Amanda> https://matrix.camnet.site/_matrix/media/r0/download/camnet.site/zPSgwHqoenkxdIwfqJRKYWPU/2023-01-28_11.45.23.png
L385[16:51:20] <Amanda> %choose try and be an above-ground cat again?
L386[16:51:21] <MichiBot> Ama​nda: I've heard that such things lead to bad luck
L387[16:51:28] <Amanda> dwarven cat it is
L388[17:01:28] ⇦ Quits: ben_mkiv (~ben_mkiv@200116B8147B1a00fE3497ffFEA975F2.dip.versatel-1u1.de) (Killed (NickServ (GHOST command used by ben_mkiv|afk!~ben_mkiv@200116b814E4Af00fe3497FfFeA975F2.dip.versatel-1u1.de)))
L389[17:02:58] <Forec​aster> well shoot
L390[17:03:13] <Forec​aster> the computer I was going to use as a workshop computer has no VGA output
L391[17:03:24] <Forec​aster> and the only screen I have is VGA only
L392[17:03:52] <Forec​aster> even if it wasn't attachable to the screen holder I thought I'd use it temporarily, but I can't even do that
L393[17:04:15] <Forec​aster> so now the screen has been banished to the server room
L394[17:05:46] <Forec​aster> the final place it can be useful in since my servers have VGA outputs
L395[17:30:36] <CompanionCube> %tonkout
L396[17:30:36] <MichiBot> Yippee! Compan​ionCube! You beat your own previous record of 3 hours, 37 minutes and 46 seconds (By 52 minutes)! I hope you're happy!
L397[17:30:37] <MichiBot> Compan​ionCube has tonked out! Tonk has been reset! They gained 0.004 tonk points! plus 0.006 bonus points for consecutive hours! Current score: 0.19945, Position #2 Need 0.03701 more points to pass Forec​aster!
L398[17:35:14] ⇨ Joins: Hawk777 (~Hawk777@2607:c000:8292:4400:5bf0:61b1:30f9:266)
L399[18:14:11] <Forec​aster> %skull
L400[18:14:12] <MichiBot> You drink a porous automato potion (New!). Forecaster's favourite hair suddenly disintegrates.
L401[18:14:19] <Forec​aster> dangit
L402[18:28:44] <Forec​aster> I've ordered a cheap membrane keyboard with a touchpad in it for the workshop
L403[18:29:21] <Forec​aster> but I have to wait until monday to see if I can steal a spare monitor with DVI from work
L404[18:53:53] <Forec​aster> `To Another World...with Land Mines!` now there's a title that catches your attention
L405[18:54:26] <Forec​aster> if only to find out how they managed to stretch that concept into five volumes so far
L406[20:09:31] <Forec​aster> %tonk
L407[20:09:32] <MichiBot> Consarn it! Forec​aster! You beat Compan​ionCube's previous record of <0 (By 2 hours, 38 minutes and 55 seconds)! I hope you're happy!
L408[20:09:33] <MichiBot> Forecaster's new record is 2 hours, 38 minutes and 55 seconds! Forecaster also gained 0.00265 tonk points for stealing the tonk. Position #1.
L409[20:15:51] ⇨ Joins: S|h|a|w|n (~shawn156@67.218.67.153)
L410[22:05:11] <Amanda> %choose comfort or utility?
L411[22:05:11] <MichiBot> Ama​nda: "comfort" is for cool kids!
L412[22:05:26] <Amanda> Hrm, it's rather chilly, so I guess I'm a cool kitten
L413[22:21:21] ⇦ Quits: ThePiGuy24 (~ThePiGuy2@90.242.85.205) (Remote host closed the connection)
L414[22:22:17] ⇨ Joins: ThePiGuy24 (~ThePiGuy2@90.242.85.205)
L415[22:30:00] <Amanda> %choose halucinate or set up ore doubling
L416[22:30:00] <MichiBot> Ama​nda: The proof is in the pudding. Definitely "halucinate". Now please get it out of my pudding.
L417[22:33:04] * Amanda flops down around Elfi, reads stories to her
L418[22:51:13] ⇦ Quits: Hawk777 (~Hawk777@2607:c000:8292:4400:5bf0:61b1:30f9:266) (Quit: Leaving.)
L419[23:01:49] <Amanda> ... what
L420[23:02:00] <Amanda> When the hell did I buy valheim
L421[23:04:42] <Amanda> ... 3 days ago apparently
L422[23:04:47] <Amanda> I have no memory of this
L423[23:14:20] * Amanda puts on a pizza
L424[23:18:22] <Mic​hiyo> %tonk
L425[23:18:23] <MichiBot> Yikes! Mic​hiyo! You beat Forec​aster's previous record of 2 hours, 38 minutes and 55 seconds (By 29 minutes and 55 seconds)! I hope you're happy!
L426[23:18:24] <MichiBot> Michiyo's new record is 3 hours, 8 minutes and 51 seconds! Michiyo also gained 0.0015 (0.0005 x 3) tonk points for stealing the tonk. Position #3. Need 0.01429 more points to pass Compan​ionCube!
L427[23:20:22] <Amanda> big oof
L428[23:22:22] ⇦ Quits: nadja (~dequbed@banana-new.kilobyte22.de) (Quit: bye!)
L429[23:22:23] ⇦ Quits: kilobyte (~kilobyte2@banana-new.kilobyte22.de) (Quit: Bye)
L430[23:22:24] ⇦ Quits: jackie (~jackie@banana-new.kilobyte22.de) ()
L431[23:24:33] ⇨ Joins: jackie (~jackie@banana-new.kilobyte22.de)
L432[23:24:33] zsh sets mode: +v on jackie
L433[23:24:40] ⇨ Joins: dequbed (~dequbed@banana-new.kilobyte22.de)
L434[23:25:00] ⇨ Joins: kilobyte (~kilobyte2@banana-new.kilobyte22.de)
L435[23:25:01] zsh sets mode: +v on kilobyte
L436[23:41:57] * Amanda wanders over to dequbed, drops a slice of pizza onto her lap
L437[23:44:24] <dequbed> Oooh! Food
L438[23:44:24] * dequbed noms
L439[23:44:58] <Amanda> %choose halucinate or irradiate
L440[23:44:59] <MichiBot> Ama​nda: I received a telegram from a long lost relative that only read "halucinate". Weird.
L441[23:45:05] <Amanda> hrmhrm
<<Prev Next>> Scroll to Top