<<Prev Next>> Scroll to Bottom
Stuff goes here
L1[00:01:02]
<AR2000> Pi
is arm. The lua lib might only be for x86
L2[00:03:20]
<Celeez>
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]
<Kristopher38> newer version has natives
for arm
L5[00:12:54]
<Kristopher38> your best bet is switching
version
L6[00:13:32]
<Kristopher38> 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]
<Celeez> if
i changed my server version all the players that tried to play
would also have to as well right?
L9[00:20:47]
<Celeez>
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]
<Celeez> i
have not sadly
L13[01:03:01]
<Michiyo>
%tonkout
L14[01:03:01] <MichiBot> Zoinks! Michiyo!
You beat AR2000'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> Michiyo 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
Forecaster!
L16[01:03:07]
<Michiyo>
\o/
L17[01:03:13] <CompanionCube> oh no
L18[01:15:13]
<Kristopher38> >Celeez: i have not
sadly
L20[01:16:00]
<Kristopher38> 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> Amanda: 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]
<Celeez>
>Kristopher38: You might want to reconsider. I'm assuming this
will be just a server for…
L25[01:33:44]
<Celeez>
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]
<Celeez>
But which version has the updated natives? i just tried 1.7.7 and i
still get the lua message
L27[01:35:39]
<Celeez> oh
i didnt see the 1.8.0 snapshot ill try that quick
L28[01:45:27]
<Celeez>
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> Amanda: After
all, why shouldn't you "continue growing the
factory"?
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!
ThePiGuy24! You beat Michiyo'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 RedstoneParkour!
L44[07:37:15]
<Forecaster> %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]
<Vaur>
%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
L51[09:34:43] <CompanionCube> ayy, a
decrease or even end in nsw shitfuckery?
L52[09:34:45]
<Vaur>
%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]
<Forecaster> 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
L61[11:03:55]
<Forecaster> myep
L62[11:04:23]
<Forecaster> I just had to track one of
those down in an eeprom environment
L63[11:04:45]
<Forecaster> 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)
L66[11:08:41]
<Forecaster> which is even less
useful
L67[11:12:16]
<ThePiGuy24> well atleast you know where
that is just from what it is
L68[11:12:41]
<Forecaster> really?
L69[11:12:58]
<Forecaster> it tells me that the boot
script reached the end
L70[11:13:02]
<ThePiGuy24> yes, it means the execution
reached the end without computer.shutdown()
L71[11:13:03]
<ThePiGuy24> yes
L72[11:13:04]
<Forecaster> but it doesn't tell you
anything about why
L73[11:13:31]
<Forecaster> it should never reach the
end
L74[11:13:52]
<Forecaster> 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! SquidDev! You beat ThePiGuy24'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 TechTastic!
L78[11:34:32]
<Forecaster> 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> Amanda: 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]
<Peachy>
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]
<AR2000>
>Peachy: hey guys. Simple request, i'm attempting to have OC
recognise a redstone…
L91[13:46:29]
<AR2000>
Read the wiki.
L92[13:46:30]
<AR2000>
Use event and shell
L93[13:48:38]
<Peachy> 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]
<AR2000>
>Peachy: Ok so i'm really new to this lol i'm struggling to
understand parts of th…
L95[13:50:53]
<AR2000> 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]
<AR2000>
Use `event.listen` and `shell.execute` to do what you are trying to
do
L97[13:53:16]
<AR2000> 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]
<Peachy>
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]
<Peachy>
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]
<Peachy>
Also, could you further explain that second part please?
L102[14:08:03]
<Forecaster> Ask specific questions
L103[14:13:24]
<AR2000>
>Peachy: You would honestly be surprised. I've learned what
little I do know from…
L105[14:14:06]
<AR2000>
You program closing/exiting will not unregister event listeners. Be
careful with that
L106[14:17:04]
<Forecaster> If you're having trouble
reading the wiki then that's what you should be asking about
L107[14:17:23]
<Forecaster> Instead of asking someone to
do the work for you
L108[14:17:53]
<Forecaster> Because next time you're just
going to run into the same problem again
L109[14:20:34]
<Peachy>
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]
<Peachy>
That being said, thank you I think I can try to understand this a
little a bit easier now
L111[14:21:15]
<AR2000>
>Peachy: I'm not asking anyone to do the work for me I just
asked for an example t…
L112[14:21:15]
<AR2000>
Your idea is so simple a example would have been the hole
program
L113[14:21:34]
<AR2000> I
think it can be done in 5-10 lines
L114[14:29:25]
<Peachy>
Well i'm really new to all of this
L115[14:31:54]
<AR2000>
>Peachy: Well i'm really new to all of this
L116[14:31:54]
<AR2000>
everyone was at some point
L117[14:40:48]
<Forecaster> 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]
<Peachy>
>Forecaster: You asked someone to interpret the wiki for you,
rather than asking for h…
L120[14:45:49]
<Peachy>
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.
L122[15:09:45]
<Peachy> 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]
<AR2000>
nop
L124[15:16:01]
<AR2000>
>Peachy: Ok so I think I understand this now. Can someone
correct me if there's s…
L125[15:16:01]
<AR2000>
your args to `event.listen` are wrong
L126[15:16:47]
<AR2000>
Read the wiki.
L127[15:16:47]
<AR2000>
`fun(var1: string)` The function take one param of type
string
L129[15:17:24]
<AR2000>
The idea is almost correct
L130[15:18:06]
<AR2000>
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]
<Peachy>
Okay, i'm a little lost where i've gone wrong honestly lol
L132[15:22:27]
<Peachy>
sorry
L133[15:22:39]
<Peachy> i
know teaching newbies is frustrating
L134[15:22:48]
<Vaur>
%sip
L135[15:22:49] <MichiBot> You drink a
silent electrum potion (New!). Vaur's pockets suddenly contain
1d10 => 8 Strawberry colored marbles.
L136[15:23:02]
<AR2000>
>Peachy: i know teaching newbies is frustrating
L137[15:23:02]
<AR2000>
You are not my first rodeo. At least you know what a variable
is
L138[15:23:46]
<Peachy>
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]
<AR2000>
>Peachy: Okay, i'm a little lost where i've gone wrong honestly
lol
L140[15:23:49]
<AR2000>
`event.listen(red1, test2)`
L141[15:23:49]
<AR2000>
`red1` is not the correct signal name and must be a string (or a
variable of type string)
L142[15:23:50]
<AR2000>
`test2` must be a function
L143[15:27:52]
<Peachy>
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]
<Peachy>
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]
<Peachy>
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]
<SoBinary>
callback is just the name of an argument
L147[15:29:04]
<SoBinary>
it's a string
L148[15:29:08]
<SoBinary>
because names are strings
L149[15:29:22]
<Peachy>
Right ok
L150[15:30:01]
<SoBinary>
wait i might have confused you
L151[15:30:01]
<SoBinary>
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]
<Peachy> Ok
I think I understand
L153[15:31:50]
<AR2000>
**nooooo**
L154[15:31:50]
<AR2000>
Callback is not a string. It's a function
L156[15:33:47]
<AR2000>
but yes, callback is the name of the argument. Not a string
L157[15:34:02]
<SoBinary>
Actually i think i'll just shut up
L158[15:38:52]
<Peachy>
>AR2000: ```lua
L159[15:38:52]
<Peachy>
local function myfunction(eName) end
L160[15:38:52]
<Peachy>
event.listen("modem_message",…
L161[15:38:52]
<Peachy> 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]
<Peachy>
event.listen("redstone",test2)
L163[15:38:53]
<Peachy> Or
does the event name need to be a function of that component e-g
"redstone.getInput"?
L164[15:39:49]
<Peachy>
>SoBinary: Actually i think i'll just shut up
L165[15:39:50]
<Peachy>
lol you did confuse me a bit but don't worry i appreciate the
effort o help
L166[15:40:11]
<AR2000>
run `dmseg` to get the eeent name
L167[15:40:36]
<AR2000>
but `test2` is still wrong, unless `local test2 =
loadfile("test2.lua")`
L168[15:44:00]
<Peachy>
Ohhhhh okay here we go now i'm getting somewhere. Ok gimme a sec
let me try that
L169[15:46:23]
<Peachy>
>AR2000: run `dmseg` to get the eeent name
L170[15:46:24]
<Peachy> Do
I run this in the shell?
L171[15:48:59]
<AR2000>
yep
L172[15:52:41]
<Peachy> 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]
<Peachy>
>AR2000: run `dmseg` to get the eeent name
L174[16:02:09]
<Peachy> 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]
<Michiyo>
dmesg
L176[16:07:59]
<Peachy> Ah
thank you
L177[16:20:58]
⇨ Joins: Hawk777
(~Hawk777@2607:c000:8295:8500:baf6:d50f:18c7:5c88)
L178[17:11:06]
<SoBinary>
so
L179[17:21:43]
<Michiyo>
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]
<SoBinary>
>Michiyo: no quotes on the function name, you're not passing the
name of the function…
L183[17:38:25]
<SoBinary>
so it's event.listen("rodDepleted1", replaceRod)?
L184[17:38:25]
<SoBinary>
will it still use "rodDepleted" and 1 as arguments?
L185[17:39:11]
<Michiyo>
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]
<SoBinary>
i am confusion
L187[17:42:21]
<SoBinary>
what does "parameter" mean in this case, then?
L188[17:43:53]
<Michiyo>
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!
SquidDev! 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> SquidDev 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 Sky!
L192[17:44:24]
<Michiyo>
`event.listen("key_up", handleEvent)` which calls
`function handleEvent(eventID, ...) etc`
L193[17:45:59]
<Michiyo>
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]
<SoBinary>
alright.
L195[18:04:32]
<RedstoneParkour> %tonk
L196[18:04:33] <MichiBot> Awesome!
RedstoneParkour! You beat SquidDev'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 Vaur!
L199[18:13:16]
<AR2000>
>Peachy: okay so, i took a little break and came back to it. I
wrote this little …
L200[18:13:17]
<AR2000>
who to use it :
`event.listen(eventName:string,callback:function)`
L201[18:13:17]
<AR2000>
What you wrote :
`event.listen(eventName:nil,callback:function)`
L202[18:13:32]
<AR2000>
and what error ?
L203[18:13:50]
<AR2000>
||sry was busy coop borederland2||
L204[18:14:32]
<Peachy> so
what's supposed to go where nill is?
L205[18:14:36]
<AR2000>
also :
L208[18:14:40]
<Peachy>
and sorry i forgot to post the screenshot one second
L209[18:15:04]
<AR2000>
>Peachy: so what's supposed to go where nill is?
L210[18:15:05]
<AR2000> a
string. But you gave a undefined variable
L211[18:15:40]
<Peachy> I
don't think i understand strings the way I'm supposed to then
lol
L212[18:16:07]
<Michiyo>
To make this clear. a String is one of two things. It is either
`"this"` or `varName = "this"`
L213[18:16:18]
<Michiyo>
notice, the quotes.
L214[18:16:18] ⇦
Quits: Hawk777 (~Hawk777@2607:c000:8295:8500:baf6:d50f:18c7:5c88)
(Quit: Leaving.)
L215[18:16:31]
<Michiyo>
if you try to use `this` lua tries to find a variable named
`this`
L216[18:16:44]
<Michiyo>
`"this"` is a string, `this` is a variable.
L217[18:17:05]
<Michiyo>
(or a reference to a function, or a number of other things... but
let's keep this simple"
L218[18:17:20]
<AR2000> a
variable can contain a string, but is not one
L219[18:17:24]
<Michiyo>
^
L220[18:17:44]
<AR2000>
`print(hello)` is not the same as `print("hello")`
L221[18:18:01]
<Michiyo>
`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]
<AR2000> it
errors out because the first argument can't be nil.
L223[18:19:19]
<Peachy> Oh
okay so how would I know what the right veriable to put in is after
redstone_changed?
L224[18:19:41]
<AR2000>
>Peachy: Oh okay so how would I know what the right veriable to
put in is after re…
L225[18:19:41]
<AR2000>
noooooo
L226[18:19:44]
<AR2000>
that's not your problem
L227[18:20:02]
<Peachy>
oh?
L228[18:20:09]
<AR2000>
your problem is that you put a empty/undefined variable as the
first argument. ie : `redsone_change`
L229[18:20:22]
<AR2000> in
a way, you didn't give the first argument
L231[18:21:14]
<AR2000>
just look at the colors (it's your code)
L232[18:22:16]
<AR2000>
with types in comments
L234[18:23:34]
<AR2000>
lol : I found a other error, That I would have seen if you sent the
error
L235[18:23:34]
<AR2000>
`localfile` doesn't exists. It's `loadfile`
L236[18:24:04]
<Peachy> Oh
ok my bad
L237[18:24:29]
<SoBinary>
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]
<SoBinary>
or is there something for that specifically?
L239[18:25:15]
<Peachy>
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]
<AR2000>
>SoBinary: hey if i want to check for something all the time,
should i use a while l…
L241[18:26:04]
<AR2000>
Yes and no :
L242[18:26:04]
<AR2000>
Yes it would work, but without `os.sleep` in the loop it will raise
a `too long without yeilding error`
L243[18:26:05]
<AR2000> 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]
<SoBinary>
it doesn't create an event by itself
L245[18:26:36]
<AR2000>
>Peachy: I'm not sure I understand what i'm supposed to do with
the first veriable…
L246[18:26:36]
<AR2000>
The first variable is the event name you want to listen to
L247[18:27:06]
<SoBinary>
i'm using the loop to push an event, actually
L248[18:27:07]
<SoBinary>
i'll add an os.sleep in there, though
L249[18:27:08]
<AR2000>
>SoBinary: it doesn't create an event by itself
L250[18:27:08]
<AR2000>
the a loop, or a `event.timer` it's like `event.listen` in some
way, but triggered by a delay
L251[18:29:27]
<AR2000>
@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]
<Michiyo>
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]
<AR2000>
>Michiyo: If you don't know the event name, dmesg and watch for
it. If there is no…
L254[18:30:29]
<AR2000>
there is no such thing as a event without a name
L255[18:30:32]
<Peachy> oh
wait i'm dumb I think I understand it now
L256[18:30:44]
<SoBinary>
oh, so i use event.timer(n, function) to call for function every n
seconds?
L257[18:30:51]
<Michiyo>
>AR2000: there is no such thing as a event without a name
L258[18:30:51]
<Michiyo> I
meant there is no event.
L259[18:30:54]
<Peachy> 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]
<Peachy>
really appreciate the help so far
L261[18:31:05]
<AR2000>
>SoBinary: oh, so i use event.timer(n, function) to call for
function every n second…
L262[18:31:06]
<AR2000> in
n second. For every n second add a 3rd argument
L263[18:31:12]
<Michiyo>
"if you don't see the event name in dmesg, then there is no
event"
L264[18:31:24]
<AR2000> it
the number or time to trigger. Can be `math.huge` for infinit
L265[18:32:04]
<SoBinary>
ah
L267[18:32:26]
<AR2000>
green : event name
L268[18:32:26]
<AR2000>
yellow : component who raised the event (usually
L269[18:32:26]
<AR2000>
white : the rest
L270[18:34:54]
<AR2000>
>AR2000:
L271[18:34:55]
<AR2000> I
know no one care, but the payload in my modem message is a UDP
packet (inside a IPv4 one)
L272[18:35:19]
<AR2000>
and rn it's broken, but I know why
L273[19:12:11]
<moldy> 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]
<Michiyo>
crystal ball is in the shop, will need to see exactly what you're
doing.
L276[19:25:18]
<moldy>
This is the code i used
L277[19:25:50]
<moldy> I
hear the first beep, then nouthing and the code returns
L278[19:27:18]
<Michiyo>
is `ture` a typo in the code you posted here?
L279[19:28:35]
<moldy>
oh... I'm insanly stupid... I wrote that, tired re writeing it and
made the same mistake...
L280[19:28:40]
<moldy> it
works now
L281[19:28:56]
<Michiyo>
Lysdexia is nuf.
L282[19:29:44]
<moldy> i'm
just not very good at spelling
L283[19:31:37] <CompanionCube> %tonk
L284[19:31:37] <MichiBot> Blast!
CompanionCube! You beat RedstoneParkour'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 Michiyo!
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]
<Peachy> 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]
<Peachy>
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]
<SoBinary>
>Peachy: okay so, i took a little break and came back to it. I
wrote this little bi…
L292[20:41:12]
<SoBinary>
have you fixed the localfile part
L293[20:41:23]
<SoBinary>
wait why did it reply
L294[20:41:26]
<SoBinary>
uhhh
L295[20:44:36]
<Peachy> Oh
shoot no hold on
L296[20:45:21]
<Peachy>
wait nvm i did change it to load
L298[20:46:37]
<Peachy>
this is the file so far
L299[20:48:27]
<SoBinary>
i Think it should be "redstone_changed"
L300[20:48:53]
<SoBinary>
in quotes, i mean
L301[20:48:53]
<SoBinary>
try that?
L302[20:54:56]
<Michiyo>
That was literally the exact thing that we told you to change
before.
L304[20:55:17]
<Peachy>
this is what i got after saving the change and running it
L305[20:55:26]
<Michiyo>
event.listen wants a string for its first argument
`"this_is_a_string"`
L306[20:55:37]
<Michiyo>
You've not required event.
L307[20:55:54]
<Michiyo>
you have to require stuff like event, component, etc
L308[20:56:05]
<Peachy> so
local event = require("event")?
L309[20:57:39]
<SoBinary>
yes
L310[20:58:53]
<Peachy> It
worked!!!
L311[20:59:01]
<Peachy> Oh
finally ok now i'm getting the hang of this
L312[21:19:54]
<Peachy>
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]
<Michiyo>
You'll have to handle that in whatever function you're telling the
listener to call.
L314[21:22:30]
<Forecaster> Again, the wiki
L315[21:22:36]
<Forecaster> plenty of information
there
L316[22:02:18]
<Peachy> I
can't seem to find what i'm looking for in the wiki
L317[22:05:40]
<Peachy> 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]
<Forecaster> The events page
L319[22:10:35] <Amanda> %choose
laptopnaptime?
L320[22:10:35] <MichiBot> Amanda: Are you
sure? Well alright.
L321[22:11:00]
<Michiyo>
%tonk
L322[22:11:01] <MichiBot> Dagnammit!
Michiyo! You beat CompanionCube'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 Forecaster!
L324[22:11:47]
<Forecaster> no, stop that
L325[22:12:43]
<Michiyo>
I'm coming for you Fore :D
L326[22:12:52]
<Forecaster> 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)
L330[22:25:58]
<AR2000>
you forgot the epilepsy warnin
L331[22:31:53]
<Michiyo> I
really hate that this database I'm working in uses NULL for 0
L332[22:32:06]
<Forecaster> wut
L333[22:32:37]
<Forecaster> why would anyone do
that...
L334[22:32:39]
<Michiyo>
Options are "NULL, 1, 2, 3"
L335[22:32:56]
<Michiyo>
NULL implies the 1st state.
L336[22:33:17]
<Forecaster> ...
L337[22:33:31]
<Forecaster> also I managed to fix my
flashing issue
L338[22:33:42]
<Michiyo>
I'm perfectly fine with 0 indexed arrays, sure.... but why
NULL?
L339[22:33:56]
<Forecaster> had to restore the previous
buffer in my debug print function
L340[22:34:22]
<Forecaster> also, it seems
setActiveBuffer returns the old buffer index similar to
setBackground/setForeground
L341[22:34:42]
<Forecaster> but the wiki doesn't say
this, it just says it returns a number and nil on invalid
index
L342[22:34:55]
<Michiyo>
Time to update the wiki!
L343[22:35:01] *
Amanda secretly adds more paw prints to Elfi's wing
patterns
L344[22:35:25]
<Forecaster> I can't even access the wiki
on this computer anymore
L345[22:35:34]
<Forecaster> I have to remote into my work
computer to read it
L346[22:35:46]
<Forecaster> here it just gives me a white
page now
L347[22:36:17]
<Forecaster> probably due to accessing the
internet through my phone
L348[22:47:19]
<Forecaster> Also the stupid `bool over
modem message wont work when number works perfectly` thing still
bugs me...
L349[22:52:25]
<Forecaster> oh, now it's working
again
L350[22:52:50]
<Forecaster> 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]
<Forecaster> %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]
<Forecaster> %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]
<Forecaster> %smash
L357[23:32:58] <MichiBot> Forecaster
smashes a bust. You think it was supposed to be of some emperor or
something.