<<Prev Next>> Scroll to Bottom
Stuff goes here
L1[00:00:22]
<BrisingrAerowing> ~ocdoc filesystem
L3[00:00:50] <Ernos> I have the filesystem
api page open on my second screen
L4[00:01:12]
<BrisingrAerowing> Ok. I was just trying
to figure out the bot.
L6[00:01:26]
<BrisingrAerowing> Also, I want a second
screen.
L7[00:01:40]
<BrisingrAerowing> My other monitor
stopped working.
L8[00:01:48]
<BrisingrAerowing> So I only have
one.
L9[00:02:00] <Ernos> ahh, that sucks
L12[00:03:40] <Ernos> I've never seen that
error before, and I'm not sure how to fix it
L13[00:04:52] <Ernos> I'm trying to pass a
string variable with a valid path to fs.open()
L14[00:14:48] ⇨
Joins: freacknate09
(~freacknat@203.sub-174-222-135.myvzw.com)
L15[00:17:03] ⇦
Quits: Ernos (~freacknat@203.sub-174-222-135.myvzw.com) (Ping
timeout: 204 seconds)
L16[00:18:15] ***
freacknate09 is now known as Ernos
L17[00:30:52] <Ernos> how do I make a while
loop run as long as a value is not false?
L18[00:31:47] <Ernos> well, while a value
is not equal to another value. I have while dataToWrite != nil do,
and it errors my program, "do expected near '!'"
L19[00:32:34]
<MGR>
There's no do
L20[00:32:41]
<MGR> I
think
L21[00:32:50]
<MGR> No,
there is
L22[00:32:51] <Ernos> oh, but when the do
was missing, it gave the same error
L23[00:33:14] <Ernos> yeah, with the do
there, I'm getting that error
L24[00:33:16]
<MGR> Try
```
L25[00:33:16]
<MGR> while
(dataToWrite != nil) do```
L27[00:33:19] <Amanda> It's ~= not != in
lua
L29[00:33:36]
<MGR> I've
been doing too much Java lately 😦
L30[00:35:02] <Ernos> heh
L31[00:35:43] <Ernos> this is odd lol. That
fixed my first error, but now it is saying it expects an
"end" near eof, but I have an end written write
there
L32[00:35:48] <Ernos> right*
L33[00:36:09] <Ernos> ohhh, there's an end
missing somewhere else
L34[00:36:42] <Ernos> argh, file io is
giving me a headache
L35[00:37:52] <Ernos> in unmanaged mode, a
sector is 512 bytes, right?
L36[00:39:32] <Ernos> Once I get this one
program done, it shouldn't be hard to finish up what I'm trying to
do
L37[00:44:41] ⇦
Quits: Webchat563 (webchat@c-69-245-208-12.hsd1.il.comcast.net)
(Quit: webchat.esper.net)
L38[00:45:20] ⇨
Joins: Taffy
(webchat@c-69-245-208-12.hsd1.il.comcast.net)
L39[00:57:27] <Ernos> Alright, I can't
figure this out. I have an error "attempt to index local
'file' (a nil value)" on line 31. I can't figure out what I'm
doing wrong here. Here's my code:
https://pastebin.com/msgzTSW3
L40[01:01:33]
<Ocawesome101> Ernos: you need to
`io.open` it, not `fs.open`
L41[01:09:07] <Ernos> ok, thank you
L42[01:09:24] <Ernos> same error
L43[01:10:05] <Ernos> I wonder why this
keeps happening
L45[01:11:12] <Ernos> There's my program, I
modified it. Same error, but on line 27 now
L46[01:11:29] <Ernos> which is the same
line of code
L47[01:11:45]
<Ocawesome101> so
L48[01:11:49]
<Ocawesome101> first and foremost
L49[01:11:59]
<Ocawesome101> remove that
`require("io")` line, you don't need it
L51[01:12:29] <Ernos> that's removed
L52[01:12:52] <Ernos> same error, probably
expected
L53[01:13:27] <Ernos> I removed the
"require("fs")" line, as I'm not using it
anymore
L54[01:15:53]
<Ocawesome101> `offset = 0 ...
file:read(offset)` will read 0 bytes from a file
L55[01:16:06]
<Ocawesome101> you want `file:read(512)`
probably
L57[01:16:15]
<Ocawesome101> also `io.open(fileName,
"rb")`
L58[01:16:33]
<Ocawesome101> not `io.open(fileName,
r)`
L60[01:17:11]
<Ocawesome101> need this alot hang
on
L62[01:17:23]
<Ocawesome101> thank you MichiBot
L63[01:18:51] <Ernos> haha I love
that
L64[01:22:23] <Ernos> yeah, it's still not
running.
L65[01:25:11] <Ernos> I'm kinda giving up
with this. My goal for writing this entire program is to copy a
file from my OC computer's hard drive and put it on an unmanaged
floppy drive
L66[01:27:12] <Ernos> @Ocawesome101 do you
see any other reason why I'd be getting this error?
L67[01:30:04] <Amanda> Read takes the
number of bytes you want to read, then seeks the file along that
many bytes
L68[01:30:21] <Ernos> hmm. That doesn't
explain it's error though
L69[01:30:37] <Amanda> What's the
error?
L70[01:30:51] <Ernos> it's error is
"attempted to index local 'file' (a nil value)" on line
25
L71[01:31:07]
<Ocawesome101> code?
L73[01:31:32] <Ernos> I was working on it
when you asked for the code :) lol
L74[01:32:14] <Amanda> Oh
L75[01:32:34] <Amanda> Term.read will have
a trailing newline
L76[01:32:42] <Ernos> ohhh
L77[01:32:42]
<Ocawesome101> use io.read
L79[01:33:15] <Ernos> ok, new error
now
L80[01:33:25]
<Ocawesome101> also, you can do `local
fileName = io.read()`, you don't have to define variables at the
beginning of your program
L81[01:33:31] <Amanda> Also uncomment the
offset increment. Otherwise you're just writing and overwriting the
first sector
L83[01:34:01]
<Ocawesome101> and the offset assignment
at line 9 :P
L84[01:34:15] <Ernos> the new error is
"bad argument #1 (number expected, got nil)" No line
number though
L85[01:34:33]
<Ocawesome101> what line? 26?
L86[01:34:50] <Ernos> I think so, because
of the undeclared variable
L87[01:34:58]
<Ocawesome101> uncomment line 9
L88[01:35:00]
<Ocawesome101> :P
L89[01:35:37] <Ernos> that fixed it :) Same
error, bad argument #2. #2 is the data I read from the file. The
file is a list of hex numbers
L90[01:35:50]
<Ocawesome101> ah
L91[01:35:54] <Ernos> Should I upload the
test file too?
L92[01:35:54]
<Ocawesome101> AH
L93[01:36:02]
<Ocawesome101> see
L94[01:36:09]
<Ocawesome101> yes yes you shoul
L95[01:36:11]
<Ocawesome101> d
L98[01:36:38] <Ernos> that's test.bin, the
file I am trying to put on the floppy
L99[01:36:47]
<Ocawesome101> soooo
L100[01:36:56]
<Ocawesome101> there are two ways to do
this
L101[01:36:58] <Ernos> It contains machine
code for a 6502 to write "test" to the screen
L102[01:37:11]
<Ocawesome101> there is a way to make it
work with your current setup
L103[01:37:13]
<Ocawesome101> or
L104[01:37:15] <Ernos> ok. I'm attempting
to put test.bin on a floppy, that's the reason for this program's
existence
L105[01:37:28]
<Ocawesome101> you can remake `test.bin`
to actually be a binary file
L106[01:37:33] <Ernos> How do I do
that?
L107[01:37:41]
<Ocawesome101> with a hex editor
L108[01:38:08]
<Ocawesome101> those hex numbers you've
got in there? those should be individual bytes in the file
L109[01:38:20] <Ernos> Is there a way I
can do this in OpenOS?
L110[01:38:48] <Ernos> I'm not familiar
with working with binary/hex in Lua
L111[01:38:50] ⇦
Quits: Vexaton (~Vexatos@port-92-192-117-185.dynamic.as20676.net)
(Quit: Insert quantum chemistry joke here)
L112[01:38:53]
<Ocawesome101> is this a local
world?
L113[01:38:56] <Ernos> yeah
L114[01:39:12]
<Ocawesome101> fire up a hex editor
outside of your game and use that
L115[01:39:39] <Ernos> ok. Is there a way
I can write a program in OpenOS/Lua to make a binary file to put on
the floppy?
L116[01:39:50]
<Ocawesome101> yes
L117[01:39:56] <Ernos> How would I do
that?
L118[01:40:04]
<Ocawesome101> fairly simple if you want
that specific content
L119[01:40:19] <Ernos> I'd like to be able
to take any content and make it into a binary file to put on the
floppy
L120[01:40:47] <Ernos> I don't mind typing
in the hex pairs by hand even
L121[01:41:01]
<Kristopher38> All files are technically
binary
L122[01:41:15]
<Kristopher38> If you zoom in close enough
;)
L123[01:42:00] <Ernos> hehe :)
L124[01:42:11]
<Ocawesome101> `local fdata =
string.pack("<BBBBBBBBBBBBBBBBBBBB", 0xA9, 0x74, 0x8D,
0x03, 0xE0, 0xA9, 0x65, 0x8D, 0x03, 0xE0, 0xA9, 0x73, 0x8D, 0x03,
0xE0, 0xA9, 0x74, 0x8D, 0x03, 0xE0)`
L125[01:42:23]
<Ocawesome101> then write `fdata` to a
file
L126[01:42:25]
<Ocawesome101> note that this requires lua
5.3
L127[01:42:37] <Ernos> ok. Does OC have
Lua 5.3? or is it 5.2?
L128[01:42:49]
<Ocawesome101> it has both
L129[01:42:58]
<Ocawesome101> you may have to
shift-right-click with your CPU in your hand
L130[01:43:14] <Ernos> ok
L131[01:43:33] <Ernos> there, now my
computer is running lua 5.3
L132[01:44:06] <Ernos> What does the
"<BBBBBBBBBBBBBBBBBBBB" do at the start of the
string.pack()?
L133[01:44:27] ⇦
Quits: immibis (~immibis@46.114.36.37) (Ping timeout: 204
seconds)
L134[01:45:43]
<Ocawesome101> it specifies how to
"concatenate" the hex values
L135[01:45:57]
<Ocawesome101> `<` sets
little-endian
L136[01:46:06]
<Ocawesome101> `BBBBBBBBBBBBBBBBBBBB`
tells it to expect 20 bytes
L137[01:46:11]
<Kristopher38> @Ernos#0000 read on
string.pack and unpack and the packing format
L138[01:46:19] <Ernos> ok
L140[01:47:11]
<Kristopher38> It allows you to convert
any Lua number and whatnot into a binary representation (which in
Lua itself is a string)
L141[01:47:41] <Ernos> ok, so I made an
actual binary file using that string.pack @Ocawesome101, but now my
program that writes it to the floppy says it's a string when it
reads from the file
L142[01:48:03]
<Ocawesome101> that
L143[01:48:58] <Ernos> "Bad argument
#2 (number expected, got string)" when it tries to write to
the floppy
L144[01:50:23]
<Ocawesome101> that is what it should
be
L145[01:50:24]
<Ocawesome101> hmm
L146[01:50:58] <Ernos> When I open the
file in a hex editor, it is, in fact, a binary file with the
appropriate instructions
L147[01:51:22]
<Ocawesome101> interesting
L148[01:51:52] <Ernos> I'm stuck lol
L149[01:51:59]
<Ocawesome101>
`drive.writeSector(sector:number, value:string)` from the
wiki
L150[01:52:12] <Ernos> ok
L151[01:52:36]
<Ocawesome101> so `offset` and
`dataToWrite` should be correct....
L152[01:52:49] <Amanda> wait
L153[01:53:04] <Amanda> I just realised,
that code will try and write invalaid data once
L154[01:53:12] <Ernos> huh
L155[01:53:17] <Ernos> It's supposed to
loop until eof
L156[01:53:29]
<Ocawesome101> weeeelll
L157[01:53:38] <Ernos> now instead of
getting a string instead of number, it's getting nil instead of
string
L158[01:53:49] <Amanda> instead of `while
datatoWrite ~= nil do ... end` chnge it to `do ... until
dataToWrite == nil`
L159[01:53:50]
<Ocawesome101> that is to be
expected
L160[01:53:58] <Ernos> ok
L161[01:54:00]
<Ocawesome101> repeat*
L162[01:54:03]
<Ocawesome101> not do
L163[01:54:12] <Amanda> ah
L164[01:54:32] <Amanda> I can never
remamber the sytax for that construct. In any language.
L165[01:54:37] <Amanda> I blame Inari
playing with magnets
L166[01:54:55] <Ernos> now I have "do
expected near repeat"
L167[01:55:05]
<Ocawesome101> lol
L168[01:55:13]
<Ocawesome101> replace ALL of the `while`
bit
L169[01:56:20] <Ernos> now you have me
quite confused
L171[01:57:07] <Ernos> ok
L172[01:58:35] <Ernos> ok, so using that
fixed it. Now I got "bad argument #2 (string expected, got
nil)" for line "floppy.writeSector(offset,
dataToWrite)"
L173[01:59:08] <Amanda> You shouldn't
anymore... paste the full thing again
L174[01:59:27] <Ernos> I did. I replaced
my section with what you gave me
L175[01:59:39] <Amanda> I meant pastebin
your fill program again
L176[01:59:45] <Ernos> oh, ok
L178[02:00:19] <Amanda> ... derp
L179[02:00:21] <Ernos> There's my full
program, with my while loop replaced with what you gave me
L180[02:00:38] <Amanda> I just realised
that didn't fix the problem at all, sorry
L181[02:00:42] <Amanda> It just rearranged
it a bit
L182[02:00:48] <Ernos> ahh lol, no
worries
L183[02:00:59] <Amanda> the issue is the
last read is returning nil
L184[02:01:09] <Ernos> hmm, how do I fix
that?
L185[02:01:19] <Amanda> hack-fix would be
on line 26 with "if dataToWrite == nil then return end`
L186[02:01:23] <Ernos> ok
L187[02:01:29] <Amanda> er, break not
return
L188[02:01:29]
<Ocawesome101> I mean
L189[02:01:33]
<Ocawesome101> that's what I'd do
lel
L190[02:01:39]
<Ocawesome101> return works too
L191[02:02:06] <Amanda> break is better so
that it doesn't cause unexpected problems if down the line
something's added to the end
L192[02:02:07] <Ernos> yay, using your
hack fix, it worked!
L193[02:02:57]
<Ocawesome101> yeah
L194[02:02:58]
<Ocawesome101> ik
L195[02:02:59] <Amanda> Anyway, off to
play with animals now
L196[02:03:17] *
Amanda curls up protectively around Elfi, plays AC:NH
L197[02:03:21] <Ernos> yay!!!! That copied
my file to the floppy. I put the floppy into my Thistle computer,
and it booted! Thank you guys so much!
L198[02:04:36]
<Ocawesome101> no problem :)
L199[02:05:35] <Ernos> :) :) :) My next
hurdle is to make a program that'll generate the binary file to put
on the floppy :)
L200[02:06:14] <Ernos> It's sooo nice to
finally see all my programs do what they're supposed to and just
see everything work :)
L201[02:17:51] ⇦
Quits: Taffy (webchat@c-69-245-208-12.hsd1.il.comcast.net) (Quit:
webchat.esper.net)
L202[02:19:16] <CompanionCube> %tonk
L203[02:19:17] <MichiBot> Willikers!
CompanionCube! You beat ThePiGuy24's previous record of 3 hours,
22 minutes and 42 seconds (By 10 minutes and 51 seconds)! I hope
you're happy!
L204[02:19:18] <MichiBot> CompanionCube's
new record is 3 hours, 33 minutes and 34 seconds! CompanionCube
also gained 0.00072 (0.00018 x 4) tonk points for stealing the
tonk. Position #1.
L205[02:19:32] <CompanionCube> that was a
well-timed random tonk
L206[02:19:45] <Ernos> nice
L207[02:21:21] <Ernos> I'm debating about
making another tool to make life easier, or just use my setup in
it's current config and playing with my Thistle 6502
L208[02:33:02] <Ernos> I'm gonna make a
program to convert a list of hex numbers to a binary file\
L209[02:48:12]
<DaComputerNerd> I was gonna do the tonk
:(
L211[03:53:59]
<Zef>
Looking it up brings up obscure cases of USB expansion cards
L212[03:54:11]
<Zef> And a
suggestion to run a system scan, which I am currently doing
L213[03:57:30] <Ernos> I mean
L214[03:57:44] <Ernos> my program is doing
stupid crap
L215[03:58:05] <Ernos> I'm trying to add
"B" to a string until it is a certain length, but it is
refusing to work
L216[03:58:25] <Ernos> Either it enters
into an infinite loop until the computer runs out of energy, or it
does nothing at all
L217[03:58:40]
<Zef> any
code?
L218[03:58:45] <Ernos> one sec
L220[03:59:50] <Ernos> the while loop at
the bottom should add "B" to the string
"packedBinarypt1" until the counter is equal to the
binary length, which is set at 10 for right now
L221[04:00:11] <Ernos> I need a better Lua
editor. I'm using the built in edit program
L222[04:01:08] <Ernos> there we go, got a
better editor
L223[04:03:27] <Ernos> @Zef any idea
what's up with my code
L224[04:04:06]
<Zef> I'm
amazed it doesn't crash
L225[04:04:20]
<Zef> cntr
= binaryLength does not result in a boolean
L226[04:05:23] <Ernos> hahaha
L227[04:06:25] <Ernos> cntr = binaryLength
was supposed to be cnter ~= binaryLength
L228[04:07:05] <Ernos> I found what was
causing my error
L229[04:08:14] <Ernos> So, there is a
variable, binaryLength, which is set to the length of an array. I
had temporarily set binaryLength to 10, but then set it to 0
unintentionally. By setting that to 0, my loop didn't run, and the
string it tried to print was empty, so it looked like it did
nothing
L230[04:09:15] <Ernos> now, to figure out
how to copy a an array from another file into this one
L231[04:11:36] <Ernos> IS there a library
for OpenOS for table serialization
L232[04:13:13] <Amanda>
Serialization
L233[04:13:20] <Amanda> Literally called
that
L234[04:13:39] <Amanda> Lower case S
ofc
L235[04:14:13] <Ernos> I googled it after
I asked here lol, instead of the other way around. Sorry about
that
L236[04:19:42]
<Zef> I
legitimately might have a virus or something, the MD5 of my
winusb.dll is different than my friends, yet they both claim to be
the same exact version
L237[04:19:52]
<Zef>
Mine's also around 5kb larger
L238[04:19:54] <Ernos> oh damn, that's
nnot good
L239[04:20:09]
<The_Stargazer> >MD5
L240[04:20:13]
<Zef> Yet
windows refuses to let me override the file
L241[04:20:24]
<Zef> I
just wanted an easy way of seeing if the files were different
L242[04:20:29]
<Zef> as if
the filesize wasn't enough
L243[04:20:43] <Ernos> Get a linux boot
disc, delete your winusb.dll, copy your friend's winusb.dll into
it's place, then run a virus scan
L244[04:21:14] <Ernos> After I serialize
an array, how do I write that to a file?
L245[04:23:25]
<Zef> I
managed to wrangle control away from trustedinstaller
L246[04:26:32] <CompanionCube> why would a
virus infect winusb.dll though
L247[04:26:50] <CompanionCube> i'd go
spelunking for other 'differences' first
L248[04:27:24] <Ernos> How do I tell
io:read() to read the whole file?
L249[04:28:42]
<Zef> They
both said they were the same version in the file properties
L250[04:30:10] <Amanda> CompanionCube:
spray-and-pray injection of the payload, maybe
L251[04:32:30]
<Zef> Well
winusb appears to be windows' default usb driver
L252[04:36:34] <Ernos> For string.pack(),
what _exactly_ is it expecting after the format string? I have a
table of values I'd like to pack, and I already figured out how to
calculate the format string, I just don't know how to make the
second half
L253[04:37:14] <Ernos> and the table of
values isn't guaranteed to be the same length every time I run the
program
L254[04:38:34] <Ernos> the lua docs are
only telling me what it's expecting for the format string
L256[04:40:16] <Michiyo> string.pack (fmt,
v1, v2, ···)
L257[04:40:16] <Michiyo> Returns a binary
string containing the values v1, v2, etc. packed (that is,
serialized in binary form) according to the format string fmt (see
§6.4.2).
L258[04:40:32] <Ernos> alright
L259[04:40:48] <Ernos> I can't see an
efficient way to pack an entire table of values
L260[04:43:51] <Ernos> Anyone know how I
could do this?
L261[04:44:43] <Ernos> I can't think of
any way that wouldn't lead to a horribly messy suicide-inducing
program
L262[04:50:17] <CompanionCube> i imagine
openos's serialization lib is no help?
L263[04:50:49] <Ernos> not in this case,
but I came up with a way _I think_. I'm gonna pack each element,
then combine that into one big packed string which I can then store
in a file
L264[04:54:58] <Ernos> God why tf can't I
come up with a way to do what I'm fing wanting to do
L265[04:57:55] <Amanda> Insufficient
cookies, go to www.example.house for more!
L266[04:58:42] <Amanda> Is .house even one
of the new gTLDs? Oh well
L267[04:59:06] *
Amanda tucks in around Elfi, prepares to sleep
L268[05:00:40] <Amanda> Night nerds
L269[05:00:47] <Ernos> night
L270[05:06:53]
<Ocawesome101> night
L271[05:08:07] <Michiyo> Amanda, .house is
an active gTLD that was proposed in ICANN's New gTLD Program. The
Registry and manager of the TLD is Donuts (Sugar Park, LLC).[1] The
proposed application succeeded and was delegated to the Root Zone
on 29 December, 2013.[2]
L272[05:08:36] <Ernos> This is causing
pain
L273[05:08:44] <Ernos> I can't get this
program to work correctly
L274[05:33:09] <Amanda> %remindme 8h
package up one of your ocvm machines to throw at payonel, maybe the
machines not as idle as it seems?
L275[05:33:10] <MichiBot> I'll remind you
about "package up one of your ocvm machines to throw at
payonel, maybe the machines not as idle as it seems?" at
04/07/2020 07:33:10 AM
L276[05:33:23] <Amanda> Right, sleep for
real now
L277[05:57:38] <Ernos> This program is
driving me up a god damn wall. I can't even get fucking debug info
out of it
L278[05:58:02] <Ernos> This fucking table
is not a nil value!
L279[05:58:20] <Ernos> It's got a length
of 3!
L280[06:00:09] <Ernos> finally
L281[06:10:41] <Ernos> It appears I am
using a way out of date version of OC
L282[06:10:59] ⇦
Quits: Ernos (~freacknat@203.sub-174-222-135.myvzw.com) (Quit:
*rocket noises*)
L283[06:12:39]
<Ocawesome101> ah
L284[06:12:44]
<Ocawesome101> what version?
L285[06:16:48] ⇦
Quits: ben_mkiv (~ben_mkiv@i577BCF6D.versanet.de) (Ping timeout:
190 seconds)
L286[06:21:57]
<Forecaster> %tonkout
L287[06:21:58] <MichiBot> Dagnabbit!
Forecaster! You beat CompanionCube's previous record of 3 hours,
33 minutes and 34 seconds (By 29 minutes and 6 seconds)! I hope
you're happy!
L288[06:21:59] <MichiBot> Forecaster has
stolen the tonkout! Tonk has been reset! They gained 0.004 tonk
points! plus 0.003 bonus points for consecutive hours! (Reduced to
50% because stealing) Current score: 0.59514. Position #2 =>
#1
L289[06:27:53]
<Ocawesome101> %tonk
L290[06:27:53] <MichiBot> Sard!
Ocawesome101! You beat Forecaster's previous record of <0 (By
5 minutes and 55 seconds)! I hope you're happy!
L291[06:27:54] <MichiBot> Ocawesome101's
new record is 5 minutes and 55 seconds! Ocawesome101 also gained
0.0001 tonk points for stealing the tonk. Position #5. Need 0.22539
more points to pass simon816!
L292[07:18:32] ⇦
Quits: Backslash (~Backslash@d137-186-220-152.abhsia.telus.net)
(Read error: Connection reset by peer)
L293[07:39:18] <CompanionCube> %tonk
L294[07:39:18] <MichiBot> Heckgosh!
CompanionCube! You beat Ocawesome101's previous record of 5
minutes and 55 seconds (By 1 hour, 5 minutes and 30 seconds)! I
hope you're happy!
L295[07:39:19] <MichiBot> CompanionCube's
new record is 1 hour, 11 minutes and 25 seconds! CompanionCube also
gained 0.00109 tonk points for stealing the tonk. Position #2. Need
0.00039 more points to pass Forecaster!
L296[07:45:12]
<Ariri>
%8ball stay up until 4 for the FC release?
L297[07:45:13] <MichiBot> Ariri: Reply
hazy, try again
L298[07:45:27]
<Ariri>
%8ball stay up late for FCs?
L299[07:45:27] <MichiBot> Ariri: My
reply is no
L300[07:45:47]
<Ariri>
alrighty then
L301[07:59:02]
<!§ aaaa !/! 11
/ ! !/! a pjels ™> %tonk
L302[07:59:48]
<Forecaster> MichiBot doesn't work if you
have spaces in your name
L303[07:59:49]
⇨ Joins: Inari
(~Pinkishu@pD9E8E599.dip0.t-ipconnect.de)
L304[08:00:55]
<!§ aaaa !/! 11
/ ! !/! a pjels ™> oh ok
L305[08:01:01]
<!§ aaaa !/! 11
/ ! !/! a pjels ™> ill change that 1 sec
L306[08:01:32]
<!pjals4§>
%tonk
L307[08:01:32] <MichiBot> I'm sorry
!pjals4§, you were not able to beat CompanionCube's record of 1
hour, 11 minutes and 25 seconds this time. 22 minutes and 14
seconds were wasted! Missed by 49 minutes and 11 seconds!
L308[08:02:41]
<Forecaster> %sip
L309[08:02:41] <MichiBot> You drink a
smelly white potion (New!). Forecaster remembers an important
appointment.
L310[08:49:58]
<Zef> Okay
so I had to manually go and update every usb driver
L311[09:05:37]
<Forecaster> why?
L312[09:21:31]
<Zef>
Because my wmr headset "detected an incompatible winusb
driver"
L313[09:21:55]
<Zef> And
that was the only thing that ended up fixing it
L314[09:30:24] ⇦
Quits: Thutmose (~Patrick@host-69-59-79-181.nctv.com) (Quit:
Leaving.)
L315[09:31:36] <CompanionCube>
%tonkout
L316[09:31:36] <MichiBot> Jeepers!
CompanionCube! You beat your own previous record of 1 hour, 11
minutes and 25 seconds (By 18 minutes and 38 seconds)! I hope
you're happy!
L317[09:31:37] <MichiBot> CompanionCube
has tonked out! Tonk has been reset! They gained 0.001 tonk points!
Current score: 0.59575, Position #2 => #1
L318[09:32:21]
<Forecaster> D:<
L319[09:38:42]
⇨ Joins: Vexatos
(~Vexatos@port-92-192-78-96.dynamic.as20676.net)
L320[09:38:42]
zsh sets mode: +v on Vexatos
L321[10:05:19]
⇨ Joins: immibis
(~immibis@x59cc8bdf.dyn.telefonica.de)
L322[10:24:15]
<!pjals4§>
%tonk
L323[10:24:15] <MichiBot> Dad-Sizzle!
!pjals4§! You beat CompanionCube's previous record of <0 (By
52 minutes and 38 seconds)! I hope you're happy!
L324[10:24:16] <MichiBot> !pjals4§'s new
record is 52 minutes and 38 seconds! !pjals4§ also gained 0.00088
tonk points for stealing the tonk. Position #20. Need 0.00008 more
points to pass Nirahiel!
L325[10:24:20]
<!pjals4§>
YAY
L326[11:30:12]
<Forecaster> %tonk
L327[11:30:12] <MichiBot> Fudge!
Forecaster! You beat !pjals4§'s previous record of 52 minutes and
38 seconds (By 13 minutes and 17 seconds)! I hope you're
happy!
L328[11:30:13] <MichiBot> Forecaster's new
record is 1 hour, 5 minutes and 56 seconds! Forecaster also gained
0.00022 tonk points for stealing the tonk. Position #2. Need
0.00039 more points to pass CompanionCube!
L329[13:16:10]
<DaComputerNerd> %tonk
L330[13:16:10] <MichiBot> Dagnabbit!
DaComputerNerd! You beat Forecaster's previous record of 1 hour,
5 minutes and 56 seconds (By 40 minutes and 1 second)! I hope
you're happy!
L331[13:16:11] <MichiBot> DaComputerNerd's
new record is 1 hour, 45 minutes and 58 seconds! DaComputerNerd
also gained 0.00134 (0.00067 x 2) tonk points for stealing the
tonk. Position #7. Need 0.05131 more points to pass
ThePiGuy24!
L332[13:33:10] <MichiBot> Amanda REMINDER:
package up one of your ocvm machines to throw at payonel, maybe the
machines not as idle as it seems?
L333[14:00:48]
⇨ Joins: ben_mkiv
(~ben_mkiv@i59F6782A.versanet.de)
L334[14:03:12] ⇦
Quits: ben_mkiv (~ben_mkiv@i59F6782A.versanet.de) (Killed (NickServ
(GHOST command used by
ben_mkiv|afk!~ben_mkiv@88.130.158.110)))
L335[14:03:17]
⇨ Joins: ben_mkiv|afk (~ben_mkiv@88.130.158.110)
L336[15:04:20] <Lizzy> %tonk
L337[15:04:20] <MichiBot> Voldemort!
Lizzy! You beat DaComputerNerd's previous record of 1 hour, 45
minutes and 58 seconds (By 2 minutes and 12 seconds)! I hope you're
happy!
L338[15:04:21] <MichiBot> Lizzy's new
record is 1 hour, 48 minutes and 10 seconds! Lizzy also gained
0.00008 (0.00004 x 2) tonk points for stealing the tonk. Position
#3. Need 0.05789 more points to pass Forecaster!
L339[15:15:25]
<DaComputerNerd> tonked while i was eating
😦 rude
L340[16:35:10]
⇨ Joins: gosto
(webchat@dsl-144-120.bl26.telepac.pt)
L341[16:35:17] ⇦
Quits: gosto (webchat@dsl-144-120.bl26.telepac.pt) (Client
Quit)
L342[16:43:15]
<DrewDaPilot> can anyone help me with a
basic graph?
L343[16:45:25]
⇨ Joins: Ernos
(~freacknat@203.sub-174-222-135.myvzw.com)
L344[16:45:32] <Ernos> hey everyone
L346[16:49:27] <Amanda> I think it's 1.12
only
L347[16:49:37] <Amanda> What say you,
@AdorableCatgirl ?
L348[16:51:49]
⇨ Joins: Toja (~toja@89.216.18.137)
L349[16:52:59] <Ernos> Amanda: ahh, damn,
ok. It looks like a nice mod
L350[16:55:14]
<AdorableCatgirl> 1.12 only
L351[16:55:36]
<AdorableCatgirl> limiting factor is
forgelin
L352[16:56:00] <Ernos> ahh, ok
L353[16:56:27] <Ernos> I just upgraded my
OC from 1.6.1 to 1.7.5 lol
L354[16:58:43]
<AdorableCatgirl> jeez
L355[17:05:14]
<ThePiGuy24> %tonk
L356[17:05:14] <MichiBot> Waesucks!
ThePiGuy24! You beat Lizzy's previous record of 1 hour, 48
minutes and 10 seconds (By 12 minutes and 43 seconds)! I hope
you're happy!
L357[17:05:15] <MichiBot> ThePiGuy24's new
record is 2 hours and 53 seconds! ThePiGuy24 also gained 0.00042
(0.00021 x 2) tonk points for stealing the tonk. Position #6 =>
#5. Need 0.22537 more points to pass simon816!
L358[17:05:24]
<ThePiGuy24> woot
L359[17:05:33]
<ThePiGuy24> %tonkleaders
L361[17:05:51]
<ThePiGuy24> just barely ahead
L362[17:06:52]
⇨ Joins: Webchat810 (webchat@185.230.225.21)
L363[17:09:21]
<DaComputerNerd> i was once like number
3
L364[17:09:29]
<DaComputerNerd> but tonk always ends up
happening while im asleep 😦
L365[17:11:34]
<Forecaster> so you were sleeping just now
then :P
L366[17:24:22] <Ernos> How do I tell the
size of a file? I'm using the io library to open and read a file,
but I don't know how to tell the size of the file
L367[17:25:20]
<Forecaster> filesystem API
L368[17:25:23]
<Forecaster> filesystem.size
L369[17:25:30] <Ernos> ok, thanks
L370[17:25:44]
<Kristopher38> are you asking about
managed on unmanaged
L371[17:26:13]
<Forecaster> it probably reads the file
and calculates the size I'd guess
L372[17:27:00] <Ernos> ahh, and my
question is on a managed filesystem
L373[17:27:07]
<DaComputerNerd> then you're fine
L374[17:27:11]
<DaComputerNerd> filesystem is
specifically managed
L375[17:27:22]
<DaComputerNerd> otherwise you have to use
the drive component
L376[17:36:13] <Ernos> Why is it so hard
to get Lua to read my table until it is empty?
L377[17:36:28] <Ernos> It's telling me I'm
missing a ), but I'm not!
L378[17:36:52] <Ernos> I'm just trying to
read a table
L379[17:36:55]
<DaComputerNerd> can you provide the
code?
L380[17:37:19] <Ernos> one sec
L383[17:38:30]
<Ernos>
Easier to post the image this way than upload it to imgur then copy
the link into Hexchat
L384[17:39:08]
<DaComputerNerd> i see a problem that
would probably confuse it
L385[17:39:15] <Ernos> What's that?
L386[17:39:17]
<DaComputerNerd> in the line the error is
about
L387[17:39:20]
<DaComputerNerd> `until (inputFile[cntr] =
nil)`
L388[17:39:25]
<DaComputerNerd> that should not be
=
L389[17:39:33] <Ernos> oh, ==?
L390[17:39:37]
<DaComputerNerd> yep
L391[17:39:43] <Ernos> ok
L392[17:39:51]
<DaComputerNerd> it probably got very
confused like "ok why is there an assignment here? where's the
boolean? wtf?"
L393[17:40:01] <Ernos> ahh lol, thanks.
That fixed it
L394[17:40:35] <Ernos> and now it's
erroring over other crap
L395[17:41:11]
<Forecaster> you also don't need the
parenthesis
L396[17:41:15] <Ernos> file:read() outputs
a table, right?
L397[17:41:16] <Ernos> oh
L398[17:42:10] <Ernos> oh, it reads a
string
L399[17:44:02]
<DaComputerNerd> true, parentheses are not
needed for repeat until
L400[17:44:26] <Ernos> so I have another
error I can't figure out. Here's the code:
https://pastebin.com/7cwUCYrF. the error is
"attempt to index a nil value (global 'file')" on line
23
L401[17:45:58] <Ernos> I don't know why it
is calling the file object a nil value
L402[17:46:07] <Ernos> file io is hit or
miss for me
L403[17:46:35] <Ernos> Sometimes I can get
it to work no problem. Other times it gives errors I can't figure
out for the life of me
L404[17:50:11]
<Bob> you
don't have a file variable
L405[17:50:17]
<Bob>
globals
L406[17:50:17]
<Bob>
ew
L407[17:50:22]
<Bob> why
you use em
L408[17:50:24] <Ernos> I don't use
globals
L409[17:50:34] <Ernos> everything I write
uses locals
L411[17:50:40]
<Bob> what
is all of that atrocity then
L412[17:50:47]
<Bob> you
may overwrite OpenOS stuff or even other crap
L413[17:50:55]
<Bob> any
asignement without the local keyword is global
L414[17:50:56] <Ernos> those are defined
higher up
L415[17:51:10] <Ernos> at the top I
declare/define all my variables
L416[17:51:28]
<Bob> file
is clearly not local
L417[17:51:37]
<Bob> also
variable predeclaration is useless in Lua
L418[17:51:42] <Ernos> oh
L419[17:51:44]
<Bob> maybe
prelocalization but that may break scopes
L420[17:51:53]
<Bob> also
if fs fails it may return nil, error string
L421[17:51:57]
<Bob> so
capture both and see
L422[17:51:58] <Ernos> I'm used to
predeclaration from other langauges
L423[17:52:04]
<Bob> if
not file then error(error)
L424[17:52:08]
<Bob> you
don't need that crap in Lua
L425[17:52:22]
<Bob> maybe
upvalues prelocalization but then you usually need those
declared
L426[17:53:19] <Ernos> I mean,
pre-declaring my variables has never caused me issue before
L427[17:53:45]
<Bob> in
other langs yes
L428[17:53:49] <SquidDev> Either way, it's
not the problem - if file is nil, it means the file you're trying
to read doesn't exist
L429[17:53:54]
<Bob> in
Lua it isn't usefull or especially good practice
L430[17:53:59]
<Bob> ive
told that too
L431[17:54:12]
<Bob> on
write mode if the file doesnt exist, it returns nil and a error
string
L432[17:54:15] <Ernos> I mean, my file I'm
trying to read exists
L433[17:54:18]
<Bob> so
test if file exist frits if not error
L434[17:54:23]
<Bob> then
file should be defined
L435[17:54:36]
<Bob>
weird
L436[17:54:40] <Ernos> It's reading a
pre-existing file, then making a new one at the end
L437[17:55:27] <Ernos> I don't know why
it's not working
L438[17:55:28]
<Bob> if
file is nil it sure doesn't exist
L439[17:55:31]
<Bob> or
that global gets nilled
L440[17:55:37] <Ernos> I'm not using a
global
L441[17:55:40] <Ernos> and I know it
exists
L442[17:55:45] <Ernos> because I made the
file
L443[17:55:53]
<Bob> then
where is the file prelocalization
L444[17:56:02] <Ernos> file
prelocalization?
L446[17:56:26] <SquidDev> Try wrapping
fs.open in an assert: assert(fs.open(blah...)). That should print
any errors.
L447[17:56:33]
<Bob>
whatever youre doing with all the variables on top thats not
needed
L448[17:56:49] <Ernos> I changed it to
create the variables when they're first used
L449[17:56:50]
<Bob>
assert passes the result if it passes right ?
L450[17:56:57] <SquidDev> Yep.
L451[17:57:14] <SquidDev> And prints the
error message if it returns nil, msg.
L452[17:57:17] <Ernos> now it can't find
the file after adding the assert
L453[17:57:54] <SquidDev> Yeah, so the
file doesn't exist for some reason :). Just wondering whether
extension includes the `.` or not?
L454[17:58:23] <Ernos> It should combine
fileName and extension, both of which are user inputs, into
testprg.input, which exists in the same directory as the
program
L455[17:58:34]
<Bob>
`local inputFileName = fileName .. extension`
L456[17:58:40]
<Bob> you
may be missing a `.` yeah
L457[17:58:40] <SquidDev> As in, is
inputFileName (mistakenly) foolua instead of foo.lua
L458[17:58:43]
<Bob> thats
what i was wondering
L459[17:58:54] <Ernos> How do I fix that
then?
L461[17:59:55] <Ernos> There's my program,
after I've edited some things following what you guys have
said
L462[18:00:16] <SquidDev>
fileName..'.'..extension instead
L463[18:00:23] <Ernos> ok
L464[18:00:55] <Ernos> same error
L465[18:01:44]
<Bob> the
token localization is totally useless
L466[18:01:50] <Ernos> alright
L467[18:01:51]
<Bob> as
the token inside the for is already a local to the loop
L468[18:02:35] <Ernos> same error. It's on
line 18, where it tries to open the file
L469[18:02:41]
<Bob> also
you can split the file name and extnetion easely instead of making
2 prompts
L470[18:02:48] <Ernos> How do I do
that?
L471[18:03:11]
<Bob>
string matching
L472[18:03:17]
<Bob> with
2 match groups
L473[18:03:23] <Ernos> I'm not sure how to
do that
L474[18:04:49] ⇦
Quits: Webchat810 (webchat@185.230.225.21) (Quit:
webchat.esper.net)
L475[18:05:47] <Ernos> wtf
L476[18:06:05] <Ernos> I can't post
anymore
L477[18:06:23] <Ernos> So I can't share my
program anymore for 24hrs
L478[18:06:29] <Ernos> That is
stupid
L481[18:06:46]
<Ariri>
hehehe Agartha system = rip
L482[18:07:12]
<Ariri>
side note: its suprisingly easy for fdev to god hand than i
thought
L483[18:07:32] <Izaya> what
happened?
L485[18:07:51]
<Bob> that
should probably work
L486[18:07:53] <Ernos> I _was_ gonna
reupload my code to show you guys, but Pastebin said I reached my
max guest posts for 24hrs
L487[18:08:11] <Ernos> ok
L488[18:08:12] <Izaya> so open the game
files and copy it out
L489[18:08:19] <Ernos> oh yeah
L490[18:08:21] <Ernos> that's a
thing
L491[18:08:32]
<Kristopher38> @Ariri what's in Agartha
and did they do
L492[18:09:21]
<Ariri>
Izaya: The beta came out on pc for FCs, and almost all carriers
went to the closes carrier admin system, which was for Agartha for
many, and would crash on entering the system
L493[18:09:35]
<Ariri> And
if you are on that FC, you crash on load
L494[18:09:36]
<Bob> Ernos
i got this after refining your script a bit, try
L495[18:09:37] <Izaya> [x] nice
L496[18:09:44]
<Kristopher38> Lmao yeet
L497[18:09:53] <Ernos> @Bob I tried it and
it worked, thank you
L498[18:09:56]
<Ariri>
Everyone is sooooo salty about prices and stuff its kind of
lame
L499[18:10:07] <Ernos> @ariri how do you
get into the FC beta? I wanna try that
L500[18:10:12]
<Kristopher38> 5 Billion is fair
L501[18:10:13]
<Bob> Ernos
do you get how it works tough, also i minified it a lot
L502[18:10:15]
<Ariri> Its
not only a beta, meaning up for change, people seem to have lost
much logic
L503[18:10:32]
<Bob> the
`assert` function is a special and usefull thing
L504[18:10:36]
<Ariri>
@Kristopher38 5B is fine, the weekly upkeep and decomm sys is way
harsh
L505[18:10:45]
<Bob> also
with openOS you don't need as much modules
L506[18:10:47] <Ernos> Bob, I haven't
looked over how it works yet, I just tried it to make sure it
works
L507[18:10:48] <Ernos> ok
L508[18:10:51]
<Kristopher38> Yeah, that's what I think
as well
L509[18:10:52]
<Bob> you
have small libraries always avaible
L510[18:11:02]
<Ariri>
@Ernos If on Steam, open ED normally and select the beta in the
launcher
L511[18:11:04]
<Kristopher38> Base 10M upkeep isn't that
bad
L512[18:11:11]
<Ernos>
cool, thanks @Ariri
L513[18:11:17]
<Ariri> Ill
find the page
L514[18:11:28]
<Kristopher38> But what if you put all the
facilities on the carrier
L515[18:12:01]
<Kristopher38> How much does it cost
then
L516[18:12:18] <Ernos> @bob that program
didn't work
L518[18:12:43] <Ernos> It output a blank
table
L519[18:13:00]
<Bob> if it
didn't error then code is empty
L520[18:13:09]
<Bob> and
the gmatch isn't working
L521[18:13:12]
<Bob> try
print statements
L522[18:13:17]
<Ariri>
@Kristopher38 Im on Exigeous's stream where they're still exploring
and number crunching, but ive seen up to 40 mill so far
L523[18:13:20]
<Bob> its
the one and only debug tool all devs use
L524[18:13:20] <Ernos> ohh, my
testprg.input got screwed
L525[18:13:22] <Ernos> that's why
L526[18:13:25]
<Ariri> and
about 7.6B total for one year
L527[18:13:32] <Ernos> So it did work, I
just gave it an empty file by mistake
L528[18:13:41]
<Ariri>
Including inital and upkeep costs, for all services I believe
L529[18:14:08]
<Kristopher38> Huh
L530[18:14:11]
<Ariri> but
not with jumps or outfitting, which is crazy high
L531[18:14:20]
<Bob> ~~my
lua programs can never be broken smh~~
L532[18:14:27]
<DaComputerNerd> uh huh
L533[18:14:31]
<Kristopher38> Outfitting is crazy
high?
L534[18:14:32]
<DaComputerNerd> likely story
L535[18:14:37] <Ernos> I mean Fleet
Carriers are not an entry level item, they're for endgame
players
L536[18:14:42]
<Ariri>
Like to store them or something
L537[18:14:51]
<Kristopher38> Oh, oof
L538[18:15:18]
<Ariri>
Ernos: Yes, but the penalty system that is jumping and decomission
makes it for endgame players, who have played A LOT, is such a
detriment right now
L539[18:15:35]
<Kristopher38> And how much does tritium
cost? Can it even be bought? How hard is it to find? How much do
you need for a full 500 ly jump?
L540[18:15:40]
<Ariri>
Even considering the ridiculously high cost and 'explorer'
options
L541[18:16:09]
<Ariri>
Tritium is from ice rings, 100k per jump, and I think its
proportionate to usage but it holds a decent amount
L542[18:16:32]
<Kristopher38> Wait what
L543[18:16:38]
<Kristopher38> 100k of tritium?
L544[18:16:50]
<Ariri>
Explorers have no use for this so far, bc they chose not to have
carto data storage or selling on the FC
L545[18:16:56]
<Ariri> and
1hour spool time
L546[18:17:24]
<Ariri> No,
the upkeep is +100K per jump; and tritium can be mined in icerings
I believe
L547[18:17:35]
<Kristopher38> Oh I see
L548[18:17:47]
<Kristopher38> I thought it needed 100k
units of tritium to jump
L549[18:18:05]
<Kristopher38> How much tritium do you
need, has that been established yet?
L550[18:18:11]
<Ariri> No,
let me ask the stream and see
L551[18:18:26]
<Ariri>
45.2B for everything has been calculated
L552[18:18:33]
<Ariri>
Like all modules and storage I think
L553[18:18:59]
<Kristopher38> That's what, the
installation cost?
L554[18:19:59]
<Ariri> 40
class 1s, 25 class 2, 15 class 3, 10 class 4, 5 class 5
modules
L555[18:21:28]
<Ariri> Its
one 1t of tritium per light year, and exigeous's ship holds 8k
Tritium rn
L556[18:23:28] <Ernos> Can someone link me
a list of the VT100 escape codes in hex?
L557[18:23:55]
<Ariri> To
summarize:
L558[18:23:55]
<Ariri>
45.2B for initial ship + all services + upkeep + module (40 class
1s, 25 class 2, 15 class 3, 10 class 4, 5 class 5 modules; which I
believe is max capacity)
L559[18:23:55]
<Ariri>
Tritium can be found in ice rings and is 1T per LY; plus an
additional 100K in the upkeep cost to repair the hull after a
jump
L561[18:25:01]
⇨ Joins: Thutmose
(~Patrick@host-69-59-79-181.nctv.com)
L562[18:25:42] <Ernos> ok, I'm confused.
Those aren't hex codes, and I'm not sure how to use those codes in
6502 assembly
L563[18:26:05] <Izaya> a) is it connected
to a VT100-compatible terminal?
L564[18:26:18] <Izaya> b) presumably, the
same way you'd output any other text
L565[18:26:32] <Ernos> It is connected to
a VT100 emulated terminal
L566[18:26:37] <Izaya> okay good
L567[18:26:46] <Ernos> I'm using the
Thistle addon for OC
L568[18:27:20] <Izaya> well
basically
L569[18:27:35] <Izaya> once you can write
strings to the display you're all good to spew control codes at
it
L570[18:30:27] <Izaya> as for in hex
L572[18:35:22] <Ernos> ok, I have an asci
table
L573[18:36:47]
⇨ Joins: freacknate09
(~freacknat@203.sub-174-222-135.myvzw.com)
L574[18:37:27] <freacknate09> I need a
program to add the 0x to the front of the hex pairs. My assembler
outputs without the 0x, so instead of getting 0xAD for load A, I
get AD, which I manually have to add the 0x to the front
L575[18:37:37] <freacknate09> argh, I
can't change my nick back to Ernos
L576[18:38:08] <Izaya> ... but why?
L577[18:38:17] <freacknate09> Why
which?
L578[18:38:25] <Izaya> why do you need
that
L579[18:38:46] <freacknate09> because the
tools I wrote in OpenOS need the 0x in front
L580[18:38:53] ⇦
Quits: Ernos (~freacknat@203.sub-174-222-135.myvzw.com) (Ping
timeout: 190 seconds)
L581[18:38:57] ***
freacknate09 is now known as Ernos
L582[18:39:02] <Ernos> finally, I'm me
again
L583[18:39:04] <Izaya> [concern]
L584[18:39:15] <Ernos> I'm bad at lua
lol
L585[18:39:21] <Ernos> and handling such
things
L586[18:39:28] <Izaya> ~w tonumber
L588[18:40:07] <Ernos> how does tonumber
help me here?
L589[18:40:19] <Ernos> I don't see how it
could add the 0x to my hex pairs
L590[18:40:26] <Izaya> [, base]
L591[18:40:29] <Ernos> oh
L592[18:40:45] <Ernos> So I do
tostring(input, "0x")? Where input is my hex pairs?
L593[18:41:15] <Izaya> ... I see you
didn't bother to read the documentation.
L594[18:41:18] <Ernos> I am
L595[18:41:31] <Ernos> I'm still confused
though
L596[18:42:40] <Ernos> I read it, but I'm
confused on how to use it properly for this
L597[18:43:42] <Izaya> so your tools
L598[18:43:50] <Izaya> do they only take
input in hex?
L599[18:44:13] <Ernos> yes
L600[18:44:44] <Ernos> If I give them
anything other than properly formatted hex, they error and
crash
L601[18:44:50] <Izaya> So rather than
relying on 0x being there, you should use tonumber to get the
number
L602[18:45:28] <Ernos> So use tonumber to
get the number, then convert that to hex?
L603[18:45:35] <Izaya> ...no
L604[18:45:38] <Izaya> a number is a
number
L605[18:45:42] <Ernos> right
L606[18:46:00] <Izaya> hex or decimal is a
representation of the number
L607[18:46:12] <Ernos> yeah
L608[18:46:41] <Izaya> so whether or not
the input or output is in hex, the numbers internally or the
same
L610[18:46:47] <Izaya> what I'm saying is
you need better input handling
L612[18:46:54]
<Ernos>
yeah, I do
L613[18:46:59] <Ernos> I do need better
input handling
L614[18:47:10] <Izaya> >.bin
L615[18:47:13] <Izaya> >is not a binary
file
L616[18:47:25] <Izaya> what did he mean by
this
L617[18:47:28] <Ernos> The extension is
arbitrary. I can use .ernos and it'll work the same for my
tools
L618[18:47:45] <Ernos> Open result.bin in
a hex editor
L619[18:48:07] <Ernos> and look at
testprg.input in something like notepad, and you'll see what my
tools are doing
L620[18:49:01] <Izaya> so
L621[18:49:14] <Izaya> here's some out
there ideas for ya:
L622[18:49:17] <Izaya> parse out the
0x
L623[18:49:30] <Izaya> like, remove it
entirely from the input before the program actually processes the
data
L624[18:49:48] <Ernos> The issue is my
second program crashes if the 0x isn't there to begin with
L625[18:49:52] <Izaya> then you can chunk
it by 2 bytes (gmatch("..")) and tonumber(s,16)
L626[18:49:54] <Izaya> so what you're
saying
L627[18:49:58] <Izaya> is your software is
badly written
L628[18:50:00] <Ernos> in testprg.input, I
manually added the 0x
L629[18:50:02] <Ernos> yeah, it is
L630[18:50:02] <Izaya> and you should feel
bad?
L631[18:50:54] <Ernos> I am bad at Lua,
that's why it's written badly. I'm merely writing these tools to
make it so I can program my Thistle computer
L632[18:53:00] <Ernos> If I could have
found a tool to do what I'm trying to do, I'd have used that
instead of making these tools
L633[19:04:34]
<AdorableCatgirl> Izaya: hepl
L634[19:04:48]
<AdorableCatgirl> i'm writing kotlin
native and the C interop is jank as hell
L635[19:06:41] <Amanda> Halt, Eval, Print,
Loo[
L636[19:08:59]
<AdorableCatgirl> loo[
L637[19:10:14]
<ThePiGuy24> ah yes good ol' Loo[
L638[19:10:38] <Amanda> Welp, this
universe failed. Time to reset the simulation and try again.
L639[19:12:22]
<AdorableCatgirl> aAAAAAAAAAAAAAAAA
L640[19:12:23]
<AdorableCatgirl> anyways
L641[19:12:28]
<AdorableCatgirl> i'm being a
hackerman
L642[19:12:38]
<AdorableCatgirl> trying to read from a
vijya's memory
L643[19:31:22] <Lizzy> %tonk
L644[19:31:23] <MichiBot> Waesucks!
Lizzy! You beat ThePiGuy24's previous record of 2 hours and 53
seconds (By 25 minutes and 14 seconds)! I hope you're happy!
L645[19:31:24] <MichiBot> Lizzy's new
record is 2 hours, 26 minutes and 8 seconds! Lizzy also gained
0.00126 (0.00042 x 3) tonk points for stealing the tonk. Position
#3. Need 0.05663 more points to pass Forecaster!
L646[19:31:24] ⇦
Quits: Thutmose (~Patrick@host-69-59-79-181.nctv.com) (Ping
timeout: 190 seconds)
L647[19:31:38] *
Lizzy initially read the time as 2 hours and 53
minutes
L648[19:31:38]
<BrisingrAerowing> %sip
L649[19:31:38] <MichiBot> You drink a
resonating bavarium potion (New!). BrisingrAerowing gets a sudden
Spice infusion. BrisingrAerowing can see the universe. [Spice
Addiction +1]
L651[19:49:59]
⇨ Joins: Thutmose
(~Patrick@host-69-59-79-181.nctv.com)
L652[20:25:40]
⇨ Joins: Backslash
(~Backslash@d137-186-220-152.abhsia.telus.net)
L653[20:30:40] ⇦
Quits: Kilobyte (~kilobyte@banana-new.kilobyte22.de) (Quit: ZNC -
1.6.0 - http://znc.in)
L654[20:34:44]
⇨ Joins: Kilobyte
(~kilobyte@banana-new.kilobyte22.de)
L655[20:34:44]
zsh sets mode: +v on Kilobyte
L656[20:37:13] <Ernos> What I need is
Thistle to work on Minecraft 1.12
L657[20:37:52] <Michiyo> What I need is a
stable modding platform that doesn't break every thing in a .1
release. :D
L658[20:38:27] <Ernos> good point
L659[20:38:39] <Ernos> *me goes fast
L660[20:38:40] <Ernos> sad
L661[20:38:42] *
Ernos goes fast
L662[20:39:13] *
Ernos figures out how to make a 1.10 to 1.12 compatability layer so
I can run 1.10 Thistle on 1.12 Minecraft
L664[20:52:52]
⇨ Joins: daniel (~quassel@jupiter.danger-it.de)
L665[20:53:35] <Amanda> Thistle should
just need to be recompiled against 1.12, shouldn't it? It doesn't
add any items except via the OC Apis.
L666[20:54:03] <Ernos> The only thing
close to an item it adds is the Thistle boot rom
L667[20:54:19] <Ernos> I may try to do
that, though I'm not familiar with MC modded
L668[20:54:22] <Ernos> modding*
L669[20:56:21] ⇦
Quits: daniel (~quassel@jupiter.danger-it.de) (Ping timeout: 189
seconds)
L670[21:00:10]
<Kristopher38> @Ernos there is thistle
compiled for 1.12
L671[21:00:16] <Ernos> where?
L672[21:00:21]
<Kristopher38> check the issues/pull
requests page
L673[21:00:25] <Ernos> ok
L674[21:00:55]
<BrisingrAerowing> %sip
L675[21:00:55] <MichiBot> You drink a
molten pink potion (New!). BrisingrAerowing feels the need to
smash.
L676[21:18:21]
<Saghetti>
:lenny:
L677[21:23:26] <Amanda> Man, I remember
when lenny was a mess of unicode, not a shitty discord
"emoji:
L678[21:30:56]
⇨ Joins: daniel (~quassel@jupiter.danger-it.de)
L679[21:34:18] ⇦
Quits: daniel (~quassel@jupiter.danger-it.de) (Ping timeout: 189
seconds)
L680[21:41:02]
<Saghetti>
kids these days and their discord emojis
L681[21:41:24] <CompanionCube> %tonk
L682[21:41:24] <MichiBot> I'm sorry
CompanionCube, you were not able to beat Lizzy's record of 2 hours,
26 minutes and 8 seconds this time. 2 hours, 10 minutes and 1
second were wasted! Missed by 16 minutes and 7 seconds!
L683[21:41:38]
<Saghetti>
and i used the emoji version because i didn't want to bother with
pasting it in on my phone
L684[21:42:08] *
Amanda sticks @Ssghetti with a T9 keyboard and no touch
controls
L685[21:42:23] <Amanda> One day I'll type
thta right, today is not that day
L686[21:42:31] *
Amanda goes back to sitting around, bored
L687[21:46:27] *
Lizzy throws a small mouse toy infront of Amanda
L688[21:47:08] *
Amanda meows at the mousie toy, deamnds to know where it came
from
L689[21:48:41]
<Forecaster> dangit, I wish I didn't have
to work suddenly tomorrow so I could play Elite instead >:
L690[21:56:17]
<Kristopher38> Played elite
yesterday
L691[21:56:25]
<Kristopher38> Just flew to borann and
then got bored
L692[21:56:45]
⇨ Joins: daniel (~quassel@jupiter.danger-it.de)
L693[21:56:49] <Michiyo> I've not played
Elite in ages, mainly because I have no idea what I'm doing and
suck.
L694[21:56:54] <Michiyo> love the game
though..
L695[21:58:38]
<BrisingrAerowing> %sip
L696[21:58:38] <MichiBot> You drink a
boiling tomato potion (New!). BrisingrAerowing hears a train
whistle in the distance.
L697[22:10:24]
<Forecaster> `Error 404 from webserver: We
were unable to restore your user session`
L698[22:10:27]
<Forecaster> great >:
L699[22:13:06]
<Forecaster> oh naet
L700[22:13:10]
<Forecaster> oh neat [Edited]
L701[22:13:31]
<Forecaster> they've changed the station
interface a bit, so now you can refuel and rearm without opening
the full interface
L702[22:25:52]
<Forecaster> oh interesting
L703[22:26:24]
<Forecaster> carriers hangar bays are
different from the standard ones
L704[22:26:50]
<Forecaster> you just go down into a
little bay and the door closes above you, it doesn't even spin you
around
L705[22:34:41]
<Forecaster> the undock prompt still says
"Leave station"
L706[22:39:54] <Elfi> %quaff boiling
automato potion
L707[22:39:54] <MichiBot> You drink a
boiling automato potion (New!). Everything Elfi says is now in
Comic Sans until they see a unicorn.
L708[22:41:41] <Elfi> %quaff
antidote
L709[22:41:41] <MichiBot> Elfi reverts to
their original state before drinking any potions.
L710[22:50:37]
⇨ Joins: Digifox03 (~Digifox03@151.54.166.226)
L711[22:50:52] ⇦
Quits: Digifox03 (~Digifox03@151.54.166.226) (Client
Quit)
L712[22:51:17]
⇨ Joins: Digifox03 (~Digifox03@151.54.166.226)
L713[22:54:55]
<Forecaster> %sip
L714[22:54:55] <MichiBot> You drink a
smooth caterium potion (New!). Forecaster forgets the location of
a great treasure.
L715[22:55:34]
<Forecaster> Aww
L716[23:23:37]
<Ariri> I
wish the snapshot was 1 week ago... Im between Beagle Point and Sag
A on the beta and ive already flown 60KLY today, and 110K this
week
L717[23:25:31]
<Skye>
%sip
L718[23:25:31] <MichiBot> You drink a
salty coral potion (New!). Skye is suddenly more aware of cute
things nearby until they have a nap.
L719[23:25:37]
<Skye>
!!!
L720[23:30:48]
<Saghetti>
%sip salty red potion
L721[23:30:48] <MichiBot> You drink a
salty red potion (New!). Saghetti recovers some mana.
L722[23:33:06] <Lizzy> %sip salty coral
potion
L723[23:33:06] <MichiBot> You drink a
salty coral potion. Lizzy is suddenly more aware of cute things
nearby until they have a nap.
L724[23:33:16] *
Lizzy is now more aware of Skye
L725[23:35:40] <Skye> meep?
L726[23:39:40] *
Lizzy giggles
L728[23:45:31]
<BrisingrAerowing> %sip
L729[23:45:31] <MichiBot> You drink a
salty bombastium potion (New!). The potion was inside you all
along.
L730[23:45:40]
<BrisingrAerowing> Uh...
L731[23:45:45]
<BrisingrAerowing> %sip
L732[23:45:45] <MichiBot> You drink a
fluffy bombastium potion (New!). BrisingrAerowing is suddenly more
aware of cute things nearby until they see a bird.