#ot0-no-stealth-portals-please
3246 messages · Page 21 of 4
so vers? i see 👀
well now i want one of those hard candy thingies that came in a 3 pocket bag filled with sour powder candy u dip them in
My neighbors are queer, I have woken up to them having sex, and I freak out cuz I don't want to be a perv so I run and put music on, lol
honestly, if i wake up to anyone having sex, i will probably run
haha it is really weird
Just cheer for whoever's on top

ah make it weirder i see
well I don't know if I am allowed to say this but since they are Lesbians, I am not sure who'd be on top
is this convo pg13 or nc16
yes
They also smoke a lot of weed and I am pretty sure I have a constant contact high
They'd probably stop if you make it weirder
gender doesn't matter for top/bottom dynamics...
yep, we should probably drop it
as long as the mods are not here everything is A-ok
it doesn't work like that
it is not illegal unless they catch you.
did anyone see that fucknut the other day impersonating lemon over and over again?
yeah why
someone said we should change topics, I thought it was a funny anecdote
Someone impersonated joe too
i am joe
since bans are IP based they must have been using proxies or a vpn or something, a lot of trouble just to troll
So you are the Joe everyone on the internets are talking about
i want a capri sun
damn, forgot about them
I don't know how much talking about sex stuff in general way is pg13. age of consent varies in different countries, so educational stuff should be okay... in theory. but a lot of adults in power claim that any talk about sex is sexual... <looks at own gov and lobbyists against sex ed>
good because i actually have never tasted one.
wait discord allow ip bans??
Hi :D
yeah but the server owners do not enforce the IP ban. Discord does.
@pale mesa I believe so?
IIRC, someone said bans are IP-based
what a lovely time for you to come back.
Why what's happening
welcome to Python server sex ed
Hello
any talk about sex is sexual
well, let's just get rid of half of the population of my school
okay who stood in front of a mirror and said "Rust" three times?
Both IP and account
#include <ncurses.h>
void draw_circle(WINDOW* screen, int y, int x) {
}
int main() {
int x_rad = 5;
int y_rad = 5;
WINDOW* stdscr = initscr();
noecho();
nocbreak();
clear();
wborder(stdscr, 0, 0, 0, 0, 0, 0, 0, 0);
wprintw(stdscr, "%i, %i\n", LINES / 2, COLS / 2);
draw_circle(stdscr, LINES / 2, COLS / 2);
getch();
endwin();
}
i am drawing circles in THE SAND
Imagine using ncurses and not curses
listen. i am a professional.
Are you though
imma run that
OK
Ah
will that function run stand alone or is there more code
what if i want only acc ban if there are many people sharing one ip
Hm.
you don't 🤷♂️
like i said, i am professional.
Imagine returning
@ruby trellis use godot?
Or you make a bot kick a "banned" user whenever they enter
nope, only game engine i have ever touched is Roblox Studio.
int main(void)
PROFESSIONAL. ahem.
yes but nothing really changed ¯_(ツ)_/¯
Maybe you should reconsider this whole C proselytism thing
fuck ANSI C all my homies use K&R C.
I like the pointer operator on the variable name
man this one job i worked, we got so much roblox fraud
that is a big word that i am too small to understand
that is the only reason I heard of it
C preaching, better?
Does anyone actually use EXIT_SUCCESS and EXIT_FAILURE from stdlib.h?
foo *bar = whee
okay
Roblox sucks as a company.
there are so many people on a same ip like in a family a girl wants to join she was not banned but her brother was banned wond't an ip ban result a his sister cannot join the server
When the mood strikes
better
NICE
yeah but I didn't work for them, I worked for a webhost and ppl would always try n register phishing domains for roblox
hey hey hey
all i said was that C is epic, not that i was good at it. 🥴
Fair
ugh, those people need to touch some fucking grass.
Imagine not being good at every language in existence
I am good at English
Are you though
Im only good at 6'9 languages
For all you know your speaking French
true
Perhaps
nyet comrade
Oui
im randomly banned from shit cuz dynamic ip, weeeeeeh
@serene dagger sounds like a range ban, they ususall expire
I know one word in Japanese
aaaaa fucking christ Vector magnitude.
konichiwa?
hope u have a static ip
kawaii
Oh yeah make that two
:p
sugoi
Arrigato
Baka
i am japanese so i know all the words.
Oop make that three
domo arrigato mr roboto
Si
joking i am Spanish, which is only half as cool.
yeah just pay double the usual tariff seems fair 😩
neko
nyan
nii
nee
baka
sensei
...
Preguntas!!??
what the fuck does that mean
Question
we have lotsa Spanish in the US
Nadar
go brush ytour teeth
Owehapsn
comb yo beard, I don't wanna hear that

joe can
wow you can post lotsa stuff in here compared to some other channels
yeah arrays are cool but hashtables are even cooler.,
I think there's one Polish word that everyone (who played some multiplayer games, at least?) understands
@deep heath I know one or two but couldn't spell them
hashmap sounds better
i am a disappointment 😎
hashmap superiority
hm, interesting... how do they sound like?
lies
hashtable sounds so british
@serene dagger You sure are son, when are you going to be more like your brother
sounds like a YOU PROBLEM.
.uwu associative array
associative awway
'couldva'
✨ hashmap ✨
hashmap is better fight me
array of buckets
mmm, hashbrowns in English breakfast
array o' buckets
yes yes yes
how do you people like the sound of hashmap?
it just sounds so smooth
hashtable
table
hash
hashtable
and professional
map better
sounds like a map to get high
maphash
i will have you know i am the most professional out there.
lies
well im done growing up so never ig 
😮
hashmap is nice cause it has the "ah" sound twice
alliteration
change that to 'eh' and you are a true Canadian.
no, alliteration is at the start of the word
hesh mehp
aha 3v1 now
assonance aint it
that's assonance
@mortal hull curse you and your knowledge
yeah
too smart
fuck hashmap and hashtable.
all my homies say heshmehp
to be left alive
hasmp
honestly I should alias this to hashmap for something I'm doing in the future
please do
associative array is bad
i like the dissociative a... wait a second i dont 
porcupine case?
yeah thats why i became a god instead
modding is boring but if you have your own religion its worth it 😎
lmao
starcy
that is indeed starcy
that is correct
wanna get married?
yes but not with you
lmfao
sad
i mean i just want a wedding party tbh
hm
weddings are fun
yeah last time i wasnt able to get drunk so i need a refund, well i didnt pay but i want another wedding
i only been to catholic weddings they're fine except when they do funny gender role things
i will eat all the food
it's played on a board so...
lmao
new trim what do we think
you look nice
perhaps
excellent idea
my genius never disappoints
blonde beard pog
Once I’ve been to a wedding and they had a fondue fountain
omg
I wasn’t there though cause I was sick ;(
where was my invite!!?!?
My brother went and bragged about it
I've never been to a wedding 😔
we don’t invite banana haters
It’s not that fun to go to one anyways
fool;s
eh, depends
Most of them are a bit boring
yeah but like, it's still an experience
I've mostly been to indian ones, its pretty lively
Fair enough
Anyone ever overthink something way too much
yes definitely
There was this club in my school and the results come out in a while but I’ve been overthinking a lot about all the parts in my interview and how I might not get the position cause of it and just overthinking everything
Even though I gave the same advice to not worry about it to someone else
oh yeah
My mind has pretty much fixated on it for the past few days and whenever I think about it I go in a rabbit hole of all the bad parts of it and then I tell myself to not worry about it then I worry about the next part, etc.
weddings are fun just skip the ceremony and go straight to the party
new joe who dis
that sounds pretty accurate to the processes inside my brain, and I'd wager to say it's the same for quite a few others
Yeah it’s so weird
Like a cycle of everything that was bad in it that I’m failing to see the good
wat
that sounds like legalese almost
I hate legalese
Unnecessarily verbose english, essentially
Used in law
“People were allowed to disagree from the general ideologies until their beliefs became public and people weren’t tolerant of it”
it says that homosexual people were allowed to deviate from what was considered normal (heterosexuality) until it was found out they were homosexual and then people weren’t tolerant of it in that context
Up to you to decide whether itd be a good claim
why doesn't this find the highest and biggest number?
People were tolerant of what others did or said in private, but stopped being tolerant if others did or said those things in public.
It's the "I don't care what people do in the privacy of their own bedroom, but I don't want my kids seeing two men kissing in the park" kind of "tolerance"
better than "I heard he's gay so let's murder him", worse than actual tolerance.
Your limits are wonky all over the place. This accesses scores[10], which is out of range:
double scores [10];
int big;
int small;
for (int i = 1; i <= 10; i++) {
cout << "Score " << i << ": ";
cin >> scores[i];
}
and then the next loop goes up to twenty. That's a lot of uninitialized memory you're accessing.
it's still not working for the smallest number
or biggest
first loop is still wrong
is it because I started at 1?
you skip the first score (which is scores[0]) and access a score beyond the last score (the last one is scores[9], but you access scores[10])
For a scores[10] array, the valid indexes to access are 0 to 9 inclusive, not 1 to 10 inclusive.
on line 11, you mean?
I change it to scores 9?
line 5 is fine, line 11 is wrong.
should it be scores[0]?
you need to start at 0 - so either i needs to start at 0, or i starts at 1 and you access the element at i-1 instead of at i
oh yeah, that's right
for (int i = 0; i <= 10; i++) { is wrong - that loop will fire 11 times, and try to read in 11 elements - but you only made space for 10.
The loop limits are fine now. line 25 isn't right, though. compare to 17
yeah
also, now that I notice... your scores are doubles, but big and small are both ints. That isn't right. either they should all be ints or all doubles, depending on what the inputs are supposed to be
you figure out big correctly now - as long as the largest number is larger than 0
if someone gives you 10 negative numbers, you'll incorrectly decide that big is 0
I'm assuming all the inputs are correct
so no invalid input
so are negative numbers valid inputs?
non valid
ok. What are the valid inputs?
like 98, 83.4, typical grade stuff
they must be greater than or equal to 0 - is there a maximum?
less than 100 greater than 0
got it.
like inputting grades
is this homework?
no, it's allowed - I'm trying to figure out the right type of help to give 🙂
you're not initializing small right now. So, your program likely doesn't figure out small correctly.
every time you check to see whether an element is smaller than small, you're hitting undefined behavior, because small has never been initialized.
ah, good catch, small should equal 0
if real inputs are allowed, note ^. Your program will fail to correctly show floating-point max/min.
right. if your scores are of type double, big and small need to be double, too.
yep, changed that
so if I want to find the average of all scores, would I do the same thing and add them and divide by a count?
then - you've made small start at 0. Run your program - does it work?
(it doesn't, but I want you to see why)
yeah it doesn't
what does it say small is when it runs?
it's 0
because I made it 0
it should be small = scores[i]
see if that fixes it.
still nope
you're starting with small initialized to 0, and on every iteration of the loop, you compare it to see if one of your inputs is smaller than small - which it never will be, because none of your inputs are ever smaller than 0
yeah
so I don't initialize small
you must initialize small. If you don't initialize it, then every comparison is indeterminate
oh wait
I initialize it later
not in the beginning
like this
wow that took awhile
that'll work. if you're going to do it that way, you should do the same thing for big
instead of initializing it to 0, you can initialize it to scores[0]
wait why
why isn't it = 0 in the beginning?
for consistency - and because it makes the code work for any number. If you do that, it will work for all negative numbers as well, which is better
since you're not doing input validation, it's better to make the code work for every possible input
so I remove the double big = 0 and change it where?
what you have isn't wrong, assuming all the numbers are in the valid range. But it would be easier to read and understand if you treat big and small to work the same way.
You'd remove double big = 0 and add double big = scores[0] after reading in the scores, before the first for loop
ohh got it
so how do I find the average?
compute the total, divide by the count
since you know there's exactly 10 scores, the average is the total divided by 10.
I got an interview for a data analyst position, I was wondering if that is any coding since I am a computer engineering student. Does anyone know? It seems like data analysis is mostly excel/making charts. ALso what python librarys are needed? I know Numpy is one
pandas would be another. This would be a good question for #data-science-and-ml really
matplotlib too probably
yeah got it. how could I find that I entered in duplicate scores?
like out of the 10 inputs, I entered in 5 twice
the inefficient way is nested loops - for every element, check if any element after it is equal to it. The efficient way, but with more up front work, is sorting it and then seeing if any element is equal to the next element.
https://www.toptal.com/developers/hastebin/isagivibaz.cpp
this is what I have so far
I can find if it's a duplicate value, just not which value
alright, changed that
and - what you're doing right now is finding if an element is a duplicate of the one immediately after it. If your inputs are:
1
0
1
0
1
0
1
0
1
0
then your program won't think there's any duplicates
any idea how to check?
^
old Risen returns 
did you quit coding?
oh
yooooo my friend helped me make a parser !! ><
luthor :: String -> TokenStream
parse :: TokenStream -> AST
eval :: AST -> Integer
here's the grammar, it was very simple
stmt = "print" expr;
expr = term ( "+" term ) *;
term = litr ( "*" litr ) *;
luthor??
lex luthor
fjknfds cuz it's the lexing function
and cuz lex is defined in haskell prelude so i had to chose something else to avoid name conflict
lol
lmao
amazing
bruh
I have these partitions in my HDD (yes it's totally messed up), how can I combine the G ones and the Unallocated ones into.. um... groups.
Somewhat like this...
----F---- Unallocated ----G----
oh, what to do in that?
this thing right?
yeah
ohk
I forgot how to use it though so I just use tutorials
Hey guys, How can i see metadata ? A friend of mine had some messages printed in a private facebook group and then leaked, we don't know who leaked and we think that metadata could help us
metadata of what exactly?
she sent the image for me, and i dowload it, idk if this causes some trouble
hmm okay what should I google? I have no idea what to google 😂
the author, like the people who printed
"How to merge partition and unallocated using diskpart command"
okay thanks 👍
because i already dowload some pdf-it was a balance sheet- online and could see the author of it,
Should people break the computers
sure! why not!
no
yes!
But if you break my computer it's gon' get wicked ni-
anyways, how can I see the path of any disk on windows? I mean like when installing linux it shows paths of each disk like /deb/sda etc
wtf
wot?
how did you manage to even do that
no, I am asking of how to do that 😂
oh wait are you talking about the paths shown in linux?
no, the amount of partitions
amount of partitions 😕 this?
merge them
yeah but how? I dunno what to do
uh wait, I don't want to merge unallocated with G:
Because they can be useful
uh they aren't
Yeah
a lexer called luthor is a pretty solid joke. A+
I found out a way of fixing that mess. || I barely have any useful stuff in any of those disks, I'll backup the important things delete all of the disks in my HDD (because C drive is in my SSD) and then I'll make partitions of the unallocated space of the same size as I have now and it'll be cleaner than what it is now || seriously 😂
don't
this will mess up even more
._. how?
idk i haven't touched diskpart in year cz i use the gui
yeah, I am also using the gui
how is deleting everything and starting over going to mess it up worse>
that's the best way to do it.
I don't even know how you managed to get it that fucked to begin with. You are correct with your plan Risen, just make your backup, nuke everything and start over
idk he gonna delete it from the gui
yes...that's fine?
just make sure he uses another pc
works exactly as expected in this case
no I dont D:
you don't have to do that from another PC?
It's not his boot drive, those are all secondary drive letters.
MAKE SURE HE USES ANOTHER PC OR IT WILL MESS UP WINDOWS IF HE DETELE C
Lol I have it in my SSD and this is my HDD
And for the love of god, please do not try to provide aide if you do not know what you're doing, or aren't going to take the time to actually read and comprehend the situation.
yeah ur good as long u backup
Especially when it comes to things that can actually cause data loss, or worse.
I am backing my stuff up rn
ok
Damn one drive on chrome crashed while becking up and my pc is lagging really bad 😂
:>
I had never expected that I would have to destroy my hard drive just because I messed it up while creating partitions lol
tried to stop crying by sleeping but failed so now I'm here weeeeeh
why u cry lol
society
ppl suck at parenting and i self inserted, felt personal
cant imagine abusing kids under the pretense of "they dont know whats best"
well nvm i can imagine feels disgusting and literally cry over it wtf
yall know of ANYONE who's ever gone "gee i sure am glad my parents removed any agency i had and decided in my stead"?
what's that?
i think they call it empathy
What's the problem with crying?
nothing, i got a problem with what it caused it
I misinterpreted you
no this
idk what .NET is 😂
ayy clean af again! Just have to put my files ad folders back in
wish i had some of that unallocated space
fr
?? you don't have enough space in your pc?
i do but it never hurts if u have more
so?
so
for things i could do if i had more space
.NET 6 looks cool in a lot of ways
hmm, I wish I could give you my G and half of my D drive, I don't need much storage. However, I cannot give you the unallocated, I need it for PoP!_OS.
u cant give me space in any way lol
this means that i think letting your kids decide is based
Things is, I'm kinda afraid of grabbing a C# course outta fear of out-of-date
record structs 👀
Like, when .NET 5 was released, I let it sit for 6 months before cruising Udemy for courses. None of them got updates for it
wELL THEY CAN
Also, lmao:
Hot Reload enables you to skip rebuilding and restarting your app to view a new change — while your app is running — supported in Visual Studio 2022 and from the .NET CLI, for C# and Visual Basic.
Literally a month ago, I saw someone on this discord ask if C# had that; in an argument about C# and Java
Well I would need them if I had good RAM because if did then I would be able to play much better games and they require more storage
hawt
how?
I'll mail them my hard drive lol (lame joke)
well break into half and then send them because I need half of it 🤷♂️
Yall made me hungry rn
I THINK I SENT THIS LMFAO -> a simple file upload/send server which downloades the files onto their other drive would work as "sharing them"
-_- that's sharin' files, we're talkin' 'bout sharin' storage. (damn so many abrvs in this)
Can rats be controlled with arduino
yes
AMD announced 128 core CPUs for 2023
How?
ok
hi @jagged obsidian
uh ok now click on the buttons ig?
exit works though
the error? also try clicking on exit
so like did it actually close the window or not
it closed the window
TypeError: int() argument must be a string, a bytes-like object or a number, not 'builtin_function_or_method'
at line 197 if self.score >= int(self.high):
THATS REALLY RIGGED
fr lmao
second run:
I'll show this to the arcade devs hol up
yea seems like an arcade problem
uh/
can't wait to play eef
this is really weird, its not supposed to happen
It's an Arcade problem
:/
probably a bug, i'm on Linux btw if that matters
i think maybe that does...
re
👍
that's me
omg yes re my 1st game!
i cant wait to finish development on re
I see Ubuntu UI
pop os*
AND GOT THEM CORRECT WITHOUT CHEATING
oui oui
oh. I had faith
yes you do
just because i haven't slept in a while doesnt mean im sick
uhhh so guys. i want to convert something i read from a file (which is a number, thank you) to an int but its giving me an error :(
anyways i want to make a wikihow ass website to put shit tons of ads on but i SUCK at django lmfao
adding another endpoint in django is hardd
with open('something.txt') as f:
n = int(f.read().strip())
are you talking money here
yeah
here's what i have rn:
with open("Assets/High Score.txt", "r") as file:
self.high = int(file.read)
let him sleep
what should i edit?
@oak hemlock hii help
ah yea i saw that in your code, it's int(file.read())
is flask an OKAY library to make a website in
Yes
i'll migrate the code to django if it takes off
um yes i know i forgot to add it ig
Flask is good
call file.read
oh.
lemme try and see if it works
4 kids ones and 4 scuffed news ones
kids channels make bank
i shall profit of children
profiting off children
oh right 3 am me.
seems kinda... suspicious
i shall eat children
this explains my POV on Pop!_OS \😩
OH GREAT
pop OS aint bad i've hear
it's quite useless
I'm convinced that Pop!_OS is just a marketing scheme
i'm old school even though im 14 and i'm scared as fuck since i paid like 2 grand for my machine
POP OS IS GOOD
"but it supports my drivers !!!"
no more than Ubuntu
i'm just gonna stick with macos and not use linux or I will break my pc
hate Pop!_OS
ok then ill install arch linux
._.
I can't tell if you're serious tbh ;-;
do we know each other
I've installed arch like 3 times
aaaa why does this have to happen
fdisk, mkfs, genfstab, pacstrap, yk
a ton of unnecessary pain
Pacstrap what dis
imagine wont send
it's lightweight thoooo
installs packages to your system
yugyughszvat4wsuh
cable management at it's finest
Arch packages use more disk space than packages on other systems
THEN WHAT DISTRO DO I USE
I'd suggest an Ubuntu flavor
haha yes milk go slurp slurp
ubuntu best
yes yes yes
Xubuntu and Kubuntu (or KDE Neon) are great
fuck this ima install gentoo
._.
haha yes im so mad why wont my stupid code work
IS MYSETUP GOOD
seems like a big mac
sad
I WORKED HARD, BRO I WENT TO IKEA AND BECOME BOB THE BUILDER AND MADE A DESK
idk what your setup is
yes there is an ikea in india now
@oak hemlock
me, a windows user: 👍🙂🔫
windows kinda cringe
oh
i can see you're a windows user @polar rose
ok
I know nothing about setups tbh
unix ftw
paths in your code has a forward slash
too poor for that
lmfao
yes.
my setup didn't cost THAT much
it shouldn't matter
wHat do you mean
I'm pretty sure most Python path handlers are slash agnostic
\👍 \🙂 \🔫
desk was around 80 dollars and then monitor was another 120 then keyboard mouse costed like 100 bucks
I could be wrong... I don't mess with Windows paths
they are
300 bucks but i got most of them on sale and with vouchers and shi
so i paid more like 150
are you indian?
I know
you can use backward slashes or forward slashes, it doesn't matter
hate Manjaro \😔
yeahh
WHY DO YOU HATE ARCH SO MUCH
I don't hate Arch
Arch-based distros you hate?
Indeed
but why
they have an install gui?
No???
@jagged obsidian can you do python3 -m arcade and see what version of arcade you're running? a dev said 2.6.5 fixed the issues
https://zorin.com and https://elementary.io seems funnn
2.6.5
They're both awful
...and i'm running AMD i'm sorry please forgive me
like seriously
im running amd too
They're aimed towards people who don't know what they're doing
yeah well my laptop is shitty
idk they look sleeeek asf
Zorin OS? haven't heard that in a long time
because people who do know what they're doing
from 2016, 4 gb ram amd e2 7th gen lmao
don't use Zorin or Elementary
ye like old people
but zorin good ui thoooo
bro that's their market, old people and people who don't know what they're doing
a UI you can easily get on any distribution
like a off brand windows
Zorin and Elementary are purely for the Google image searchers
i remember loading up zorin on my grandmas old laptop and it worked okay
That's what I am
but then she got a new one
Windows by Vin Diesel
it does look nice though
exactly
sure, and Manjaro looks nice
and Manjaro's one of the most unstable distros to exist
i don't like manjaro ui
made by some of the most incompetent devs
wOW
Why I have manjaro
are you guys talking about linux . . . ?
Yes.
okay looks like i need to make my own linux distro AGAIN
o h
i'm going to make another ubuntu based distro
Without a usb drive
You can make it look however you want with little configuration
idk sh8 about linux
do i really need to install the ubuntu "bloated" distro
and it'll be stable as fuck
LMAO
or does the minimal installation option fix that
"bloat" is very subjective and has no good meaning within this conversation
hmmmm
Arch in the long run would be more "bloated" simply because it doesn't split packages
the devs solution was to setup the view before switching lets see if it works
meaning you're downloading developer headers and source every time you install a package
Ubuntu is not "bloated" and those who don't like snaps (understandably so) can simply uninstall it
ubuntu ui does look nice now though....
Do yourself the favor and not Google image search for distributions
because you're in control of your DE
If it looks terrible, install a couple themes
@jagged obsidian did i have to use strip to convert it to an int?
File "C:\Users\Lenovo\Desktop\Reef 2D\Reef.py", line 90, in setup
self.high = int(file.read())
ValueError: invalid literal for int() with base 10: ''
If you like macOS UI, cool. There are a stupid amount of themes like that in the stores
This guy scares me
he has nice ... ears
there's nothing in your file
but there are plenty of distributions that just shouldn't exist
and people all fall into the same trap
his nose looks . . . like something
it has 0 in it
Testosterone
from flask import Flask
app = Flask(__name__)
@app.route('/')
def index():
return 'uwu'
app.run(host='127.0.0.1', port=8000)
``` flask quickstart
Python says otherwise
while django quickstar is just wOW
oh wait it actually does not
Best app ever
yessir
uqwuq
uwquqw
the momento of truth
will my code work?
probably
nope.
app.run(debug=True) make it this since uh
nope. ofc not.
well c'mon hot reload is amazing.
lol
use flask run instead
curse you, silly mistakes
python3 -m flask run perhaps
hm ok it should work now
that, you are
i wonder how many kids in india even get like a 70$ setup, let alone 300$
im saying that as a 13 yr old who's been pestering his parents for 3 months for a new laptop for 500$ 🥺
i don't think your parents are happy
for my setup i have:
a 2016 trashy lenovo laptop
its charger
its adapter
a hp mouse which randomly shuts off
a half tattered mousepad
"setup"
that's ok just get another mouse
i prefer my trackpad anyway lol
I had to switch back to Windows
what
File "C:\Users\Lenovo\Desktop\Reef 2D\Reef.py", line 90, in setup
self.high = int(file.read())
ValueError: invalid literal for int() with base 10: ''
again
My hybrid GPU setup just wasn't working well
use pop os
No. Pop!_OS won't help me
I know this for a fact
plus I despise Pop!_OS anyways
guys yalls got any idea as to why my file is just turning... blank every time i run my code?
The only distribution that'd have any difference in result would be Arch simply because it gets updates quicker
You might be opening in write mode
You're probably writing it empty somewhere else in your code
if self.score >= int(self.high):
with open("Assets\High Score.txt", "w") as file:
file.write(str(self.score))
self.score is 0
Yep
You're opening in write, which will wipe the file
So only one number is ever going to exist in there
aw man what do i do then
At a time
open in append mode
open it in append a
im implementing a high score system to my game
ok
we can see
JSON might be a better method for this
^
if self.score >= int(self.high):
with open("Assets\High Score.txt", "a") as file:
file.write(str(self.score))
but he's just storing a single number?
i have no experience with json, arcade is my 1st library
If you're going to save like, the name of the user as well or something JSON might be a better choice
and yes i just want 1 number in the file.
They want highscores to be added to that file, yes?
i mean yea
\🤔 shouldn't it have been working then
i dont want all highscores right
i used "write" which wiped it ig
i dont want a leaderboard
and then you wrote the number to it
this is my first game, first library
Friends library
lemme just try it with append
so it'd wipe, then write the number... it should've been fine
The issue would be related to wherever you're reading it
im reading it... at the top?
Could you send the code?
with open("Assets/High Score.txt", "r") as file:
self.high = int(file.read())
The whole file, you mean?
all sections with read/write operations
So wait, what was the previous issue you were encountering? What error was it that you were getting?
arcade.draw_text("High Score: " + self.output, 15, 575, arcade.color.AIR_SUPERIORITY_BLUE, 20, font_name = "Simpleton Gothic")
uh wait lemme show you what output is
maybe it would be better to have the whole code at this point
self.output = str(self.high)
this is not very helpful lol
https://drive.google.com/drive/folders/1raR1bc_qP_S4WCI855CpyzoCwoLp4Mdn
the code he sent me
ooof ill just send the whole file
thats kinda old
then
!paste
Pasting large amounts of code
If your code is too long to fit in a codeblock in discord, you can paste your code here:
https://paste.pythondiscord.com/
After pasting your code, save it by clicking the floppy disk icon in the top right, or by typing ctrl + S. After doing that, the URL should change. Copy the URL and post it here so others can see it.
send us the new one
Hey @polar rose!
It looks like you tried to attach a Python file - please use a code-pasting service such as https://paste.pythondiscord.com
lol
ugh.
ctrl + a + c
i just pasted it earlier in pastebin lemme look for that one
actually ill just do it again its old
yeah
im using idle rn to save on ram cos discord and chrome take up so much together and i dont have much
:/
ugh i wanna use vsc
i only have 4 gb :/
Here ^
so use something like Firefox or Microsoft Edge and open Discord on the website
that'll save you a good chunk
nah
im just gonna close idle
and as soon as someone can find out whats wrong w my code ill open up...
surprise surprise
||notepad lol||
so what was the problem again
I don't see a problem here
powershell
good lord I hate Windows
no u
I open notepad and my computer has a heart attack
powershell is very useful
i have 16gb yet still use linux
I have 16 GB as well
Nice
and I'd use Linux if NVIDIA wasn't a pain in the butt
i have 4 gb ._.
developers or developing
idk why you're using the Discord client on such little RAM tbh
Try putting your ram in rice, that'll fix it i think
probably
both lol. I mean the ones that have stinky anticheats though
im gonna take out my ram and put it in rice for 48 hrs guys brb after thats done
i wish genshin ran on linux
plus Curseforge doesn't support Linux
it can, but only by bypassing the anticheat
which you definitely shouldn't want to do
if it still won't work, im not gonna add high scores :/
So the only way is to riot mihoyo hq?
hi
@polar rose to be frank, your code is kind of a mess
oh wow my program went to not responding
we've seen where that gets us
✨ nowhere ✨
:qiqi_fallen:
is there much i can do about it? afaik thats how arcade works
wee
use more classes!!!!
add a HighScoreManager, Player class
and write documentation!11
I just think your methods are a bit... clunky and "full"
something something about KISS principle
like some of these classes are erring on "god object" mode
sadly, the only way to switch views is to make classes.
For reference: https://en.wikipedia.org/wiki/God_object
In object-oriented programming, a God object (sometimes also called an Omniscient or All-knowing object) is an object that references a large number of distinct types, has too many unrelated or uncategorized methods, or some combination of both. The God object is an example of an anti-pattern and a code smell.A common programming technique is to...
no god objects here
be the change you want to see
here in clean code land we have 10 line classes
idk, too much logic is going into these classes imo
atp just rewrite the game or something
welp which one exactly? im pretty sure i cant change anything without arcade screaming at me
wait I get what you mean now
adenosine tri phosphate \😩
fuckshit python is not responding im removing the whole high score thingy
I only speak English sorry
at least exit works
Flashbacks to bio last year
A highly used coenzyme in the body, basically an energy carrier
OH MY GODS IT WORKED (HIGH SCORE DOESN'T WORK BUT IT LOADED)
I never had to learn about that in biology 😔
idled too long :/
okay but how does that relate to me saying "atp just rewrite the game or something"
atp
ITS "AT THIS POINT"
I don't memorize the name :faint:
okay my code crashed after clicking restart yay
atp install memory \😩
im gonna keep trying hah
when I run into bugs like these I rewrite my code
i cant \🙂
im not rewriting evrything, no thank you
tbh rewrites are fun
amazon search "8gb ram" | amazon buy
gross
also if you're wondering why i define "none" in the init function its kinda necessary
i dont know why or what but the docs say it is so IT IS
wait
noice one more error which is longer than my code itself \🤓
if self.score >= int(self.high):
with open("Assets\High Score.txt", "a") as file:
file.write(str(self.score))
See if you can spot it \😩
yeah?
append mode? idk
im really fed up and no i cant
WELL
someone told me to make it append
Use https://macosicons.com to make your icons consistent. That's what I use.
How to change icons: https://macosicons.com/how-to
ah backslahses
dunno about that tbh
afaik thats not a problem
not in this context
all my assets use backlashes and they work
In [5]: print("foo\H")
foo\H
\H won't cause an issue
Wtf why
it would be problematic for \n and stuff
ah ok
cereal whats the problem tho
\U is a common one, since that's the unicode escape character
pretty sure it's the append mode
And used in windows a lot for \User or whatever it was
it's cuz u aren't using Rust /j
I wanna ||give you up||.
I wanna ||let you down||.
I wanna ||run around||
And ||desert you||
jack told me to use append so it doesn't wipe it or something
