#code-talk
2 messages ยท Page 3 of 1
wrong channel ?
nope
he says the game should be made in c++ instead of blueprints so it will use less cpu and be more mobile friendly, and that i have no idea about anything
ah, those blueprints
And I'm not saying it should be easy, or even ported to mobile
But I am saying I see a large part of the problems in the technical discussion
come from people on sub par hardware
lol now we're in the wrong room again haha
I mean this game doesn't look much better than counter strike 1.6
So I'm saying kids with laptops playing this game would complain less
im guessing the lighting model is more sophisticated than counter strike
Still code
and more post processing effects
its less code, and now more technical
as soon as you said c++ they made us leave
I'm not moving channels again
If they wanna move me they can
Technical chat AFAIK is "hAlP gaYme No rUnNiE"
i was programming games in c++ long before the fear of managed code
omg, we're wasting cycles! how can a game run with garbage collection! oh no
but then it was all nothing
and that managed layer makes portability a lot easier, i know with unity it sure does
I mean look at command and conquer Tiberian Sun, or Firestorm and the RTS games now
They're shit in comparison
Due to Westwood's tireless efforts of optimization
No unit caps
No frame drops
Excellent pathfinding
swooont
yea id also say older RTS games were geared at a narrower range of hardware
a thousand fold more narrow, in capability, and brands/drivers
its like programming for a console - you know exactly what youre targetting
It was still infinitely more complex than consoles
I mean you had voodoo graphics back then
and ATI
and a fixed graphics pipeline
but experience has taught me thats more likely over ambitious lighting models than micro optimizations or using c++
and the C purists scoff at them even
and theres ALWAYS that person who brings up that roller coaster tycoon was made by 1 guy using assembly
you're full of shit
you havent heard that?
you cant compare sprite based performance against 3d
no fucking way
I can't even type lol in chat
god damnit
so good tho
The guy died by getting hit by a train
its a conspiracy
globalists didn't want us to find the truth
the world will not miss his OS, probably not him, but maybe his sense of humor
The guy was a fucking nutjob and it was hilarious
poor guy he definitely had schitzophrenia
oof
Yeah I just read the case file
It mean just from a speed read it looks like he was upset over custody
i took hayden's CV on accident once, and i thought he was gonna go reiserFS on me
I want to type "HAHAHAHAHA" in chat but I keep getting warnings for using all caps
innapropes humor ftw
sorry for being a cvnt earlier. I probably should have been more descriptive in my suggestion and the plights of using interpreted blueprints.
cant remember where its triggered
It just kind of irks me that people get big dick praise for using blueprints compared to a big boy language.
but I'm an asshole
i feel u fam
not like the roller coaster tycoon guy
So u a game dev too or what?
I've been teaching myself UE4 as a hobby @long raft but WebDeveloper Fullstack by trade.
lol no wonder you hate interpreted languages
lets use node for everything said every fucking new developer
Its only in the past 3 years my raging node boner has subsided and I've seen the truth.
oh boy, perhaps you havent worked at one of those places that decides theyre gonna use ruby on rails or lisp or something way too exotic
I've worked for more startups than I can count. Back in 2011-2013 everything was ruby
Then 2013-2015 everything was node
Now the new hotness is Go
i dont know ruby, and i havent worked with node, but damn i hated when ruby was hip
go/rust are pretty sweet new languages, though
I tried to get into it but the package manager and environment managers were such trash.
and dotnet gonna make a big comeback, mark my words
dotnet is open source
wat
hahahahahahahahaha
and its cross platform, its on linux
I was just about to ask
some folks even compiling it on unix
Yeah because last time I used dotnet you still needed a windoze box
i think its going to get popular again for web
I mean
I'm of two minds
If Microsoft ditches the fullballmer they've pulled for the past 20 years
trying to kill Linux and all
then I'm all for it
theres good parts of ballmer too..
but, they've been trying to kill Linux for 20 years
microsoft always tried to please developers as their top priority
yea i know, theyre a major contributor to the linux kernel now
like, virtual machine drivers that are part of the kernel for hyper-v, etc
Except that VMware uses 4.14 kernel without paying licensing fees to the Linux foundation
i hear they run way more linux than windows on their cloud, azure
for like 5 years or longer
linux kernel comes with a license fee now? for what
Lemme get you link
also, vmware is vmware, not related to microsoft
But its the big 3 right
All of them embracing and extinguising
is what I've been afraid of
uhh they trade teceh on virtualization a little
but vmware is its own giant fortune 500 company
Correct
hold on lemme get you link
You like Brian Lunduke? He's kind of a twat IMO but he makes good points.
a lot of microsoft's customers are running vmware, so they want advanced features on those, even if its in vmware, like remotefx
i dont know him
i dont think microsoft would ever risk using GPL code
Well here's his channel
Home of some of the most-watched videos about Linux on the planet. Plus videos about Games, Networking, DIY Hardware, 3D Printing, and Open Source... you kno...
He did the "Linux is trash" TED talks for the past 10 years
All of it jokingly
but as a way to focus the efforts of developers
i trashed linux seriously for years, but here i am using it extensively now ๐ฆ
Microsoft has started to win me over by open sourcing VScode
and unlimited free private repos
hah, vscode pretty weak tho
Eh. All my experiences with big boy IDEs have been unpleasant
seems less capable than notepad++, definitely less than vim
I'd rather customize VIM or Atom, or Sublime within an inch of its life
visual studio is a magnificent wonder, and intellij stuff is great too
wha? community license
Hold on lemme check
same with visual studio (windows only)
why am i using it free then?
must be educational
i mean, i cant justify using a paid version unless youre using ... perforce
whos using perforce lol
people who can afford to pay for a yearly license
oh, yea perhaps its not a good web IDE
trying to switch to VScode
i use it for java development when i have to do java
I've found some languages just dont have any good IDEs, like php
Yeah
I loved their intellij for PHP
being able to see the variables in memory
set breakpoints
it was a life saver
its pretty awesome huh
But most the stuff I do these days is just ecommerce for shops
such conveniences im very used to with the old classic languages, but for a web stack its so helpful
All people want is to setup webshops
microsoft's contributions of rosalyn and dotnet are serious tho, i think way bigger than vscode
its like releasing all of java as open source under a super liberal license
what do you mean? microsoft is more valuable than ever before
oh you just mean like with coders?
oh i heard azure was making lots and lots of money up until just recently
not really a rival to amazon but still very profitable i thought
I mean its not going anywhere anytime soon that's forsure. But the market force of docker and containers is undeniable.
And you need a linux kernel to run those containers on.
yea, im really hoping they complete the linux subsystem so that it can run docker
i mean you can run docker on windows, but its in a VM, so its just not as good
Yeah layers upon layers of emulation is no bueno
But here I am running windows within linux
not that anyone would really run a server farm full of docker on windows anymore, but just to keep developers using your OS
do you play foxhole in windows or linux?
Both
Depends on if I feel like rebooting or not
If I'm recording or streaming I reboot into windows
is one better than the other?
oh so its dual boot? not gaming in a VM?
You don't even need to emulate
Runs natively on Linux
Setup Wine with that get identical windows speeds.
wasnt there a new feature from valve for steam? play or something?
oh so there is newer?? wow i had no idea
DXVK development is happening so fast they haven't even merged 1.0 yet.
i heard it was based on wine, not dxvk
And 1.0 has been around for like 2 months.
Oh Wine is dead
Developers hardly commit
Mostly out of fear of breaking old hacks to make shit like Photoshop work
i was toying with vga passtrhough to get windows in a VM with a video card, managed to get it to work with the single video card
There was an open source reverse engineering of the Windows kernel
It emulates upto Windows XP with like 99% accuracy
I forget what its called though.
but nvidia changes the drivers often to detect pass-through and disable acceleration
i totally had it working
You need 2 video card
yea, it would pass through to VM, start up windows VM
nope, you dont lol
i assure you i did it with just 1
it was a huge pain in the ass to get a version of libvirt new enough to hide the virtualization from the nvidia drivers
and i never figured out how to give the video card back to linux host when guest shut down, but i didnt really try either
AFAIK VM passthrough works via VFIO and ROM-BAR.
VFIO prevents host device from initializing video card
rom bar i think is for VGA
i was able to flash my 670 with a UEFI firmware
did the whole thing in UEFI, the VM too
Yeah you need to
im not sure if it was necessary, but with a vga kernel i never got it to work
I too have done it to get HW acceleration in my MacOS VMs
but I always needed 2 video cards
it can be done with 1!
link pls
i onyl found like 1 other documented person doing it
and his method didnt help me, it was kind of self derived
i dont have a tutorial i could link you
instead of 1 for desktop and 1 for VM
i could share my notes, but i didnt cull out all the stuff i didnt need
me too
amd vs intel wasnt an issue
1 for Desktop
OH
You'
You're using the Intel integrated graphics for desktop
and using GPU for VM
amd vs nvidia was, lots of people had more success with amd video cards, but i had nvidia
no, i dont have onboard lol
wut
okay
yeah I need notes
Also
check out this project you'll probably love it
very poorly documented notes, i messaged you with them
it took me ... literally months
Yeah I mean
i tried several times for about 3 months
I love this kind of stuff
I'll never need to reboot again
I've been trying to get this to work
and the first time it was all on zfs (that was the goal, windows on zfs) which just complicated it all more
hmm
You should hop on the level1 forums they're hella smart over there
if you go down this route, you find a lot of people using uhh whats that linux freenas software..
unraided
trying to pass through their video cards, those are the most helpful posts, but not always useful
Looking glass, or your route?
the route i used, and some other people
honeyDiq you are the only person i have ever impressed by doing this
youre definitely the only person who ive ever talked to who understands the difficulty of it even
You need to hang out with more devops
My kind of mustard stain mouth breathers
all the same
Extremely impressive
i do! on irc. and they dont care.
They're idiots
Hang out with the old hat dudes
I guess they espcially don't care
But I understand the difficulty
i took those notes because i wanted to make a blog post one day, since i wasnt able to find any intel, but eventually i just figured nobody else would care to know
Mostly because I dabble in artificial intelligence and deep learning, but also like to play video games, but also have to do cross platform development
and especially now with dxvk, is this valuable to anyone anymore
Well yes
if you can run basically any game on linux now, and gpu compute is probably easiest on linux anyway
Because any game that uses anti cheat looks for libraries that hook or modify the DirectX library
and that's exactly what DXVK does
oh
so guess what
instant ban
For just playing games on Linux
So this is invaluable
does proton have that problem as well?
Yes
so perhaps the part not documented is the nvidia hiding stuff
its probably in that libvirt virtual machine definition (youll need to read it in a markdown reader to deal with the html encoding)
some small like xml attribute that handles hiding it from the drivers
otherwise, it works, it boots and you get video, but no accelleration
Yeah there's lots of weird undocumented attributes
yea i feel like i scoured all of google to find the settings in that document lol
I had to fuck with the xml config using virsh to get SMT (AMD equivalent of HyperThreading) working
But yeah man I do all this stuff all day
Add me on steam
I see you play warden too
๐ค
Well I mean I still play video games
god look at the nonsense in that kernel arg line: amd_iommu=on video=efifb:off nofb nomodeset pci-stub.ids=10de:1189,10de:0e0a,1002:4383,1002:4397,1002:4396,1002:4397,1002:4396,1002:4383,1002:4399,1002:4397,1002:4396,1b21:1042 vfio_iommu_type1.allow_unsafe_interrupts=1 pcie_acs_override=downstream
everything except the amd_iommu was a painful web dive
I've read the documentation to every kernel option for AMD virtualization
might be nvidia specific then
or to my motherboard.
i mean, i had to blacklist the nvidia drivers on the host too i think
That's typical. You don't want them being accessed before VFIO
i really was treating it like a headless machine, not one i would switch back and forth the video, so ... its obviously going to need work
Unless you compile the initRamFS from scratch with every kernel update and give VFIO first priority.
Then you don't need to blacklist
i was using ubuntu, so i think it was triggering initramfs-update
Yeah but are you controlling the module listing priority?
Ubuntu typically loads video drivers before VFIO
hmm i did add some modules in the initramfs
I use Arch
but i think they all come last
so we use mkinitcpio
im actually not sure
ah fancy mkinitcpio =\
wish i had some of those features available to me
why is AUR better?
im kind of more of a BSD user so i dont know much about arch really
None. Every update everything is checksummed. Keys are updated constantly. Packages are removed is developer is no longer active.
The only security price we pay
so some arch authority decides whos allowed into the cool software club?
Is when developer gives away package authorship to a random
and they inject malware
But that hasn't happened in a while.
Arch is a pretty tight knit group
Oh no
AUR you void your warranty
anyone can submit their repository?
Yes
so its like adding ALL the PPAs that are still active
But 99% of the time the AUR packages are maintained by the original package maintainers
Essentially
No needing to add and manage PPAs
its all centralized
But they do not distribute binaries
only source
ok that part sounds nice
This simply automates building the binary from source
im still waiting for canonical to bring zfs to the setup so i dont have to bootstrap this stuff anymore
same issue with arch
zfs?
๐ฎ
You managing a server farm?
no
porque no btrfs?
omg btrfs? do you hate your data?
lol
I don't know the big debate over on phoronix has been the zfs guys vs the btrfs guys
its simple
zfs is the only enterprise level open source file system
perhaps before zfs, the definition of enterprise level was much lower
some distros are moving away from btrfs as default file system
Wendell over at level1 techs is a pretty big ZFS evangelist aswell
sometimes it just ... dumps your data. plus all the classic file system bit rot and z write problems
But problem I've heard with ZFS is it uses quite a bit of compute.
zfs not perfect, many problems, but its just the best available
I mean I guess I don't have to worry about that
there are many myths about zfs, biggest problems is that its not good for ssd, and it doesnt resize/reconfigure well
Switching to Zen2 soon
old myths about needing ecc ram, and catastrophic failures, etc
no trim support on zfs, thats the big downside for me
really? ive never burned out a TLC yet lol. in fact all mine says like 8 years left
no fucking way
I've been paranoid
I wanna keep these babies going as long as possible
theres tools that will measure their write rate and predict how much life left
So I farm all my write intensive tasks to my HDDs, and read intensive to SSDs
basically
/home is HDD
OS is NVMe SSDs
i think ... you can just count on ssd lasting longer than any of your hard drives
even with writes
That does make me feel a little bit better
it shouldnt lol
hahahahahahah
im saying youre not worried enough about your spinning hard drives
Heat Assisted Magnetic something something
Basically they super heat the rust
to store multiple bits per sector
Let me get you video
Thanks dbrand for making our CES 2019 content possible. Check out the Grip and Prism at http://dbrand.com/grip-prism Buy our new merch: http://lttstore.com F...
he says hard drives are boring - i love reading the quarterly backblaze hard drive loss report
tl;dr - seagate sucks under 10TB
Failure hasn't changed. But storage has increased
current industry standard is 12TB correct?
or was it 6TB?
i havent seen a 12 TB in person yet
If we're talking about the same report
They're just enterprise drives
the shit AWS uses
well seagate drives were terrible before their 8TB
the last 3-4 reports i saw they were finally improving
but backblaze doesnt buy a lot of seagate so the sample is usually smaller
ah gotcha
Yeah I've some WDs here
the 4TBs
3 or 4 of them
3 in server
1 on worstation
that guy is freaking me out the way he waves hard drives around
ive ruined drives with less
his other videos are just as bad
Literally drops brand new 1080ti
drops whole workstation
its a meme at this point
hold it like a baby, damnit!!
hahahaha exactly
Yeah I mean this game fascinates me
the technology they use
The AWS or Azure costs
are probably anally fisting them
im not totally clear, sometimes i think theyre steam servers?
but then are steam servers run on amazon?
well thats cool, looking forward to some new seagate stuff
ive done everything except AI
oh, no low level driver/OS stuff either
lots and lots of data manipulation/processing, too...
Nice
i grew up on game programming though
I mean we didn't have many engines available to program with before UE4. There was UDK but that was trash. Unless you're much older than I am, and are talking about like Commodore type shit.
back in my day we considered directx/opengl engines
Hmm
i started programming 3d graphics on directx5
Word
Yeah a little older than me
When I first started dabbling in code it was like 2007-2009.
Before that I was just running CS1.6 servers at home.
wow you know a lot for ~a decade
Hah thanks brother. I took many breaks for girls and booze
I see other kids
Fucking wicked smart.
I've started to embrace my inner neckbeard the past 3 years and get back on the horse though.
i promise you none of those "wicked smart" kids know wtf templeOS is
hahahahaha oh that's just programming culture. They'll find out one day or another. Just cause I know obscure programming jokes and references doesn't mean I RTFM
And RTFM is what seperates the chaff from the wheat
programming culture probably what distinguishes the gurus from the people who were assigned homework
I guess. I didn't look at it that way. Thank you.
reading the manual is temporary value, until the manual is outdated. learning how to skim a manual for just what you need is everything
man how2life
i havent been on a job interview for a while, but do they still give you like a programming test?
Nah
like closed book programming test? lol
or like, "whats wrong with this algorithm" rofl
I've had a few sorting tests in javascript for jobs
when most businesses are more concerned with how you spend their money, rather than if you know some obscure algorithm
oh, always quicksort.
I was using sort if(n-1)
god that is funny, we are living in a day when you dont need to know any of the benefits of sorting, all you need to know is that .sort() is quicksort
fuck now I need to open my IDE again
ugh I don't want to sort through commits
anyway yeah
I do sorting sometimes
I probably should be coding right now
Was just playing this stupid game while I nursed a massive hangover
its not a stupid game, this is my life!
AI whooo
also this one is broken cuz some of it is on success only
so it keeps trying to move there no matter what
also the AI CAN pin the player to walls
kinky
i also feel like there are too many values in the variables
ah so thats a blueprint
beep boop
Test boot of my Pi finally lol
next on the list: how the get actual fucking inputs without using a spliter because I am too lazy to order one
Visual scripting is a sin
i never use my rpi direct as a console; although you perhaps could with synergy to deal with your mouse and keyboard
but i shell in, or use xrdp for a remote desktop connection
but its so nice watching your programme run in the visual script
dang these towers are getting good:
Umbral Wild Wood - The Strands Observation Tower was Upgraded to T24 by Colonials by 5:40 am, Mar 14 UTC+11 - Day 4

whats the active foxhole range on a t24 tower?
-3 meters
it hurt itself in confusion
Like that guy who shot an rpg from inside a foxhole and had it blow up the foxhole.
me
_this makeGod true; _this setAmmo 9999; _this talkglobalChat ["What a beautiful day!"];
script booleans are fun
here's an interesting coding question for you
imagine 2 websites that need to use a steam api key
one steam account can only have one api key that can be tied to only one website
and creating a new one is not an option because you cant have an api key unless you've spent 5$ on the account
so lets get this out of the way that we are limited to only 1 website
Now we have a user that wants to be authorized on both websites
In a perfect world where each site has its own api key, the user simply clicks on the auth link, gets redirected to the steam website, enters his data there and the account data goes back to the website
the account data is set as user cookies and we consider that user logged on
but the problem is we can only use one website for authentication
i would imagine youd create your own API that handles your steam requests, and also manages the login, and both sites access that API
So we set up a third website that manages steam auth and has the key
id only call it a website in that it might be REST or whatever
but its only accessible by calls from your other 2 sites
yes
and it holds the authentication token and connection to the steam api
although, each site wouldnt need its own API key anymore, just this intermediate server
i will finish my text
Website A redirects to website C and the part of the URL that redirects to website C is something that tells website C that the website of origin is indeed A and not B
that is easy to implement
next, we need to store this info for a bit, so we save the website of origin as user's cookies
yea thats what i was imagining
then we redirect to steam
enter the data, and go back to website C
website C now has 1) user's steam data 2) the website of origin as cookies
Now, the goal is to set the user's steam data as cookies on website A and i don't know how to do that
website A could request user data from website C
if website C doesnt have it, then it requests it from steam
as XMLHttp request?
yea an ajax call would work, it doesnt have to be ajax though
you just mean as an XML interface?
you know how the foxhole war api works?
yea it just outputs jsons to links
yea RESTful api
and the interactive map pulls the data from those links via xmlhttp requests
yep, same idea then
Anyway, here's the catch: the website A doesn't know what to request from the website C because we don't know what we need to get until the user authorizes on steam
do you have to request the pieces of info you want?
could you rephrase that question? i don't fully understand it
when you ask steam for user profile data, do you have to request each piece? i assume it just gives you all info your entitled to see
It just gives you the account data and then you choose which parts to save
ah
so you can make sure website A and B always request the same data
although, it could pass-through many requests; the important part it cant pass through is just the authentication token to steam, right?
yes
is there any harm passing through the profile request into steam - even if they both request different data and it happens twice
Well technically a steam api can "just request the steam profile"
but that is not the functionality we are aiming for
we are aiming for the authentication system and that is only achievable when the user is present on the steam authentication page and personally enters the data
well you want to share the authentication - but do you really need to share any other data between the sites?
no
ok i have an idea
maaaybe
a user presses the authentication link on website A
he is redirected to a socket room with a randomly generated id, and also in a new tab he is redirected to the website B and passes the random id
the user authenticates on steam and sends back the user data and the random id
I'm wondering if the steam APi requests profile data with javascript? Is it done on the server side or client side?
then the server A emits to room <random id> the user data
@long raft tbh im slowly starting to forget how this works
its been 2 months since i coded steam auth
i just wonder if they hide personal data from server access
so I would think first API call from server A to server C is like https://C/login?sessionId=XXXX&steamToken=XXXXX
then second query is like https://c/profile?sessionId=XXXX&profileID=derp
so website A handles the login, gets the steam token, passes that to server C for saving, with the session ID as an identifier from server A
and server C queries steam for the profile data requested and passes it back
yea its probably in there what i want to know
for example, if only the web client can query steam, then you do the login on website A (and maybe submit to website C for caching)
but if you can directly query that profile data might as well do it on website C
and then implement basic encryption from A to C, or keep it internal and not public
it appears i was extremely retarded
why so?
i can actually use the api key from multiple websites
i just had to change the return url
which is here
i wasted half a day trying to solve a nonexistent problem 
well thats hella good news
i wasted 2 weeks on a missing "break;" statement in a switch once
oof
Were you getting paid for those 2 weeks?
no i was like 15
but it was a frustrating 2 weeks for a fall-through case
or the classic one...
for (;;);
this_line_gets_called_only_once();
too many semicolons is worse than not enough
i came from a history of BASIC lol
the first thing i learned in school was Delphi
i dont think i even realized how many semi colons you can omit in javascript until recently
oooh delphi ... so sad thats defunct
how fitting you started on delphi and ended up doing stuff in c# tho
so we learned delphi in school then the first year in uni was pascal and some c++, i really liked c++ builder because it was a lot similar to my school delphi ide so i could relate, we also studied assembler but i didnt learn jack shit, and i slowly switched from c++ to c# because it had more libraries and i learned visual studio
Then i did several foxhole-related projects on c#
then sethfire senpai noticed me and invited to make interactive map on javascript
before that i despised javascript so my job consisted of basically synchronizing the region images with the world map roads so they perfectly match
while doing that i learned a bit of javascript
builder? is that ... borland?
Yeah, borland.
omg.
i think i used that in high school for a class lol
well pascal was a great language, great one to learn on, the whole hejlsberg ecosystem is really amazing, c# and typescript also excellent
delphi was even better...
ok not everything he designed. J++ was ... wtf
Does anyone know whether this data is of any use?
does coordinate grid correspond to some size in meters?
Fuck
Got a micro-usb to usb port hub for my arduino nano; has no additional energy support and can only be used to read USB-sticks and such. I want a damn keyboard damnit; how else am I supposed to program?
and if you now gonna tell me how to do that, imma go to your adress, and take a big dumb on your drive way
@barren quarry i guess its so you can scale each map against each other ?
maybe try a wireless keyboard
@long raft wrong channel ?
@long raft I am just a poor boi from a poor familie
I could I guess, but I'd have the buy one and I just bought a keyboard
also, I first have to fix the wifi of the thing before connecting anything wireless, and anything wireless in my budget uses fucking regular USB and not micro USB, so that doesnt help out either
thought you might already have a wireless one to test with
I guessed I had a lot of other stuff which I didnt
Anyone good here at python and Json
Just trynna make a script that could pull just Person2 info from a separate file
{
"Person2": [
{
"DiscordID": "195933799857520640",
"SteamID": "76561198168354424",
"LastSeen": "2019-03-19T16:53:01.000Z"
}
]
},{
"Person1": [
{
"DiscordID": "217627662468775936",
"SteamID": "76561198258704064",
"LastSeen": "2019-03-19T18:53:18.000Z"
}
]
}
Just don't seem to get any of it working
with all due respect
wat the fuck
cant you just assign the whole thing to a variable and request value [0] from said variable set? @modest lagoon
wait
how the frick does this work
okay wait
@modest lagoon its weird, arent you already making two seperate libraries
also, how did you assign your libraries?
I have so many questions
((if you scroll down a bit, you can find how to pull things from libraries, that may help))
I use the discord.py library basically bot that will store users input information into a json folder as displayed above
Basically all I need to find out now is how to pull only a certain part of the data out of the file
Using the json module for this
usually the json libraries load the entire thing in as an object
so after you load dict it wouuld be dict.a or dict.b
https://stackoverflow.com/questions/6578986/how-to-convert-json-data-into-a-python-object <- fine example of json.loads
im sure there is a function specifically for loading json from a file, not a string
ah its just json.load, of course
txt may be a bitch to parse
with json you just use the parse function and woosh you have an object
true...
when there's a lot of data and its all plain text i guess there is no choice
I just like using txt because that can also be loaded up in matlab if stored corretly lol
i must admit i never learned how to use matlab
i have used the program like twice but never figured it out
it is a pain in the arse, but once you know how to work the infosheets and get some good error solving skilss, it is quite nice actually
I think I currently have spend like maybe 100 hours on it
in uni we were taught to use mathcad, and mathcad is quite good
looks kind of like this
you just write stuff wherever you want on the page and then write some function and then it calculates everything
pretty neat
a, it is a kind of type setter which does calculations too
looks neat
wait, it is an WYSIWYG, never mind
nah, on our uni we use matlab for everything, because toolboxes, and we are slightly pushed to use Overleaf for reports, which (appearently) has also some calculation skills
About 2 months ago i suddenly realized that the browser console can be used as a decent calculator
and i have been using it since
lol
whats the best thing matlab is capable of?
you can make music with it, no joke
never wouldve thought
I had to make a 1 minute track for an exersice
#epicdrumsolo
I think the nice thing about matlab is the clearity of it compared to programming languages; like I rarely have to mess with ( { [ stuff
yet, it is a kind of prgramming language, as in it follows that logic, so you can quite easily make complicated things
and the plotting ability is phenomenal
Mathcad can also make 3d plots and all that shit
not music tho
back in my day we did our linear algebra by hand or on our ti 83s
I still have a graphic calculator, but if I need a sketch, I can do it faster by hand than with that piece of junk
i think i still have mine too
math teacher in 8th grade said it would be a lifetime purchase, she was right
does anyone here know react?
react.js? 
Nevermind
lol
2 absolutely identical texts
for some reason the second one gives an error and the first doesnt
what the actual fuck?
help me i am losing my mind
@barren quarry did you forgot to close the round brackets somehwere above?
or accidently opened one
wait, I see what you are doing
i reentered it and it worked fine
but then
i pressed ctrl+z a bunch of times and it was still working
so i canceled my fix and it was still working
I am not sure how it works here, but does debt account for anything?
like, in python, if you space soemthing wrong, it might not work at times because it thinks it is outside certain statements?
spacing means nothing in javascript
alright, that is nice
it uses {} instead
have used JS like 2 times in my life lol
but since the second gives an error and is spaced twice in, that will be the only thing I trigger on
can we see the code around it and the whole error?
oh just unexpected identifier
hard to tell without seeing that code tho
my guess why it doesnt flag an error on the first one is because it thinks youre still editing it shrug
Check editor line ending mode @barren quarry
which lang is it?
its react but i fixed it
How do you think, does functional programming have potential in game development?
i don't think its remotely possible
I remember reading a post-mortem about Jak and Daxter (which was programmed in lisp) and their deep regrets using lisp
this was like 2002 tho
their biggest problem was finding programmers who knew haskel
there arent many functional languages in use so you can barely find anyone who knows them
anyone know scala?
O_O
The only scala I know is scala media - a space that contains fluid in the inner ear.
๐คท๐พ
after pretty much a week of wrestling with this shit, my tests are green
feelsgoodman.mov
I am so annoyed by my Pi
didnt get the mail client to work on that damn thing and the modern mail browsers are so big that it seems to kill himself when trying to load in
like, its on 100% gpu at all tumes
so sad
what GPU do you have?
also, I can only have either my mouse or keyboard plugged in, because the splitter doent have enough power to support both ffs
@dark shuttle no clue
it is a raspberry pi micro W
so its not a buff thing
overkill for what imma do with it perhaps, but not fast for desktop tasks lol
why did they default instal chrome, it is total shite
trying to install a dictionary, but some weird ass errors pop up?
yea some of the usb hubs have a socket to plug in external DC power
but not my problem rn
but you can use synergy to link the keyboard on a remote computer to the pi, so like ... with your desktop PC or laptop or phone
people sometimes do that when they have 2 computers, 1 set of keyboard/mouse
fuck, this is python 2.7 ๐
explains a lot
alright, because my system is in Dutch, the command window switches between English and Dutch and that can be confusing as hell
holy shit this all takes long to download
its been 5 minutes of this fucker checking for all kinds of stuff
getting ptsd for the words yes and no
that took fucking 15 minutes
@rocky spade there are 2 fuel icons in the same spot on deadlands
im updating my website and based my array keys on coordinates, and the system started complaining there are identical keys
ive had this with rocket sites too, also text labels https://github.com/clapfoot/warapi/issues/13
Code talk? How about adding to your report rules that you cant report on more than one account
its legit 1 line of text to type in to make your made up rules more clear
k thanks bye
@sleek fable this is for like programming stuff, not game related stuff
((except it is about stuff like the foxhole api or things like foxhole stats))
What do you guys think about Godot engine for 2d games?
had never heard of it, it looks fine and all - but i cant help but wonder why did every game engine turn into lightwave c. 1998-2000
Ok so if anyone could help me with this. My lovely math teacher thought it would be funny for me to implement the property of Darboux in C++ and I have no darn idea how to do it. Any suggestions?
@gaunt ibex Godot is a very powerful game engine
I work with it from times to times and it's incredibly efficient to create both 2D and 3D games, plus, it's free of any royalties, fees, taxes, ads as unity and/or UE4 can have
it sounds cool
it is
I won't be surprised it would Eat alive Unity and UE4 in the next years if it keeps going as it is
Because It's developed by the whole Community ๐
What Unity and UE aren't
They're actually planning to add a system of Ground voxel as Havok to to make it free for use in godot
Imagine to be able to use a havok's like engine without have to afford it cause it's free in Godot
Yeah, that would change the industry
Completely
It also uses C# But with an improved version of it
making it less cramped and complex to understand when u useit on UE or Uni
I found additional language support modules for F# and even Haskell for Godot. I hope it is stable enough at least for some demo project
it is
f# lol are you going to embark on functional game programming?
F#, what have come to?
Godot is neat, but its 3d render pipeline is trash, and the whole engine is years or a decade behind unity or unreal in terms of features
I wouldnt count on it taking the industry over
Even if its free, simply the extra amount of work you have to put in to make a game with it is a deficit
It could really shine with 2d games though. That part is fantastics
But at that point a lot of devs just write their own engine tailored to their game
@cinder thicket I fear you're half true half wrong
Big generalization obviously but thats what I think. I still like to use godot. But it needs a lot, lot of work, even from a hobby-ist perspective compared to unity
Ease of learning is another subject too.
Many small indie devs will choosd unity simply becauss they know if they get stuck they will most certanly get a solution fast googleing.
While theres very little material avaible about godot. The documentation is decent, but sometimes not specific enough and not practical.
@pure sierra how come the bases are destroyed by colonials, but the other things by "someone"
Are you assuming no-one is gonna selfnuke anymore after the JC incident?

Sorry, it's 3AM and I'm hyperactively coding a JSON document.
there is no such thing as a real self nuke is there?
@languid harness its because those items reported as someone, are not reported as being held by a team i dont believe, but they report as nuked, so thats why
So resistance phase has started
stackoverflow lol
Have you already tried release version of Visual Studio 2019?
I mean it feels great, not like preview garbage : )
they havent really had a bad VS release since probably 2008/2013
going to download it and check it out tho
what the fuck
this is the first time i rewinded the foxhole war map bot and the error still persist
its a fucking issue on glitch end
ree
you could say that it is a ..... glitch
fixed by reenabling pnpm , it was a previous issue that happened 2 months ago that i did not realize was the exact same issue
heh
@young pilot You should try switching over to AWS or Google free tier or something
When does the narwal bacon
Anyone working on a mobile arty calc?
there's one on android
but its not on the app store
ยฏ_(ใ)_/ยฏ
im thinking about writing an overlay for foxhole
dont really want to trigger any anti cheat tho
Overlay would be nice๐๐ฝ
@quick shoal A few of the websites work on mobile I think..
There's also an Alexa Skill if you have that..
Oh okay didnโt know they made the websites comparable with mobile yet
Compatible*
tbh a little overlay wouldnt take much time
kinda stay away from code when im not at work tho
theres also a google assistant skill
and a website that can be loaded in the steam overlay
i made that alexa skill and i never looked back to check analytics or test it, i dont even know if it still works lol
i havent done arti calculations in a while
Iโm still in school for computer science so Iโm just looking for a side project get some experience.
Oh I think this is a better place for my question in #technical-chat
Is there a Foxhole public API?
See the second pinned message on the bottom! @balmy bridge
Would it be a bannable offense to write plugins for the game
what kinda plug-ins are we talking about?
to quote grace hopper its easier to beg for forgiveness than ask for permission
@balmy bridge What kind of plugins?
C finding for howitzers
how often the api sends data?
Every 10 minutes I think
It may be every 5 minutes though, it has been a while since I messed with the API.
@chilly burrow What you should really do is refer to the Headers you get back from an API call... They could change their refresh rate whenever.
huh what a coincidence
hey guys Anyone knows how to use Elementor and Wordpress please ? I have a little but extremely precise question to ask about it
I created a "Button" element with Elementor and I need to put a link to a specific page when user will click on the button.
BUT, I don't find where is the logname of the page adress I need to put on the button "Link directory"
Nobody ?
nope
ERF ๐
quick question about socket connection and firewall, im about to start making a small chatroom program that will use my raspberry pi as host, so clients will be able to connect to it whenever it wants. However for now i'm going to keep it on the local network. I was wondering if I would have to deal with the firewall in the local network?
no firewall for 127.0.0.1
if however you use the LAN address, e.g. 192.168.1.xxx or whatever you may encounter firewall. if you are using websockets, firewall is irrelevant if web server is working properly
i assume most modern chatroom programs would use websockets and get around any firewall issues (because the web server has an open port already)
that is electro-engineering, so doubt
i find this funny
its computers, but not code
logic gatessss
does it break on line 3?
No, it works the same without this "if"
my first guess was that these are exceeding the value of int, which sometimes happens with exponents
does it work if you use long instead of int?
I don't know. I can't check it in the next 10 hours
maybe something to try, could be integer overflow; I'm not super familiar with python overflow mechanics
i noticed its a big number that fails, i notice this is training about weird number mechanics - that fits the bill, so...
Oh, thank you! I'll try it. In fact, I know programming a little bit, so also don't understand Python overflow mechanics :)
Python overflow mechanics... Sorry, English
I think, you are wrong
Because in python you cannot specify the type explicitly
And... Therefore
It's clearly longer, than longint


