<<Prev Next>> Scroll to Bottom
Stuff goes here
L2[00:02:23]
<Michiyo> I
think htop might be drunk
L3[00:03:34] <Hawk777> Wow. Pretty nice
mess!
L4[00:11:08]
<AR2000>
>pea: what about debuging, you have to do it in the game right ?
Load the code …
L5[00:11:08]
<AR2000>
unfortunately, print is your best friend for debugging.
L6[00:11:08]
<AR2000>
Making a logging function that write in a file, or even crazier, in
a socket, can help
L7[00:14:02]
<AR2000>
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> Amanda: If I've
learned anything in life it's that you always pick
"halucinate"
L10[00:14:53]
<Sky>
>Michiyo: I think htop might be drunk
L11[00:14:53]
<Sky> A
little bit
L12[00:15:17]
<AR2000>
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]
<Michiyo>
lmao, sounds about right
L16[00:20:04]
<pea> 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]
<pea> x, y,
z = debug.getPosition
L18[00:20:04]
<pea> and
the x should be a number ?
L20[00:20:12]
<AR2000> I
guess I was not the fist doing full disk encryption
L21[00:20:17]
<AR2000>
Looks nice
L24[00:22:52]
<AR2000>
First you need to get a player object, then you can get it's
position from the object
L25[00:23:06]
<pea>
oh
L26[00:23:10]
<pea>
player.getPosition
L27[00:23:11]
<pea> i
see
L28[00:24:27]
<pea> yup
it works, thank you, needed to use the player
L29[00:24:46]
<AR2000>
same issue with the world object just in case
L30[00:25:01]
<AR2000>
and it's technically a dimension object
L31[00:28:17]
<pea> 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]
<pea> like,
is there anything i should be careful with ? having long complex
loops or something ?
L33[00:30:26]
<Michiyo>
There is nothing special about a creative case, other than no power
use, and higher component tier limits
L34[00:30:49]
<Michiyo>
Oh, and it locks non creative / op users out of opening its
UI
L35[00:32:01]
<pea> oh,
good to know, thanks
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]
<pea> 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]
<pea> hawk
when you mention ram and disk space you mean in minecraft or in
real life
L42[00:38:26]
<AR2000>
both ?
L43[00:38:26]
<AR2000>
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]
<pea> oh,
but the amounts really small
L45[00:39:06]
<pea> like
people could not use open computers as lag machines
L46[00:39:28]
<AR2000> or
you would need a LOT of them, and they would crash as soon as they
start to lag
L47[00:39:40]
<pea> so is
that some safety feature ?
L48[00:39:43]
<AR2000>
that's what the "too long without yielding" crash is
for
L49[00:40:08]
<AR2000>
avoid infinite loops that do nothing, and avoid lag because of
them
L50[00:40:40]
<pea> 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]
<AR2000> 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]
<AR2000>
>pea: what if i would want to have a while loop that would
basically have a tim…
L54[00:41:31]
<AR2000>
>pea: what if i would want to have a while loop that would
basically have a tim…
L55[00:41:31]
<AR2000>
event.timer dose just that
L56[00:41:32]
<pea> 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]
<AR2000>
you won't crash your game with a badly written program thx to the
good isolation from MC main thread
L59[00:42:17]
<pea> this
looks complex but i will check it out thanks
L60[00:42:56]
<AR2000>
>pea: this looks complex but i will check it out thanks
L61[00:42:57]
<AR2000>
it's not that hard.
L62[00:42:57]
<AR2000>
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]
<pea> 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]
<AR2000>
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]
<AR2000>
>pea: when you mentioned too long without yealding in a loop ?
if loop does not…
L67[00:45:58]
<pea> if
you use the event library, you still need a loop to check for event
to happen ?
L68[00:46:30]
<AR2000>
only os.sleep() and event.pull() can prevent this crash Or any
function waiting for a event like term.read()
L69[00:47:40]
<AR2000>
>pea: if you use the event library, you still need a loop to
check for event to…
L70[00:47:40]
<AR2000>
no, you can use a event listener
L72[00:48:04]
<AR2000>
`event.pull` is blocking
L73[00:48:04]
<AR2000>
`event.listen` is not blocking
L75[00:48:21]
<pea> so
you run the program named test1, and the machine will be busy with
the program ?
L76[00:48:40]
<pea> like
in openOS you have to run the program
L77[00:48:44]
<pea> for
it to work
L78[00:48:52]
<AR2000>
the event listener persist after the program end
L79[00:49:04]
<pea> oh,
thats interesting
L80[00:49:15]
<pea> so
then you can run other programs ?
L81[00:49:20]
<AR2000>
yep
L82[00:50:01]
<AR2000>
for example you can make a srv that wait form `modem_message`
events, but still work on other things
L83[00:50:14]
<pea> and
if the function is an infinite loop ? then it will overtake the
program ?
L84[00:50:54]
<AR2000>
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]
<AR2000>
>pea: and if the function is an infinite loop ? then it will
overtake the progr…
L86[00:51:17]
<AR2000>
yeah, like I said, one task at the time. So avoid that in a event
handler
L87[00:52:44]
<pea> what
about if i have mutliple conditions that have to be met for a
function to work ?
L88[00:53:05]
<pea> 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]
<AR2000> or
you can have event handlers that set a variable to true when a
condition is met
L90[00:54:22]
<AR2000>
you can stop a function midway with a return
L91[00:55:25]
<pea> and
what would be the advantages disadvantages, because i can just have
a long while loop with different conditions for different
functions
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]
<AR2000>
>pea: and what would be the advantages disadvantages, because i
can just have a…
L96[00:56:53]
<AR2000>
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]
<AR2000>
that's my opinion, I'm not claiming that's the only one
correct
L98[00:57:59]
<pea> are
event handlers just something that runs in the game loop anyway
?
L99[00:58:27]
<pea> like
you cant avoid the loop, the head bites the tail
L100[00:58:30]
<AR2000> 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]
<AR2000> 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]
<pea> yea i
agree
L103[00:59:08]
<AR2000>
>pea: are event handlers not just something that runs in the
game loop anyway ?
L104[00:59:08]
<AR2000> it
might be a loop, but done by someone else and reliable
L105[00:59:38]
<pea> 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]
<pea> i
feel like we are getting to philosophical, like arent just
computers a big loop
L107[01:00:19]
<AR2000>
Just know that any error raised in a event handler is written in
`/tmp/event.log` instead
L108[01:02:17]
<AR2000>
>pea: but doing event handling with for keyboard, there is still
a loop somewhe…
L109[01:02:17]
<AR2000>
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]
<AR2000>
USB is more complex, but there is still no loops
L111[01:02:46]
<AR2000>
One some of them
L112[01:03:11]
<pea> ok,
so i have a while loop running for a while now spamming some text,
so far no crash
L113[01:03:11]
<pea> a = a
+ 1
L114[01:03:12]
<pea>
print(a)
L115[01:03:37]
<AR2000> 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]
<AR2000>
>pea: ok, so i have a while loop running for a while now
spamming some text, so…
L117[01:03:51]
<AR2000>
print() might be yielding
L118[01:04:17]
<pea>
>AR2000: print() might be yielding
L119[01:04:17]
<pea> oh
wait, its io.write
L120[01:04:21]
<AR2000> 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]
<AR2000>
>pea: oh wait, its io.write
L122[01:04:31]
<AR2000>
same answer
L123[01:04:59]
<pea>
>AR2000: same answer
L124[01:04:59]
<pea> so if
i want to show something constantly on the screen that is updating
its no good ?
L125[01:05:11]
<pea> like
time, seconds ticking, minutes
L126[01:05:19]
<pea> or
display constant player coordinates
L127[01:05:36]
<AR2000>
os.sleep() is yielding. You can wait as long as you want. It is a
while loop
L128[01:05:45]
<AR2000>
that's how it's implemented
L129[01:05:57]
<AR2000>
>pea: so if i want to show something constantly on the screen
that is updating …
L130[01:05:57]
<AR2000>
it's good
L131[01:06:12]
<pea> wait
so yielding is good or bad ?
L132[01:06:16]
<AR2000>
showing something on screen will avoid the "too long without
yielding" crash
L133[01:06:26]
<pea> oh i
see, my mistake, i mixed it up
L134[01:06:27]
<AR2000>
>pea: wait so yielding is good or bad ?
L135[01:06:28]
<AR2000> it
good. You want to do it to not crash
L136[01:07:19]
<AR2000> I
think the default is 5 second before it crash
L137[01:07:30]
<pea> yea
so should have crashed by now
L138[01:07:36]
<pea> i had
empty loop as test and it crashed
L139[01:07:56]
<ThePiGuy24> >AR2000: I think it's
defined by openOS, and call the gpu component. Component call
ar…
L140[01:07:56]
<ThePiGuy24> iirc component calls do not
yield
L141[01:08:25]
<pea> when
i have 4 screens connected, any way i can make print() be bigger
?
L142[01:08:39]
<ThePiGuy24> reduce the resolution
L143[01:08:51]
<pea> how i
do that ?
L144[01:09:09]
<pea> use
worse apu ?
L145[01:09:41]
<AR2000> in
the terminal `resolution x y`
L146[01:09:41]
<AR2000> or
in lua
L148[01:09:52]
<pea> oh, i
see, thank you
L149[01:10:03]
<ThePiGuy24> 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]
<ThePiGuy24> 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]
<ThePiGuy24> 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]
<AR2000>
>Amanda: @TPG it depends on the component call that you're
doing, some yield silen…
L156[01:11:48]
<AR2000>
that's what I thought
L157[01:12:19]
<ThePiGuy24> 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> Amanda: 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]
<pea> 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]
<AR2000>
>pea: is there a way to clear the screen somehow ? like there is
text written a…
L166[01:33:28]
<AR2000> if
you want to clear the entire screen and place the cursor at the top
left, use `term.clear()`
L168[01:34:08]
<AR2000>
>Amanda: There's an ansi escape code for that I believe
L169[01:34:08]
<AR2000>
does openOS support ansi escape codes ?
L170[01:36:48]
<ThePiGuy24> it supports some, but it is
rather limited
L171[01:37:32]
<ThePiGuy24> iirc one (or all) of
ocawesome101s support all of the repertoire of escape
sequences
L172[01:39:29]
<pea>
>AR2000: if you want to clear the entire screen and place the
cursor at the top…
L173[01:39:30]
<pea> 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]
<AR2000>
>pea: it works thanks, anyway to display messages in the text of
the game, like…
L175[01:40:03]
<AR2000>
can't
L176[01:40:03]
<AR2000> Or
use the `/say` cmd with the debug car
L177[01:40:21]
<AR2000> or
computronix's chat box
L178[01:41:20]
⇨ Joins: S|h|a|w|n (~shawn156@67.218.67.153)
L179[01:44:23]
<pea>
>AR2000: can't
L180[01:44:23]
<pea> Or
use the `/say` cmd with the debug card
L181[01:44:23]
<pea>
thanks, it works
L182[01:44:58]
<AR2000>
Just remember that the debug card is creative only
L183[01:46:26]
<AR2000>
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]
<pea> you
helped enough, thank you very much
L186[01:48:34]
<pea> it
would have taken ages to figure these things on my own
L187[01:49:08]
<pea> i
would have probably given up lol
L188[01:50:54]
<AR2000>
Last thing : read this
L190[01:51:01]
<AR2000>
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> Amanda: 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]
<pea> can
you have multiple checks in one if in lua like ?
L198[02:29:32]
<pea> if (a
> 5 || b > 1)
L199[02:29:32]
<pea>
then
L200[02:30:35]
<pea> ok
you can
L201[02:30:41]
<pea>
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> Amanda: 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]
<nil> 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
L212[03:36:45]
<nil> then
i said "instaed of gpu.set use gpu.fill"
L213[03:37:48]
<nil> lol
and it did it
L215[03:38:07]
<nil> and
that shit works
L217[04:02:25]
<pea> does
asci art work in lua ?
L218[04:02:33]
<pea> or
more specifically openComputers
L219[04:08:01] <Izaya> yup, also ANSI art,
assuming it uses unicode characters
L220[04:11:25]
<pea> whats
the best way to do it ?
L221[04:11:29]
<pea> load
it from a file ?
L222[04:11:35]
<pea> or
print ?
L223[04:11:39]
<pea> 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]
<pea> hawk
no longer sleepy, the goer to bed
L227[06:45:15]
<Michiyo>
%tonkout
L228[06:45:15] <MichiBot> Dogast!
Michiyo! You beat Forecaster'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> Michiyo 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 CompanionCube!
L230[06:45:22]
<Michiyo>
\o/
L231[06:48:30]
<Forecaster> 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]
<Forecaster> %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]
<Forecaster> Dangit
L238[08:53:58] ⇦
Quits: Hawk777 (~Hawk777@2607:c000:8292:4400:33d5:64f2:fa83:a88d)
(Quit: Leaving.)
L239[09:23:03]
<Forecaster> %tonk
L240[09:23:04] <MichiBot> Gadsbudlikins!
Forecaster! You beat Michiyo'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]
<Vaur>
%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]
<AR2000>
>pea: whats the best way to do it ?
L249[10:05:32]
<AR2000>
`loadfile` load lua code, not text.
L250[10:05:33]
<AR2000> 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]
<Forecaster> You use the law of equivalent
exchange to materialize the bytes when you need them
L252[10:44:44]
<Forecaster> 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]
<Forecaster> an elephant's probably
forgotten something by now
L257[12:22:25]
<Forecaster> %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]
<Forecaster> that's what they claim
L261[13:00:49] <CompanionCube> %tonk
L262[13:00:49] <MichiBot> Yay!
CompanionCube! You beat Forecaster'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 Forecaster!
L264[13:08:53]
<Vaur>
%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]
<ThePiGuy24> >nil: wow i asked chatgpt
to refer to opencomputers as OC and then said "write a
fu…
L269[13:28:00]
<ThePiGuy24> 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]
<ThePiGuy24> 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]
<Forecaster> 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]
<nil> im
having a blast with this chatgpt thing
L280[15:25:24]
<Forecaster> sounds illegal
L281[15:30:08]
<Vaur>
%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]
<Forecaster> Recite it quickly!
L284[15:34:51]
<nil> 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]
<Forecaster> have you asked it to do
something that requires a gui yet
L286[15:35:30]
<nil> a
little
L287[15:36:08]
<nil> im
making it creat a bunch of ui elements like progress bar etc
L288[15:37:01]
<Forecaster> what does that look
like
L289[15:37:37]
<nil> this
is what it gave me for a progress bar
L291[15:37:53]
<Forecaster> I meant what it looks like in
use
L292[15:38:14]
<nil>
loading minecraft now
L293[15:38:36]
<nil> i got
over 100 mods so it takes a min
L294[15:41:17]
<nil> 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
L296[15:41:55]
<nil> not
bad and it works
L297[15:42:00]
<Forecaster> you said that yesterday I
think
L298[15:42:18]
<nil> prob
but still kinda kool
L299[15:42:28]
<Forecaster> I'd be more interested in the
result of things that require aesthetics rather than just generic
functions
L300[15:43:37]
<nil>
devise me a question and ill query it the more detailed the more
likely it will wiork
L301[15:46:00]
<nil> im
curius to see if with enough info it can write complicated
code
L302[15:46:11]
<nil> it
can even do fiveM
L303[15:47:47]
<nil> and
that surprises me as thats kinda an obscure mod for gta5
L304[15:48:04]
<Forecaster> I don't know what that
is
L305[15:48:41]
<nil>
custom servers for gta 5 mostly for racing rp and police rp
L306[15:54:00]
<Forecaster> "Write a program that
toggles a redstone output when an on-screen button is
touched"
L307[15:56:17]
<Forecaster> probably needs some context
to that
L308[15:56:25]
<nil>
"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]
<nil> had
to add some extra details
L310[15:57:29]
<Forecaster> does it not do anything if
you don't specify the button position
L311[15:58:19]
<nil>
idk
L312[15:58:43]
<nil> im
just trying to give it the most info i can
L313[15:58:59]
<Forecaster> I'd do the opposite
L314[15:59:01]
<Sukhoi> I
remember being able to convert javascript code into various
languages
L315[15:59:04]
<Sukhoi>
Even COBOL
L316[15:59:06]
<Sukhoi>
Was fun
L317[15:59:13]
<Sukhoi> Oh
yeah what was really fun was
L318[15:59:13]
<Forecaster> I'd give it as little
information as possible until it does what I want
L319[15:59:16]
<Sukhoi>
Converting it to forth
L320[15:59:19]
<nil> this
is what it gave its wrong but hey
L322[15:59:22]
<Sukhoi>
Then having it start writing a forth interpreter
L323[15:59:50]
<nil> how
would i word that
L324[15:59:53]
<Forecaster> ah, that makes sense, nowhere
does it say the button needs to be visible
L326[16:01:19]
<nil> its
easier and more accurate to have it 1 function at a time
L327[16:01:40]
<nil> LOL
having fun with it?
L328[16:01:58]
<Forecaster> can you give it a function
and tell it to do something with it?
L329[16:02:08]
<nil>
YES
L331[16:02:32]
<nil>
ROFL
L332[16:02:50]
<Sukhoi>
That's why Forth is so good though, it's incredibly simple
L333[16:03:31]
<nil> and
you can talk to it like a normal person referencing stuff that
happend earlier in the convo
L334[16:04:40]
<nil> tell
it to use XXX function(x,x) from earlier
L336[16:05:30]
<nil>
sometimes it gotta think about it
L337[16:05:36]
<nil>
lol
L338[16:09:20]
<nil> i
asked it to "write a playercontroller for a asteroids game on
opencomputers mod"
L340[16:10:04]
<Sukhoi>
Well there's no graphics
L341[16:10:06]
<Sukhoi>
Also
L342[16:10:11]
<ThePiGuy24> > `local movement =
component.get("movement_component_address")`
L343[16:10:11]
<ThePiGuy24> ah yes a real component
;p
L344[16:10:11]
<Sukhoi> Tf
is "movement_component_address"
L345[16:10:16]
<Forecaster> the heck is a rotor
L346[16:10:26]
<Sukhoi> oh
i see
L347[16:10:28]
<ThePiGuy24> something that rotates
L348[16:11:11]
<Forecaster> no kidding
L349[16:12:25]
<nil> all
you have to do is tell it that
"movement_component_address" is not a component
L350[16:12:40]
<Forecaster> that's clearly a
placeholder
L351[16:12:54]
<nil> 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]
<nil> 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]
<nil> For
example, if you want to use the first rotor component, you can use
the following code:
L354[16:12:58]
<nil>
LOL
L355[16:13:49]
<Forecaster> I wonder what mod adds a
"rotor" component
L356[16:13:55]
<nil>
pretty fun to see what it can do though
L357[16:14:08]
<Forecaster> it has to be getting that
from somewhere
L358[16:14:34]
<nil> thats
why its important to have as much details as possible
L359[16:14:56]
<Forecaster> ask it what the rotor
component is from
L360[16:15:13]
<nil> i
just DID its thinking
L361[16:16:00]
<nil> IC2
it seems
L362[16:16:08]
<Forecaster> huh, interesting
L363[16:16:28]
<Forecaster> maybe that's the name of one
of the machine components
L364[16:16:44]
<Forecaster> there's a "rotary
something" machine if I recall correctly
L365[16:16:49]
<nil> yeah
thats what it looks like
L367[16:18:05]
<Forecaster> interesting
L369[16:19:23]
<nil>
FUN!
L370[16:25:23]
<nil>
mmmm
L371[16:25:42]
<nil> lest
see what this yields
L372[16:25:42]
<nil>
"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]
<nil>
resilts
L375[16:33:55]
<nil> im
beginning to love the word optimize
L376[16:36:41]
<nil> lets
see it it can obfuscate some code lol
L377[16:37:58] <Amanda> %remindme do the
thing?
L378[16:37:58] <MichiBot> Amanda: 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> Amanda: 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
L385[16:51:20] <Amanda> %choose try and be
an above-ground cat again?
L386[16:51:21] <MichiBot> Amanda: 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]
<Forecaster> well shoot
L390[17:03:13]
<Forecaster> the computer I was going to
use as a workshop computer has no VGA output
L391[17:03:24]
<Forecaster> and the only screen I have is
VGA only
L392[17:03:52]
<Forecaster> 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]
<Forecaster> so now the screen has been
banished to the server room
L394[17:05:46]
<Forecaster> 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!
CompanionCube! 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> CompanionCube
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
Forecaster!
L398[17:35:14]
⇨ Joins: Hawk777
(~Hawk777@2607:c000:8292:4400:5bf0:61b1:30f9:266)
L399[18:14:11]
<Forecaster> %skull
L400[18:14:12] <MichiBot> You drink a
porous automato potion (New!). Forecaster's favourite hair suddenly
disintegrates.
L401[18:14:19]
<Forecaster> dangit
L402[18:28:44]
<Forecaster> I've ordered a cheap membrane
keyboard with a touchpad in it for the workshop
L403[18:29:21]
<Forecaster> but I have to wait until
monday to see if I can steal a spare monitor with DVI from
work
L404[18:53:53]
<Forecaster> `To Another World...with Land
Mines!` now there's a title that catches your attention
L405[18:54:26]
<Forecaster> if only to find out how they
managed to stretch that concept into five volumes so far
L406[20:09:31]
<Forecaster> %tonk
L407[20:09:32] <MichiBot> Consarn it!
Forecaster! You beat CompanionCube'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> Amanda:
"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> Amanda: 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]
<Michiyo>
%tonk
L425[23:18:23] <MichiBot> Yikes! Michiyo!
You beat Forecaster'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 CompanionCube!
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> Amanda: I
received a telegram from a long lost relative that only read
"halucinate". Weird.
L441[23:45:05] <Amanda> hrmhrm