<<Prev Next>> Scroll to Bottom
Stuff goes here
L1[00:09:49] <Amanda> https://matrix.camnet.site/_heisenbridge/media/camnet.site/TNzMyVvqIFsawOJbQLYDVdMH/IpYEtApklc8/screenshot.jpeg
L2[00:09:58] <Amanda> @Michiyo here?
L3[00:11:30] <Mic​hiyo> 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] <Va​ur> %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 Compan​ionCube, you were not able to beat Compan​ionCube'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] <Re​nno> any of y'all ever used the ``inventory_changed`` event?
L18[04:20:24] <Re​nno> it's for robots, though it was interesting
L19[04:20:46] <Re​nno> thought*
L20[04:23:45] <Forec​aster> 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] <Forec​aster> Which I've never done
L22[04:24:39] <Re​nno> 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] <Forec​aster> That sounds like a valid use case as well
L24[04:26:04] <Re​nno> the inventory controller and item transfer related things inside of the robot are kind of lackluster
L25[04:26:10] <Re​nno> it returns true even if it doesn't move the full amount
L26[04:26:35] <Re​nno> it's true if it moved at all, but doesn't return any information about the quantity moved
L27[04:47:14] <Forec​aster> Just have to reindex the inventory then I guess
L28[04:50:55] <Re​nno> mmmm I don't think so
L29[04:50:57] <Re​nno> that's quite slow
L30[04:51:05] <Re​nno> 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] <Re​nno> that's what I'm doing
L34[04:53:48] <Re​nno> 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] <Redston​eParkour> 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] <Redston​eParkour> %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> > <Redston​eParkour> keep a copy of the contents of your inventory in memory so …
L42[06:35:38] <Re​nno> that's what I am already doing
L43[06:36:02] <Re​nno> but you still have to adjust the inventory information when doing those inventory operations
L44[06:36:18] <Re​nno> and there are a few annoyingly substantial edge cases
L45[07:04:39] <Redston​eParkour> ah
L46[07:29:00] <Pea​chy> Hey guys, anyone here got any references for OpenSecurity? Can't seem to find any good examples
L47[07:29:36] <Forec​aster> what are you trying to do?
L48[07:30:29] <Pea​chy> 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] <Forec​aster> 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] <Forec​aster> then `component.the_component.<tab>` to see what methods/properties it has
L51[07:32:18] <Forec​aster> 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] <Pea​chy> 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] <Forec​aster> for events there is a program in OpenOS that will catch and print all events that occur
L55[07:33:45] <Forec​aster> ...functions are written out as any other function
L56[07:33:49] <Forec​aster> I don't understand the question
L57[07:34:18] <Pea​chy> 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] <Forec​aster> 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
L61[07:37:23] <Pea​chy> https://paste.pc-logix.com/idevayodut
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] <Pea​chy> 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
L64[07:38:56] <Izzy> we are looking at the same place yes? https://github.com/PC-Logix/OpenSecurity/wiki/Keypad
L65[07:40:44] <Pea​chy> 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] <Pea​chy> 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] <Redston​eParkour> %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] <Redston​eParkour> %tonk
L73[08:23:35] <MichiBot> Fiddlesticks! Redston​eParkour! You beat Compan​ionCube'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 Va​ur!
L75[09:15:27] <Pea​chy> jesus lua gets confusing lol
L76[09:19:09] <Izzy> https://cdn.shadowkat.net/xmpp/0e289f31-6eb2-450d-92e4-21c8cd88c19b/metatables.jpg
L77[09:19:13] <Forec​aster> it's not that different from most languages other than a few syntax differences
L78[09:20:08] <Pea​chy> 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] <Pea​chy> 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] <Pea​chy> End goal would be to use this to add pin number locks to doors and stuff.
L81[09:22:29] <Pea​chy> 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] <Forec​aster> that's not Lua, that's stuff built on top
L84[10:41:23] <Pea​chy> 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?
L85[10:46:32] <ㄖ尺​丨ㄖ几> i require assistance with an error related to the lua intrepreter on opencomputers (it does this error even with known working programs) https://discordembeds.pc-logix.com/live/1743331592676.png
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] <Forec​aster> 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> > <Forec​aster> 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] <Forec​aster> what is that file?
L94[11:06:47] <Corded> > <Ama​nda> 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> > <Forec​aster> 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] <Forec​aster> 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] <ㄖ尺​丨ㄖ几>
L101[11:08:51] <ㄖ尺​丨ㄖ几> https://pastebin.com/t0RzH0SH
L102[11:11:56] <Forec​aster> maybe it's not giving any output because it thinks it's not supposed to
L103[11:12:16] <Forec​aster> 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] <Forec​aster> 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
L110[11:20:32] <Forec​aster> https://discordembeds.pc-logix.com/live/1743333632107.png
L111[11:20:42] <Forec​aster> 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] <Forec​aster> I'm using Ocelot which may have a different version of OpenOS than you do
L117[11:24:03] <Forec​aster> that's irrelevant
L118[11:24:24] <Forec​aster> the program is running, but it's erroring somewhere after the `print("foo")`
L119[11:24:32] <Forec​aster> 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> > <Forec​aster> 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> > <Forec​aster> so now you get to debug it :>
L126[11:24:47] <ㄖ尺​丨ㄖ几> oki
L127[11:24:48] <Forec​aster> an Emulator
L128[11:24:52] <ㄖ尺​丨ㄖ几> ah alr
L129[11:25:39] <Va​ur> %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
L132[12:18:05] <Redston​eParkour> you can apply https://github.com/MightyPirates/OpenComputers/pull/3767 to get error messages back
L133[12:18:22] <Redston​eParkour> perhaps that'll help
L134[12:19:23] <Redston​eParkour> 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 Compan​ionCube, you were not able to beat Redston​eParkour'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] <Va​ur> %sip
L138[12:48:15] <MichiBot> You drink a hexagonal spice potion (New!). The next pie Vaur eats tastes slightly less good.
L139[14:18:05] ⇦ Quits: gruetzkopf (~quassel@daemon.gruetzkopf.org) (Quit: http://quassel-irc.org - Chat comfortably. Anywhere.)
L140[14:18:47] <Pea​chy> 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] <Pea​chy>
L142[14:18:47] <Pea​chy> 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] <Pea​chy> Ok thanks i'll take a look
L146[14:21:40] <Pea​chy> 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
L148[15:28:41] ⇦ Quits: gruetzkopf (~quassel@daemon.gruetzkopf.org) (Quit: http://quassel-irc.org - Chat comfortably. Anywhere.)
L149[15:43:21] <Forec​aster> @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] <Forec​aster> 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] <Forec​aster> I wrote a message in-game where I wrote Silver Wings, but then I discovered that was taken
L153[15:58:33] <Forec​aster> Because apparently the squadron search only searches from the start of the name...
L154[15:59:26] <Forec​aster> 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] <Va​ur> %sip
L156[16:24:46] <MichiBot> You drink a resonating violium potion (New!). Vaur gains a negligible amount of luck.
L157[16:31:05] <Va​ur> should I get back into E:D ?
L158[16:31:14] <Va​ur> its been a while, did it change ?
L159[16:55:25] <Va​ur> %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> > <Va​ur> its been a while, did it change ?
L162[17:15:38] <Forec​aster> How long ago is a while?
L163[17:19:32] <Amanda> %choose kubejs or try with just a datapack
L164[17:19:32] <MichiBot> Ama​nda: 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> > <Forec​aster> How long ago is a while?
L168[17:35:08] <Va​ur> a year or two ?
L169[17:40:25] <Forec​aster> I mean, since Odyssey was released not much has happened until recently
L170[17:50:01] <CompanionCube> %tonkout
L171[17:50:02] <MichiBot> Hooray! Compan​ionCube! You beat Redston​eParkour's previous record of 5 hours, 8 minutes and 50 seconds (By 53 seconds)! I hope you're happy!
L172[17:50:03] <MichiBot> Compan​ionCube 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] <Forec​aster> %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] <Va​ur> %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.
L182[18:57:04] <Pea​chy> So a friend and I wrote a program for the keypad to control a door via the redstone I/O block however we're having a strange issue. If anyone can see our mistake by all means please do correct us. https://discordembeds.pc-logix.com/live/1743361023996.png https://discordembeds.pc-logix.com/live/1743361024244.png
L183[19:00:08] <Va​ur> the error code is telling you what's wrong, you have if that don't have an end
L184[19:00:34] <Pea​chy> But there is an end, line 48
L185[19:00:45] <Va​ur> do all you if have an end ?
L186[19:00:52] <Va​ur> 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] <Pea​chy> 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] <Pea​chy> Alright will do
L193[19:04:33] <Forec​aster> There are multiple lines that have no indentation at all...
L194[19:05:11] <Forec​aster> If the computer has an internet card you can upload to pastebin
L195[19:05:37] <Va​ur> 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] <Va​ur> the indentation is not in fact correctly placed for this reason
L197[19:10:16] <Pea​chy> The indendation on line 26?
L198[19:13:54] <Pea​chy> We're confused here what should be done then?
L199[19:16:02] <Forec​aster> You just need to add an end where appropriate like the error says
L200[19:16:55] <Forec​aster> Where that is you'll have to determine as it's your code
L201[19:19:12] <Pea​chy> So no shot used GBT and it fixed shit lol
L202[19:29:58] <Pea​chy> Ok never mind it worked... until it didn't lol
L203[19:30:32] <Pea​chy> 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] <Forec​aster> Where the end is placed changes how the program will behave...
L205[19:33:46] <Pea​chy> I don't have the best vision so I have troubles with red coloured text. Just saying incase it might be something obvious and i'm just missing it https://discordembeds.pc-logix.com/live/1743363226669.png
L206[19:37:13] <Forec​aster> The component.proxy is returning nil
L207[19:37:37] <Forec​aster> If you can't read red text just take a screenshot and make it not-red
L208[19:38:24] <Pea​chy> I don't know how to do that
L209[19:39:39] <Pea​chy> Also thank you I realise I didn't swap out the proxy ID from the old paste of this code.
L210[19:41:02] <Forec​aster> Maybe you should ask ChatGPT
L211[19:42:51] <Pea​chy> Well to be fair all that really did was find some errors we weren't noticing honestly lol
L212[19:43:15] <Pea​chy> 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] <Pea​chy> it still says Welcome
L214[19:44:15] <Forec​aster> I meant about the colour thing.
L215[19:44:30] <Forec​aster> That's something it can do properly probably
L216[19:45:43] <Pea​chy> 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] <Va​ur> %tonk
L220[19:52:11] <MichiBot> Jeepers! Va​ur! You beat Compan​ionCube'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 Forec​aster!
L222[19:54:24] <Pea​chy> So, what can I include to clear the keypad from saying Welcome after the door has closed again.
L223[19:54:24] <Pea​chy>
L224[19:54:24] <Pea​chy> door.setOutput(sides.top, 0) is the door closing.
L225[19:54:49] <Pea​chy> At which point the keypad resets
L226[19:55:12] <Forec​aster> Set the text to an empty string?
L227[19:55:48] <Pea​chy> So just repeat the line above that sets it to welcome by leave it blank?
L228[19:57:04] <Pea​chy> inputStr = "Welcome"
L229[19:57:04] <Pea​chy> keypad.setDisplay(inputStr)
L230[19:59:16] <Pea​chy> Fixed it by adding simply keypad.setDisplay("")
L231[20:14:23] ⇦ Quits: stephan48 (~stephanj@nemesis.stejau.de) (Ping timeout: 190 seconds)
L232[21:04:41] <! Little​Timmy52 !> https://paste.pc-logix.com/pasomabuwi
L233[21:04:51] <! Little​Timmy52 !> I may be blind but what would be causing the function to cancle out the later code?
L234[21:05:43] <! Little​Timmy52 !> 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] <! Little​Timmy52 !> idk if theres some weird event and thread clashing
L236[21:06:29] <! Little​Timmy52 !> 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 1d​10 => 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> > <finge​rcomp> is there anything in `/tmp/event.log`?
L245[22:28:17] <! Little​Timmy52 !> table index nil on line 90
L246[22:28:32] <! Little​Timmy52 !> https://discordembeds.pc-logix.com/live/1743373712359.png
L247[22:29:31] <! Little​Timmy52 !> 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] <! Little​Timmy52 !> 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] <! Little​Timmy52 !> 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> > <finge​rcomp> uhm, you're doing `modem.send` and `os.sleep` in there, in …
L253[22:59:03] <! Little​Timmy52 !> 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] <! Little​Timmy52 !> yet it does not
L255[23:00:35] <! Little​Timmy52 !> 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] <! Little​Timmy52 !> 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] <! Little​Timmy52 !> 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] <! Little​Timmy52 !> 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] <! Little​Timmy52 !> lest something is setting recieved to false in the event handler whilst trying to get a response from the modem im sending to
L269[23:08:17] <! Little​Timmy52 !> http://pastie.org/p/6ScZttMx8iQstY2VVsVLGE heres the entire thing
L270[23:08:35] <! Little​Timmy52 !> 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 Va​ur'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] <! Little​Timmy52 !> actually recieved is only used for thgat function
L277[23:10:25] <! Little​Timmy52 !> 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] <! Little​Timmy52 !> the only one and only thing between the microcontroller and pc is one relay
L279[23:12:57] <! Little​Timmy52 !> * 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] <! Little​Timmy52 !> 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] <! Little​Timmy52 !> 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] <! Little​Timmy52 !> but im going to do the easy way of lowering the time out
L286[23:20:08] <! Little​Timmy52 !> 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] <! Little​Timmy52 !> 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] <! Little​Timmy52 !> ok that fixed it
L289[23:34:23] ⇦ Quits: S3 (~hodbogi@72.55.233.131) (Quit: Lost terminal)
<<Prev Next>> Scroll to Top