#code-talk
2 messages · Page 18 of 1
it works nicely tho
though the lighting has definitely suffered
yea possible
weird the link worked fine on my phone
youre gonna need mobile controls for people who cant push asdw
it does load on my phone but its uncontrollable
you're implying I'm aiming for use on mobile
looks good too
i think you should just target it for both
big mistake i made with logiwaze was not considering mobile first
it will be popular if people can load it on their phones
Well, without multiplayer it's not going to be anything
then it'll just be a sandbox with toys but without the sand
though webgl does seem to have its own issues
different rendering abilities
also you may have settings reduced in the build, but it does have limitation
you know it has to be a common set of webgl calls that are supported across most/all browsers
but that could be a great advantage to you not to have to wonder why some people have rendering problems or whatever
reee: no directx 11 support what?
Ah, I found the issue
the default quality setting for webgl is High, while the rest defaults to Ultra
which included a halved pixel light count
there are definitely unsupported features in webgl tho
going to push a build set to Ultra, and if that performs worse, I still have the current one
runs the same but looks better
I'll post the webgl link in creative, pretty sure it qualifies
its honestly pretty mind boggling to consider its compiling c# -> webasm and using the mono framework in a browser
its real head-spinner stuff
i mean its compiling c++ too
genuinely mind boggling what theyve managed to put together
this is sort of the new promise of web development now, blazor or uhh ... electron, compiling other languages to web assembly gives it a lot more power in the browser
comes with an additional 1mb runtime though
ive seen some gnarly projects, someone compiled ffmpeg into web assembly
I'm surprised it even works, considering I built it all with windows in mind and I could change it in a few minutes by pressing a button and then waiting for the build to finish
i know its crazy huh
im making a video editing software in c# and i ran it on linux on arm architecture and used cuda on it for the processing, all native in c#, my mind was absolutely boggled that it worked, because i developed it on windows on amd64 architecture
and it ran on this $60 computer. just cant believe whats possible these days, we used to laugh at the java "write once run anywhere" nonsense
sounds like you're way ahead of me
been doing coding a long time, its really getting good these days
especially c#, ive been doing it for 20 years and its really amazingly cross platform now
welp, I'm only 2-3 years in at this point
and that doesn't include any job experience
Was there much performance loss between ARM and amd64?
I know Microsoft was having a lot of issues with that with the Surface X
hard to say, im mostly using the GPU not the cpu
also its comparing apples and oranges really, the cpu is weak as hell on the jetsons
True yeah
idk I just joined this channel, but as long as he's not using a version of Unity from 2017, its probably compiling with IL2CPP, not mono.
does the webgl version get compiled from cpp?
Yea, all Unity native code is cpp, then to platform specific code. So, even thought I'm not super versed in webgl as it relates to Unity, I know that to be true.
i mean ... heres my thought tho
there is non-native code in unity projects that would rely on the .net framework or mono
surely thats not being compiled to cpp first
@kind glacier Just tried out the link you shared. Worked well on my desktop - I opened it in chrome.
It's great to see the progress you're making.
Two bugs I noticed: While picking up a 3d infantry (or other ) piece, it goes to the bottom of the screen. The placeable industry/factory icon is rotated wrong and is not parallel to the plane of the map.
@royal glade Yeah, that's something I figured I'd work on later. As for the factory, all of the models I use are facing sideways except for the factory. That means that when I rotate them to be upright, the factory is sideways
The factory model is a stand-in either way
@zealous sonnet @keen dome github update update when ?
I'll try to squeeze one in during the morning, but you don't need to ping nooba for this. 😄
np, whenever, will note that for next time 👍
1800 players atm
still no commit to warapi
QDB is hilarious
still no warapi/map updates
ive seen worse
lmao
copy pasta likely
@long raft phil has updated it
that was quick
thats what she said
boom boom
evidently it was a small change
did you combine them manually?
hold on imma use my Script™️ to generate a map
i have no explanation
oh fuck they're all in TGA again
werent they always?
its been a while since ive taken the maps from the repo
can you post the png map images?
or combine them into an archive?
always have been tga
so the images are the same size theyve been for a year
kastow you have me questioning everything in life now
we used to have double the resolution from the game assets, but theyve been removed i think
i think kastow is a bit tired
hmmm
ok so im not crazy
hilarious story btw
so on the previous patch maintenance i thought, wouldnt it be cool to have sat map tiles in full resolution?
so i sit and cut the tiles in 7 levels
5461 files
commit all this shit to github
and like 10 minutes later i realize the devs havent committed the sat maps for the new update
because godcrofts was still the same
that was
uh
interesting
i mean theres very little hand work involved here
RIP satellite maps
oh
and like 20 minutes of sweaty github desktop
does anyone have the last map? id like to difference the pixels to see what changed
the roads look the same to me
oh no i found a new road
get it from github commit history
there were some stealth changes in Callahans Passage
bloddy collie bias
not much difference
i cant even see the new road i noticed, it must have been there a while
we basically didnt need an update at all, didnt need to pester phil lol
yeah but we dont necessarily know how much has been changed or not
very subtle
What am I need to see here?
open in large
you will see some little specks in the northeast
but the fact you dont see much proves the point of there are very few changes
im curious as to the changes in Callahans Passage
that one road/bridge were at a pretty bad angle to the river so thats understandable
but some building or something in Latch got deleted
plus the rock formations north of Crags
got changed
.
2900 players
does anyone have a high resolution pictures for each map? asking for a friend
i mean full map*
Scroll up
Been posted twice
okay cheers
release the egg
@neat fossil they dont exist
thanks, my friend got a reference already
Dee
Day
3.1k
The Party Bunekr is crashed
Question is why are collies dying more
lower population -> faster respawn -> more dying
More people is more sheep to cross the bridge to slaughter
Because scout tanks r**e both our front and supply lines
Good
Also our weapons are less accurate and deadly than wardens weapons. We literally take wardens weapons to shoot them -_-.
Good
Aye thanks
Soo true lol
just owned some guys flatbed
owned so hard it got blown to bytes eh
Blown so hard it frees memory
So hard it took one of my RAM sticks with it
Having no SMG probably helps but the gap was made before we had a rifle that wasn’t ass
Idk why everyone is complaining about our guns but I use the pitch gun just like a tommy and I mow people down all the time but I’ll agree with the shooting mechanics don’t do what your aiming to do lol
Thats accurate
programming:
Accurate
agreed
what map-related changes have there been in the new update?
Kirknell harbour moved and some adjustments to mountains in callahans passage
some guy in another discord server called me a conspiracy theorist for saying that Microsoft did some shady anti competitive shit in the 90's 
like how am i supposed to reply to that
wait till he finds out about andrew carnegie
He was an "philanthropist" what do you mean?
Conspiracy theorists are fun to mess with
as long as you dont put in the effort
i get that Bill Gates weirdly has a lot of conspiracy theories about him by online weirdos, but come on that doesn't change the fact that he's a fucking asshole
There is no billionaire or millionare thats not an asshole. all of them do shady shit, but some of them do good as well. bill gates does alot to eradicate disease through their foundation
gonna be real
bill gates is kinda hypocritical
he used his jet that burns like, what is it? 400 gallons of fuel a hour or something like that (idk i might be over exggegarating)
to go to the paris climate march
or something along those lines, i dont remember it that well
(please mods dont ban me for mentioning something that is slightly political)
More like 450 gph
he offsets his carbon pollution more than the rest of us do
The wiki is still missing a few key icons for the new stuff and I can't find them in the warapi github, can anyone help me please?
@gleaming mist which icons
mounted Bonesaw, Venom, Hubert Exalt 150mm, Cutler launcher, Malone MK.2, Cascadier, Devitt-Caine MK-IV MMR (mortar tank), King Spire (Scout Tank), maybe the Koronides Field Arty (dunno if devs changed it). Also all the icons for the damage types, icons for cold/hot temperature and muddy state, Icon for the Bunker Ammo Room, and the Fire Pit.
Someone has added them. Thanks
ko
Imagine having Visual Studio installed
visual studio is my lord and savior
visual studio code is so weak compared to visual studio
as someone who just started college and coding last semester, whats the difference?
visual studio is several decades old, its an advanced development environment, vscode is a new open source project (with some licensing restrictions) that is cross platform
even in the free edition of visual studio you get features like a performance profiler, more advanced intellisense, code metrics, etc...
for the very microsoft-y languages visual studio is superior at the sacrifice of no cross platform availability
for other languages vscode is probably better than visual studio, like for php or python or something
im learning c++ right now in my freshman year and i did javascript, html, and jss in high school
im just wondering, are games like this made in just standard javascript or c++? so far all ive done for class is console programs but how are games like foxhole made
Foxhole is done in Unreal Engine 4
An engine is kind of an existing code base in c++ that defines basic interactions with ui and objects
And you build your own stuff on top of that
Javascript is not meant for games
thats interesting. game design has always been an interest of mine but doesnt seem really viable for a career
so i chose another csc path
If you look at clapfoot right now, the servers are on fire, there has been almost a game breaking bug with the tech tree with 2800 people online, and thank God it didn't happen on Sunday
Hotfixing bugs in a live environment with this number of players is a bit stressful I imagine
have they always had server issues or has the game been getting big lately and thats why?
i only started playing like a week ago but if daily server fires have been a thing for the past 4 years then im suprised they still have business
Usually there's about 200-800 players online
In-between updates
So the server load is much lower
The worst problem of this game is limited scaling of server capacity
Has been since world conquest have been introduced in 2018
The population fluctuates throughout the year, throughout the war and throughout the day
The server capacity is static
The devs can open or close regions for a war if population gets low
The reason they're having issues is that their server host is having issues
But without introducing more shards the game can't physically support 3000+ people
Their server host is having issues because one of their datacenters caught fire and they're trying to recover
it actually caught fire? lol
@lunar cobalt aren't they hosted in Canada?
All of SBG2 and about half of SBG1
Yes
On the OVH network
So OVH's recovery process is affecting them somehow
Well that sucks
i thought a server catching on fire was a metaphor lol
didnt realize it could actually happen
good to know
is this why the regions around mercy were offline earlier?
How is mod team doing these days
So the usual
ive only been defending the bridge at mercy for the past week so when all the supply lines were cut off, because of those 2 hexes earlier, it was a rough fight
i have emotional investment now so i have to stay there
it literally caught fire? 
Yes
is my deadlands ok?
... did we cause this fire somehow?
this is because of MPT isnt it
We'll find out once OVH gets their shit back together and stops breaking the Toronto database
everything is
There was no immediate explanation provided for the blaze, which erupted just two days after the French cloud computing firm kicked off plans for an initial public offering.

this is like a movie plot
painful. so the servers for foxhole are in europe? or the impact of the data center has put pressure on the same data center foxhole is hosted from?
We believe their recent disaster recovery efforts may be impacting our servers.
I
The latter
they have pretty good prices
Big data centers can get quite warm; its the poor volume to surface ratio that generates a lot of internal heat. The microsation of technology does not help in this. I have seen new data centers buildings with heatfins on the outside and the office set apart from it to guarantee as much as possible cooling
It can get up to 45 degrees celcius in them under normal circumstances
The reason for that is that almost all energy put into the system is converted into heat as if it were an oldskool lightbulb
I aint no computer engineer, but I do know my thermodynamics 😎
Lots of messages I ain't read here yet, but in case not brought up, day count on map endpoints is out of sync again, some got reset... @zealous sonnet
We really need a day count for the war rather then per map
Its quite interesting actually. That many computers might have high efficiency standalone. But put them togheter and they produce tons of heat
I wonder if you could watercool them as a preheater for an industrial steam boiler😅
Dear support team and developers,
By now I am pretty sure you are aware of this issue, which I would say is pretty big.
It is so big that I could safely assume it wastes thousand of hours of playtime every day.
I have posted this issue before, but got no response to it, so I want to make sure this issue does not go unnoticed.
The issue is that after waiting a long time in queue for a spawn from the Homeland, you have a good chance to get the screen I posted below.
From this point you have to re-enter the queue again, having a chance to get this screen again.
I have wasted at least 2-5% of my playtime to get this screen.
This is a huge number if you consider this bug impacts all players.
I hope you can see the gravity of this and will respond to us with an answer and a solution after answering to this issue.
Thank you for understanding our frustation,
Yours sincerely,
All foxhole players
@pseudo crescent Id advise to take tgat to #bug-reports
done that before, got no answer, so trying again
Because 1. I aint never encountered that, and 2. This channel is more for auxilary coding
The devs tend not to respond directly to messages
It would take too much time to do so
That said, I think this is an issue specific to you; have you tried reinstalling?
a fix would have been an answer too, but its the third time in 2 weeks, idk how old this bug is, but its a pretty alarming bug since i know more people have it
@pseudo crescent updates dont come out that often, so two weeks is like no very short term on the scale of development
actually i think i had it more than 3 times in 2 weeks, which add up to three hours+ wasted for nothing, it also seems to be happening in other situations, but differently, idk how to explain, but i know this exact one
well all i know its out there for months, im just playing for 2 weeks and wasted a lot of time, if other players wasted a lot of time too, i would assume it deserves a hotfix
wasting player time = totally uncool
True
But you also need to realize devs cannot jump on every bug
If other people encounter it, let them report it too
i know, i give them time with all of the bugs out there, but this one is just kinda unacceptable
The more do, the earlier it gets fixed
It might just be a hard bug, or a serverside issue
The server provider had troubles past week
it looks like a software issue to me
even if it does disconnect you, you should be able to get back in queue where u left
its just not polished
Could be as simple as a desync
Well, the game is in alpha after all
you can make a system that checks if u deserve to be back in queue and just put u back in front if u deserve it
id even script it for them
Sounds very abusable and server heavy
well they already have this queue system right
somehow it expires you while it shouldnt
Time outs prevent loose treats and data leakage
Also, spamming it everywhere wont help you
well yeah, ok i can understand time outs, but i dont see a "disconnected, trying to reconnect" screen, like league of legends does for example after u leave a game
foxhole just throws ur session in the bin like it doesnt care
Well, I never encountered the bug, so idk
But I can beth your ass they have noticed it, and sceduled it to be fixed. It just takes time
yeah i just want to stress the urgency a bit more, like u said every report makes a difference
let me make a new account brb
Inb4 quick ban
cant ban me, i always come back harder
Makker, ga gewoon lunchen
Ah yes,the KGB
fuck off
your problems have no place here
this the wrong place for posting what I can only assume is supposed to be a meme
I mean, coding memes go here, but I don't think that's one of them. and tbh, these "do not do x twice" memes are not something I enjoy anyway.
There’s people who enjoy those? Tbh, he’s just wasting his own time
Doesn't seem like this channel is much for foxhole coding anymore, but I would give up a body part to be able to have an endpoint in the API that gave player data based on a player id/steam id
That has been discussed at length before and the main point is that youd be able to gather too much info and circumvent some intel "gameplay" in game
Not to mention, another potential security risk for little to no gain for the devs. If someone on my team suggested this, our security guys would have said "No" before even finishing this sentence.
So what modifications of the client are allowed, if any ?
@onyx snow nothing is explicitly allowed and nothing is explicitly forbidden. But there's VAC.
Perfect thanks!
what happened to wardens ?
MPT?
yes mpt
happens 24 hours after the MPT was unlocked
hope this isnt too hot of a take for code talk
hmm
is that the number of players in the game for each faction?
no, just caps
caps?
captured locations
yep
but the colonials were on the rise already
yea the falchions came before that marker
that crossover only denotes when one side had overcome the other in caps
but the turnaround was like the 9th or 10th
i just meant overall to swing like that
Should perhaps make a proper comparison with previous wars
Might be a fun little paper to write about it
game just ended
2,582,703
Jezus
@pure sierra So many people are looking at your site that it took like 30-40 seconds to load
yup
oh is that why it took so long to load?
there was just so much going on that it couldnt keep up as easy lol?
https://github.com/clapfoot/warapi/issues/82 @zealous sonnet
THIS is code
.-- . / -. . . -.. / -- --- .-. . / -.-. --- .-.. --- -. .. .- .-.. ... / .- - / -.. . .- -.. .-.. .- -. -.. ... -.-.-- -.-.-- -.-.--
Lol
We really do tho
Put it through a morse code translator and you'll know what it says
Just know we really do need what this stuff says
Is there any API that gives out base supplies? I feel the current UI in the game is hard to read as it's icons only and no text, at least for newer players.
@jagged talon faction intel is not in the api
I was thinking of making a bot that runs the game and uses OCR to pull this... Cause would be nice to automate this and making doing logi a little less repitive
I dont think bots are allowed. especially due to the player limit
ugh when you go to rebase a git repository youve been dumping 1GB binaries in for 5 years 
--. . - / ..-. ..- -.-. -.- . -.. / .-- .- .-. -.. . -. ... --..-- / - .... . / -- .--. - / .. ... / .... . .-. . / - --- / ... - .- -.-- / .-- .. - .... / .-.. --- ...- . --..-- / -.. . ...- / - . .- --
Just intercepted a message from the Devs, use a Morse code translator
@velvet jewel hey dude, this is for progamming code
You see it just says code-talk
You see, there are pins
But let’s talk code what languages does everyone know? C++, C#, Java?
Psssh, Python gang
I’m learning Python atm just finished teaching myself C++ and I already knew Java and C#
Obj-C, C++, C#, Java, Javascript/React.js, Kotlin
Really want to learn some Python but don't have the bandwidth for it atm. 😅
Totally feel devs pain right now.
Devs: Please stop doing that thing while the system resolves/catches up
Users: Oh you mean do it more to cause you more stress??
The "14 clicks 14 screens" conondrum
http://corewars.org/
Anyone ever played Core Wars?
@long raft looks like the perfect game for wildallen
its definitely not for me
seems like turning something i love doing into something i hate, but calling it a game
lol
Over the weekend amateur radio tinkerers in Europe managed to decode some portions of the telemetry data broadcast by the second stage of the Falcon 9 when it's in orbit. This data was in a somewhat standard format, but decoding still required some custom tools to extract the bitstream from the signal and then some guesswork to figure out the ex...
liquid oxygen floating in side tank in orbit 
A lot - but devops / infra / sre person - using mostly golang and rust now
The answer is probably no but I've been surprised before. Are the players in Foxhole based on the Character class in UE4?
Or are they custom pawns? or even more custom than that?
If it isnt rick astley, I am going to be do disappointed for poor reasons
I feel discriminated as the only C programmer
get a load of this guy
that thumbnail is misleading
you are not the only c programmer
@kind glacier allow me to introduce you to the internet
You're not wrong, but this is the first time I've seen Manley use a misleading thumbnail. Then again, I haven't watched his videos in over two years.
your username gave it away
I can’t read whatever the hell he’s saying 🦀
You’re bad at explaining things 🦀
I c r w t h h s
Yo this is rough
Can you use Python instead? It’s easy to read and learn
Just use one of those sites that teach coding
So you try to teach me code, then won’t learn yourself? Sounds close-minded
Smh my head, you must live in your own world
@neat fossil ~ just for you ~
It just prints out your message in the bottom terminal.
Was bored and needed a mundane task as a mental break from work and course studies.
Don't worry, learning to code will make you a master of social interaction.
Console.WriteLine(System.Text.RegularExpressions.Regex.Split("Golf, Echo, Tango - Foxtrot, Uniform, Charlie, Kilo, Echo, Delta", @"[^\w]+").Select( x=> x[0]).Aggregate( (x, y) => $"{x}{y}")));
is this code golf?>
you c# programmers using $"" for formatted strings yet? oh my god its so good
Yeah, haven't used it that much though. I only use C# for some side game dev projects and that stuff is rough and I don't want anyone to look at it. 😅
Use js/jsx for work stuff and it is pretty great
whats jsx?
React.js
Python does it with f"text{variable}", and I was so happy when I discovered that
oh thats also nice, this kind of stuff makes me enraged when i have to use java
Ugh yeah
Imma do some blind code from my phone because I cant sleep:
List = Code_msg.split()
Msg = ""
For i in List:
Sign = List[i]
Msg += str(Sign[0])
Print(Msg)
The str() is not needed I think, but more of a back up in case an entry goes wrong
ah dynamically typed languages...
Its python
Could make the Code_msg and import line, or change it in a function
But too tired
I can now sleep
lol
Thanks guys, you really helped me understand, though it looks like his message is gone.
i learned code by staring at it
learning by repeatedly pressing build until it works
ah shit, forgot that you cannot for-loop this way
List = Code_msg.split()
print(List)
Msg = ""
i=0
while i < len(List):
Sign = List[i]
Msg += str(Sign[0])
i += 1
print(Msg)```
this works
What terrible art for that lmao. This just makes people think understanding software is wizardry or medieval-era people talking about greek letters?
Haha cpu goes brrrrr
wdym i can't join the cult mechanicus?
Never heard of the OG install wizard?
thats a bit sussesy
looking into hosting plan upgrades by my current plan is obsolete and cant be upgraded
so many companies i start out with as they are cheap and then they get bigger, phase out their cheaper plans and you have to either start over on a higher plan or find a new host
can you offload any of the resources? or maybe you already are with a CDN or github hosting?
currently not
is it a bandwidth issue or cpu?
memory
interesting.
ill show you
Memory leak in game?
blanked out is the live update server
i could dc users after a certain time but dont really want to have to
the other option would be external firewall if possible
currently have 3gb
Oh shit
might be in market for new hosting
could you use swap space on the hard drive to make up the ram while youre under high traffic?
or do you expect it to stay like this?
gonna be a bad experience tho for users but ..
im not sure i can specify my swap, there is already onne
it would solve out of memory crashing, but not performance. that part would suffer. i think you can have multiple swaps
i imagine it would need a command line tho
im not quite getting out of mem crashes afaik as it already has a swap
i think its just below the limits
i am
I think using refresh tokens that expire after X amount of minutes/hours and require a user to refresh the page after a warning to do so is completely reasonable. I had the page pulled up yesterday, did work and course work for like ~4hrs and completely forgot I had it open, so I am part of the problem group here. 😅
We use Json Web Tokens for my current project for this purpose:
https://jwt.io/
reminds me I had to close it as well
I think for the people who want it open all the time can take the effort to refresh the page very hour or so
war map doesnt self update, you have to manually refresh it

Json Derulo
Heavy Rain
Jason!!!
1 Hour Version
@zealous sonnet probably not the best time to ask this, but will the api get extended to support multiple shards?
it may have already been set up previously actually 😄
I just had a hunch to try something and it worked
now i gotta recode all of my projects to support a shard option 
hah
@zealous sonnet why the heck not just add more maps ?
Because they don't have more maps?
maps probably take 2-4 weeks each to make
we can't pull that out of our pocket right after an update's been released 😛
well to be nit picky they did add 26 more, lel
sort of
any sort of funny bugs pop up you can tell us about ?
this one's been around for a while but it's pretty amusing: https://youtu.be/y3MfdOblMRU
i meant more with the sudden game mitosis
I found a floating road
ppl getting the mod model
oh that's cause they used to be mods on that shard for community events
^ LIVE-2 is the FCL shard
just use existing maps, i cant see that being anymore janky than 2 shards....
FCL-chard 😭
on the other hand, i know another perfectly good map 
Bless that map
Is it me or did the hexagon maps get larger? No way this scales 1:1 with current farranac
1 in 100 year flood here, cows washing up on beaches
nnnah its cooked
is there an API call that lists which shards are available?
anyone with virtualmin/apache prefork/fcgid experience ?
have used prefork and fcgid before, but not an expert by any means
im just trying to get my 256 connection limit increased.
are you forced to use prefork?
possibly not
worker is superior when possible
ive got to go to work, will talk more later
also php-fpm is better than fcgid i think too
well i just go with default vmin
hm yes, I know one of these words
Not sure if this is the right place to put this, but I was talking to my friend and we had an idea lulz. Just something to maybe add to the roadmap to try out. Can we give afk players cigarettes? Like if someone's just waiting and being afk for 5 minutes, they just spark up a cigarette. Kinda like the dude from GTA 2...if he was afk for too long he'd spark a smoke. People used to smoke a lot at the front lines so it would make sense. Anyways...just a random idea lulz.
that is for #game-feedback-archive and somebody thought about it in 2017
thx
wow that looks great
can anyone here tell me, or point me towards some bit shift level hackery where you can transfrom a 16 bit integer into an 8 bit integer. if you can do that at all
you can also mask it using and operator
byte y = (byte)(100 & 0xFF);
mask is faster
you would use shifting if you want the highest 8 bits, if you just want the lowest use a mask
or just ... cast it. jesus thats easier, (byte)(100) is an easy way to just grab the lowest 8 bits
there may be a specific nuance to what youre doing, itd be helpful if you showed the variable you want to grab the 8 bits from
@long raft what is better about worker and fpm?
worker uses a threading model, and fork uses fork
so worker can share memory, thus the startup time of a thread is much less than forking
so worker uses less memory has better performance but if youre using a library that is not thread safe then it wont be compatible with worker
and fpm i think its just newer... and written better
How do I know if I'm thread safe?
well generally the packages are set up to cause conflicts if they wont work together
im not sure which libraries are not thread safe, surely there is a list of things that are not compatible with worker
but in general i woudl say just try it and if it works then use it
OK I'll have a go next time I'm home
i would expect the biggest improvements would be using worker, fpm is probably less advantageous
yea its in the httpd.conf, so yea the apache config
there might also be a separate one for fpm/fastcgi
php-fpm runs as another process so i imagine it has its own max
Cool
so this is the top secret project
well I can read the lower and higher bits apart. but what I really need is a measurement of the entire 16 bit range mapped to 255
the nuance here is. I am reading from a 16 bit register and I want to write to a console using serial.
I can either write the higher bits and lower bits in order. but I am not sure if the terminal recieves it as such
because the uart is only 8 bites long
and I definetly dont need 16 bits of resolution for what I am doing
so you want to represent 16 bits in only 8 bits
then you will lose precision
simply divide it by 256 (this is the same as shifting right by 8)
x >> 8
or
x / 256
well the integer division and bit shifting should be about the same speed
perhaps the bit shift is slightly faster
last I heard. AVR's dont have dedicated way to divide
I mean, they can divide. but its just aint as efficient as say a computer
yes division is the slowest of the 4 operators for sure
i have seen assembly languages that dont include a floating point divide, but they do include inverse, so you can multiply by the inverse to get divide
its also purely for self enrichment purposes that I want to do it as well
does this scale to 32 bytes as well? x >> 16?
32 bytes?
32 bits
oh 32 bit
woops
yes
same process
and if you want to convert it back you shift left by the same amount
but you will have lost precision
you are doing what is called fixed point arithmetic
ah thats alright. I can work with the 16 bits precision. and read the 8 bit conversion. and do some human thing they call interpolation
you can imagine it that the mantissa (the part after the dot) is 8 bits on the right, and the integer value is the 8 bits on the left
oh it looks like the effective range is way to high for 8 bit precision xD
yea that can happen...
how much precision do you need? sometimes you can live with 10 or 12 bits
I need 8bits to display on my terminal...
how can you do it then
you know sometimes with colors you can give some parts more bits than others .for example you often see 5/6/5 color arrangements giving more bits to green because humans can see more variation in green
no, I am running a sonar that needs to measure 288mm at max
or indexed palettes can be used ...
interesting, so you need a value that goes from 0 to 288?
does the minimum need to be 0?
well, if you really need to be technical. its only absolutely critical for the last 8mm. because it needs to place something ontop of something else. means going up to max. then going down by 10mm or so
so lets see...
you could simply scale everything by 8/9
that would fit it within 0-256 range
or you can give more precision to the last 8mm maybe
thats tough with only 8 bits
well hold on to that though
I am reading right now. the direct sound to object and back time
which practically well into the ms or less
afcourse 1-5cm is going to return something smoll
this requires maff
its relatively easy actually
suppose your first 4 bits are scaled by 40
int part1 = (x >> 4) * 40;
then you add part 2 with higher precision, no scaling
int part2 = (x & 0xF);
then the combination of the two is your value
int combined = part1 + part2;
gives you high precision on the last 8mm and low precision on the rest
oh damn it only goes to 287
dont worry about it. this is way to complex for a first year school project. you dont have to do my work xD
remove the first 8 binary digits
oh while youre here
what the fuck is a mAh
I am struggling to make any sense of this value
mA*h?
I need to calculate coloumb in a battery of 2300mAh. 1 c = I/s
and I have zero clue what to do with that mAh value
I am actually having a brain fart over this
mAH is milliamp per hour
couloumb is unit of electric charge
1 milliamp per hour is 3.6 coulombs
how did you get that value?
its a formula
its by definition
so to calculate the couloumb of a battery with 2300mAh is simply 2300mAh * 3.6 = 8280
yes
thank you for telling me that I am dumb and shouldve just filled in the formula
I 2300*h
seconds 3600```
if your not certain just google it is what i did
An ampere hour or amp hour (symbol: A⋅h or A h; often also unofficially denoted as Ah) is a unit of electric charge, having dimensions of electric current multiplied by time, equal to the charge transferred by a steady current of one ampere flowing for one hour, or 3,600 coulombs.The commonly seen milliampere hour (symbol: mA⋅h, mA h, or unoffic...
the problem I had is that everything was telling me mA*h is not the same as mA
An ampere hour or amp hour (symbol: A⋅h or A h; often also unofficially denoted as Ah) is a unit of electric charge, having dimensions of electric current multiplied by time, equal to the charge transferred by a steady current of one ampere flowing for one hour, or 3,600 coulombs.
yes, amp is not the same as amp per hour
to put it simply ampere is a base unit of electric current, ampere per hour is a base unit of electric charge
yes I also have the problem that I have the defination of ampere as coloumb/seconds
so I am either missing something big or my definition is not right
yeah one amp is one coulomb per second by definition
ignore the other thing i said
you're not missing anything
Ampere hour is not Ampere per hour
Is what i want to say
1 Ah is a steady current of one ampere flowing for one hour by a battery
but why can I just fill it in if the defination is in ampere, and not A*h
What does the question say?
a battery has capacity of 2300mAh and 1.5 volt. '1mAh means there is enough energy in the battery for 1mA during 1 hour'
Hmm ok, and what is it asking to solve for?
and apparently, 1ma*H is the same as 0.001 * 3600 seconds.
which is what I dont get because its alrready multiplied by a time
they are asking me how much coloumb the battery has
That's because 1 Amp hour is 1 Amp * 3600 seconds (aka 1 hour)
And 1 Milliamp is 0.001 Amps
So 1 Milliamp hour is 0.001 * 3600 seconds = 3.6 Coulombs
Your battery has 2300mAh
I Just want to play minecraft man
2.300 * 3600 seconds = 8280C
So the answer is still 8280 coulombs as far as I can see
the answer is correct
OK Let me just break it down for you
The formula for Couloumb is
Couloumb = 3600 * Amperage Hour
And just for clarification Milliamperage is
1000 Milliamperage = 1 Amperage
Your question is asking for the Couloumb of a 2300mAh battery.
2300 milliamp hour = 2.3 amperage hour
So we know that we have 2.3 Amp Hours and we have the formula above for couloumbs.
Couloumb = 3600 * Amperage Hour
Couloumb = 3600 * 2.3
Couloumb = 8280C
But what is the timeframe of 1 ampere then? I am aware that its not something that just stays.
and with what I know. 1 ampere is 1 coloumb/s. is it 1 ampere per second then?
amp hour measures capacity of a battery
your battery has a capacity of 2.3 ampere hours
it tells you how much amperage a battery can provide for exactly one hour
so basically, your battery can output 2.3A for 1 hour before it dies
thats why your question clarifies that 1mAh means there is enough energy in the battery for 1mA during 1 hour
but if your battery outputs 1Amp, it can last maybe 2-3 hours
and if your battery outputs 0.1 amp, it can last 20-30 hours
does that make any sense
yes that makes sense
idk what your asking though
the question doesn't say how much amperes per second the battery outputs
or anything like that
wait, voltage
I just find the whole meaning of 1Ah vague.
yeah it can be a bit confusing
because 1 amp per hour is not 1 amp hour
amp hour usually used for batteries and energy capacity
so say a battery has 10 amp hours
that means that if it outputs 10 amps, it will die in 1 hour
if it outputs 1 amp, it will die in 10 hours
if it outputs 5 amps, it will die in 2 hours, etc etc
amp hour divided by amp output is equal to the length of time that battery works
its Amp * Hour, not Amp / Hour
in this way you can find the amp hour of a battery as well
say you have a battery that outputs 23 milliamps and it dies in 12 hours
so the battery has a milliamp hour of 23 * 12 = 276
this is what happens when you make hex width depend on hourly casualties and api gets fucked
ooooh deeear
Damn commies
hex width depend on hourly casualties

I would do the growth internally and not overlap into the other region
Because the border thickness between great march and shackled chasm is confusing
good point
thiccer is better
brrr
@barren quarry do you ever profile your javascript performance and if so - how? i find logiwaze to be clunky and slow because of all the javascript event calls and complexity of the paths/rendering and I'm looking to optimize it
javascript definitely aint my forte
i do most of my stuff on react
and there's a profiler plugin for firefox for react
ah damn
originally switching checkpoints in the timeline took a horrible amount of time to rerender and the profiler was really useful in debugging that
i tried just using the chrome debug tools but 50% of the time is spent in pointermove, which probably tells me nothing
im just using node and vanilla javascript
yeah react profiler is not that useful either
but it tells me how long it takes to rerender and thats good enough for me
i can just change stuff until it works
c# profiler is so ... unbelieveably good its hard to accept the lack of tools for web development
i think im getting wrecked on css style changes
javascript hurts my soul
javascript itself is horrible
i keep meaning to learn typescript but i never do
as i sometimes say, javascript with typescript and react is a cocaine whore in a lamborghini
its so much better and development is so much faster
is typescript gonna be a disaster with nodejs?
pure javascript wont tell you when you fucked up
well lucky for me my code is perfect the first time i write it
all of my systems run typescript including back end
typescript would be amazing just for autocomplete
yes autocomplete is dope
i realize how dependent i am on autocomplete for my coding
in pure javascript theres no autocomplete
it tries... when i use visual studio, but its more like "youve used this variable before, maybe this exists?"
and you have to go back to the file youre referencing and look up what the fuck did you define there
i spend a ton of time in the debugger in chrome stepping through line by line
vscode with typescript is just 
god im afraid its too late for this project to start with typescript
yeah thats why i killed foxhole global
it was like 4 times the size of logiwaze and no typescript
oh jesus more than 4x lol
it was horror to navigate through
@long raft if you have a file with export const var you can go to any other file in the project, start writing the variable name there, and it will offer you to import this variable from that file
via autocomplete
well im using leaflet, so i end up having to use a lot of classes, or custom derived classes, and i just find classes confusing AF in javascript
we all use leaflet
do you customize it?
i mean ... with custom classes?
the stuff i had to do to use the leaflet router was ugly
and i dont think there was a lot of benefit, i had to implement most of the routing with manual code its not like it provided very much
its more like ... an interface for the routing but you still have to do all the hard parts
i have factory methods in which i put icon data and then it constructs the icon with the correct icon and correct events and correct coords
i had to make like i dunno 5 or 6 custom classes
like replacing default leaflet functionality
havent done that
like i thought it was a framework but it was more of a scaffolding
for me the hardest part was trying to marry react leaflet draw with redux
its a library for state management
like you have a giant global variable and you import it into different parts of the project
and define how it will be changed
is it actually helpful?
its everything
i feel like everything i did on this project was sloppy and short term
i feel like a real C programmer on this
this is the same data interpreted in a different way
it has to be stored somewhere
im so interested in copying the foxhole style for familiarity i forgot their choices of font and stuff are bad lol
yours looks so much better
i have
have you seen it?
no
so basically in the later seasons there is this evil ai that controls the world
and the font from the screens of this ai is the one i used for sigil hq
lol
kind of an easter egg
@long raft so anyway, react components have their own state management and you could use that, but the problem is if you want to use props in an element several layers below you need to manually pass the props to each subsequent component, and it quickly becomes a nightmare
redux allows you to import data from anywhere without this headache
props?
Properties
oh
I know this is from yesterday, but in AVR you can use 2 registers to store a 16 bit integer by breaking it up into 2 8 bit values, first you shift everything right 8 spaces, then store that value as your highbyte value, then take the original number and mask the last 8 bits and store that as your lowbyte value (highbyte=value>>8; lowbyte=value&0x00FF;)
oh and to solve an age old question of why would anyone use assembly these days... well, if you want to implement an interrupt/preemptive kernel, you want to be able to move the program counter to exactly where you want...which you can only do in assembly
I also solved the problem of why mingw 64-bit for windows couldn't allocate more than 4GB memory.. it's because libc was never updated to make use of 64-bit addressing using "far pointers", which is a shame... though whatever other languages fail in, assembly wins at
assembly is a shovel in an age of tractors
you sure arent joking there
I successfully made a program in assembly to grab time from RTC over serial, and then output the data to a human readable form on LCD without using libraries of course and it was like pulling teeth
yea i imagine it would be easy a second time tho, right?
I am already basically making a mini non-preemptive kernel on it, just a simple thing where I can interrupt a function halfway through to grab data from RTC, store it in memory, then return to the point where it was interrupted
you can do this easily in assembly because you can just store the last program counter address and just jump to it any time
for low level hardware this is not too bad
since ram addresses are 16-bit and the registers are only 8 bit, every single time you want to put data to sram or retrieve it, you need to store half the address in one special reg and half in the other, then call the special register indirectly, but copy and paste makes life easier, just the source code is very lengthy
if you use the stack... I learned the hard way... if you push data to stack and call function, pop the data, you often get corruption because the CPU randomly puts stuff on and takes stuff off the stack for itself, so it's only good for using inside the same function
um has something happened
api crashed @long raft @barren quarry @zealous sonnet
503 Service Temporarily Unavailable
reeeeeeee
it's probably being restarted.
it is now sometimes loading but taking like 30 seconds for that url
ok it seems ok now
it would happen the moment i try a do something to my site, and then im like freaking out as to what i did when its still not working after hitting undo madly.... 
is it back up now?
it seems so
Fingers crossed I'm not to blame for any reason, but also I don't need it to be up all the time
aaand my thing still crashes
@zealous sonnet can you check if it was a deliberate reset or maybe overload ?
i dont think its overload
ive been sending 23 requests per 3 seconds for many many months until i accidentally learned how to properly use 304 and etags
and the api worked fine

but its easy to think someone could accidentally code a indeffinite loop with no delay

still working fine for me
it was just a short thing it seems

event string renders events by looking for the nearest text label
api returned an empty array of text labels
zeroeth element is undefined
website crashes
me
Error description: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near ' '', NULLIF('0',''), NULLIF('0',''), NULLIF('0',''), , '' )' at line 2REPLACE INTO wars ( id,winner,conquestStartTime,conquestEndTime,resistanceStartTime,requiredVictoryTowns,warId) VALUES ( , '', NULLIF('0',''), NULLIF('0',''), NULLIF('0',''), , '' )
this error message tells me literally nothing
i guess i never accounted for the api failing
to be fair this war api failed all the time
i just never noticed
alter table wars add column shard integer;
yeah i aint worked out way to filter that
an hour later the map has a seizure
@long raft if only it was that simple
yea because all you do is api calls
stateless is the best
i really hate the tile seams in leaflet, im not sure if its a javascript problem or if ive cut tiles with a slight black border on them
need to figure this out.
i know the answer
do tell
this is probably due to fractional zoom levels
nah even whole zoom
hmmmmmmm
ive been suspecting its a partial pixel interpolating in the tile cutting process, itd be easy to check and probably pretty easy to correct
i actually dont see the seams
i see them in edge and chrome
whats the problem then 
eyesores 
ocd kicking in
mostly i woudl be concerned if my tile cutting program had a bug
do you see them on foxhole global/sethfire's map?
yes
when someone in reaching trail gets run over after loop reset
@zealous sonnet the map list returns the whole list despite 4 maps being offline
reee
instead of not showing up on the map list they show up with empty item arrays
overwrite the existing item entries and fuck up the event string generating logic
weird my stuff rendering fine, lol for once i built something that cant be knocked over easily
because there arent many moving parts
oh oh
ooh i dunno about that.
theres more moving parts than youd think with all the road calculations
my limited imagination thinks theres a router library that does the heavy lifting
hah
thats what i thought too
it draws the line, sure
it doesnt calculate short routes, it doesnt decide which roads to show based on which servers are online and who controls them
sort of - i just used nearest point, so its the same calculation of voronoi shapes, but its much faster than actually testing if its inside a polygon
theres some complicated border calculations and stuff too
yes. difficult.
might be more doable now that ive scaled icons, maybe i can piggyback on that code
certainly not a built-in feature to leaflet, ya know?
you just have to build your own hook that scales everything matching a css class
and you have to call it for tons of events, layer added, layer removed, zoom, etc
anyone here has experience with angelscript?
in react you would have a component in which map is stored, in the map you would have a zoom event which changes a variable in the component state, and then you simply pass this variable to the icons
and whenever it changes the icons rerender
but its in leaflet, how would react handle that?
oh
i have often toyed with the idea of doing it in blazor
but i imagine it would be more trouble than its worth
i see
Nice
our websites look more and more like a stock exchange
graphs, timezones and shit
we just need some currency for betting
it would be that hard
or trading
what can we trade ... ?
i think it has to be a seperate system outside the game
just within the website
unless devs add loot boxes @zealous sonnet
or in game api
something we can use to interact with the game
steam community market support when ???
Hi, I wonder if the api can provide the server and people faction choice? @ dev
It would be ideal to arrange the players by category on the Foxhole Francophone discord, and avoid a game of espionage or potential trouble.
However, from what little I've read, it's more specific to the maps, and not to target person by person and specify their LIVE server 1 or 2 and their factions during that server and war.
It would be cool to have some sort of memorial of those who were present in such and such a war? the equivalent exists for other games on albion online for example : https://albiondb.net/search/ and that would be nice is to leave some grey areas, like not necessarily mentioning the faction/regiment or some sort of random thing on the information like "the game paper please".
Translated with www.DeepL.com/Translator (free version)
*If I suggest this, it's to leave some remorse to the old guys who have done some bad things in the past and in other cases, it's to know where they have been before and try to give them some information about their toxicity or to check that they don't lie on some details.
After that, it can be a tool to create an anxiety-provoking climate, like Eve Online and the big corporations that are fulls voyeur on it, I don't know, those are ethical and moral issues for you to see the pros and cons.*
Searching AlbionDB for
??
@whole iron there used to be memorials with players names and commend score for each war but it got pulled, maybe too big ? there is no player data like that available anymore, we do wish the devs would make it available, even if just post war.

so i was thinking about the multi shard thing, and sure it has its obvious immediate benefits, but i can see some messy complications if its kept, namely for example during update roll outs, as the devs will have to finish all shards at the same time to update them all, so everyone gets to (and will want to) play the latest version. so some poor shard/s will essentially get killed off regardless of game progression or state when the 'primary' one ends. eg #2 might have just started, a few days in, still 50/50, and #1 finishes and its update time, too bad #2

but theres no other way of horizontal scaling
well at the moment its unavoidable, but would just making the world bigger be better ?
yes and no
why no
imagine you want to accommodate 5500 people on one shard
you create a frontline with width of idk 13 regions
the next morning you already have a problem
because pop drops to 900
no way in hell you can defend 13 regions with 450 people
now here is why 2 shards work better - and this is how it worked pre-world conquest
but pop swing has/is always a problem regardless of shards or not, it just changes the scale not if or how bad it happons
everyone just leaves shard 2 and stuffs into shard 1
shard 1 is guaranteed to have enough pop
sure, but then shard 2 is essentially disposable
yes
such is its fate
you go to shard 1 for sweaty tryharding and to shard 2 for casual gameplay
it dont see that being healthy for people who play things other than pew pew on shard 2

