#code-talk
2 messages · Page 19 of 1
well they should just eat humble pi and bring back skirmish and have them as overflow maps on islands that are set far (inaccessible) offshore from the main world. and they just spin them up and down as needed. this i believe is closer to the ViSiOn than parallel universes
maybe not
looks likeo it
@long raft must have fired up his website again
i told you they needed to investigate if yesterday it was a scheduled reboot or not
are there meant to be those regions offline ?
F
anyway just to finish of b4
well they should just eat humble pi and bring back skirmish and have them as overflow maps on islands that are set far (inaccessible) offshore from the main world. and they just spin them up and down as needed. this i believe is closer to the ViSiOn than parallel universes
you know what would be hilarious if someone actually ddoses war api and makes foxhole servers crash
im sure it would work
btw how have you coded for the bug when diff maps day count gets off ?
yeah i should drop it, its kinda pointless
the other way would be from /war to get hours elapsed since start and there is days
yeah
but its likely kinda confusing for new players to see in game days mentioned out of game
the true difficulty of working with foxhole api is realising how much code you need to write in order to deal with the api being fucked in various ways
yes
how
well its done entirely on the front end
i dont want to mess with back end because its sort of irreparable if i fuck up
so if i suddenly get a zero report i just take the previous one
casualty spikes are the consequences of treating a zero report as legit
and then calculating cas/h based on it an hour later
but how you know its bad 0 not correct 0
i dont remember the exact logic
i think i take the previous report and the next report
and then do a comparison
might work
also found this
https://istheshipstillstuck.com 
love all the little tugs a the end scramblin
Quick what version of ue4 is foxhole currently on
no idea
please I need it
Try 4 24
thx so much
Bruh moment
@barren quarry when u never had to deal with api outages and had just set timeouts to 0
What am I looking at
i should make a modification that just says FUCKED on top of a region in red font if current report is zero report
oh great even the map list endpoint doesnt work
im thinking of adding a up/down indicator for the api on the site
that's sound like a great idea
pffffffff
LMAO
@long raft @barren quarry so im doing investigations into voter fraud at FHS commander system. do you think it would be fair to say if there was a large proportion of votes from AMAZON-AES ip organisation that this would be a red flag ?
the fix for the leaflet seams:
let originalInitTile = L.GridLayer.prototype._initTile;
if (!originalInitTile.isPatched) {
L.GridLayer.include({
_initTile: function (tile) {
originalInitTile.call(this, tile);
var tileSize = this.getTileSize();
tile.style.width = tileSize.x + 1 + 'px';
tile.style.height = tileSize.y + 1 + 'px';
}
});
}
not sure i dont know any details
nah its good
'boutta push this update thatll fix those stupid seams
but do you think theres legitimate reason ip organisation might be amazon ?
uhh maybe if some sort of CMS was redirecting requests? some sort of proxy? otherwise i would struggle to think of a legitimate reason coming from AWS
are you able to see what requests theyre making via http?
its my commander affiliate system, looking expected voter fraud, namely with the leader
im only looking at one persons votes
i could try comparing it against profile of other candidates to compare as i get more data
or i wonder if its a discord bot or something
Hello, Do you know any youtube videos which talk about foxhole API ? Thank you
I dont think so, but you can ask all your questions here! @slim owl
There are quite a few peeps with expierence
Okay, thank you, i don't know if you already have this question, i'm sorry for that.
So, i want to make a discord bot and i want him to publish the war state for exemple "LockMor has been take by Colonials" or somethink like that.
Thank you, and i'm sorry for my english
@pure sierra has it
I know how use the api but i dont know which api take, i can get the hex maps with" /api/worldconquest/maps" but i dont know how we can get the "Colonials tale tawn hall of Loch Mor" or somethink like that.
Thank you
the API shows who controls which locations. if you want to register a change of ownership you would have to maintain your own database and detect the change
when you get new data, look for the item with the same x and y
compare icontype, team, flags
generate event string
and output
Thank
Thank you so much 😄 i will try it
its actually a lot of work, i think only sigilhq and foxholestats do it
Generating event strings is one of the simpler parts
maintaining a database
just think of it as an array
if you are trying to parse the XML data and you don't have fancy libraries or anything, what I'd do is create a bytestream of data and buffer it, and each buffer line you fill up, parse it with strtok(), so first you want to separate data into arrays (vectors) by '\n' or '\r', then of course for the second vector of data in your array (like vector_array[1][n]), where n is the iteration number, parse that string again removing '='/spaces/commas as tokens and now you have raw data to work with that you can convert to double or integer or whatever you need
each time you split a string with strtok you will end up turning that array into more of an array, like array_vector[1][a][n], array_vector[1][a][b][n], array_vector[a][b][c][n] etc
I think in C# there is a function that replaces strtok and it's great, but I forgot what it was called.. I think you can add .Split() to the end of a string or something like that
i know that
im having a problem with
vector of a main class
and accessing subclasses of that class
i need to make the vector a vector of a class pointer and
do weird stuff with static cast
and use those silly arrows -> to get the values i need and then do more silly stuff with the destructors to avoid memory leaks and crap, i dont wanna deal with that
right now im tryna use the variant library to avoid the pointers hell but
making a vector of a variant of a ton of classes is also painful and i cant even get the values i need without doing even more silly stuff
and if i tried something stupid like making a vector of vectors i would end up with pointers anyways so thats not a solution either
it's fine I am bored and it's past my bed time so I decided I'd give you guys a treat and write a parser in C for parsing the XML data
I havent really tested it to see if it works yet, I just spent time typing it up, but this is what I made for a foxhole XML parser so far https://pastebin.com/nzP9TeGx
Pastebin.com is the number one paste tool since 2002. Pastebin is a website where you can store text online for a set period of time.
ironically I intended to use strtok but ended up doing it entirely different
Oh yea I used the wrong function for reading bytes at a time but will try my hand at it later, but the general idea is there
Not so much the logic to determine their content is though...
yeah strtok usually returns a char array*array (or a string array)
char *newstr[] = strtok(str, ' '); // [] optional - used to reference each char
/* All values inside double quotes include null termination:
* newstr[0]: "hello" - newstr[0][0]: 'h' ... newstr[0][4]: 'o' newstr[0][5]: '\0'
* newstr[1]: "all" - newstr[1][0]: 'a' ... newstr[1][2]: 'l' newstr[1][3]: '\0'
* newstr[2]: "peeps" - ... newstr[2][2]: 'e' ...
* NOTE: referencing something like newstr[0][6] is undefined and considered unsafe
*/```
older compilers usually have few issues converting data types passed to functions, but modern compilers will often give an error that says it can't convert to a different data type without a cast... this is why most modern compilers can't really compile many C programs, and it's funny because on the CPU level, data types don't exist anyway ... if you do decide to make an array of characters manually and then cast them as a string with char*, make sure you do add the null terminator to the end of the array before you cast
i hate docker
i hate docker with every once of my existence
thank you for attention
why? docker makes life so much better
I was expecting this to be binary 
It's hell to configure
Like I would actually rather be waterboarded than configure anything using docker
Hello, I make a small API (it's a test and maybe he doesn't really work x) ) If some of you want to try it you can mp me
Api for what?
Hey there, i've been using https://foxhole-hq.glitch.me yet as my team told me its not available for live-2 (yet) and there are a few missing things and bugs, is there a way to open issues on the repository of the projet ? Or even better open pull requests with fixs ?
Fair enough, do you know his discord tag so i can slide into his dms ?
local javascript psycho
kastow#4470
lol thx
@pure sierra for the new information of a région, like name have been take by wardens
@slim owl you have done it or you want to?
I've done it
How are you serving it @slim owl
I'm honestly impressed how much attention shard 2 gets from the community devs
Considering it's gonna die in like a week
Maybe not, today's online will show
Virgin Tip of the iceberg: "oh there's an api, how you link town state with name?" , Chad dev wildallen: "bit shift the dominant Stonk int to a byte array and store in Json for the database , but don't forget the edge cases"😫 🤷♂️
Yo ! can we make mods ?
@delicate crystal for FOXHOLE? , you can make mods for it, as long as it does not give an advantage over everyone else
my idea is to make a flag on the head of player to know if we have to speak english or not
@delicate crystal so it would be great for the dev to do this. I'm not sure it would work that well for us to do it as it would rely on the other person/s running the mod too. Not to mention foxhole had 0 mod making "interface/framework"
also depends what would be considered an "advantage" and what not
for example a mod that changes the texture of the vehicle im currently driving so it looks unique doesnt give an advantage in my opinion just a little visual change on the textures. but i dont know how the VAC system would feel about it lol
i'm going to guess that VAC gets annoyed when it comes to extra functionality
seeing as people dont get banned for replacing resources like textures and sounds
Chances are anything that interacts with the game files or memory would be a risk of trigger
you can kind of tell by their regiment anyway
alright kastow i did your road line rescaling suggestion. oof
Wow -> operator being phased out in the next version of c++. Even c# still has it
so back to de-referencing?
Hey everyone, I've put out of the grave foxehole-hq and I'm here to say hi.
Probably should have been on this channel first :p. (srv1 https://live-1.foxehole-hq.com/, srv2 https://live-2.foxehole-hq.com/, code https://gitlab.com/a.couty/fhghq)
yeah the dot is used for directly calling variables in a structure that you define only once iirc, the indirect one is the arrow used mostly when you have pointers to items that resemble the same data as in the structure but at random specified address locations
I can imagine since people don't want to bother with pointers anymore, that's why the -> operator is being removed from that implementation, but there will still always be the traditional c++ probably forked from that
in the end, whatever functionality that is removed, it can always be implemented in assembly and packed into a DLL and called by any high level language anyway ... it just takes double or triple the typing to make the same function in assembly compared with c++
no, dot is used for a stack allocated object and -> is used for a pointer to an object, simple as
i only mentioned it because skayland was talking about using std::vector with -> operator and it was confusing
also i read theyre getting rid of :: and replacing it also with .
i hope this wasnt just april fools stuff. you can never trust april. also shocked to see c++23, making me feel old
it will be super weird if c++ gets rid of -> and c# still has it. i would think then c# would get rid of it too
n->x does <exactly> this: point to the memory (RAM) address of (*n).x
so, when the -> operator is removed, you can just use the equivalent shown above
From page 131 of "The C Programming Language" ISBN 0-13-110362-8
if you've been using -> for regular objects, it will work fine but it is exactly the same as (*p).x which is equivalent to writing p->x, however, it is much more efficient to use the dot operator if you are modifying a declared structure rather than a pointed to structure
I think what you are getting confused with is this whole stack and heap concept, people think they are separate things but they are essentially both in memory. The difference is that the stack is faster to access because there is a stack pointer register in every CPU which can make stack operation much faster than indirect memory addressing, which is what you use to access the heap with ... with indirect addressing, you can access any part of memory, whether heap or stack, including operating system areas and such, however, the OS will usually throw an exception if you access an address which is reserved by another program
the stack will always be more efficient to use, but it's very limited in data size, and the more you add to it, the more overhead it will have too
yea no im saying there is no efficiency difference between (*x). and x->
to understand it you need to try your hand in assembly
allan, i have known assembly for like 2 decades longer than you
once you try out some assembly you will understand the concept so much better
please quit telling me to try assembly
im extremely familiar with this. as i told you before ive written compilers
but i do think its cool when programming languages get simplified and more work is done by the compiler and less by the programmer for no cost
there's a huge cost when the compilers add overhead, to the point that David Plummer (ex-microsoft employee) has a video showing how bad Python is
this isnt one of those cases, this wont add any performance penalty
i suppose its possible it could add more compile time but it would be insignificant
he did trial tests of the same code in C++, C# and Python and Python took exponentially longer to perform the same operations as the other languages
well, am i wrong? python is not a compiled language is it?
thats really not a fair comparison, if so
no, it is interpreted but still bad
i mean ... nobody is writing tight loops in python
python is just a utility like a command line script language
its just the mortar between bricks - which are the libraries
C is pretty stagnant but c++ keeps advancing each year - i find myself wondering which version of c++ the foxhole devs use
https://www.youtube.com/watch?v=D3h62rgewZM&t=1342 the speed comparison of C++, C# and Python running the same program
Retired Microsoft Engineer Davepl writes the same 'Primes' benchmark in Python, C#, and C++ and then compares and explains the differences in the code before racing them head to head to see what the performance difference is like between the languages.
It appears the upload process does some volume leveling or loudness, so my apologies if you g...
Oh Jesus those benchmarks are always ridiculous
If you trust that stuff you are not familiar enough with other languages
this guy isn't some random guy, he made the original Task Manager that millions of people use every day in windows
It's still dumb comparisons even if he's smart
if you google David Plummer he's an ex microsoft employee with plenty of decades of experience
I'm so tired of arguing which language is faster at something c++ is good at, I'm not 15 anymore I understand context
Appealing to authority doesn't make it more believable to me
I could just as easily show you examples of c# outperforming C at specific tasks
I could show you exponentially greater productivity with python
C# can't outperform C unless you are using some bad compiler and terribly written source code
See you just don't know
And you're not open to new ideas
I don't care if you love old languages anymore, you do you baby
here is a good trick question for youint i; /* which of the following two lines do you think is more efficient? */ i = 0; // Assuming that the compiler converts this to MOV 0, i // or i ^= i;// Assuming that the compiler converts this to XOR i, i
thats old allan, that doesnt apply since like 1995
theyre both the same speed now
youve got to get newer books
except they are not the same speed according to the Intel 64 architecture
ok whatever
theyve been the same speed since like 80486s
maybe earlier
performance is so complicated you cant count instruction clocks anymore, theres so many more penalties incurred from memory locality and caches
/* which of the following do you think is more efficient? */
// the do:while loop
i ^= i;
do
{
/* codebody */
i++;
} (while i<10);
// or the for loop:
for (i=0;i<10;i++)
{
/* codebody */
}```
This fucked me up on multiple occasions
Thankfully typescript is too paranoid to add numbers to strings
reminds me of this
To offset some of the banana-based JavaScript "weirdness" that's making the rounds, I'm bring you a 40 line JSFuck compiler that turns innocent looking JS into a mess of obfuscated symbols.
=[ 🔗 Links 🔗 ]=
-
⭐️ Patreon: https://www.patreon.com/lowleveljavascript
-
💌 Updates to your inbox: https://tinyletter.com/lowleveljavascript
-
Martin Kle...
i hit one yesterday
if( settings & 1 == 0) ...
wouldn't get triggered because javascript order of operations had to be
if( (settings & 1) == 0)...
reeee dynamically typed languages so frustrating
what does & 1 do?
@long raft
i mean i know i do & 0x04 to check if townhall is a blueprint but i have no fucking clue about the mechanics of it
its like a magic box to me
it will mask if the first bit is set in settings, if not returns 0, if first bit is set, returns true or 1.. but yeah you would need brackets around it in C++ and java as well
the first statement you wrote would always evaluate to false if the compiler didn't throw an exception
because it would first check if 1 == 0 then it would & it with settings.. the reason for this is due to something called priority of operation
every operator and instruction you use has a priority value
of course here is a reference of information on that concept https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Operator_Precedence
Operator precedence determines how operators are parsed concerning
each other. Operators with higher precedence become the operands of operators with
lower precedence.
if you scroll down the page to where it has a big table it shows you the priority number for each operation
Maybe wrong channel. Would it be legal for me to get informations out of the game through OpenCV/OCR ?
I'm looking to build a way to get ingame stockpiles infos on discord
No, that would be considered cheating
You could use it to spy on the stockpiles of the other faction
Some of these concepts I discussed were actually test questions on interviews for programming jobs ... Knowing exactly what it is going to do before you hit run is very important
Long ago, like before 1980, when you made programs you simply couldn't make many mistakes because of the time and cost of punching paper tape... If I were to pick someone who knew what they were doing over someone who has to google everything, I would go with the first option just as most employers still do today
Hey that's neat
madlad git commit message on our university's gitlab
nothing wrong with googling
altho, I personally prefer to look back in my notes for dry cut examples and steps to solve an issue
you know. why would I write a completly new A* algorithm when I can perfectly fine copy me old one and adjust and improve accordingly
which is also why I hate test that have you memorize useless trivia that I will never use until applicable again.
Not to mention also that just because you know logically what needs to be done doesn't mean that you don't need to google what exact syntax you need for something or something along that route. The idea that you are any lesser of a programmer because you have to google some stuff is antiquated.
Like...I googled the difference between UNION and INTERSECT yesterday for a SQL query I needed even though I've been doing stuff like that for the past 2yrs. Sometimes we just forget things. 🤷♂️
why didnt they just use a switch
yeah, its better to google it real quick than to have to run the code a couple of times to figure out which is which
lol theyre still fixing holes in the terrain that were supposedly fixed
upvotes please 😉 https://www.reddit.com/r/foxholegame/comments/mmia6q/the_french_invasion_now_the_1_users_online/
hayden youre gonna need french internationalization
oh
Surprised by 5% dutch
wtf lmao
Nice
I love how we got a regiment of Réunion guys which is not considered part of France for some reason here in 44th place xD
the island?
Im guessing?
I have a windows auto hotkey script that toggles auto click if anyone is interested
Sounds good. I pondered with the idea I hosting scripts...
You can just use a github repo for that
@pure sierra what's up
what's the policy about modding the game because i think there is a mod that embed an artillery calculator directly into the game
you arent allowed to mod the game. apart from sounds and skins last I checked
you cant really directly embed an arty calculator because you might just trigger VAC system
oh my bad it's not a mod simply an overlay https://github.com/XeniacDev/FoxholeArtillery-Windows
It's not modding the game, strictly speaking. It just opens a small chrome window on top of everything else
yeah
@barren quarry who is the author of logiwaze ?
@long raft is
ok his app is very great but could have some additions like directly setting the start and the end of a route with right click
nice new background, love the aesthetic
@pure sierra what does the "website users" number represent exactly?
How many clients are open right?
It's still early access 
@languid harness @barren quarry correct its the number of clients the live update server has, which is basicalyl anyone with a tab open
@twin glacier thanks
warapi still using master branch. clapfoot racist? 

dont look at me like that kastow. woke coders use main branch now
meh, so what is the PC term for slave now ??
secondary? backup?
im actually not sure, i dont see master/slave terminology used often
its pretty common in microcontrollers
not really something in my world
and ide hard drives 😆
really its not the term master that should be the issue as that has many meanings/uses outside, its more the slave one.
you cant have a master without the servants
i think its pretty easy to just use main instead of master, but i dunno
i dont understand why people would bring politics into a thing as boring as git
so racism is politics?
or master branch is not racism?
reeeee how to output a binary file from a docker container, stdout doesnt work
oh nvm figured it out.
Non-binary file
oh snap
I just don't see how the term "master" is racist, especially in the context of git
github avoids the subject generally with:
main is the most popular replacement for master that we're seeing across GitHub. We like it because it's short, it keeps your muscle memory intact, and it translates well across most languages. We're using main for our newly-created repositories and for the repositories we're moving now, like dependabot-core.
i made a docker container that compiles the foxhole map from the git repository and creates the leaflet tiles and then makes webp copies
docker run --rm nouderp/foxhole-leaflet-maker > MapCollection.zip
Ah like master apprentice
I think some people would still rather avoid the connotation
Foxhole is getting so much more love from community devs than, say, 3 months ago
Even you guys woke up
On the contrary it's too boring to play, more fun to program for
Yes! Exactly that
i played maybe 5 hours in the past 2 weeks
and i honestly didnt enjoy it
I saw hayden last war for a little bit
No the one before that or... Maybe 2 before that
ooof my mapping docker container turns everything black and white. oof.
woo fixed it
could you make it a webservice ?
i dont really want to run a server for it
plus its kind of memory/cpu intense so it'd be easy to DoS as a service
but couldnt it just automanically generate on git update
if you have docker, you just run that command and it will spit out the combined map and tiles
it only needs to be run when updates happen, so...
does it separate files into folders?
i can use docker but i dont do it usually
but it downloads the TGA from the warapi git repository
converts to PNG
combines them into a single map image
tiles them (leaflet)
makes copies in webp format
zips them up
i have tiles neatly split into layer folders, could you add that?
i know its probably a stupid request
i dont know, i did it for some reason a while ago when i was linking them to leaflet
its a habit but i dont really know its origin
is there any sort of foxhole icon i can use to represent "road quality" layer?
or neutral roads?
i feel like i need an artist ... 
lol
have to have clicked in the page though for browser to give permisions to play, so ...
seems reasonable
all you need to do is add an attribution
oof.
i found a couple that dont need attribution
i dont have anything already build for attribution yet, no place for credits yet
its on my list...
Is it possible to get information about items in a bunker with the API ?
No
Backend Engineer (Game Services)
Game Programmer
...
Experience with Java, C#, or equivalent programming language
Experience with Windows Server provisioning and management
...
😫
I have experience with C and like to move to cold canafa
Hire me plz clapfoot
I can make a real life falchion if you so desire clapfoot
that would actually be really cool to be fair
radio controlled scale falchion
windows server 
💩
but c# ... who at clapfoot does c#?! id like to know who does c# there and what they use it for
also imagine running c# on windows server in 2021. seriously. no.
as much as i love dotnet and c# i can find no justification to use windows server
when i make c# stuff i try to run it on alpine
i have like all of their requirements for all of their job posts except:
canadian
Ability to take criticism with a positive attitude and able to work well within a tight knit team environment
my biggest potential strength: Be on call during off hours to diagnose and respond to server issues in the live environment
aka die of stroke at the ripe age of 40
i sure as hell wouldnt want to debug foxhole servers shitting themselves with 5300 players online
on a sunday
At 5 am
just blame stuff on julian
i think a bunch of their requirements are aspirational though, like no one there currently knows that stuff, they are just trying to grow talent
i think no one knows all of those things, but as a whole they do
i feel like i know most of them tho... they couldnt afford me
plus theyd be mad im on fod all the time during work hours
they watch us here
here fod or here code-talk?
FOD
maybe derp u better being paid as community manager like kfc, then you can live here too
but you know - you think the world is all remote now, you can program from anywhere, but employment laws make it difficult to hire foreigners and nobody wants to be an expatriot in canada
max is canadian tho. also i would be a horrible community manager
would you be worse though?
for sure.
i wonder if the on call bit means you get paid extra for that or its just expected for free
Considering that when the servers go down at like... 5am EST on a Sunday the people who normally respond are Max, Mark, and Nooba
So maybe it's paid?
i think the on-call part is just ... part of being a game programmer. game programming suuuucks
they pay you like 80k a year but then work you like 60-80 hours a week
so im sure you get paid if you are called up, but what i meant is getting paid bonus for being on call
or you can do database programming for 150k a year and work 25 hours a week 
i actually do some of this shit at work even though this was supposed to be a react position
"A minimum of 3 years in a live services developer role for an online application or game"
foxholestats.com has been running for over 3 years now ... 
but youre not legal to work in canada, brother.
dont need to be
totally need to be.
Candidates that are legally allowed to work in Canada are preferred, but remote opportunities are also a possibility.
whahaaaat
derp got an erection
maybe that wasnt true for the other job posting, or maybe nobody is biting in canada
yeah it changed
im practically full time employed in fod anyway

and then i have a full time job aside from that...
whats your full time job
and i play foxhole. but why not apply for a 4th job eh
It wasn't mentioned the last time they posted a job app
im a programmer/ceo
thats a really vague description
small little software contractor
they need one of them too.... (ceo) 
mark is a good ceo
and i fix computers for old people as a hobby
Do you enjoy suffering?
That's... a sadly low bar
mmm not sure about that, come to australia
yah old men ... about as racist as gamers, not so loud about it. old ladies are nice tho
but ya im a fod warrior who argues with aleph and wildallan, of course i like suffering
"Developing web tools to monitor server performance, player activity, and other live data"
we are being outsourced....
Those tools are to replace (I hope it's to replace) current tools I'm guessing...
@fickle aurora
you know if clapfoot just put out their requirements and made a github repo we could push to we would do that work for free 
open source the foxhole backend and you wont have to pay for it
that would be interesting
mit/bsd license it
but then people will just steal it
The Microsoft strategy
whats the value of stealing it - the real value is the game and the community and matt
thats not fair about microsoft
also leaves you open to people seeing weak code
they contribute vast amounts of open source code into the world now, really high quality code
Now they do
well hayden i dont believe in security through hiding things
Weak doesn't necessarily mean insecure
i think they still do though rely on it
But yeah agree with Hayden on that
might as well find the exploits for free too 
i know its not a good thing, but with a developing project its often not a high priority until its gets popular and starts getting hacked
let us not forget linux is entirely open source
i dont know what the standard for high security is ... i wonder how secure solaris is
probably linux
My guess is it isn't the newer code that's causing a lot of the security issues but older stuff they haven't refactored or gone over
sounds plausible
i suppose you cant open source the 5am on-call stuff tho
Perforce? why not git?
they said or equivilent
Perforce or equiv
my guess is that git + unreal = ew
i never heard of it, why mention it
Because they probably use it?
perforce is old... pretty speedy with binaries
UE4 has weird interactions with most things
it might have been linus's inspiration for git
could have swore thats what he used before creating git
i think the linux repo was perforce after it was cvs
maybe im making that all up. its been a while.
ah, makes sense
git is very hard to learn, actually
and all the UI tools just abstract away stuff and make it even harder to learn
i tried to train 2 teams on git before, and in the end they just stuck with fucking subversion 
once you learn subversion you can never learn git
i resisted going cli with it for a while, but gave in eventually and got my head around it, its much more versatile and portable from cli and fast/simple once you get your flow and structure set up
i use github desktop just fine
yeah i was svn b4
have you ever done a rebase?
too many times
i was on desktop first, still have it for simple checkouts, but my dev work is now just cli
it worked out ok in a UI huh? hmm
huh? explain
fuck ms buying github though 😿
weird that they owned codeplex
but there was alreayd a lot of MS programmers working at github
github has no heirarchy. imagine working at a company with no bosses
i need answers on why you think gitlab is bad
i was wondering the other day who gets the money for buyout?
ruby on rails, kastow. thats why.
Microsoft buying Github didn't really surprise me
maybe its tolerable when you run it in docker, good luck with upgrades, but if youve ever tried to build it yourself its a living hell
that doesnt provide any context
oh so you built your own gitlab?
no i mean ...compiling it
your not a coder until you've battled with something that wont compile in linux
yes but why compile it when there is a website
well why even mention githublab
my repositories are often 100GB
you probably also barricade your windows and have a shotgun near each 
they are there simply because of their webservice
some berkeley phd scoffed at my repositories
what country do you live in @long raft ?
but i just cant host that stuff on rremote gitlab or github it would cost a fortune if i could ever make it work even
im in the US
do you work for a company ?
my own
He's his own boss
does it have a website ?
oh so your on facebook ? 
nope
its not very hard to rent a 3$ vps and build a landing page in a day
i have few customers, rich folks, universities, NGOs
Derp has what.. 2 foxhole websites?
i dunno kastow, it just ends up being sales calls, i dont see the value, im not looking for more business
actually icanari i host logiwaze on github, so ... no
Oh nice
i see, takes away time from important FOD work? 
can make website for game but not own business
dont want to make website for business
i like to keep a low profile in life and ive been grateful for this
shadow company
people will come for you in life, when you least expect it, theyll exploit anything you make available if you ever make an enemy
and theres a lot of crazy people you would think you have done nothing to anger but youd be wrong
There's a reason that I've done pretty much everything I can to disconnect Icanari from my name
its wise
and the worst part about the internet is how permanent it is
shit will follow you around for decades
fod mod life , thug life
i have social media pages but they're all empty
there are probably less than 10 photos of me online and they all belong to someone else (relatives)
Congrats they're tracking everything you do on whatever device you open them on
And then feeding that data into really worrying algorithms that can predict a scary amount of things
on the other hand, being one out of 500 million means no one really gives a fuck about you
which is kind of anonymous in its own way
Until someone hates you
i used to be a bit like that when i was younger
but now i just funnel all my hate into sigil hq
much healthier
Is that how it got coded so fast?
yes
global hq want giving you enough pain ?
i dont understand the question
fhglobal
no i understand the subject but i dont understand the question
i thought if you was looking for a punching bag that would work well ?
@barren quarry how do i get the community dev tag in reddit you have ?
oh easy
Anyone can be self appointed dev?
Yes
It's cool when Kastow does it but I'm afraid of feeling pretentious
Maybe I'll just throw in an ad
put 'webdev but humble'
Zoom level details I think
I was looking at it a few days ago
But why
@full dust craftables?
@pure sierra sure, anything that logi can create and run
Don't need combat stats and all that, just recipes, crate size etc
this sort of thing ? though likely out of date
https://foxhole-logi-calculator.glitch.me/
@full dust
that thing is very much out of date lol
If I'm not wrong wait a bit and the link should be up again a few moments later
Didn't find one, I'm on it with a few ppl there: https://gitlab.com/a.couty/fhghq/-/issues/13
Look at the comment and "items.zip"
For now all warden & shared craftable are described, because I verified ingame for the resources requirements / crate stats and I'm warden..
Will have to go on server 1 as Colonial to map the rest 🙂
I'll comit it to a branch later today, i'll have a look if we could create a npm package with just that
ah nostalgia
my very first js project
why did you use glitch and not github page if it's only js
looks like your whole app could be client side no need for a server
Anyone know the actual specific equation for the MPF discount (allowing for a less-than-full order, i.e. 4 crates of 120mm vs 9)
10% first item, 20% second, etc up to 50%
Thanks @long raft
Also found this guy's project, which includes the its own JSON for craftable goods that we were discussing before
I bet that's tough to maintain
I'd imagine it's not too bad
Just updating recipes
Not like they're trying to track the black box of combat stats
ok i did it. i made an option to do subdirectories on the map docker. i don't know why. i doubt anyone will ever use it:
docker run --rm nouderp/foxhole-leaflet-maker -s > MapCollection.zip
do you have docker?
Never heard of it

What can I say
I am but a mere python boy
and also a plentra of other lanhuages that I had to use for one course each time
docker is a thing that pretends its linux
if you know how to set it up
I havent used 'other' OS much beside my cmd screen Rasbian
And that was only setting up a connection and running scripts tbh
ive been working with docker for a while at work
its just every time i try to use it there is some new not obvious fuckery that breaks everything
i started using podman instead of docker, now docker seems easy AF
k8 is the real craziness tho
docker is really nice, and docker compose is really nice - pretty easy to use. much easier to learn than an entire language, but it's heavily dependent on how good you are at linux command line
if youre a CLI wiz then docker is a piece of cake
i feel like the two most useful languages to know are probably javascript and bash (or bourne) script
i just recently rebuilt my tiling program to and stripped out the last native library
so it should compile nicely on arm or 32 bit nicely now
explain what kubernetes is
industrial docker 
if you ever talk to anyone who does k8 and you ask "should i learn k8?" theyll go into some long story about how insanely difficult k8 is
and they always end the story with something like but it's worth it for how easy it makes things in large scale
makes me super skeptical.
docker, podman, and i think k8 are all based on open containers initiative
containerd, etc
Reading Time: 11 minutes Containers have been around for over a decade. Yet before Docker’s explosive success beginning in 2013 they were not wide-spread or well-known. Long gone are the days of chroot, containers are all the rage, and with them, we have a whole new set of development and security challenges.
How can i contact the devs regarding a Logi QoL mod I wrote?
You can drop it on the foxhole reddit @jagged talon
you can just pm them direct
i made a thing.
https://shard2.foxholestats.com/
he done did it
🥳
@long raft something quick till i make a better resources section
Lol oh boy I wonder where it'll go
im off to other work
Basically k8s is an orchestrator for managing large amounts of docker container so that you can setup monitoring, autoscaling, networking, storage etc for all the different microservices your project requires
It’s complicated af to get into but if you get into to it it is just awesome
But for most “small” things it’s just plain overkill because you will only utilize like 10% of its capabilities
Do you use it?
yeah at work and for managing game servers on my rented servers
Built some management system for it so that non technical users in my clan can interact with it and create game servers via an ui and manage them
It’s convenient in a way that I can add nodes on demand and users can create with a graphical wizard things like Minecraft, teamspeak servers etc which are defined in json config which internally are just parsed into a dockerfile and some custom commands for the management api
My boss uses kubernetes, I want to learn it but at the same time I'm a bit scared of it
There are thing like kind, minikube or microk8s around which I think are fantastic to get started with it
Is it possible to git track a file in two branches with some difference between them?
if theyre in different branches its ok to have different versions of the file
but if youre talking about constantly rolling in one version, i suppose you can do that too
such wasted talent on node.js
to be fair though, node js is not that difficult
there's probably other darker magic
i hate it.
you know, in the first year of uni 9 years ago we had pascal, and in the later stages we were learning about pointers
and i could never understand completely how pointers work
so this fucking table
i need to color the lines
i couldn't find any way to do that
you know what i had to do? i had to add another 5th column with width 0
well i also couldnt understand what mvc was
i have never liked asp.net, im not sure ive even used it
ah mvc ... yea thats ... hmm. thats not a c# specific thing
its just a model to separate web development (or UI development) into different components instead of integrating it all together
i will use asp.net core, but i dont love it.
so how do people make ui in c#
like webui? or like native programs?
now that you ask that, i guess webui is still html
and if its still html and the only front end language is still javascript, how do we people work on c#
because dotnet will compile the web program into an actual executable program, not just scripts that are run as they are read
for performance
but asp.net is nuts because they made a WYSIWYG designer, and then youd add code into each component for how its supposed to work
if you were familiar with old VB development it was like that
so you coded in c#, not html, and then the c# code spit out html/javascript to do the things you wanted
so its an abstraction layer that can be frustrating, it personally drives me nuts
when you want something custom you build you own class derived from something else and customize how the html is output
i absolutely hate it
back in the day i used to be a fan of the "builder" programs
because i started in delphi
asp.net core is much better, and they have a replacement language that would like ... kind of replace html called razor
but when i do it, i like to just output my own raw html, i cant stand designing "components"
but frankly nothing competes with dotnet for web performance except writing your own C cgi
yea its complicated. they rebuilt dotnet new, BSD license based on everything they learned, they simplified the internal components, they made it cross platform (instead of relying on mono), and then they seriously improved performance
and they open sourced the compiler too, which is called roslyn
and they open sourced the entire framework too, so all the backing libraries
up until now, the frameworks diverged, so if you had an old .net 2.0 program you couldnt just compile it with dotnet
but with .net 5.0 they have converged the libraries for legacy programs - they can now use .net 5.0 framework, and so does dotnet
microsoft, for all its faults, is very good about backwards compatibility and legacy software support
does it have the... whats it called, i forgot the word, where ui doesnt look like dog shit on both phones and fullhd
almost there
i cannot remember
responsive
microsoft, again, is the best at UI. they invented their own markup language called XAML which is much better than CSS
yea... responsive. thanks
they are moving away from doing web development in html/css/javascript and instead opting to compile the programs into web assembly which is supported by all the major browsers
which lets you use XAML and pure c# development for web design
its about a 1.5MB framework included with the page
they used mono for it...
whats mono
i think that would be comparable to uhh electron
okay
mono is an open source project to run .net programs on linux and other platforms - they also expanded to add their own mono libraries that did stuff like ... support SIMD instructions, etc
its what unity runs on
microsoft bought them. and hired miguel, their lead developer i think
it was basically the linux framework for .net but performance was poor and it was buggy
dotnet (the new one) easily eclipses the old .net framework and mono
when people talk to each other in voice how do they differentiate between .net and dotnet
one of the biggest problems is the garbage collector for .net was proprietary code so the linux versions in mono were very bad. garbage collection is hard and the dotnet GC is one of the absolute best
they dont. like i said, microsoft is horrible at branding. .net was a terrible naming convention
when they invented it they wanted to do software as a service, so like you just include a library that communicates over SOAP protocol (defunct protocol in competition with AJAX)
and it never took off, but they were stuck with the .net label on shit. just terrible naming. terrible.
i vaguely remember when ajax is
sometimes people refer to the new version as "dotnet core" and the library as "dotnet standard"
i see
ajax is a javascript call to the server to return XML data (most people use JSON now)
you probably use it constantly
the logi calculator thing used it i think
i dont
i would think websockets would be the new ideal way to do that stuff
correct
most of the stuff i did runs on websockets
then the updated data is put into redux
then redux sees what components on the page have updated props, and rerenders them
do you remember the web before AJAX? any page changes had to be a submit button or refresh
i havent seriously worked with web before 2018
it was bad.
i can imagine
basically if you use any government sites in the US they are still like no AJAX
i think they intend to be as compatible with old machines as possible, theyre terrible
well im thinking, if its government then there is no commercial incentive to upgrade
and "if it works dont touch it"
30 years later
the people that make them must be super humans
do you have a link to such website?
when you program that way you make less bugs too
well this thing has webpack
but users freak out when they hit back on accident and have to start over on some complicated document
they webpacked their css
it honestly looks alright
yep and it even looks alright on a computer from 1998 lol
but when you use it, like to pay your bills or register sometging, its clunky. full page refresh for every submission
back button will explode it
i see
Is there an .ini file for all the Foxhole graphical settings? Not just the basic ones that get changed via the ingame options, but a full list of changeable variables for UE4?
Yes but you can't change it
People were using it previously to get an advantage in visibility so it's been... Overwritten
l'affaire est dans le cul de l'âne, je répète, l'affaire est dans le cul de l'âne, envoyez les jolies demoiselles!
I wrote a QOL python script for gathering salvage. It detects when a resource node has depleted (screen capture), and moves forward (keyboard/mouse control) until it finds another. It is basically an auto-click with a small enhance, it's not possible to AFK for more than 2 minutes at a time. This currently does not modify or alter anything that is Foxhole owned and as such currently does not break any rules. However, I would like to get the devs acknowledgement if this is favored or if I should simply cease doing it (they can pretty much set the rules to what they want and I will follow them accordingly as its their game).
If it's favored I plan to release it opensource for anyone to use as well, not keeping it to myself or hoarding it for my faction, all players welcome to use it. But only if the devs are ok with it.
@jagged talon i doubt they will support it... i once started on a builder bot with CV (computer vision) idea was you would have 2 accounts and computers running the game, and this bot would follow you around and just build any blueprints put down....
@long raft how old are you ?
@barren quarry how the hell do you even make website and not know all this stuff ?, i had know idea there were such obscure gold plated ways to make them.
not know what exactly
dont take this wrong way, it just usprises me you could even do it:
ajax, mvc, responsive,
one branch is like say shard1 the other shard2, so dev is done on one and then pulled to the other, but both have seperate config files, in past i just untracked the files, but is there another way ?
i havent been in the industry for very long and what i know is enough for me to get by
cool
i do realize that redux is essentially mvc
but before that it was a bit hard for me to understand the concept
i just had to learn it as one of the first things i did like 10+ years ago as all php based cms came that way
thinking about it, i mostly learned about web by practice, so i subconsciously understand how stuff works but if you asked me to explain what some abstract term like singleton means i probably wouldn't be able to explain, even though i have it implemented in one of my services
i have the same relationship with geographics, people tell me the street names and i have no idea what location they mean but if i were to be there i would instantly understand where i am
what war number are we up to on shard 2 ?
18
not that
that is wrong
if i remember correctly the first war was 16
colonials won, then wardens won, and now its the third one
so offset 15
37
close to me 🙂 figured you couldnt be too young with all the stuff you go on about
Too young? Is that possible?
nt
i wonder if a extension exist that allow you to see the % of the research ?
explain?
when you are on a engeniring center you can't not really tell what is the exact % that a tech is at , i mean a you can aproximatively guess the % but i think having the number would be nice
put that in #game-feedback-archive
okay sorry for the disturbance
I know how I would do it
In about 3 hours or less
You probably could do it too, there's nothing difficult here
you know @pure sierra im not sure how to do what you want with the branches. i would think you would have 3 branches, a master branch with your important changes, and then 2 separate branches with each unique configuration, and you always merge from master -> branch2/branch3
i think its something that comes up often so if you come up with a better way id like to hear it because its something i would likely use
evidently you can use git attributes to specify certain files that dont merge
ah ok, maybe that will help, ill check it
are team kills tracked in foxholestats? like I see 2 warden deaths this hour in a backline warden logi hub. Did collies cause those kills? Or did they die from their own mistakes like drowning? or teamkills? Or some other bug?
Any death is tracked
ah. ok. Seems like nobody does any backline partisan on shard 2
I think an app that generates war stories (user written) would be cool. It would integrate with steam and can pull up the posters snapshots for foxhole. Then allows them to write text blocks under and it posts it to blog basically, with proper meta data like shard, war, faction, player and tags (partisan, logi, infantry, etc). Then it has discord outbound integration to post notifications.
I'll probably work on one that makes this as a utility that outputs markdown and does maybe disord posts, not a full end website as i don't want to be involved with user-moderation (lol who does amirite).
Any such bots / automations are not allowed within Foxhole
Ok I won't release the code or use it anymore. Thanks for the confirmation.
@long raft so having master dev branch, that is then pulled from to 2 variant branches would likely be the most 'professional' way to do it, i imagine you would need the no merge set on those config files to stop them conflicting
well the master branch wouldnt have the config files, so nothing to conflict
all the changes come from the master, never the other direction. at least thats how id do it
well it would
have it
another approach would be to seperate only the different elements of the config file into another config2 include that is ignored/not tracked
config files should be ignored
at least the ones with environment variables
either you deploy it from your machine, in which case you have two untracked config files
or you are deploying it via some shit like gitlab ci in which case you have two deployment stages with their respective config files
could be wrong, just saying what i know
shits trippin
is this a place to talk about excel?
This makes me oddly sick
I would totaly dig excel function talk
Hyundai excel or sonata?
@long isle
adding to what you said, config file in that case can be in CI variables and thus not be part of the repository files handled by git. These variables can only visible by project owner / maintainers (on gitlab ci at least).
Then you can load these config files when doing deployment jobs.
The "most professional" imo is to use file variables in CI tools, but env vars are fine if you make sure they cannot simply be printed in the CI shell on random branches
Using Windows Auto Hotkey (https://www.autohotkey.com/) I have made an auto-clicker that can be customized. It also alleviates using shady auto-clickers which could have adware or viruses.
Basically, install Windows Auto Hotkey, then click on the .ahk file. You can edit the .ahk script to change keybindings. Currently,
- ctrl + shift + alt + left click = repeat click
- shift + alt + left click = hold click
- Shift + right click = cancel and return to normal
Free keyboard macro program. Supports hotkeys for keyboard, mouse, and joystick. Can expand abbreviations as you type them (AutoText).
awaiting warapi update... fingers crossed
there seems like many map changes coming in this one
you mean the maps in the repo or new endpoints?
cause getting new maps is not an issue
maps
weather endpoints would be dope though
@zealous sonnet dont forget github update
Good on you for remembering
no ur not
map looks weird for a few regions
look at the color change on those southern 3
its that me? or is that the originals?
You I think, I don't see it in the new world map that Anclet posted during devbranch
no its not me
just compared to a previous one, the color has changed
@zealous sonnet
im done
do you also have the 3 weird region colors, hayden?
that's unusual, ill bring it up internally guys, nice find
twitch stream is up
its more than just southern regions
fishermans and oarbreaker too
also tempest
All the maps that have changes
Gonna wait it out
@long raft It's due to new grass that's being used - the other maps will be updated over time.
warden
@lunar cobalt if you know these roads? I'd love to know what road type they are, the 2 I don't have marked
servers being burnt to the ground, and derp just keeps mapping his roads ❤️
Pretty sure it's stone so whatever tier that is
ok
god i hope youre right i would hate to get it wrong
ive been extremely careful up until now
One below stone
yea
Stone, gravel and dirt?
wardens it looks like gravel, not stone
and theres dirt, and then mud i guess
so tier 2, ok
wait it must be tier 3 cause like ... the road has moved
god i hate how hard to read maps are, skaj's rendering choices were so superior
Top one is stone
The one with the blue arrow on it
South road is also stone
So T3 for both
ok thank you
How do you guys find the routes? Do you draw it on a map manually?
@long raft does
@long raft actually i was wondering about this , do you still use the same program i recommended in my guide for mapping ?
Qgis?
yeah i think thats what it was'
Yeah I do, I may have even recommended it to you when you started
no, i already knew of it and had it
Oh OK me too
My next docker project is going to be the entire development environment in a container I think for logiwaze
i need a logiwaze favicon, i wish i could art
is there an indicator in the warapi that says which towns are victory conditions?
the favicon for the browser
you know the one that goes in the tab and the favorites when you add it?
@long raft



kraft tables?
