<<Prev Next>> Scroll to Bottom
Stuff goes here
L1[00:01:02] <AR2​000> Pi is arm. The lua lib might only be for x86
L2[00:03:20] <Cel​eez> ive seen a couple posts of people with the same issue but they dont seem to find a solution so thought id try my luck here
L3[00:10:21] ⇦ Quits: Vexatos (~Vexatos@p200300Eaef1F72740cDC4221489aFceC.dip0.t-ipconnect.de) (Quit: Insert quantum chemistry joke here)
L4[00:11:58] <Kristo​pher38> newer version has natives for arm
L5[00:12:54] <Kristo​pher38> your best bet is switching version
L6[00:13:32] <Kristo​pher38> otherwise you can try compiling natives for 1.7.5 but it's a road of pain
L7[00:16:13] ⇦ Quits: Hawk777 (~Hawk777@2607:c000:8295:8500:baf6:d50f:18c7:5c88) (Quit: Leaving.)
L8[00:18:49] <Cel​eez> if i changed my server version all the players that tried to play would also have to as well right?
L9[00:20:47] <Cel​eez> thats where my problem lies, is that im sure 90% of people use curseforge installer to make it easy to download all the modpacks mod's and it bundles the 1.7.5 version into it. I wont ask to be spoonfed but could you possibly point me in the right direction to learn about compiling my own natives?
L10[00:35:56] <CompanionCube> yep, you only need the arm natives on the server
L11[00:36:22] <CompanionCube> anyway, ever compiled anything else in C?
L12[00:59:22] <Cel​eez> i have not sadly
L13[01:03:01] <Mic​hiyo> %tonkout
L14[01:03:01] <MichiBot> Zoinks! Mic​hiyo! You beat AR2​000's previous record of 3 hours, 20 minutes and 49 seconds (By 2 minutes and 39 seconds)! I hope you're happy!
L15[01:03:02] <MichiBot> Mic​hiyo 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.51583. Position #3 => #2 (Overtook CompanionCube) Need 0.010885 more points to pass Forec​aster!
L16[01:03:07] <Mic​hiyo> \o/
L17[01:03:13] <CompanionCube> oh no
L18[01:15:13] <Kristo​pher38> >Celeez: i have not sadly
L19[01:15:14] <Kristo​pher38> You might want to reconsider. I'm assuming this will be just a server for a few people you know, not a very public one (no point in running that on a pi) so no harm in making them download your version of the modpack with updated OC. If you really insist on compiling natives yourself though, here's the "guide" https://discord.com/channels/125649403162656768/125649403162656768/919225922958295120
L20[01:16:00] <Kristo​pher38> Beware that you will likely get no support if you encounter any problems on the way
L21[01:22:20] <Amanda> %choose be responsible or the factory must grow
L22[01:22:20] <MichiBot> Ama​nda: I have a pamphlet that says never to engage in "be responsible", so you should definitely do it!
L23[01:24:08] <Amanda> hrm. I'll do a half-measure, put away my laptop and take the steamdeck to bed to let the factory grow
L24[01:33:44] <Cel​eez> >Kristopher38: You might want to reconsider. I'm assuming this will be just a server for…
L25[01:33:44] <Cel​eez> Yeah ill most likely have to. My friend group who plays, are not the most tech savy so i doubted that theyd easily be able to manually change versions thats the only reason i was adamant on using the default.
L26[01:34:40] <Cel​eez> But which version has the updated natives? i just tried 1.7.7 and i still get the lua message
L27[01:35:39] <Cel​eez> oh i didnt see the 1.8.0 snapshot ill try that quick
L28[01:45:27] <Cel​eez> that did end up solving it, thanks friends. now time to baby my group through replacing a jar lol
L29[04:05:20] * Amanda lays her head by Elfi, meows about how her factory has grown, and how she totally didn't miss heraelf running out of iron on the starting planet, heccen zzzmrws
L30[04:06:22] <Amanda> %remindme 6h don't forget the phone charger
L31[04:06:22] <MichiBot> I'll tell you "don't forget the phone charger" in 6h at 03/25/2023 10:06:22 AM
L32[04:06:25] <Amanda> Night girls
L33[05:07:18] <Amanda> Welp. I can't sleep
L34[05:07:59] <Amanda> %choose continue growing the factory?
L35[05:07:59] <MichiBot> Ama​nda: After all, why shouldn't you "continue growing the factory"?
L36[05:31:02] <CompanionCube> https://file770.com/judge-decides-against-internet-archive/
L37[05:31:08] <CompanionCube> Izzy: ^
L38[05:36:03] <Izzy> yikes
L39[05:41:32] * CompanionCube should make a note not to buy their shit when possible as per principle.
L40[05:42:06] <CompanionCube> or at least anything the don't sell anymore
L41[05:59:06] <ThePiGuy24> %tonk
L42[05:59:06] <MichiBot> Darn it! ThePi​Guy24! You beat Mic​hiyo's previous record of <0 (By 4 hours, 56 minutes and 5 seconds)! I hope you're happy!
L43[05:59:07] <MichiBot> ThePiGuy24's new record is 4 hours, 56 minutes and 5 seconds! ThePiGuy24 also gained 0.00493 tonk points for stealing the tonk. Position #6. Need 0.083544 more points to pass Redston​eParkour!
L44[07:37:15] <Forec​aster> %sip
L45[07:37:15] <MichiBot> You drink a muddy strawberry potion (New!). Forecaster turns into a transparent bird girl until the next time they hug someone.
L46[08:30:23] <Va​ur> %sip
L47[08:30:23] <MichiBot> You drink a stirring diamond potion (New!). Vaur feels slightly more agile.
L48[09:04:10] ⇨ Joins: Vexatos (~Vexatos@p200300eAef1f721908674A1011f91a6A.dip0.t-ipconnect.de)
L49[09:04:10] zsh sets mode: +v on Vexatos
L50[09:25:53] <Izzy> CompanionCube: https://social.shadowkat.net/media/3275e16d7243123dfa56dd92aacb26ed7d66cb076a4cce596c888b7eeacebb75.png
L51[09:34:43] <CompanionCube> ayy, a decrease or even end in nsw shitfuckery?
L52[09:34:45] <Va​ur> %sip
L53[09:34:45] <MichiBot> You drink an oxidised octiron potion (New!). Vaur turns into a platinum spaghetti girl until they steal a shoe.
L54[09:36:19] <Forec​aster> shiny spaghetti
L55[09:52:48] <Izzy> CompanionCube: looks like /o/ probably going to be a full-on labor majority
L56[10:06:22] <MichiBot> Amanda REMINDER: don't forget the phone charger
L57[10:08:28] <CompanionCube> how are nsw labor on the shit-lite/not-shit scale?
L58[10:27:03] <Izzy> CompanionCube: well they got rid of the literal crime lords a decade ago, and they want to stop all the ancient native forest logging
L59[10:27:10] <Izzy> so even if they do nothing but that I'm calling it a win
L60[10:56:03] <ThePi​Guy24> my least favourite error due to how incredibly unhelpful it is https://tinyurl.com/2hfh3zvt
L61[11:03:55] <Forec​aster> myep
L62[11:04:23] <Forec​aster> I just had to track one of those down in an eeprom environment
L63[11:04:45] <Forec​aster> at least in that you can see a line number
L64[11:05:17] ⇨ Joins: Victor_sueca (~Victor_su@190.pool90-165-120.dynamic.orange.es)
L65[11:08:39] <Forec​aster> Getting a lot of these https://tinyurl.com/2ghrz35c
L66[11:08:41] <Forec​aster> which is even less useful
L67[11:12:16] <ThePi​Guy24> well atleast you know where that is just from what it is
L68[11:12:41] <Forec​aster> really?
L69[11:12:58] <Forec​aster> it tells me that the boot script reached the end
L70[11:13:02] <ThePi​Guy24> yes, it means the execution reached the end without computer.shutdown()
L71[11:13:03] <ThePi​Guy24> yes
L72[11:13:04] <Forec​aster> but it doesn't tell you anything about why
L73[11:13:31] <Forec​aster> it should never reach the end
L74[11:13:52] <Forec​aster> if it does then there's an error somewhere, but there's absolutely no information about the error
L75[11:28:00] <SquidDev> %tonk
L76[11:28:00] <MichiBot> Holy eye of newt Batman! Squi​dDev! You beat ThePi​Guy24's previous record of 4 hours, 56 minutes and 5 seconds (By 32 minutes and 49 seconds)! I hope you're happy!
L77[11:28:01] <MichiBot> SquidDev's new record is 5 hours, 28 minutes and 54 seconds! SquidDev also gained 0.00275 (0.00055 x 5) tonk points for stealing the tonk. Position #10. Need 0.00623 more points to pass TechT​astic!
L78[11:34:32] <Forec​aster> okay, finally back in a decent error-free state, almost...
L79[12:18:00] <Amanda> Forecaster: why is fairly obvious, whatever you're doing for a main loop isn't main looping, add error logging or propagation to any errors you're catching in the main loop
L80[12:18:49] * Amanda meows hello to elfi, asks her that she go easy on her in the gameshow she's going to be in the audience for her. It's not fair that the game master keeps changing the booth layout then making fun of me for getting lost!
L81[12:20:11] <Amanda> Also the damage numbers patch to reality 2.0 really is disheartening when you attack a protected player due to the gameshow rules
L82[13:32:01] <Amanda> %choose get laptop out or let it sleep
L83[13:32:02] <MichiBot> Ama​nda: Eeny, meeny, miny, get laptop out.
L84[13:32:07] <Amanda> Hrm
L85[13:32:23] <Amanda> No, imma expand the factory instead
L86[13:34:02] <Pea​chy> hey guys. Simple request, i'm attempting to have OC recognise a redstone input from a redstone I/O then use that input to trigger another file to run. Could someone give me an example of how I would write that into a file?
L87[13:43:54] ⇨ Joins: feldim2425_ (~feldim242@2001:871:25a:803d:ff29:6ccb:7a2f:9f2f)
L88[13:45:03] ⇦ Quits: feldim2425 (~feldim242@178-191-183-216.adsl.highway.telekom.at) (Ping timeout: 186 seconds)
L89[13:45:04] *** feldim2425_ is now known as feldim2425
L90[13:46:29] <AR2​000> >Peachy: hey guys. Simple request, i'm attempting to have OC recognise a redstone…
L91[13:46:29] <AR2​000> Read the wiki.
L92[13:46:30] <AR2​000> Use event and shell
L93[13:48:38] <Pea​chy> Ok so i'm really new to this lol i'm struggling to understand parts of the wiki. If someone could give me a code example that'd be greatly appreciated
L94[13:50:52] <AR2​000> >Peachy: Ok so i'm really new to this lol i'm struggling to understand parts of th…
L95[13:50:53] <AR2​000> I can help you understand the wiki, but I think giving you the code right away won't help you understand
L96[13:51:37] <AR2​000> Use `event.listen` and `shell.execute` to do what you are trying to do
L97[13:53:16] <AR2​000> On the wiki `fun(arg1 [,arg2])` mean the function fun take 1 required argument and 1 optional one. (`[]`) mean optional in most if not all documentation
L98[13:57:34] <Pea​chy> You would honestly be surprised. I've learned what little I do know from looking at other people's examples of their own code. But I would honestly appreciate any help I can get at this point as I am struggling to understand certain aspects.
L99[13:57:35] <Pea​chy> I've seen event..isten somewhere before a couple of times but don't fully understand it, I get that it's a key part of doing what i'm trying to do so thank you but how would that be written in a line?
L100[13:57:48] <Pea​chy> Also, could you further explain that second part please?
L101[14:08:03] <AR2​000> Message contained 4 or more newlines and was pastebined https://paste.pc-logix.com/ibopiweyet
L102[14:08:03] <Forec​aster> Ask specific questions
L103[14:13:24] <AR2​000> >Peachy: You would honestly be surprised. I've learned what little I do know from…
L104[14:13:24] <AR2​000> Message contained 4 or more newlines and was pastebined https://paste.pc-logix.com/anocurerem
L105[14:14:06] <AR2​000> You program closing/exiting will not unregister event listeners. Be careful with that
L106[14:17:04] <Forec​aster> If you're having trouble reading the wiki then that's what you should be asking about
L107[14:17:23] <Forec​aster> Instead of asking someone to do the work for you
L108[14:17:53] <Forec​aster> Because next time you're just going to run into the same problem again
L109[14:20:34] <Pea​chy> I'm not asking anyone to do the work for me I just asked for an example to help me better understand how it's supposed to be written when in use, which is what they've done.
L110[14:20:34] <Pea​chy> That being said, thank you I think I can try to understand this a little a bit easier now
L111[14:21:15] <AR2​000> >Peachy: I'm not asking anyone to do the work for me I just asked for an example t…
L112[14:21:15] <AR2​000> Your idea is so simple a example would have been the hole program
L113[14:21:34] <AR2​000> I think it can be done in 5-10 lines
L114[14:29:25] <Pea​chy> Well i'm really new to all of this
L115[14:31:54] <AR2​000> >Peachy: Well i'm really new to all of this
L116[14:31:54] <AR2​000> everyone was at some point
L117[14:40:48] <Forec​aster> You asked someone to interpret the wiki for you, rather than asking for how to interpret the wiki yourself
L118[14:42:31] ⇦ Quits: Amanda (~m-yt727s@2600:4040:70f3:6601:7b9d:a312:fdc2:5c04) (Ping timeout: 190 seconds)
L119[14:45:49] <Pea​chy> >Forecaster: You asked someone to interpret the wiki for you, rather than asking for h…
L120[14:45:49] <Pea​chy> Man I have to be honest with you I don't know what you're on about in the slightest I was just asking for help understanding it... starting to feel like you have some kind of problem with me asking for help or something.
L121[15:09:14] <Pea​chy> Message contained 4 or more newlines and was pastebined https://paste.pc-logix.com/ayixupipuj
L122[15:09:45] <Pea​chy> if this is correct, should this then allow any redstone signal input then trigger test2 to run whenever the computer receieves that input?
L123[15:15:42] <AR2​000> nop
L124[15:16:01] <AR2​000> >Peachy: Ok so I think I understand this now. Can someone correct me if there's s…
L125[15:16:01] <AR2​000> your args to `event.listen` are wrong
L126[15:16:47] <AR2​000> Read the wiki.
L127[15:16:47] <AR2​000> `fun(var1: string)` The function take one param of type string
L128[15:17:07] <AR2​000> https://ocdoc.cil.li/api:event
L129[15:17:24] <AR2​000> The idea is almost correct
L130[15:18:06] <AR2​000> little lua thing : the function `loadfile(path:string)` return a function that when called, run the file given as a argument
L131[15:22:24] <Pea​chy> Okay, i'm a little lost where i've gone wrong honestly lol
L132[15:22:27] <Pea​chy> sorry
L133[15:22:39] <Pea​chy> i know teaching newbies is frustrating
L134[15:22:48] <Va​ur> %sip
L135[15:22:49] <MichiBot> You drink a silent electrum potion (New!). Vaur's pockets suddenly contain 1d​10 => 8 Strawberry colored marbles.
L136[15:23:02] <AR2​000> >Peachy: i know teaching newbies is frustrating
L137[15:23:02] <AR2​000> You are not my first rodeo. At least you know what a variable is
L138[15:23:46] <Pea​chy> Yeah lol like I said before i've learned a bit just from messing around with other examples and seeing what works and of course doing a bit of my own research
L139[15:23:49] <AR2​000> >Peachy: Okay, i'm a little lost where i've gone wrong honestly lol
L140[15:23:49] <AR2​000> `event.listen(red1, test2)`
L141[15:23:49] <AR2​000> `red1` is not the correct signal name and must be a string (or a variable of type string)
L142[15:23:50] <AR2​000> `test2` must be a function
L143[15:27:52] <Pea​chy> Ok, so then again I think the wiki is confusing me a little. I think this part where it explains the callback is where i'm getting mixed up mabe.
L144[15:27:52] <Pea​chy> callback - the function to call if this signal is received. The function will receive the event name it was registered for as first parameter, then all remaining parameters as defined by the signal that caused the event.
L145[15:28:49] <Pea​chy> Also, could you maybe explain strings a little for me? if possible give an example on how a tring would look in a situation like this?
L146[15:28:55] <SoBi​nary> callback is just the name of an argument
L147[15:29:04] <SoBi​nary> it's a string
L148[15:29:08] <SoBi​nary> because names are strings
L149[15:29:22] <Pea​chy> Right ok
L150[15:30:01] <SoBi​nary> wait i might have confused you
L151[15:30:01] <SoBi​nary> it's a string, because the thing you're supposed to input is the name of the function you call, which is a string
L152[15:31:25] <Pea​chy> Ok I think I understand
L153[15:31:50] <AR2​000> **nooooo**
L154[15:31:50] <AR2​000> Callback is not a string. It's a function
L155[15:32:24] <AR2​000> Code Block pastebined https://paste.pc-logix.com/gehomuhibi
L156[15:33:47] <AR2​000> but yes, callback is the name of the argument. Not a string
L157[15:34:02] <SoBi​nary> Actually i think i'll just shut up
L158[15:38:52] <Pea​chy> >AR2000: ```lua
L159[15:38:52] <Pea​chy> local function myfunction(eName) end
L160[15:38:52] <Pea​chy> event.listen("modem_message",…
L161[15:38:52] <Pea​chy> Ok ok after seeing that example there I think I get it now. So, again correct me if I'm wrong, but if I use the component name in placement of "modem_message" and "test2" in placement of "myfunction" would this work? Example below.
L162[15:38:53] <Pea​chy> event.listen("redstone",test2)
L163[15:38:53] <Pea​chy> Or does the event name need to be a function of that component e-g "redstone.getInput"?
L164[15:39:49] <Pea​chy> >SoBinary: Actually i think i'll just shut up
L165[15:39:50] <Pea​chy> lol you did confuse me a bit but don't worry i appreciate the effort o help
L166[15:40:11] <AR2​000> run `dmseg` to get the eeent name
L167[15:40:36] <AR2​000> but `test2` is still wrong, unless `local test2 = loadfile("test2.lua")`
L168[15:44:00] <Pea​chy> Ohhhhh okay here we go now i'm getting somewhere. Ok gimme a sec let me try that
L169[15:46:23] <Pea​chy> >AR2000: run `dmseg` to get the eeent name
L170[15:46:24] <Pea​chy> Do I run this in the shell?
L171[15:48:59] <AR2​000> yep
L172[15:52:41] <Pea​chy> is it just dmseg on it's own or are there other arguments I need to put in because it's not working
L173[16:02:09] <Pea​chy> >AR2000: run `dmseg` to get the eeent name
L174[16:02:09] <Pea​chy> is it just dmseg on it's own or are there other arguments I need to put in because it's not working
L175[16:02:59] <Mic​hiyo> dmesg
L176[16:07:59] <Pea​chy> Ah thank you
L177[16:20:58] ⇨ Joins: Hawk777 (~Hawk777@2607:c000:8295:8500:baf6:d50f:18c7:5c88)
L178[17:11:06] <SoBi​nary> so
L179[17:21:43] <Mic​hiyo> no quotes on the function name, you're not passing the name of the function as a string, you're passing a reference to that function.
L180[17:24:59] ⇨ Joins: baller (~baller@pop.92-184-98-110.mobile.abo.orange.fr)
L181[17:25:08] ⇦ Quits: baller (~baller@pop.92-184-98-110.mobile.abo.orange.fr) (Client Quit)
L182[17:38:25] <SoBi​nary> >Michiyo: no quotes on the function name, you're not passing the name of the function…
L183[17:38:25] <SoBi​nary> so it's event.listen("rodDepleted1", replaceRod)?
L184[17:38:25] <SoBi​nary> will it still use "rodDepleted" and 1 as arguments?
L185[17:39:11] <Mic​hiyo> event.listen will listen for an event called "rodDepleted1", and call the function "replaceRod" with all of the arguments that "rodDepeleted1" includes.
L186[17:42:20] <SoBi​nary> i am confusion
L187[17:42:21] <SoBi​nary> what does "parameter" mean in this case, then?
L188[17:43:53] <Mic​hiyo> Scroll to the bottom of the events page on the wiki. you'll see example code.
L189[17:44:00] <SquidDev> %tonkout
L190[17:44:00] <MichiBot> Aw jeez! Squi​dDev! You beat your own previous record of 5 hours, 28 minutes and 54 seconds (By 47 minutes and 5 seconds)! I hope you're happy!
L191[17:44:01] <MichiBot> Squi​dDev has tonked out! Tonk has been reset! They gained 0.006 tonk points! plus 0.01 bonus points for consecutive hours! Current score: 0.0519, Position #10 => #9 (Overtook TechTastic) Need 0.004254 more points to pass S​ky!
L192[17:44:24] <Mic​hiyo> `event.listen("key_up", handleEvent)` which calls `function handleEvent(eventID, ...) etc`
L193[17:45:59] <Mic​hiyo> This listens for "key_up", calls handleEvent, handleEvent has ("eventID", ...), which means it grabs the first thing sent as the eventID, and then sets everything else into "..." https://www.lua.org/pil/5.2.html
L194[17:54:53] <SoBi​nary> alright.
L195[18:04:32] <Redston​eParkour> %tonk
L196[18:04:33] <MichiBot> Awesome! Redston​eParkour! You beat Squi​dDev's previous record of <0 (By 20 minutes and 32 seconds)! I hope you're happy!
L197[18:04:34] <MichiBot> RedstoneParkour's new record is 20 minutes and 32 seconds! RedstoneParkour also gained 0.00034 tonk points for stealing the tonk. Position #5. Need 0.02895 more points to pass Va​ur!
L198[18:12:08] <Pea​chy> Message contained 4 or more newlines and was pastebined https://paste.pc-logix.com/ewamuvufac
L199[18:13:16] <AR2​000> >Peachy: okay so, i took a little break and came back to it. I wrote this little …
L200[18:13:17] <AR2​000> who to use it : `event.listen(eventName:string,callback:function)`
L201[18:13:17] <AR2​000> What you wrote : `event.listen(eventName:nil,callback:function)`
L202[18:13:32] <AR2​000> and what error ?
L203[18:13:50] <AR2​000> ||sry was busy coop borederland2||
L204[18:14:32] <Pea​chy> so what's supposed to go where nill is?
L205[18:14:36] <AR2​000> also :
L206[18:14:36] <AR2​000> \`\`\Code Block pastebined https://paste.pc-logix.com/migodigopu\`\`
L207[18:14:37] <AR2​000> Code Block pastebined https://paste.pc-logix.com/ufowizemiq
L208[18:14:40] <Pea​chy> and sorry i forgot to post the screenshot one second
L209[18:15:04] <AR2​000> >Peachy: so what's supposed to go where nill is?
L210[18:15:05] <AR2​000> a string. But you gave a undefined variable
L211[18:15:40] <Pea​chy> I don't think i understand strings the way I'm supposed to then lol
L212[18:16:07] <Mic​hiyo> To make this clear. a String is one of two things. It is either `"this"` or `varName = "this"`
L213[18:16:18] <Mic​hiyo> notice, the quotes.
L214[18:16:18] ⇦ Quits: Hawk777 (~Hawk777@2607:c000:8295:8500:baf6:d50f:18c7:5c88) (Quit: Leaving.)
L215[18:16:31] <Mic​hiyo> if you try to use `this` lua tries to find a variable named `this`
L216[18:16:44] <Mic​hiyo> `"this"` is a string, `this` is a variable.
L217[18:17:05] <Mic​hiyo> (or a reference to a function, or a number of other things... but let's keep this simple"
L218[18:17:20] <AR2​000> a variable can contain a string, but is not one
L219[18:17:24] <Mic​hiyo> ^
L220[18:17:44] <AR2​000> `print(hello)` is not the same as `print("hello")`
L221[18:18:01] <Mic​hiyo> `event.listen(redstone_changed, test2)` tries to find a variable called "redstone_changed", and since you don't have a variable named that it is nil, and it errors out.
L222[18:18:37] <AR2​000> it errors out because the first argument can't be nil.
L223[18:19:19] <Pea​chy> Oh okay so how would I know what the right veriable to put in is after redstone_changed?
L224[18:19:41] <AR2​000> >Peachy: Oh okay so how would I know what the right veriable to put in is after re…
L225[18:19:41] <AR2​000> noooooo
L226[18:19:44] <AR2​000> that's not your problem
L227[18:20:02] <Pea​chy> oh?
L228[18:20:09] <AR2​000> your problem is that you put a empty/undefined variable as the first argument. ie : `redsone_change`
L229[18:20:22] <AR2​000> in a way, you didn't give the first argument
L230[18:21:04] <AR2​000> Code Block pastebined https://paste.pc-logix.com/eyegijacuh
L231[18:21:14] <AR2​000> just look at the colors (it's your code)
L232[18:22:16] <AR2​000> with types in comments
L233[18:22:16] <AR2​000> Code Block pastebined https://paste.pc-logix.com/ayuvosonev
L234[18:23:34] <AR2​000> lol : I found a other error, That I would have seen if you sent the error
L235[18:23:34] <AR2​000> `localfile` doesn't exists. It's `loadfile`
L236[18:24:04] <Pea​chy> Oh ok my bad
L237[18:24:29] <SoBi​nary> hey if i want to check for something all the time, should i use a while loop that's always true?
L238[18:24:42] <SoBi​nary> or is there something for that specifically?
L239[18:25:15] <Pea​chy> I'm not sure I understand what i'm supposed to do with the first veriable though as there aren't any for that event that i know of. would it just be () or something?
L240[18:26:04] <AR2​000> >SoBinary: hey if i want to check for something all the time, should i use a while l…
L241[18:26:04] <AR2​000> Yes and no :
L242[18:26:04] <AR2​000> Yes it would work, but without `os.sleep` in the loop it will raise a `too long without yeilding error`
L243[18:26:05] <AR2​000> If you know what you want to check raise a event, listen for it instead. Event listener are handled in the background by the os/event lib
L244[18:26:33] <SoBi​nary> it doesn't create an event by itself
L245[18:26:36] <AR2​000> >Peachy: I'm not sure I understand what i'm supposed to do with the first veriable…
L246[18:26:36] <AR2​000> The first variable is the event name you want to listen to
L247[18:27:06] <SoBi​nary> i'm using the loop to push an event, actually
L248[18:27:07] <SoBi​nary> i'll add an os.sleep in there, though
L249[18:27:08] <AR2​000> >SoBinary: it doesn't create an event by itself
L250[18:27:08] <AR2​000> the a loop, or a `event.timer` it's like `event.listen` in some way, but triggered by a delay
L251[18:29:27] <AR2​000> @Peachy : `event.listen` take 2 arguments : the name of the event you want to listen to as a string, and a function that will be called when the event happen
L252[18:30:06] <Mic​hiyo> If you don't know the event name, dmesg and watch for it. If there is no event name, then event.listen isn't really going to be helpful...
L253[18:30:29] <AR2​000> >Michiyo: If you don't know the event name, dmesg and watch for it. If there is no…
L254[18:30:29] <AR2​000> there is no such thing as a event without a name
L255[18:30:32] <Pea​chy> oh wait i'm dumb I think I understand it now
L256[18:30:44] <SoBi​nary> oh, so i use event.timer(n, function) to call for function every n seconds?
L257[18:30:51] <Mic​hiyo> >AR2000: there is no such thing as a event without a name
L258[18:30:51] <Mic​hiyo> I meant there is no event.
L259[18:30:54] <Pea​chy> I have to go for now though so when i get back i'll change my code and try it then check back with you guys
L260[18:31:02] <Pea​chy> really appreciate the help so far
L261[18:31:05] <AR2​000> >SoBinary: oh, so i use event.timer(n, function) to call for function every n second…
L262[18:31:06] <AR2​000> in n second. For every n second add a 3rd argument
L263[18:31:12] <Mic​hiyo> "if you don't see the event name in dmesg, then there is no event"
L264[18:31:24] <AR2​000> it the number or time to trigger. Can be `math.huge` for infinit
L265[18:32:04] <SoBi​nary> ah
L266[18:32:06] <AR2​000> https://tinyurl.com/2opemho4
L267[18:32:26] <AR2​000> green : event name
L268[18:32:26] <AR2​000> yellow : component who raised the event (usually
L269[18:32:26] <AR2​000> white : the rest
L270[18:34:54] <AR2​000> >AR2000:
L271[18:34:55] <AR2​000> I know no one care, but the payload in my modem message is a UDP packet (inside a IPv4 one)
L272[18:35:19] <AR2​000> and rn it's broken, but I know why
L273[19:12:11] <mo​ldy> why don't while true loops seem to work? I'm tring to write a simple program to reagulete a nuclear craft reactor and I do this by running a while true loop, pulling and event, and then checking the contition, but when i run this, the program just returns and seemingly ignores my loop?
L274[19:20:26] <Mic​hiyo> crystal ball is in the shop, will need to see exactly what you're doing.
L275[19:25:18] <mo​ldy> Code Block pastebined https://paste.pc-logix.com/bayulavaze
L276[19:25:18] <mo​ldy> This is the code i used
L277[19:25:50] <mo​ldy> I hear the first beep, then nouthing and the code returns
L278[19:27:18] <Mic​hiyo> is `ture` a typo in the code you posted here?
L279[19:28:35] <mo​ldy> oh... I'm insanly stupid... I wrote that, tired re writeing it and made the same mistake...
L280[19:28:40] <mo​ldy> it works now
L281[19:28:56] <Mic​hiyo> Lysdexia is nuf.
L282[19:29:44] <mo​ldy> i'm just not very good at spelling
L283[19:31:37] <CompanionCube> %tonk
L284[19:31:37] <MichiBot> Blast! Compan​ionCube! You beat Redston​eParkour's previous record of 20 minutes and 32 seconds (By 1 hour, 6 minutes and 32 seconds)! I hope you're happy!
L285[19:31:38] <MichiBot> CompanionCube's new record is 1 hour, 27 minutes and 4 seconds! CompanionCube also gained 0.00111 tonk points for stealing the tonk. Position #3. Need 0.002445 more points to pass Mic​hiyo!
L286[19:32:06] <CompanionCube> dammit
L287[20:07:28] ⇨ Joins: ben_mkiv (~ben_mkiv@200116b800754600fe3497fffea975f2.dip.versatel-1u1.de)
L288[20:31:53] ⇨ Joins: Amanda (~m-yt727s@2600:4040:70f3:6601:42e1:e013:e14b:9a04)
L289[20:37:06] <Pea​chy> Ok so i'm back. I tried what I thought i was doing wrong and changed it but it did not work.
L290[20:39:03] <Pea​chy> Can someone just show me what i'm supposed to do please? it's probably something really obvious and i'm just not getting it
L291[20:41:12] <SoBi​nary> >Peachy: okay so, i took a little break and came back to it. I wrote this little bi…
L292[20:41:12] <SoBi​nary> have you fixed the localfile part
L293[20:41:23] <SoBi​nary> wait why did it reply
L294[20:41:26] <SoBi​nary> uhhh
L295[20:44:36] <Pea​chy> Oh shoot no hold on
L296[20:45:21] <Pea​chy> wait nvm i did change it to load
L297[20:46:35] <Pea​chy> https://tinyurl.com/2otvalrk
L298[20:46:37] <Pea​chy> this is the file so far
L299[20:48:27] <SoBi​nary> i Think it should be "redstone_changed"
L300[20:48:53] <SoBi​nary> in quotes, i mean
L301[20:48:53] <SoBi​nary> try that?
L302[20:54:56] <Mic​hiyo> That was literally the exact thing that we told you to change before.
L303[20:55:03] <Pea​chy> https://tinyurl.com/2n9pakwb
L304[20:55:17] <Pea​chy> this is what i got after saving the change and running it
L305[20:55:26] <Mic​hiyo> event.listen wants a string for its first argument `"this_is_a_string"`
L306[20:55:37] <Mic​hiyo> You've not required event.
L307[20:55:54] <Mic​hiyo> you have to require stuff like event, component, etc
L308[20:56:05] <Pea​chy> so local event = require("event")?
L309[20:57:39] <SoBi​nary> yes
L310[20:58:53] <Pea​chy> It worked!!!
L311[20:59:01] <Pea​chy> Oh finally ok now i'm getting the hang of this
L312[21:19:54] <Pea​chy> Okay so now i've got that figured out, is there a way to have it so it only triggers when it recieves a signal of a certain strength?
L313[21:22:23] <Mic​hiyo> You'll have to handle that in whatever function you're telling the listener to call.
L314[21:22:30] <Forec​aster> Again, the wiki
L315[21:22:36] <Forec​aster> plenty of information there
L316[22:02:18] <Pea​chy> I can't seem to find what i'm looking for in the wiki
L317[22:05:40] <Pea​chy> If anyone can send me a link to a part of the wiki that can help me figure out what i'm trying to do i'd greatly appreciate it
L318[22:09:08] <Forec​aster> The events page
L319[22:10:35] <Amanda> %choose laptopnaptime?
L320[22:10:35] <MichiBot> Ama​nda: Are you sure? Well alright.
L321[22:11:00] <Mic​hiyo> %tonk
L322[22:11:01] <MichiBot> Dagnammit! Mic​hiyo! You beat Compan​ionCube's previous record of 1 hour, 27 minutes and 4 seconds (By 1 hour, 12 minutes and 18 seconds)! I hope you're happy!
L323[22:11:02] <MichiBot> Michiyo's new record is 2 hours, 39 minutes and 23 seconds! Michiyo also gained 0.00242 (0.00121 x 2) tonk points for stealing the tonk. Position #2. Need 0.008465 more points to pass Forec​aster!
L324[22:11:47] <Forec​aster> no, stop that
L325[22:12:43] <Mic​hiyo> I'm coming for you Fore :D
L326[22:12:52] <Forec​aster> D:
L327[22:21:22] ⇦ Quits: feldim2425 (~feldim242@2001:871:25a:803d:ff29:6ccb:7a2f:9f2f) (Quit: ZNC 1.8.2+deb2build5 - https://znc.in)
L328[22:22:19] ⇨ Joins: feldim2425 (~feldim242@178-191-244-225.adsl.highway.telekom.at)
L329[22:25:25] <Forec​aster> sigh... https://tinyurl.com/2ovz2z5x
L330[22:25:58] <AR2​000> you forgot the epilepsy warnin
L331[22:31:53] <Mic​hiyo> I really hate that this database I'm working in uses NULL for 0
L332[22:32:06] <Forec​aster> wut
L333[22:32:37] <Forec​aster> why would anyone do that...
L334[22:32:39] <Mic​hiyo> Options are "NULL, 1, 2, 3"
L335[22:32:56] <Mic​hiyo> NULL implies the 1st state.
L336[22:33:17] <Forec​aster> ...
L337[22:33:31] <Forec​aster> also I managed to fix my flashing issue
L338[22:33:42] <Mic​hiyo> I'm perfectly fine with 0 indexed arrays, sure.... but why NULL?
L339[22:33:56] <Forec​aster> had to restore the previous buffer in my debug print function
L340[22:34:22] <Forec​aster> also, it seems setActiveBuffer returns the old buffer index similar to setBackground/setForeground
L341[22:34:42] <Forec​aster> but the wiki doesn't say this, it just says it returns a number and nil on invalid index
L342[22:34:55] <Mic​hiyo> Time to update the wiki!
L343[22:35:01] * Amanda secretly adds more paw prints to Elfi's wing patterns
L344[22:35:25] <Forec​aster> I can't even access the wiki on this computer anymore
L345[22:35:34] <Forec​aster> I have to remote into my work computer to read it
L346[22:35:46] <Forec​aster> here it just gives me a white page now
L347[22:36:17] <Forec​aster> probably due to accessing the internet through my phone
L348[22:47:19] <Forec​aster> Also the stupid `bool over modem message wont work when number works perfectly` thing still bugs me...
L349[22:52:25] <Forec​aster> oh, now it's working again
L350[22:52:50] <Forec​aster> I guess something was broken before and something I changed recently also happened to fix that issue
L351[23:09:03] ⇦ Quits: ben_mkiv (~ben_mkiv@200116b800754600fe3497fffea975f2.dip.versatel-1u1.de) (Ping timeout: 183 seconds)
L352[23:15:08] <Forec​aster> %sip
L353[23:15:08] <MichiBot> You drink a gloomy aqua potion (New!). The bottle splits into two revealing a smaller Rising Tiberium potion.
L354[23:32:48] <Forec​aster> %sip rising tiberium
L355[23:32:48] <MichiBot> You drink a rising tiberium potion (New!). Forecaster feels the need to smash. (%smash)
L356[23:32:58] <Forec​aster> %smash
L357[23:32:58] <MichiBot> Forecaster smashes a bust. You think it was supposed to be of some emperor or something.
<<Prev Next>> Scroll to Top