#code-talk
2 messages · Page 21 of 1
yea i do. other stuff isnt wasted tho, you can always carry some lessons forward
Hi guys in Foxhole api /worldconquest/maps/:mapname/static mapItems variable always empty array do you know the reason ?
yes
there are two types of endpoints
dynamic and static
static endpoints contain text labels
they never have any icon data
dynamic endpoints contain the icons for resources and structures
I made some decent bash scripts once for a project I have, was interesting to go back to that kind of level. But I ended up just rewriting them in python which is much more powerful and simplified in terms of the code needed to do something. Python can do most things bash can do easier.
for sure, and you can just slap #!/bin/python as the shebang
kind of waiting for that with c#, kinda there but not totally
soon im sure
clang and gcc actually produce better compile outputs than the msvc compiler.
https://gcc.godbolt.org/z/6v6j1e6f7
what makes it better?
What makes them better than msvc?
did i mention msvc or something?
Better implementations probably.
i mean this 3 line program compiles to smaller assembly, i am not convinced thats 'better'
you know without knowing what hte extra instructions are doing
i dont think vc is a celebrated compiler, either
I mean that is just an example. You can look at larger ones but generally msvc is worse than the compilers generally used for linux.
I have seen some better unrolling in certain situations though.
Yeah, llvm is pretty popular. It has some great tools.
Is it better to learn coding individually/with someone that knows how to code or go to uni/college where a lecture teaches a whole class?
both are good
classes offer more, but you do whatever works for you
god knows there are tons of free courses for programming online
Yeah im still deciding if I want to do coding in uni/college or try and learn it myself xd
But thanks :D
one of those options is much cheaper, can still do both
helpful to have the uni paperwork for job hunting
Trying to learn individually includes taking private lessons from coders online xd
You should do what you find better for yourself. Learning depends on the person. Some people digest content easier from reading about a subject than being taught. Other people learn better from having topics broken down in video format. It really depends on you.
If you feel like uni or college would be the best path for you then I would start off checking out a preliminary programming language to see if its something you want to so. Javascript or Python are good options as they are flexible and easy to get started with. Then if you enjoy it you can decide to go to a college or uni for education. Most courses will teach you the concepts behind the programming languages so you can transfer your skillset to other languages.
learning individually requires a lot of patience and motivation
if you scroll through this channel you will notice that everyone's projects except foxholestats and logiwaze die after 3 weeks - and those survive only because hayden/derp are experienced professionals older than 35
its tough to go on when coding is no longer fun and turns into tedious debugging
uni/college lectures are good if you don't know yet what you want
so they just force you to learn general stuff
what are algorithms, what are unit tests, rules of design etc
and because chad is my muse
Thanks for the advices
@rare burrowdo your homework assignments (if its actually making something).I didnt learn code through watching someone else. I learned by doing it. lectures in that area where good for information while actually programming
currently doing a group project where I am the only one able to code AVR C. precisely because I did my assignments and have the knowledge and experience to make it work in a timely manner.
Am I correct in the assumption that the Foxhole API is very limited in the amount of data it provides? Especially in terms of Logi stuff, like amount of scrap/components/etc scrapped per hour and the like. I guess thats because it is big intel if it would be public, but as a retrospection on finished wars it would be interesting to see how much was where scrapped/built. Or am i missing some features of the API?
Been trying to read into the documentation as much as i could.
Foxhole api provides text labels, icon locations and status, and current casualties
since scrapfields are on the map as icons: is their current scrap value their status? (have not been able to get my endpoint with the API running, figured it might be faster to ask)
No
Icon model contains icontype, faction, coordinates and flags
Flags such as: victory point, blueprint, nuked
@zealous sonnet mr api man are there any map changes this update?
hey, there will be some minor changes once the artists have updated the textures (which should be in the near future)
thank you api man
@pure sierra @long raft
what is this ?
maps
to update?
but no github update yet ?
this isnt from github
where from ?
mystery land
reee
i am curious if any roads changed, but that docker container i made only takes the images from a github. maybe i can make one temporarily and override it
or just wait for official git update
Hey guys, genuine question here and I’m not sure if it’s code related or not but the steam server socket update. Could someone here clarify for a smooth brain what that’s for in general?
maybe this @atomic vine https://partner.steamgames.com/doc/features/multiplayer/networking
😉
Yes blade has the keys to mystery land which I have been using for years
Thanks brother
@edgy flint hi
been a few days, i dont think api update is coming
@zealous sonnet ??
im gonna use kastow's drop
nooo, its a backdoor
goblin will have put fake roads on warden maps to disrupt our logi brothers
i do miss that first satellite map it was so good
let this be the place on fod outside of tribalism
<@&374193809174822912>
nooo, let him stay 
the foxhole kgb erased him from existence
he was just a poor cs trader, i thought this was a safe space...
i didnt see any road changes in the maps kastow provided, maybe we arent getting an update to the warapi because theres nothing of significance
@spiral zinc thanks for complements
yeah but they dont seem to have updated the ingame map either
sup foxhole
hm
hm
this response is so clapfoot
learn from the best
@long raft
is your software or another suitable to tile a high res map image for leaflet ?
im not sure. it couldnt go above a certain size before but i did switch out the graphics library
maybe it can now, i havent tested huge ones, send it over
this is not foxhole related, the map is just 8500x6200 px
you can try it
download https://github.com/NoUDerp/Tiler/raw/master/binaries/Tiler-Windows-x64.exe and drop your image on it
like drag drop, if you specify a file as the first argument it will tile that image and make a folder named after it
ooh windows
zaurus ? 😉
the power of dotnet
uh no nothing that exotic
4 different linux builds, even a musl build (for alpine)
thats the one i use in my docker container
its the reason i replaced the image library in it
hmm
i guess it doesnt work with tiff, can you convert it to png?
im actually surprised tiff wont work 
would that be the best lossless format ?
hmm yea its lossless but if that tiff image is more than 32 bit color there would be loss from that
yah 8 bit color yea thatll be lossless
yep it worxed
does it just generate a set number of zoom levels regardless of image res, or does it somehow detect what is optimum ? @long raft
optimum, unless you specify, there are command line arguments you might prefer
nah it fine, just wondering if fixed or not
Tiler.exe -input <image file> [-size <tile pixel size>] [-zoom <max zoom level>] [-output <output directory no slash>]
by default it determines the best size (and centers the image)
i got some black tiles that there was not in the original, is that just because the image is not square ?
here is literally all the code: https://github.com/NoUDerp/Tiler/blob/master/Program.cs
they are likely not black they are black with transparency
its just whatever default color because the alpha = 1.0
and yes thats because its centering it (because the tiles are square, so the image must be also)
yeah its just transparent with windows thumb black
or white, depending if the image has any content or not
79 lines of code damn that is dense and unreadable
oh my god i even made it multithreaded
Well, at least your code is not 300 rows of this, xd.
well, kind of-ish. They are somewhat repeated but they all handle close-ish/different-ish values. It's a custom inspector UI for a Unity project with an enum handling different cases of similar but different UI. Unity custom UI stuff is kind of bulky and unwieldy in general from my experience and I do not have a ton of experience with it so, yeah...
They are somewhat repeated but they all handle close-ish/different-ish values.
What I said, repeated blocks. There are many ways you can optimize this into a single block with a list of all different parameters. But also, Unity is inefficient on its own, so who cares 😉
Well, yeah, I got some stuff in my head to optimise it but it works fine atm. Probably going to come back to it at some point, xd.
And thats the tricky bit of programming XD
Coming back to old code is never an option lol
Well, by coming back to it at some point I mean completely rewriting all of it, xd.
Exactly
if you come back to rewrite the old code you're asking for trouble
because you potentially have to debug every feature connected to that code
Well, it only connects to a single short script that "collects" the values so I will only have to change how it collects those values.
The code I posted above is long, not very complicated, xd.
any drupal coders here ?
reveal yourself to me 
quad-drupal mebbe?
uptovote pleaze
DRUPAL you are giving MAGENTO a run for its money in terms of most abstracted cms 
magento lol
remember that one xoops?
Hey hey
I was hoping to look at some of the data from foxholestats.com
Is it available somewhere @pure sierra ?
@subtle gustsure just let me know what yo want specifically
I don't know if you have this already, but maybe specific lines to show a frontline? i don't know if that's programmable, or if it makes sense.
I'm aware you can see regions taken, but i mean a line of sorts?
logiwaze.com does this, sort of
@neat fossil we dont really get precise enough details to show where a front line is from the api
Csy kycw wtieo gshi?
uted tyim e nout em phigo
wait a minute
when the channel says code talk
does it mean computer coding or like secret codes
difference?
computer coding
Literally, read the channel description
Ah yes but you see
I’m an idiot
And hence, I retain the right to mock you 😉
ceuwswlsui
U ok?
8239080240
Confuse but I assume this is a button mash since the keys are clearly located on the direct left and right side

where do I submit my petition to eradicate rxjs?
..-. .. .-. ... - ....... - .. -- . ....... .--. .-.. .- -.-- .. -. --. ....... -- .- -. .- --. .. -. --. ....... - --- ....... -.-. .-.. .. .--. ....... .. -. - --- ....... .- ....... -- --- ..- -. - .- .. -. .-.-.- ....... .--. ... ---... ....... -.-- --- ..- ....... -.-. .- -. ....... ... .... --- --- - ....... - .... .-. --- ..- --. .... ....... -- --- ..- -. - .- .. -. ... --..-- ....... .. -. ... .. -.. . ....... --- ..- - .-- .- .-. -.. ... .-.-.-
Read the channel description
bonk
Ok
Oh
Oh and from here on I'm saying all my curse words in Morse for me not getting banned reasons
Perfect idea💡

Ya'll remember when I posted my homework issues in here? I do
and now I made this
Project AGV made for my mechatronics study. this is only the engine part.
Easy to use and attach sensor and electronics ontop.
All files free to use. Head over to:
https://github.com/Remlly/AGV
Do send me videos or pictures of your project
Music: ride of the valkyries
CAD program: solidworks student edition.
I make no money of this and cl...
hello Mr White Falcon
Are you friends with Mr. Blue Sky?
If its a user, No i didn't.
If its a song
Hell yeah! big focken yes
//youtu.be/_CZWKr8_8C4
ajkajkaja I was just about to click on it
Excuse me me this is code talk
I'm not sure I should post videos ere
its fine dont worry about these vb trolls, any tech talk is ok
Nice!
I was wondering if it's possible with the WarAPI (or anything else) to get more detailed map data like what is stored in certain buildings
@dreamy swan no sorry
Very understandable though 🤷
i need someones help i am trying to 3d print a MHT for a giveaway i plan on doing but i dont know how to get the 3d model from the game into a STL file so that i can slice it and print it out i need to do this very soon so i have time to paint it can some one help me out?
The dudes in the hans and Klaus creations discord in #community-resources might be able to help you, they do that kinda stuff
@grizzled seal This page has a bunch of the 3d models, I'm not sure if the one you're looking for is there but it's worth a shot https://sketchfab.com/clapfoot/models
ive extracted and 3d printed from there before. its not easy. 3d models just arent well designed for 3d printing
@pure sierra @dreamy swan I'm wondering if it is possible to automate a logistic request billboard using building resource data. No way to look at building resources beyond a computer hovering over each building?
User interface contains the information, how would we take it off that?
You would need some sort of OCR reader to convert images into text, but I'm pretty sure at the scale you're talking about violates Foxhole terms of service
printf norwegian
printf asgardian
Print R'lyehian
Print(print)
Printf(printf("printf("printf")")
Unprint that
unprint yourselve
World chat when a side starts pushing hard
Mars could have 'life', but it could be anything, possibly beyond or recognition. So how could we ever know if there's not life for sure? Therefore, one could always assume there is some lifeform there that we simply cannot perceive. Having that in mind: what does it mean to die? To cease life? Well, we wouldn't be able to recognise that either. Perhaps, there is a death, deeper and more intense, than we know of, beyond what we can observe. With that in mind, how could we be sure over 120 billion (or 120 milliard for normal people) died on our planet? How selfish can we be to only account for human life, to neglect any other lifeform that brought us here where we are. We are not alone, but we will be alone.
thats deep man
Here's an even deeper question: how do you know there is no javascript on Mars?
thats because java is in asia and not on mars
Considering the amount of robots, there might be java on Mars in fact
Javascript is not java
Seems like it's all in C
its kinda easy to tell why we are selfish. we live if medicine is progressing like now about 110 years. thats nothing. its a blink of an eye compared to the age of stars. and even famous people, i dunno for example hitler (ok hes more like infamous) are well known 70 years after their death. if you go back any further caesar is famous for more than 2k years. but all of this is still nothing in a universe thats so much older and where the sun is 8 billion times bigger than you or me. and all of mankind, all of humanity will be forgot one time. so there is no need to do good things right now. thats why i love wasting my time with hedonistic stuff. games, my gf, food and so on. so yes. my own life is the most valuable thing in my opinion and no other life form or even human has the same value as i for myself
javascript was used to code java into the indian sea some time ago
Ofcourse we are selfish. It does not matter how social you are, life (in its entirety) is inherently selfish to ensure survival. What it defines as the self can vary between types of organisms, but selfish nonetheless
now im feeling bad for my english skills
However, to not acknowledge the struggle of others is selfish in a mental sense, rather than evo-biology
Hahahah, no worries. I spend 3 months on a project on life on the moon Europa that resulted into a paper that said 'we dont know shit'
haha
I know a bit of the words to sprinkle around to sound InTuLeCtUaL
i only know strange words from strange books and use them from time to time to show people my genius
like miasm
but thats pretty hard to build into a common conversation
but at least my german is good
The mastery of many languages should be praised above the expertise of just one
Your English is good
at the moment im learning some spanish and also some japanese
thanks yours is way better
also i wanna learn some other stuff like reading and writing binary and hex and so on
Its fun to learn, although not very usefull even if you do programming
yeah i wanna get it just for having achieved something not many people do so its kinda special
like being godlike in rythm games lol
@languid harness btw if you like this deeper stuff i got a quote i like because of the picuture it paints:
Imagine being in your deathbed – and standing around your bed is the ghost of the dreams, the ideas, the abilities, the talent – given to you by life but for whatever reason never pursued those dreams. You never acted on those ideas. You never used those gifts. You never used those talents, and there they are, staring at you, as you are lying on your bed. With large angry eyes, they say ” We came to YOU, and only YOU could have given us life. And now, we must die with you… forever…”
And the question is… If you die today, what dreams, what talents, what abilities, what gifts, what ideas would die with you.
what do you think of that
also i like the famous quote by sagan if you know it
C master race
@barren quarry im going to go out on a limb here, possibly being wrong, in saying that you havent confronted the problem i had to deal with yesterday, as you have hid/obscured it by incorrectly using rectangular bounds in your leaflet definition on a square map tile set
🤔
@long raft
bruh
huh?
so he's using rectangular bounds definition, which means that his pixel based coord mapping still lines up without padding correction for the square tileset, as evident by his site requesting tiles that arent there
yes
no, leaflet is just trying to query tiles outside of the map
its not a rectangular/square issue
you seriously are giving me shit for a piece of crap i did more than 2 years ago
no...
im not giving u shit, its called continous development
zoom out
or pan to sides
nope
its 404 errors
https://live-1.foxehole-hq.com this one has no errors
i dont see what it has to do with rectangles tho
same errors on that one kastow
none of the websites give me errors
same map
it redirects to https://foxholeglobal.com/map/
The Foxhole Interactive Map is a community project that displays a live map of the game Foxhole.
just has steam landing
oh shit now i see it
the reason it requests tiles that arent there is that the bounds are wrong
why do you guys still use png
dont distract us derp
you pinged me!
but if yyou make ur bounds square to match the map tiles it will throw off ur pixel coord alignment
its an easy fix to just set the bounds for leaflet so it doesnt try to query them
whats this about ... square bounds, whats the point of that
yes but it will throw otherthings out
that makes no difference. the tiles are square, the map is square
but theyre always the same
no, theyy are set by bounds
kastows bounds are the same as mine and yours whenever using tiles
it will change if you move the center, but otherwise ...
leaflet is not center based
leaflet just imports images as pixel dimensions, no way around it
and the default tile size is 256
and tiles are always square, so level 0 will be guaranteed to be 256x256
no, bounds is your max outside size
only 256x256 if bounds is 0-256
u can set bounds to what ever
but the tiles are always square, so a rectangular bounds offers no benefit over a square bounds
look
in all these years this never has been an issue for thousands of people
just relax
probably not an issue, although 404 links can make page loading slower
like i said im likely wrong, but i wanted to talk about it
dude, u stop the 404 errors and we will see
it will throw everything else out
thousands of people huh?
i have no idea how many people visit logiwaze
i imagine its higher with the link from foxholestats
u dont have the errrors though derp it seems
well no, i rebuilt the entire tile layer from scratch
i also dont have seams between tiles 
so derp good
he uses square bounds to match his padded tile set
where is your code that sets out the centers of each region @long raft ?
i suspect u dont have the issue derp as our likely only operate in 0-256 coord system
need unminimised version of foxholerouter.js
uhh i think its just 0, 0 for my center
i cant remember. sorry i guess i can check github
cant find it, i might have left as default
also i re-implemented the tile layer, so i dont need to set bounds at all
im looking at ur github
the tile bounds checking is done totally differently
where is ur region definiton,the centers
i think its line 525 of https://github.com/NoUDerp/LogiWaze/blob/master/src/IVectorControlGrid.js where i avoid 404 errors
i have no idea where i define the center, its probably default
so where do you translate an api cord to your map cord
hmmm
i cant believe how much work u put into this
i cannot remember
yes i put a shit ton of work into getting copy/paste and download image to work
but there were nice benefits, like getting rid of the seams between tiles
i have no idea why leaflet has those seams they drive me nuts. there was like a 1 liner of code that can fix them but it has its own side effects
this is what i have commented out if you want to make use of it:
// seam fix
/*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';
}
});
}*/
something i found in a web search to fix them
but when i implemented the tile layer myself i never had seams, no idea what leaflet does to make them happen
perhaps related to the zoomSnap levels, maybe scaling issues, not sure
do you even use the standard leaflet marker creation method ?
no
rendering those directly with canvas now
theres a minor speedup i get by caching the images (at scaled sizes)
but also combining everything into 2 layers makes it easier to merge them so theyre copyable
before i did the last big changes i had like 6 or 7 different layers, would have been impossible to put that on a canvas so it could be copied
and the roads, omg, every time you panned the map it had to redraw thousands of roads
ah
so i divided them into buckets for each tile, and i render only the roads on that tile
the level 0 still takes the same time, but once you zoom in the speedup in user interface is significant
and panning is much smoother
there were some plugins that could do this work, divide geojson data, but they only worked with WGS84, which is ... not foxhole lol
thats the -180->180 projection that wraps, would never work right
btw i deleted this https://foxholestats.com/router/
so i had to build that from the ground up too
u link it still
i jusnt read it
ill create a PR
lol
ok
thats way easier
i hope i get the energy to work on logiwaze again someday i have a whole page of outstanding issues
but foxhole ecosystem is very frustrating
what do you mean by frustrating
the api?
or the people
or the game content
im frustrated the devs share so little after the initial warapi stuff years ago
and yes the game itself too
so we cant have weather data, elevation data, population data, all we get is maps (sometimes) and the map state and location names
its like they had an idea that they wanted a developer community but then they stopped caring after a year
remember when models used to get published to sketchfab and stuff? its like they dont really care about the art community either now
i think arguably something like foxholestats or sigilhq has contributed greatly to the player experience in this game
oh wow i havent looked at sketchfab recently, i take it back, cool to see it updated
or borrow imagination from others
but i am frustrated that like ... road data isnt shared with us, or elevation, or weather especially
yep. its not important. makes me wonder why they made an api at all
you know how at work there are certain tasks that have been there for years but tasks with more priority keep appearing and pushing it back
yes.
except they shouldnt be more prioritized
imagine foxhole without an external website to check the map for a month long war. just imagine it.
you wouldnt care at all whats happening in the war
its an important piece of immersion teh developers of foxhole dont have to work on because somebody else will if the API is available
yes the API costs time to maintain, but it saves a shitload of time in everything they dont have to develop
have we done too much?
you know for every minute spent improving the API and adding features yields so much more benefit than the time put in
maybe some of this will be revisited after 1.0
lol.
thats cool to see the new models up tho...
maybe ill 3d print a silverhand and then see if it will blend
@long raft i remember the issue with sketchfab was that at some point, they where recognized as a company and had to pay signficantly more to publish on it
well they want to post their models for use in art i assume but make them unavailable to download
because sketchfab is not the only way to post 3d models
Many many dreams died long ago, so I just what I can
I think it's that they can only post a few a month (3 I think?) without paying ridiculous amounts
just self host ffs 
restarted my pc for the first time in 32 days
wow i didnt know it could be so fast
Sup y'all. Loving the game so far
Do we have any community theories, or perhaps any dev insight, into how the fuck y'all did the netcode on this game?
I'm a gameplay programmer at another studio. I have worked on games that demand far, far fewer networked entities and physics than this game seems to have
And I am genuinely in awe lol
My guess is either:
- actually some P2P elements, sharing the computation locally among clients in different areas?
or
- "stitched together" dedicated servers each responsible for computing their own region(s), with some clearly very fancy seamless stitching tech to make you not see those divides between servers
@zealous sonnet
i would recommend talking to stephan or phil about this
so if by region you mean, deadlands or oarbreaker, yes they are different servers quite seperate from each other, limited to about 150 players
yeah, we have dedicated servers for each region (and other server types as well)
@zealous sonnet and you "transition" players between regions as they drive from one to the other seamlessly?
hmm I wouldn't call it seamless, as there's technically a loading screen
but "server travel" (as we call it) is an extremely complex flow
no you just load between them, about 10 sec
it leads to border camping and other bollocks
Like the hexes on the overmap are each a dedi?
Interesting
and you cant build withn about 50m of the border region
and anything within about 100m decays quicker
it means the border is a partisan highway for people to run as far into enemyy territory as they want without defenses and camp your logistics lines which cant be defended as no build zone. it suuuucks
btw if it helps Foxhole is written in C++ (UE4)
Awesome
Is shooting hitscan or physics?
Or does it differ depending on the weapon (tank shell VS pistol bullet)
hitscan last i heard
with some latency compensation
oh idk about the shells but there is defo some physics involved
generally hit scan, but some aren't (like RPGs/grenades/etc)
Trying to figure out Bannerlord modding, but so far I can't find what I need >:(
i wanna do some side projects , is there any script / online api or some thing like that needed for foxhole? any ideas?
like seriously
every single modding guide for Bannerlord is inadequate at best
and no one is answering my questions either
it's really quite annoying
lmao, I found an RTS written in .xml so I’ve just been trying to add weird units. No one answers my questions either.
what RTS?
@wild wedge depends what u like
I can see many people have gone for the using endpoints for data projects. I'd add my voice to the 'It would be great to get historical data' for player movement on the map. Totally understand the reasoning behind not doing that for the live wars.
It would be tons of data
How many concurrent players does the game get on average?
It's been varying so much lately its hard to say what's the average
500-2800
Average for the last 30 days has been 1600 per Steamcharts
But highly variable based on the time of day
Just spitballing here... Say you took each players position once every 30 seconds, that's an average of 3200 datapoints per minute. 13 million datapoints per day. That would be significantly more detail than really necesary but it's certainly big data territory.
I'll take "How to set the dev's servers on fire" for 300 please
Yup. Maybe a bit much 😂
Just seen there's a backend engineer vacancy. I'm currently looking for that sorta job but I'm only a new grad. Looks like they want someone with some experience.
I would imagine after 4 years of development the backend code for foxhole is a giant pile of spaghetti with a rocket launcher and a car duct taped to it
Ahhh. Tasty code spaghetti?
I can hit like... half of their essential requirements.
It's amazing spaghetti
Hey... If it works 😉
Just don't try to figure out how long it is
I reckon there are at least... 8 lines of code.
theres no way the networking part would be spaghetti... itd be a shock things are as stable as they are
for example, the warapi is like rock solid
Spaghetti to someone without the skills their networking coders have
It's a bit stupid but... Proof of concept that actually recording 1600 datapoints is not that intensive.
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.
Running on my medioce laptop that takes 0.01014 seconds to generate 1600 datapoints and 38.91 MiB.
Personally. I'd say for a game with this many players that's inconsiquential. I'd imagine the current servers are a lot larger.
I'm gonna shut up now since it asks not to talk about foxhole dev in pinned messages but yeah. Code is strong, can do big things.
I go insane looking at more than 10 lines of JavaScript.
Networking is magic and have set up a few networked things before, I refuse to believe otherwise.
configuring networks, yes. programming networks? nah. it's only a small piece of one OSI layer
fucking magic
Wait that’s a rule? I think it’s unnecessary imo since this channel rarely has chatter
I think he meant this
NOT a place to talk about Foxhole game development
Iron Harvest, it’s like CoH2 but bullets have basic physics and it eats computers for breakfast
just a casual script for foxhole, i wanna do it with python and probably some thing along lines of it begin a script and help calculating / keeping record /help with planing
some thing like this be its job. but im not sure exactly what
there was a site called foxhole global that did this sort of thing @barren quarry
Did you try Coh1 Blitzkrieg mod with Africa korps. addon? It has historical accurate flags and such. Pretty good.
No, I've heard a lot of mixed reviews on CoH
Its a matter of scale. I think the data generation is not the problem, but the storage def can be
storage is easy with compression
CoH 1 is amazing for its time
thats all there is to say
if you expect individual unit control instead of squad control. go play man of war.
that saying, I do look forward to CoH 3
I was pleasantly suprised that it wasnt a carbon copy of coh 2
it would be nice to get the github before the update rolls out tomorrow sigh
new location names, probably new roads, probably new map images
From what I saw it was a copy of coh 2 in all the ways that matter
It's so early stage, i'm pretty sure they just rewrote CoH2 and are adding elements to make it CoH3
I'd be more upset if they rewrote the whole thing
… - - - …
Vanilla CoH 1 is meh. Basically RTS world of tanks, uff.
But Blitzkrieg mod makes major changes to tanks and weapons overall, it feels more "realistic".
Try it, mod is on steam as a "game" , you need CoH1 to play it of course.
And africa korps. is a moddb addon for Blitzkrieg, it adds more vehicles and desert settings and also historically accurate flags, emblems and unit names, you know swastikas and such.
I can't stand that censorship in vanilla.
blitzkrieg is fun yeah, but overall it makes the game more hectic
fucking german 80mm mortar
rip riflemen squad :_:
omg I loved that
hell yeah
Blitzkrieg 2!
only when RUSE 2 arrives will my life be complete
😔
enemy tanks rolling into my AT guns in the forest, hehe boi
paratroopers go brrrrr
thats the only RTS that i was semi good at in multiplayer
and nuclear long toms
those things were epic but now that i think about it were only in the story missions
but ye only wish is that RUSE 2 becomes a thing, preferably on PC instead of xbox lol
fucking hell
the nuclear game mode
no non ono ono tanks GET OUT OF THE WAY!!!!
nuclear shell lands and wipes out my entire army
No there is a nuclear game mode you can play
oh they apparently did have it on steam but got rid of it in 2016 because they ran out of a license or somethin
oh ye i remember that
Yes because I think there was a problem with the HUMVEE license
hmm its the same people who made steel division, that game anygood?
I have steel division 2 but only 2 hours in it... 😅
it might serve as a coping mechanism if its as similar to RUSE
It's got the same feel to it but it's not the same thing
ah
0/10, doesnt have the entire battle happening on a war table, literally unplayable
oh ye the people doin their things in the background as you spam russian infantry because the train timer was like half a second
and that was only for the russians none of the other nations had their infantry spawn that fast lol
now i want to hop on my Xbox 360 and play it again 
half a second? I don't remember that LMAO
maybe it was a second i cant remember
all i know is you could overwhelm everything in the game like 5 minutes into a multiplayer match by just spamming russian inf
ye i always was turtle too
the germans had flamethrower and flak88 combo bunkers that were awesome
and a couple nations had artillery bunkers
ye defense from everything there is besides enemy artillery
the japanese was a DLC nation and had OP proto tanks that had flamethrowers along with massive guns
yeah im 100% playing it after this
Blitzkrieg 1 best Blitzkrieg
https://www.youtube.com/watch?v=dPErnqpjMqI
Introdução animada do jogo Blitzkrieg I, um jogo sensacional.
Animate introduction of the game Blitzkrieg I, a sensational game.
yes
ah yes, when the cutsense were even low poly 🤩
god, now I wish I had my disk reader here to play it again
Memories
So many memories
placing them cruiser tanks to have them blown up in 20 secs
until you got them matildas
Drive up KV2, shoot at pillboxes, retreat KV2 to reload, repeat
Used to play multiplayer through gamespy until that finally died
"New resource: Wreckage can now be found and returned to a refinery for sorting." 
"Diesel and Petrol item weight now accounts for how much fuel is left in the can." finally....
I never got to play online 😭
Tho iirc there was some off-brand online service, but I never got it to work
yes GameRanger I think it was
ah yes
@zealous sonnet shard2 endpoint war number seems to have gone backwards ?? now 20 was in thirties, this has thrown out my tracking of the war
and overwriting some records
oh shit
that's odd, I wonder if that's due to the new db set up
20 doesn't seem out of the ordinary though. especially if it was 18 when it was last used: https://github.com/clapfoot/warapi/issues/85
i have up to 48
it has looped around
i think the first public shard 2 war was about 18
some custom code i wrote for shard 2 at the start
they all have the same times though which is weird
something bad must have happened and overwrote them all
my code never expected repeat wars
@zealous sonnet but it would seem even though there may have only been 3 used shard 2 wars, the api war number seems to have been incrementing with each shard 1 war...
Does the warapi allow you to get the amount of resource nodes left at a field? As far as I can tell no.
nope
one map updated
which one?
hmm thought i saw a new road there, but also the new placement of the shipyard
or whatever thats called
@long raft hi
hi
hey, is there someway to make the leaflet make zoom in an extra level without that tileset ?
i did try making an extra level but its like 5000 odd images
i am confused what your question is
u know how yyou can just expand an image in css beyond its acutal size
can you zoom leaflet beyond available tileset
yes
maxZoom
change the number
as i mentioned before, you need to use maxNativeZoom to match your tile zoom level
set that to 5
set maxZoom to 8 or whatever
nope
for sure it is
question, the war API is there anything that pulls seaport information, I would like to be able to export personal seaport stockpile data
darn, that would be super useful, im tracking stuff on a excel sheet, lol Id take a export to .csv at this point 😛
problem is intel leak to enemy
I dont see how that would be possible if its limited to personal storage, and those are passcode protected.
Thanks tho for the info!
well short of checking the number of requests it is super easy to make some code to brute force the combinations
i guess they could be shared with no details of their location
what does partisian mean
yugoslavian rebels lol
Shantel on Social Media
https://facebook.com/ShantelBucovinaClub/
https://www.instagram.com/shantelbucovinaclub/
Shantel DJ Set and Shantel & Bucovina Club Orkestar Booking requests to
joeckel@guilty76.de
more videos
Disko Boy http://www.youtube.com/watch?v=be7O4m9rOZE
Citizen of Planet Paprika http://www.youtube.com/watch?v=Zg7m9j4AkoM
Auth...
@long raft, with ur client side only js site, have you ever considered ability to displayy casualty rates ?
it could be just calculated from the time that the client had been running
i wasnt so much thinking of you adding that, as is for another project idea i have, client only potentially, and wondering if ud considered it
i have thought about it
Ok so question, how hard would ot be to fix the burst tracking?
I got my hands on a fuscina the other day and god it struggles
Same with the booker and cascadier
So I would like to get a functional steering wheel setup for doing logi,
so far the only thing I can think of is running a bunch of hotkey scripts with autohotkey that would take the steering wheel input at different positions, and tap A and W key faster or slower to turn smoothly, with A and W held down if you turn the wheel all the way
Any ideas?
hadnt given it much thought myself, but i had had the idea of using a wheel too 🙂
Yeah the problem is when you drive u tap the keys a lot, so just plugging in a wheel and tying it to A and W would mean jerking the wheel left and right really fast to drive smoothly
hmmm yeah, hadnt thought about that
with the new driving physics especially, it would be nice if the devs could let u assign an axis to steering. Logi could use a controller too which I think a lot of people would love. Wonder how hard that would be for them to do
its likely something that might already be available for the engine either as plugin or example script, the bigger problem is just getting them to decide to do it amongst all the other requests... like they cant even do basic translation support so 🤷♂️
update 46: the axis of war
Guys, sorry if it was said already, but i cannot find it in history
Is it possible to get information about the storage content throught api?
no
oh, okey, thank you
So how do you do fellow coders you know hdmi and enter keys am I right my thoughtful companion

I highly doubt this is possible, but can I somehow check what player has affiliated with which faction?
nope
just see them in game
You really can't if you're building an app 
you get locked to a side after a few minutes of game play for that war
I guess what I could do is implement some sort of invite system
But really, I think that would be more counterintuitive than I want it to be
Any other ideas on how I could "verify" it?
@untold sequoia just hijack a faction community
the other discords want you to show a picture of you repeating a random number and sometimes a picture of how much time youve played in the war (more than 6 minutes)
Okay, just for the thought process. I'm currently trying to build something that helps with logistics by planning out supply runs. I don't want to reveal planned supply runs to the other faction though.
So right now my only options that are "codeable" is either an invite-only system to verify a faction or just taking their word for it.
Hmm. I might have a third option but that requires enough players to use my platform 
The problem with that is, what if they change war the next time?
Do they get booted out or can the system even recognize that
That would be the easiest to solve: They need to verify again once a new war starts.
Since I can just get the public API to fetch the war ID
I can ask the game what war it is and then it replies with something like
{
"warId" : "9b33b555-e587-4915-89a5-50eb37f2949d",
"warNumber" : 33,
"winner" : "NONE",
"conquestStartTime" : 1563291629686,
"conquestEndTime" : null,
"resistanceStartTime" : null,
"requiredVictoryTowns" : 20
}
I think a group based permissions system might be your only simple option. Each person can make groups and determines which of their routes are visible in which of their groups? Then it is on the user to make sure they only share routes in secure groups?
Yeah, some sort of invite-only. That's what I thought of
That’s sorta just how clans work tho 😂
So basically I'll just let new "signups" run around to random storages and report the contents for more than 10 minutes so they can no longer switch 
I think you're just in the good old security catch-22. If it is really easy to use it is insecure, if it is really secure it will be almost impossible to use.
Exactly
I guess what I could do would be some sort of reputation system
So the longer you use it, the more info gets revealed to you
That would probably be the safest AND easiest
Possibly, but that is also open to abuse, see the current rep system in game.
Partially. I'm trying to solve the issue with sharing intel to the opposing faction by signing up as "spy"
So if I prevent "spy accounts" from gaining the most critical information then that would already solve things.
Like, for example, front line supplies
I think also unless you tie it to someone in a way they can't easily change I could easily just have 2 accounts, one for each side.
My idea was to tie your faction to your current war
So that when a new war starts you start again with rep zero
So to use it at all it has to be linked to your Steam/Foxhole account?
In some sort of way or form, yes.
That would do it
I'll just try some stuff out and keep y'all here posted :)
this just sounds like foxhole hq website, by @barren quarry
Don't break his dreams
im trying, hes better off not wasting his time
why reinvent the wheel, there are already clan based chat room system things, ie discord and theres another
Is it possible to change the in game font?
I love the font, but I'm working on a project that involves OCR and the font is giving me fits.
yes, people have modded it
that asset can be overridden, but you cannot change size and stuff
Really? Do you have a link handy? My googlefu failed me earlier.
uhh you should find the discord for the mod
maybe teto is the one who does fonts? i dunno theres been some comic sans and stuff, possible skaj's sound mod discord
There's comic sans, but also, I think running OCR may be against the TOS, so you may want to check that with @lean forum
netcode please fix
@raven hornet trying to scrape the logistical info?
so i dont think it would be against tos explicitly to use ocr for own personal uses but
That's a potential, for sure
anyone use php here regularly ?
I do in my day job
@olive hamlet So ive been using it for years and just learnt something new that took me years to notice had been coded 'wrong'
I never knew a switch's break will also effect an outter foreach loop if its in one
crazyy hey ! i looked over it for years, apparently unique to php
Note: In PHP the switch statement is considered a looping structure for the purposes of continue. continue behaves like break (when no arguments are passed) but will raise a warning as this is likely to be a mistake. If a switch is inside a loop, continue 2 will continue with the next iteration of the outer loop.
well continue, sure, but break?
Note: Note that unlike some other languages, the continue statement applies to switch and acts similar to break. If you have a switch inside a loop and wish to continue to the next iteration of the outer loop, use continue 2.
wow to me continue is how you continue looping, its the exact opposite of break
also never know continue took argument
one of my biggest complaints about programming languages is that they break 1 loop, you cant say like break 2; break 3; to break out of nested loops
i think u can in php
but thats nice if thats a php feature
with continue not break
its frustrating it doesnt exist in uhh ... more based languages, sometimes it forces you to use a damn goto statement
continue accepts an optional numeric argument which tells it how many levels of enclosing loops it should skip to the end of. The default value is 1, thus skipping to the end of the current loop.
does break allow that too?
you use contine instead of break in that case
but they ... mean different things
continue 3 would be same as break 2
interesting.
loop inception
yeah im guessing they did it for continue rather than break , so break is still allmight all powerfull get me out of everything looped but continue with argument will in effect break the current loop but continue at the specified outer loop level
sorry yim wrong
break accepts an optional numeric argument which tells it how many nested enclosing structures are to be broken out of. The default value is 1, only the immediate enclosing structure is broken out of.
break can do it too
i feel like continue 3 is only the same as break 2 if its at the very end of the outer-most loop
wow php having something i want ... shocking
also my other beef is with case sensitive languages. in the 21st century. why.
why are they case sensitive??
so you can have variable X and variable x??
thats the worst reason ever
BASIC has been case insensitive for many many decades and its great
"In PHP, variable and constant names are case sensitive, while function names are not."
yea, thats nonsensical too
even the languages i love the most are case sensitive, it makes me mad. i feel similar to file systems, but at least i understand some reason why that happens
in the case of file systems, OS developers implement them generally in the kernel and dont want to bring localization into kernel code, so thats fine
i think its just good practise to be case sensitive when generally everything else is too, and case is string related and that is case sensitive too
case sensitivity just leads to extra programming work, and for dynamic languages like php/javascript it leads to errors
BASIC does it best, the first use of a variable defines its preferred casing, the IDE will match the casing when youre typing, but it will certainly match a variable without casing
"I also remember a quotation from Rasmus in a PHP conference in Paris saying more or less: "I'm definitely not a good programmer, in terms of following strict coding rules or standards, but I can say that if you rely on case sensitivity to recognize one function name from another, you're in kind of serious trouble!" '
i think its just legacy
nah, it cannot be. some of these languages, e.g. c# are new, and they have no respect for legacy
with some of the smartest developers on earth, and they chose case sensitive, ugh
the language may be new but to make porting of code easy maybe they stuck with legacy
its unlikely you can port code without rewriting parts anyway, so that cant be why
some people say case can be used to convey information, which i agree with, but case insensitivity does not remove that
perhaps its just for the same of like ... compile time rofl
so i just ordered the parts for me next (#2) mechanical keyboard
the ... parts?
omg how would you live without a numpad?
sounds hella expensive
ive never been a huge fan of mechanical keybaords they slow me down and theyre super noisy, i dunno why i bother using them
150 us
give me a cheap chicklet keyboard
the noisier the better
th... what.
the derpier the better
i only use mechanical at home id drive people at the office nuts if i had one
dvorak lol
hayden i never knew you were a tech hipster
wtf is that keyboard layout
dvorak
that isnt a qwerty keyboard
the only other person i know who uses dvorak runs the irc network i use
it sux
u learn
but ... why
qwerty was specifically designed because it is the most ergonomic
he says its very annoying because he cant just go use a qwerty anywhere else now
scientifically proven
no the opposite
the science is not ... convincing
it was arranged that way for type writers
i type faster than any dvorak user
tr00
i can use qwerty still
i can out type da best
i gave it a try for a few months but .. meh
LOL IRC
i know, right?
irc dying hard 😦
this is next level, im not game
just a handful of people left who talk
yeah
oof that looks super cool but i cant homerow
I used IRC back in the days when I played a game called "Cybernations"
that would definitely slow me down and im not convinced by ergonomics
its still I think played todays
browser based nation building game with like alliances and politics and stuff
it was super fun
im convinced good wrist angle more valuable than repetitive motion
and foxhole building has done way more damage than any typing
lol yyyeah
gives me straight up tendonitis
my y is repeating currentlyy in my current build due to broken solder joint i havent fixed yyet
2006 ... lol that doesnt even feel very long ago to me
im using a mechanical keyboard i saw on sale for $25 and then i spilled scotch on my normal keybaord and have to use this RGB mechanical gaming keybaord
supposedly its cleanable but omg removing all those keys, omg ... so awful would rather just buy a new cheap one
there is cheap tool to remove them easy fast
u can also get silent mechanical if noise is an issue but still have mech action, feel and adjustable weight
im listening to a lot of twitch now while i work
Im also loving Drupal, ive never really got it until this time actually starting a site from scratch
That's one of those things I discovered years ago then forgot again 😄 no doubt I will forget it this time again too and I'll sit there swearing at my code for an hour until it clicks
yea when you think you know a language you find out you know most of it
Hmm.. Are you sure about that? Wanna try some javascript challenge?
Let me get on my laptop. I got some intricate javascript code that defy the normal thinking
🤔 hi everyone, not sure if anyone is interested, but i just went through and fixed up JonnyPtn's foxholewar (https://github.com/JonnyPtn/foxholewar) python api wrapper. It hadn't been updated since Feb 10th.
updated the map hex list.
changed a lot of CamelCasing to snake_casing.
updated string concatenations to f'strings'. (requires python => 3.6)
updated type hinting.
removed unused/unnecessary code.
renamed references shadowing built-in's
added a session close() method to the Client class, as well as support for live1 and live2.
updated the unittest test.py file to utilize the close method on tearDown().
separated the fetch map code out of fetch_maps() method in the Client class and threaded the fetch_map() calls within fetch_maps() for improved speed.
added a dynamic map data dictionary cache and time checking to handle warapi's 3 second timer on dynamic map data fetching.
nice, i'm using workman (https://workmanlayout.org/) myself.
right now i'm working off of keyboard filtering in linux, on a mechanical qwerty. but my friend is going to be sending me his split workman keyboard as soon as he builds his new one. so 👍 to the others curious about them, those split keyboards are nice, and you don't really have to worry about the missing keys as they support full multi-layering, and it's just a matter of getting used to it.
that is not the issue with this keyboard 
its a start
lol, whichever key you want it to be. though, i believe it's one of the bottom inner keys. they can be entirely remapped with "quantum mechanical keyboard" or qmk.
you can also change the keycaps to whatever you like, lol. (i plan to)
🤣 pretty much
It crossed that line a loooong time ago
$90 mechanical calc
https://www.switchkeys.com.au/products/tentaku-mechanical-calculator
Tentaku is a DIY Mechanical Calculator kit. One might call it a calculator for the discerning keyboard fanatic. Practise your soldering skills, and show off this incredible fully functional calculator that you can customise with whichever switches and keycaps you fancy. Includes: PCB with backplate, LCD with tinted acr
and a wtf
oh and dont forget https://www.switchkeys.com.au/collections/lubricants
so 🤔 after drunkenly cleaning up that python api wrapper (the result of which i posted the other day) i decided to go for a full rewrite. i dropped the requests and json libraries in exchange for the httpx library.
so far i've created a bunch of enumerators, incorporated yaml into the project design, and created asynchronous batch json fetcher that takes a list of urls and returns a list of json responses. i've redesigned the map data fetching, and map object building process. i still have a lot of work to do to expand the rework to cover the entire api. but so far the results are much much much faster. 👍 will post a link when i finish up the initial version.
diesel punk computer controls of your super advanced mech
I actually want that for my super long term film project I am working on
Is there a way that I could make a bot with the api that could display the current map?
in a discord server
sure
So there is ok so I got to find a starting ground because I have no clue where to start
do you want the whole world map ? its pretty big ? what is you rintended outcome ? what are you loking for ?
ok
like it would display something like this
yeah I was going to code into my python discord bot
Yes with python and minor knowledge in other lanuages
ok so i generate that colored background image in python
is that what you would do?
in what server?
1
o wow
Dang
anyyway
so you could potentially just use my generated images in your bot rather than going to the effort to code their creation,
up to you
how would I do that
I have no expirence in that with python
well thats why im suggesting maybe for now just use my images
use your images?
yes from my site
that is the control layyer
this is the bg https://foxholestats.com/images/worldmap2.png
so that updates with the state of the war or?
yyes the colored control one updates each minute if theres a change
just suffix the url with a unique number to not use cache
use that borders instead
do you have combined one
no, you have to do that
I am trying to think how I would do this
yyyou need a graphic library for python
I am lost lol got to do some research
so yyou need to use python to copy the images i supplied to your system
then use a image library to layer them on top of each other and save the result
then post it with your bot
Ohhhhhhh I am dumb lol
Thanks for the help
sure thing
war over
Yup
where is the second shard png?
no like this https://foxholestats.com/images/WorldMapControl.png but for the second shard
o ok
https://shard2.foxholestats.com/images/WorldMapControl.png
thanks for helping the slow in coding


