<<Prev Next>> Scroll to Bottom
Stuff goes here
L2[00:09:58] <Amanda> @Michiyo here?
L3[00:11:30]

<Michiyo>
Yeah, that's exactly where I was pointing!
L4[00:54:47] * Amanda
pads around in a circle, pawhugs Elfi for a heccen
zzzearflick
L5[00:54:55] <Amanda> Night girls
L6[01:32:45]

<Spider
EveryOS> %sip
L7[01:32:45] <MichiBot> You drink a shining
pearlpeas potion (New!). Spider EveryOS turns into a dryad boy
until someone turns on a lamp and then off again.
L8[02:42:15] <Izzy> Is there any way to
trick the mod into using separate textures per tier of computer
case?
L9[02:45:17]

<Vaur>
%sip
L10[02:45:18] <MichiBot> You drink a
prickly strawberry potion (New!). Vaur gains the proportional
strength of a bear until their next sip of water.
L11[03:14:44] <CompanionCube>
%tonkout
L12[03:14:44] <MichiBot> I'm sorry
CompanionCube, you were not able to beat CompanionCube's
record of 5 hours, 1 minute and 18 seconds this time. 3 hours, 59
minutes and 41 seconds were wasted! Missed by 1 hour, 1 minute and
36 seconds!
L13[03:16:12] <CompanionCube> %drink
L14[03:16:13] <MichiBot> You drink a
crumbling coral potion (New!). The potion was inside CompanionCube
all along.
L15[04:03:42]

<Spider
EveryOS> %sip
L16[04:03:42] <MichiBot> You drink a
permitted nectar potion (New!). Spider EveryOS now has a mullet
until they use "Awesome" in a sentence.
L17[04:20:15]

<Renno> any
of y'all ever used the ``inventory_changed`` event?
L18[04:20:24]

<Renno>
it's for robots, though it was interesting
L19[04:20:46]

<Renno>
thought*
L20[04:23:45]

<Forecaster> No, that's only useful
if the robot is waiting for an item from outside, like another
robot or a hopper etc
L21[04:23:53]

<Forecaster> Which I've never
done
L22[04:24:39]

<Renno> I
can think of some minor usecase like if a user has moved items
around so it doesn't completely desync any inventory
programs
L23[04:25:19]

<Forecaster> That sounds like a valid use
case as well
L24[04:26:04]

<Renno> the
inventory controller and item transfer related things inside of the
robot are kind of lackluster
L25[04:26:10]

<Renno> it
returns true even if it doesn't move the full amount
L26[04:26:35]

<Renno>
it's true if it moved at all, but doesn't return any
information about the quantity moved
L27[04:47:14]

<Forecaster> Just have to reindex the
inventory then I guess
L28[04:50:55]

<Renno>
mmmm I don't think so
L29[04:50:57]

<Renno>
that's quite slow
L30[04:51:05]

<Renno>
there's a way around this
L31[04:52:44] <Izzy> check the source slot
when you move for the count
L32[04:52:59] <Izzy> less than a full
reindex, more than a useful return value
L33[04:53:42]

<Renno>
that's what I'm doing
L34[04:53:48]

<Renno> but
it's a little more complicated that just that
L35[05:01:54] *** Joins: Hawk777
(~Hawk777@2001:569:7cae:7e00:6709:8aa8:4922:120a) Hawk777
L36[06:02:47]

<RedstoneParkour> keep a copy of the
contents of your inventory in memory so you don't even need to
ask the inv controller
L37[06:02:54]

<RedstoneParkour> %sip
L38[06:02:55] <MichiBot> You drink an
nth-dimensional rock potion (New!). RedstoneParkour's hair
glows the color of the sky until they have a nap.
L39[06:14:52] *** Joins: Vexatos
(~Vexatos@p200300EAeF326f00CF764C9e73f24c96.dip0.t-ipconnect.de)
Vexatos
L40[06:14:53] zsh
sets mode: +v on Vexatos
L41[06:35:38] <Corded> >
<RedstoneParkour> keep a copy of the contents of your
inventory in memory so …
L42[06:35:38]

<Renno>
that's what I am already doing
L43[06:36:02]

<Renno> but
you still have to adjust the inventory information when doing those
inventory operations
L44[06:36:18]

<Renno> and
there are a few annoyingly substantial edge cases
L45[07:04:39]

<RedstoneParkour> ah
L46[07:29:00]

<Peachy>
Hey guys, anyone here got any references for OpenSecurity?
Can't seem to find any good examples
L47[07:29:36]

<Forecaster> what are you trying to
do?
L48[07:30:29]

<Peachy>
Just trying to take a look at how I could write programs that use
some of the devices in OS. Like the keypad for example and other
stuff
L49[07:31:30]

<Forecaster> in general for OC, to find
out what methods are available just open the Lua repl and type
`component.<tab>` to find the component name
L50[07:31:58]

<Forecaster> then
`component.the_component.<tab>` to see what
methods/properties it has
L51[07:32:18]

<Forecaster> obviously you don't type
`<tab>` literally, but press the tab key after typing the
period
L52[07:33:10] <Izzy> I think there was a
wiki attached to the GH repo
L53[07:33:15]

<Peachy>
Lol no i get you, yeah I got that but I'm trying to find how
to write the rest of the line for example, with the keypad I see a
function simply saying setShouldBeep, so wondering how functions
could be written out in a program.
L54[07:33:23]

<Forecaster> for events there is a program
in OpenOS that will catch and print all events that occur
L55[07:33:45]

<Forecaster> ...functions are written out
as any other function
L56[07:33:49]

<Forecaster> I don't understand the
question
L57[07:34:18]

<Peachy>
I'm still learrning all of this mind you so kind of just
trying to figure out the bone works of everything
L58[07:34:53]

<Forecaster> maybe you should look through
a basic Lua tutorial to learn the basic syntax first
L59[07:36:02] <Izzy> I don't even see
that on there
L60[07:36:26] <Izzy> would imagine
keypad.setShouldBeep(true) or false as things go
L62[07:38:18] <Izzy> yeah okay so assuming
there's a setShouldBeep and you've proxied the component
as keypad like in the examples, you'd do
keypad.setShouldBeep(true) to enable beeping
L63[07:38:26]

<Peachy>
I'm trying to find any kind of wiki or guide that would show
me how this would be written out. Sort of like how things are
displayed on the OC wiki
L65[07:40:44]

<Peachy>
Not the site I was thinking of but that works for me. Should give
me a good idea idea 🙂 Thank you
L66[07:41:02]

<Peachy> I
can learn what I need from this
L67[07:43:39] <Izzy> Which were you looking
at, out of curiosity?
L68[07:43:44]

<Spider
EveryOS> %sip
L69[07:43:45] <MichiBot> You drink an
nth-dimensional jumbonium potion (New!). Spider EveryOS feels
slightly more agile.
L70[08:23:12]

<RedstoneParkour> %sip
L71[08:23:13] <MichiBot> You drink a
falling ocean potion (New!). RedstoneParkour gains the ability to
see previously unseen bricks until hell celebrates midsummer.
L72[08:23:34]

<RedstoneParkour> %tonk
L73[08:23:35] <MichiBot> Fiddlesticks!
RedstoneParkour! You beat CompanionCube's previous record of
5 hours, 1 minute and 18 seconds (By 7 minutes and 32 seconds)! I
hope you're happy!
L74[08:23:36] <MichiBot>
RedstoneParkour's new record is 5 hours, 8 minutes and 50
seconds! RedstoneParkour also gained 0.00078 (0.00013 x 6) tonk
points for stealing the tonk. Position #5. Need 0.09584 more points
to pass Vaur!
L75[09:15:27]

<Peachy>
jesus lua gets confusing lol
L77[09:19:13]

<Forecaster> it's not that different
from most languages other than a few syntax differences
L78[09:20:08]

<Peachy>
Yeah but i'm still pretty new to all of this so i'm still
trying to get the hang of how things work overall.
L79[09:21:04]

<Peachy>
Like, right now just trying to understand how working with the
keypad can be done. So just trying to write a simple program that
outputs the nuimber of the key pressed so when you hit 1 it will
print 1.
L80[09:22:06]

<Peachy>
End goal would be to use this to add pin number locks to doors and
stuff.
L81[09:22:29]

<Peachy>
same with the biometric scanner and card reader but haven't
gotten to those yet
L82[09:24:19] ⇦
Quits: Hawk777 (~Hawk777@2001:569:7cae:7e00:6709:8aa8:4922:120a)
(Quit: Leaving.)
L83[09:43:16]

<Forecaster> that's not Lua,
that's stuff built on top
L84[10:41:23]

<Peachy>
What do you mean? If I'm writing a program on OC that's
controlling stuff like the keypad, biometric scanner, card reader
and such is that not using lua?
L86[11:02:39] <Amanda> You don't have
to do "lua foo" to run a program named foo, you can just
do "foo"
L87[11:02:51] <Amanda> At least on oc you
dont
L88[11:03:38] <Amanda> For irl computers
you do because your irl computernisnt a lua machine
L89[11:04:42]

<Forecaster> Basically, in OC, Lua files
are executables
L90[11:05:15] <Amanda> What are you
expecting "lua desktop" to do?
L91[11:06:12] <Corded> >
<Forecaster> Basically, in OC, Lua files are
executables
L92[11:06:12]

<ㄖ尺丨ㄖ几>
yeah but without beginning it with lua it doesnt seem to give me
any output
L93[11:06:30]

<Forecaster> what is that file?
L94[11:06:47] <Corded> > <Amanda>
What are you expecting "lua desktop" to do?
L95[11:06:47]

<ㄖ尺丨ㄖ几> run
a lua app called desktop.lua that will launch a desktop enviroment
im making
L96[11:07:40] <Corded> >
<Forecaster> what is that file?
L97[11:07:41]

<ㄖ尺丨ㄖ几>
what one, there is like 4 in that screenshot, desktop.lua
/lib/io.lua /bin/lua.lua /lib/process.lua
L98[11:08:03]

<Forecaster> the one you're trying to
run...
L99[11:08:50]

<ㄖ尺丨ㄖ几>
here is its pastebin but its basically just a desktop enviroment im
trying to make
L100[11:08:51]

<ㄖ尺丨ㄖ几>
L102[11:11:56]

<Forecaster> maybe it's not giving
any output because it thinks it's not supposed to
L103[11:12:16]

<Forecaster> have you tried just putting a
`print("foo")` in it to see if it's running?
L104[11:14:02]

<ㄖ尺丨ㄖ几>
just added the line, still outputs nothing when running
desktop/desktop.lua without the lua command
L105[11:14:33] <Amanda> Your program
won't render the desktop until after the first event is
handled
L106[11:15:07]

<ㄖ尺丨ㄖ几>
well yeah, thats how programs work
L107[11:15:07]

<Forecaster> did you make it print it and
then immidiately exit?
L108[11:15:40]

<ㄖ尺丨ㄖ几> no
i put the print code at the very top, just under all the includes
before the actual code starts
L109[11:15:47] <Amanda> They updated the
pastebin
L111[11:20:42]

<Forecaster> you seem to have some sort of
error in your program
L112[11:21:59]

<ㄖ尺丨ㄖ几>
there are some errors missing though, you have 9, i have 11
L113[11:22:43] <Amanda> That's the
stack traceback, how it got to where the error is reported, not
individual errors
L114[11:23:13] <Amanda> Basically, if A
calls B, and B calls C, and C errors, you'll see A\nB\nC with
line info
L115[11:23:21]

<ㄖ尺丨ㄖ几> i
know
L116[11:24:00]

<Forecaster> I'm using Ocelot which
may have a different version of OpenOS than you do
L117[11:24:03]

<Forecaster> that's irrelevant
L118[11:24:24]

<Forecaster> the program is running, but
it's erroring somewhere after the
`print("foo")`
L119[11:24:32]

<Forecaster> so now you get to debug it
:>
L120[11:24:36] <Amanda> What's
important, is that the error is lining 131 of your program
L121[11:24:41] <Corded> >
<Forecaster> I'm using Ocelot which may have a
different version of Open…
L122[11:24:41]

<ㄖ尺丨ㄖ几>
what is ocelot?
L123[11:24:46] <Amanda> s/is lining/is on
line/
L124[11:24:46] <MichiBot> <Amanda>
What's important, is that the error is on line 131 of your
program
L125[11:24:47] <Corded> >
<Forecaster> so now you get to debug it :>
L126[11:24:47]

<ㄖ尺丨ㄖ几>
oki
L127[11:24:48]

<Forecaster> an Emulator
L128[11:24:52]

<ㄖ尺丨ㄖ几> ah
alr
L129[11:25:39]

<Vaur>
%sip
L130[11:25:39] <MichiBot> You drink a sour
sapphire potion (New!). The bottle turns into a sword.
L131[12:18:05] <Corded> >
<ㄖ尺丨ㄖ几> ah alr
L133[12:18:22]

<RedstoneParkour> perhaps that'll
help
L134[12:19:23]

<RedstoneParkour> also hmm i expected
michibot to send a summary of the pr here...
L135[12:40:17] <CompanionCube>
%tonkout
L136[12:40:18] <MichiBot> I'm sorry
CompanionCube, you were not able to beat RedstoneParkour's
record of 5 hours, 8 minutes and 50 seconds this time. 4 hours, 16
minutes and 42 seconds were wasted! Missed by 52 minutes and 7
seconds!
L137[12:48:14]

<Vaur>
%sip
L138[12:48:15] <MichiBot> You drink a
hexagonal spice potion (New!). The next pie Vaur eats tastes
slightly less good.
L140[14:18:47]

<Peachy> Ok
so I took a break and now i'm back at it. Can anyone give me
an example of code I would use to enable the OpenSecurity Keypad to
simply enter a code that can then trigger an event.
L141[14:18:47]

<Peachy>
L142[14:18:47]

<Peachy> In
this example, I'd like to be able to enter '1234'
and when that's entered the computer tells the Redstone I/O to
emmit a signal, and if it does not receive the correct code it does
nothing of course.
L143[14:20:10]

<Brisingr
Aerowing> There are a number of security programs that use
OpenSecurity on the OC forums
L144[14:20:17]

<Brisingr
Aerowing> Those may be of use.
L145[14:20:48]

<Peachy> Ok
thanks i'll take a look
L146[14:21:40]

<Peachy>
Granted i'd like to try to make my own so i'm trying to
understand the workings of the code. If I find a decent one
i'll likely reverse engineer
L147[14:47:34] *** Joins: gruetzkopf
(~quassel@daemon.gruetzkopf.org) gruetzkopf
L149[15:43:21]

<Forecaster> @Liizzii-chan @Michiyo just
so you know I've made a new Squadron in E:D (because you
can't change the name)
L150[15:43:39]

<Forecaster> if you want to join the new
one in the future it's called `Silver Crown`
L151[15:44:17] *** Joins: gruetzkopf
(~quassel@daemon.gruetzkopf.org) gruetzkopf
L152[15:45:46]

<Forecaster> I wrote a message in-game
where I wrote Silver Wings, but then I discovered that was
taken
L153[15:58:33]

<Forecaster> Because apparently the
squadron search only searches from the start of the name...
L154[15:59:26]

<Forecaster> So if you just search for
"wings" only one comes up that isn't x silver
wings", but if you search for that then there is one
L155[16:24:45]

<Vaur>
%sip
L156[16:24:46] <MichiBot> You drink a
resonating violium potion (New!). Vaur gains a negligible amount of
luck.
L157[16:31:05]

<Vaur>
should I get back into E:D ?
L158[16:31:14]

<Vaur> its
been a while, did it change ?
L159[16:55:25]

<Vaur>
%sip
L160[16:55:26] <MichiBot> You drink a
boiling apple potion (New!). Vaur's bed is suddenly slightly
more comfortable until they find a lamp.
L161[17:15:37] <Corded> > <Vaur>
its been a while, did it change ?
L162[17:15:38]

<Forecaster> How long ago is a
while?
L163[17:19:32] <Amanda> %choose kubejs or
try with just a datapack
L164[17:19:32] <MichiBot> Amanda:
Somebody once told me to roll with "try with just a
datapack"
L165[17:22:22] <Amanda> Hrm
L166[17:22:23] <Amanda> Nah
L167[17:35:07] <Corded> >
<Forecaster> How long ago is a while?
L168[17:35:08]

<Vaur> a
year or two ?
L169[17:40:25]

<Forecaster> I mean, since Odyssey was
released not much has happened until recently
L170[17:50:01] <CompanionCube>
%tonkout
L171[17:50:02] <MichiBot> Hooray!
CompanionCube! You beat RedstoneParkour's previous record of
5 hours, 8 minutes and 50 seconds (By 53 seconds)! I hope
you're happy!
L172[17:50:03] <MichiBot> CompanionCube
has stolen the tonkout! Tonk has been reset! They gained 0.005 tonk
points! plus 0.004 bonus points for consecutive hours! (Reduced to
50% because stealing) Current score: 0.77788. Position #2 => #1
(Overtook Spider EveryOS)
L173[17:50:20] <CompanionCube>
%drink
L174[17:50:20] <MichiBot> You drink a
cloudy spice potion (New!). CompanionCube shrinks by a negligible
amount until they have some bacon.
L175[18:25:39]

<Spider
EveryOS> %sip
L176[18:25:39] <MichiBot> You drink a
hexagonal pear potion (New!). Spider EveryOS gains a negligible
amount of luck.
L177[18:32:03] ⇦
Quits: Thutmose (~Patrick@67.21.186.204) (Read error: Connection
reset by peer)
L178[18:53:08]

<Forecaster> %sip
L179[18:53:08] <MichiBot> You drink a big
sky potion (New!). Forecaster's clothes turn the color of
avesmingo until they have an apple.
L180[18:56:36]

<Vaur>
%sip
L181[18:56:37] <MichiBot> You drink a
sedimented sky potion (New!). Vaur's hair turn the color of
naqahdah until someone looks at them.
L183[19:00:08]

<Vaur> the
error code is telling you what's wrong, you have if that
don't have an end
L184[19:00:34]

<Peachy>
But there is an end, line 48
L185[19:00:45]

<Vaur> do
all you if have an end ?
L186[19:00:52]

<Vaur>
your*
L187[19:02:17]

<Spider
EveryOS> That indentation does *not* do wonders
L188[19:02:17]

<Spider
EveryOS> Every if has to be matched with an end, but it's
hard to tell which if is missing an end because of the way your
code is formatted (and it doesn't help that that's a
screenshot instead of something I can copy/paste into a
prettifier)
L189[19:03:38]

<Spider
EveryOS> Try just adding one more end at the bottom of the file
and see if it works
L190[19:03:43]

<Peachy> As
far as we're aware all the intendations are correctly placed,
my friends very OSD but if there's a way I can export this
program as a file I can drop in here then I can do that
L191[19:04:18] <Corded> > <Spider
EveryOS> Try just adding one more end at the bottom of the file
and …
L192[19:04:18]

<Peachy>
Alright will do
L193[19:04:33]

<Forecaster> There are multiple lines that
have no indentation at all...
L194[19:05:11]

<Forecaster> If the computer has an
internet card you can upload to pastebin
L195[19:05:37]

<Vaur>
after the third if on line 26, you return back to the beginning
without any reason at all, there is no end so that break into
indentation is not justified
L196[19:06:16]

<Vaur> the
indentation is not in fact correctly placed for this reason
L197[19:10:16]

<Peachy>
The indendation on line 26?
L198[19:13:54]

<Peachy>
We're confused here what should be done then?
L199[19:16:02]

<Forecaster> You just need to add an end
where appropriate like the error says
L200[19:16:55]

<Forecaster> Where that is you'll
have to determine as it's your code
L201[19:19:12]

<Peachy> So
no shot used GBT and it fixed shit lol
L202[19:29:58]

<Peachy> Ok
never mind it worked... until it didn't lol
L203[19:30:32]

<Peachy>
The program runs, but as soon as I enter the correct security code
it gives the final computer.beep then crashes and the keypad
won't reset.
L204[19:31:31]

<Forecaster> Where the end is placed
changes how the program will behave...
L206[19:37:13]

<Forecaster> The component.proxy is
returning nil
L207[19:37:37]

<Forecaster> If you can't read red
text just take a screenshot and make it not-red
L208[19:38:24]

<Peachy> I
don't know how to do that
L209[19:39:39]

<Peachy>
Also thank you I realise I didn't swap out the proxy ID from
the old paste of this code.
L210[19:41:02]

<Forecaster> Maybe you should ask
ChatGPT
L211[19:42:51]

<Peachy>
Well to be fair all that really did was find some errors we
weren't noticing honestly lol
L212[19:43:15]

<Peachy>
The program works now however, although it doesn't crash now,
the keypad doesn't clear at the end of the process.
L213[19:43:46]

<Peachy> it
still says Welcome
L214[19:44:15]

<Forecaster> I meant about the colour
thing.
L215[19:44:30]

<Forecaster> That's something it can
do properly probably
L216[19:45:43]

<Peachy> Oh
I see
L217[19:50:42] ⇦
Quits: LeshaInc (LeshaInc@fomalhaut.me) (Ping timeout: 207
seconds)
L218[19:50:57] *** Joins: LeshaInc
(LeshaInc@fomalhaut.me) LeshaInc
L219[19:52:10]

<Vaur>
%tonk
L220[19:52:11] <MichiBot> Jeepers! Vaur!
You beat CompanionCube's previous record of <0 (By 2
hours, 2 minutes and 9 seconds)! I hope you're happy!
L221[19:52:12] <MichiBot> Vaur's new
record is 2 hours, 2 minutes and 9 seconds! Vaur also gained
0.00204 tonk points for stealing the tonk. Position #4. Need
0.04969 more points to pass Forecaster!
L222[19:54:24]

<Peachy>
So, what can I include to clear the keypad from saying Welcome
after the door has closed again.
L223[19:54:24]

<Peachy>
L224[19:54:24]

<Peachy>
door.setOutput(sides.top, 0) is the door closing.
L225[19:54:49]

<Peachy> At
which point the keypad resets
L226[19:55:12]

<Forecaster> Set the text to an empty
string?
L227[19:55:48]

<Peachy> So
just repeat the line above that sets it to welcome by leave it
blank?
L228[19:57:04]

<Peachy>
inputStr = "Welcome"
L229[19:57:04]

<Peachy>
keypad.setDisplay(inputStr)
L230[19:59:16]

<Peachy>
Fixed it by adding simply keypad.setDisplay("")
L231[20:14:23] ⇦
Quits: stephan48 (~stephanj@nemesis.stejau.de) (Ping timeout: 190
seconds)
L233[21:04:51]

<!
LittleTimmy52 !> I may be blind but what would be causing the
function to cancle out the later code?
L234[21:05:43]

<!
LittleTimmy52 !> if it means anything this function is called
by another function thats on loop within a thread and this if
statement chain is in an event handler
L235[21:06:09]

<!
LittleTimmy52 !> idk if theres some weird event and thread
clashing
L236[21:06:29]

<!
LittleTimmy52 !> also theres no errors either its wrapped all
inside a pcall but I print errors if not success
L237[21:08:41] <fingercomp> is there
anything in `/tmp/event.log`?
L238[21:10:23] <fingercomp> if an error
handler crashes with an error, the error message is written there,
while the rest of the program continues running
L239[21:22:50]
⇨ Joins: stephan48
(~stephanj@2a01:4f8:141:4281:216:3eff:fe31:82d9)
L240[21:27:26]

<Spider
EveryOS> %sip
L241[21:27:26] <MichiBot> You drink a
fractured toxictop potion (New!). Spider EveryOS's pockets
suddenly contain 1d10 => 1 Naqahdah colored marbles.
L242[21:43:09] ⇦
Quits: doskel (~doskel@2602:ffc5:200:6000::1) (Ping timeout: 207
seconds)
L243[21:57:02] ⇦
Quits: Vexatos
(~Vexatos@p200300EAeF326f00CF764C9e73f24c96.dip0.t-ipconnect.de)
(Quit: Insert quantum chemistry joke here)
L244[22:28:16] <Corded> >
<fingercomp> is there anything in `/tmp/event.log`?
L245[22:28:17]

<!
LittleTimmy52 !> table index nil on line 90
L247[22:29:31]

<!
LittleTimmy52 !> ok so noww I just got to debug this
table
L248[22:33:07] *** Joins: doskel
(~doskel@2602:ffc5:200:6000::1) doskel
L249[22:55:53]

<!
LittleTimmy52 !> ok now it works ish but for some reason the
toggle call just lags real bad when demanded from the modem
L250[22:56:21]

<!
LittleTimmy52 !> when the toggle function occors due to my
other ffunction that calls it there is no lag just when my event
handler calls it
L251[22:58:03] <fingercomp> uhm,
you're doing `modem.send` and `os.sleep` in there, in a loop
no less; what did you expect?
L252[22:59:03] <Corded> >
<fingercomp> uhm, you're doing `modem.send` and
`os.sleep` in there, in …
L253[22:59:03]

<!
LittleTimmy52 !> well the loop happens from both the event
handler and other parts of the code, so should it not lag
equally?
L254[22:59:06]

<!
LittleTimmy52 !> yet it does not
L255[23:00:35]

<!
LittleTimmy52 !> I have a function check that calls toggle if
the conditions are met, this check is called every few seconds in a
seperate thread, the other part toggle is called in is in the event
listener, since toggle is the same function for both why does it
lag when being called from the event handler instead of the
thread?
L256[23:00:51] <fingercomp> put a `print`
inside that loop and see if it prints anything depending on where
you call the function from
L257[23:01:22]

<!
LittleTimmy52 !> in the loop inside toggle? or loop that keeps
calling check which calls toggle?
L258[23:01:53] <fingercomp> in the loop
that does `modem.send`
L259[23:02:04] <fingercomp> because
that's the laggy part
L260[23:02:13]

<!
LittleTimmy52 !> the while loop does sucessfully end its not
like it crashes, it just takes a hundred more years to finish when
being called from the handler
L261[23:03:15] <fingercomp> I wasn't
talking about whether it was crashing or not
L262[23:03:34] <fingercomp> the question
is if it does even a single iteration
L263[23:04:07]
⇨ Joins: ZephyrMomenr
(~ZephyrMom@216.93.137.248)
L264[23:04:17] <fingercomp> it seems
entirely plausible to me that the conditions preceding the loop
just make that code not run at all
L265[23:04:32] ⇦
Quits: ZephyrMomenr (~ZephyrMom@216.93.137.248) (Client
Quit)
L266[23:06:45]

<!
LittleTimmy52 !> for whatever reason the while loop only needs
to happen once for the thread call but it takes 3 iterations for
the event handler call
L267[23:07:18] <S3> Oh hey it's
OC
L268[23:07:38]

<!
LittleTimmy52 !> lest something is setting recieved to false in
the event handler whilst trying to get a response from the modem im
sending to
L270[23:08:35]

<!
LittleTimmy52 !> i dont spot any issues but a more trained eye
and more brain cells might
L271[23:08:45]

<Spider
EveryOS> %tonkout
L272[23:08:46] <MichiBot> Swell! Spider
EveryOS! You beat Vaur's previous record of 2 hours, 2
minutes and 9 seconds (By 1 hour, 14 minutes and 25 seconds)! I
hope you're happy!
L273[23:08:47] <MichiBot> Spider EveryOS
has stolen the tonkout! Tonk has been reset! They gained 0.003 tonk
points! plus 0.002 bonus points for consecutive hours! (Reduced to
50% because stealing) Current score: 0.78126. Position #2 => #1
(Overtook CompanionCube)
L274[23:08:55]

<Spider
EveryOS> %sip
L275[23:08:56] <MichiBot> You drink a
slimy boneboo potion (New!). Spider EveryOS forgets the location of
a great treasure.
L276[23:09:41]

<!
LittleTimmy52 !> actually recieved is only used for thgat
function
L277[23:10:25]

<!
LittleTimmy52 !> so for whatever reason it fails twice to get a
responce despite the computer literally being connected to the
microcontroller physically via cable
L278[23:12:43]

<!
LittleTimmy52 !> the only one and only thing between the
microcontroller and pc is one relay
L279[23:12:57]

<!
LittleTimmy52 !> * one and only thing between the
microcontroller and pc is one relay
L280[23:13:15] <fingercomp> keep in mind
that when a thread goes to sleep other threads (or event handles)
may resume running
L281[23:13:27] <fingercomp> put more
prints around the code to see what's actually running and in
what order
L282[23:15:44] <fingercomp> I'd also
suggest not mixing event listeners and threads in your code
L283[23:17:33]

<!
LittleTimmy52 !> I see my issue potentially the way I do the
timne out i make it wait the time out and then it is done the time
out is the same for both devices so it just keeps getting called
over and over and somehow its plugging up the computer if you will
so it dosent finish then all at once it just spams the toggle
L284[23:18:11]

<!
LittleTimmy52 !> so I can do the easy thing of lowering the
timne out or the hard way of making some sleep function that can be
cancled if you will
L285[23:18:22]

<!
LittleTimmy52 !> but im going to do the easy way of lowering
the time out
L286[23:20:08]

<!
LittleTimmy52 !> also why would I need to turn off and on my
microcontroller start the program stop the program turn off and on
the microcontroller and restart the program before anything works
after each time I edit the program?
L287[23:21:02]

<!
LittleTimmy52 !> nvm i click to fast so id dosent turn off if
you will, but I still need to reboot the microcontroller before the
program talks to the microcontroller
L288[23:21:46]

<!
LittleTimmy52 !> ok that fixed it
L289[23:34:23] ⇦
Quits: S3 (~hodbogi@72.55.233.131) (Quit: Lost
terminal)