#code-talk

2 messages · Page 21 of 1

barren quarry
#

its horribly worded but you understand

long raft
#

yea i do. other stuff isnt wasted tho, you can always carry some lessons forward

elder egret
#

Hi guys in Foxhole api /worldconquest/maps/:mapname/static mapItems variable always empty array do you know the reason ?

barren quarry
#

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

pure sierra
#

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.

long raft
#

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

edgy sage
long raft
#

what makes it better?

edgy sage
#

What makes them better than msvc?

long raft
#

did i mention msvc or something?

edgy sage
#

Better implementations probably.

long raft
#

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

edgy sage
#

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.

long raft
#

well clang is generally liked

#

i mean llvm

edgy sage
#

Yeah, llvm is pretty popular. It has some great tools.

cinder geyser
#

Lemme get uhhhhh

#

KFC sandwich

rare burrow
#

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?

long raft
#

both are good

#

classes offer more, but you do whatever works for you

#

god knows there are tons of free courses for programming online

rare burrow
#

Yeah im still deciding if I want to do coding in uni/college or try and learn it myself xd

#

But thanks :D

long raft
#

one of those options is much cheaper, can still do both

#

helpful to have the uni paperwork for job hunting

rare burrow
#

Trying to learn individually includes taking private lessons from coders online xd

edgy sage
#

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.

barren quarry
#

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

long raft
#

and because chad is my muse

rare burrow
#

Thanks for the advices

coral sundial
#

@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.

winter sun
#

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.

barren quarry
winter sun
#

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)

barren quarry
#

Icon model contains icontype, faction, coordinates and flags

#

Flags such as: victory point, blueprint, nuked

winter sun
#

ah ok

#

thx

barren quarry
#

@zealous sonnet mr api man are there any map changes this update?

zealous sonnet
#

hey, there will be some minor changes once the artists have updated the textures (which should be in the near future)

barren quarry
#

thank you api man

barren quarry
#

@pure sierra @long raft

long raft
#

did the warapi update?

#

oh. i understand.

pure sierra
#

what is this ?

barren quarry
pure sierra
#

i see that, but why ?

#

@barren quarry

barren quarry
#

to update?

pure sierra
#

but no github update yet ?

barren quarry
#

this isnt from github

pure sierra
#

where from ?

barren quarry
#

mystery land

pure sierra
#

reee

long raft
#

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

pure sierra
#

or just wait for official git update

atomic vine
#

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?

pure sierra
summer bobcat
barren quarry
atomic vine
#

Thanks brother

long raft
#

no warapi update crying

#

stay strong, derp. stay strong.

undone haven
#

@edgy flint hi

long raft
#

been a few days, i dont think api update is coming

pure sierra
#

@zealous sonnet ??

long raft
#

im gonna use kastow's drop

pure sierra
#

nooo, its a backdoor

#

goblin will have put fake roads on warden maps to disrupt our logi brothers

long raft
#

lol

#

kastow is trying to mapquest wardens

#

"drive into the sea? well ok..."

pure sierra
#

and collie secret bases will be hidden

#

we need our own satellite launch services

long raft
#

i do miss that first satellite map it was so good

summer bobcat
#

Kastow would totally be on that 😏

barren quarry
#

let this be the place on fod outside of tribalism

pure sierra
#

api man bad wardenlol

#

@chrome finchooh wow !! will this work in foxhole ??? HBjoy

barren quarry
#

<@&374193809174822912>

pure sierra
#

nooo, let him stay wardenlol

barren quarry
#

the foxhole kgb erased him from existence

pure sierra
#

he was just a poor cs trader, i thought this was a safe space...

long raft
#

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

pure sierra
#

@spiral zinc thanks for complements

exotic steppe
#

Moors map is wrong now for area around Ogmaran seaport

#

as the port got moved

barren quarry
eternal summit
#

sup foxhole

long raft
#

hm

summer bobcat
#

hm

barren quarry
#

@long raft found the easter eggs with me and icanari

#

any other exist?

long raft
#

logiwaze lore

barren quarry
long raft
#

learn from the best

pure sierra
#

@long raft

#

is your software or another suitable to tile a high res map image for leaflet ?

long raft
#

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

pure sierra
#

this is not foxhole related, the map is just 8500x6200 px

long raft
#

you can try 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

pure sierra
#

ooh windows

long raft
#

i made a binary for every OS

#

even mac

pure sierra
#

zaurus ? 😉

long raft
#

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

pure sierra
#

its tiff

long raft
#

hmm

#

i guess it doesnt work with tiff, can you convert it to png?

#

im actually surprised tiff wont work derpthink

pure sierra
#

would that be the best lossless format ?

long raft
#

hmm yea its lossless but if that tiff image is more than 32 bit color there would be loss from that

pure sierra
long raft
#

yah 8 bit color yea thatll be lossless

pure sierra
#

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

long raft
#

optimum, unless you specify, there are command line arguments you might prefer

pure sierra
#

nah it fine, just wondering if fixed or not

long raft
#

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)

pure sierra
#

i got some black tiles that there was not in the original, is that just because the image is not square ?

long raft
#

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)

pure sierra
#

yeah its just transparent with windows thumb black

#

or white, depending if the image has any content or not

long raft
#

79 lines of code damn that is dense and unreadable

#

oh my god i even made it multithreaded

plucky sentinel
#

Well, at least your code is not 300 rows of this, xd.

languid harness
#

Do I see.... repeated blocks?

#

yuck

plucky sentinel
#

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...

languid harness
#

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 😉

plucky sentinel
languid harness
#

And thats the tricky bit of programming XD

#

Coming back to old code is never an option lol

plucky sentinel
languid harness
#

Exactly

barren quarry
#

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

plucky sentinel
#

The code I posted above is long, not very complicated, xd.

pure sierra
#

any drupal coders here ?

summer bobcat
#

drupal... coders

pure sierra
#

reveal yourself to me watchingw

paper lake
#

quad-drupal mebbe?

pure sierra
#

i made a meme

coral sundial
#

0 votes 0 comments

#

good.

#

Love you.

pure sierra
#

i just made it

#

upvote plz 🙂

coral sundial
#

uptovote pleaze

pure sierra
#

DRUPAL you are giving MAGENTO a run for its money in terms of most abstracted cms HBjoy

long raft
#

magento lol Triggered remember that one xoops?

subtle gust
#

Hey hey

#

Is it available somewhere @pure sierra ?

pure sierra
#

@subtle gustsure just let me know what yo want specifically

neat fossil
exotic steppe
pure sierra
#

@neat fossil we dont really get precise enough details to show where a front line is from the api

languid pebble
#

Csy kycw wtieo gshi?

tired sorrel
#

uted tyim e nout em phigo

glossy sail
#

wait a minute

#

when the channel says code talk

#

does it mean computer coding or like secret codes

umbral mulch
#

difference?

barren quarry
#

computer coding

languid harness
glossy sail
#

I’m an idiot

languid harness
#

And hence, I retain the right to mock you 😉

pure sierra
#

ceuwswlsui

languid harness
#

U ok?

pure sierra
#

8239080240

languid harness
#

Confuse but I assume this is a button mash since the keys are clearly located on the direct left and right side

summer bobcat
elfin anchor
#

where do I submit my petition to eradicate rxjs?

autumn bluff
#

..-. .. .-. ... - ....... - .. -- . ....... .--. .-.. .- -.-- .. -. --. ....... -- .- -. .- --. .. -. --. ....... - --- ....... -.-. .-.. .. .--. ....... .. -. - --- ....... .- ....... -- --- ..- -. - .- .. -. .-.-.- ....... .--. ... ---... ....... -.-- --- ..- ....... -.-. .- -. ....... ... .... --- --- - ....... - .... .-. --- ..- --. .... ....... -- --- ..- -. - .- .. -. ... --..-- ....... .. -. ... .. -.. . ....... --- ..- - .-- .- .-. -.. ... .-.-.-

languid harness
#

bonk

autumn bluff
#

Ok

#

Oh

#

Oh and from here on I'm saying all my curse words in Morse for me not getting banned reasons

#

Perfect idea💡

summer bobcat
slate tundra
#

Ye underestimate the power of modman Good Sir.

#

Greetings Blade

#

How are ye?

coral sundial
#

Ya'll remember when I posted my homework issues in here? I do

#

and now I made this

summer bobcat
#

Are you friends with Mr. Blue Sky?

slate tundra
summer bobcat
#

ajkajkaja I was just about to click on it

slate tundra
#

Excuse me me this is code talk

summer bobcat
#

😠

#

You've got a point

slate tundra
#

I'm not sure I should post videos ere

pure sierra
#

its fine dont worry about these vb trolls, any tech talk is ok

languid harness
dreamy swan
#

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

pure sierra
#

@dreamy swan no sorry

dreamy swan
#

Very understandable though 🤷

grizzled seal
#

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?

frozen oriole
frail star
long raft
#

ive extracted and 3d printed from there before. its not easy. 3d models just arent well designed for 3d printing

barren quarry
stark hare
#

@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?

cerulean urchin
coral sundial
#

printf norwegian

summer bobcat
#

printf asgardian

languid idol
#

Print R'lyehian

languid harness
#

Print(print)

coral sundial
#

Printf(printf("printf("printf")")

languid harness
#

Unprint that

coral sundial
#

unprint yourselve

ripe fern
#

The only thing printed was this chat

pure sierra
languid harness
#

World chat when a side starts pushing hard

glad gate
#

or Venus

#

High chance

languid harness
#

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.

coral sundial
#

thats deep man

barren quarry
stable oasis
languid harness
barren quarry
#

Javascript is not java

kind glacier
stable oasis
# languid harness Mars could have 'life', but it could be anything, possibly beyond or recognition...

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

stable oasis
languid harness
stable oasis
#

now im feeling bad for my english skills

languid harness
#

However, to not acknowledge the struggle of others is selfish in a mental sense, rather than evo-biology

languid harness
stable oasis
#

haha

languid harness
#

I know a bit of the words to sprinkle around to sound InTuLeCtUaL

stable oasis
#

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

languid harness
#

The mastery of many languages should be praised above the expertise of just one

#

Your English is good

stable oasis
stable oasis
#

also i wanna learn some other stuff like reading and writing binary and hex and so on

languid harness
#

Its fun to learn, although not very usefull even if you do programming

stable oasis
#

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

coral sundial
pure sierra
#

@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 hbeyes 🤔 Mattthink @long raft

long raft
#

huh?

pure sierra
#

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

barren quarry
#

which site

#

fg?

pure sierra
#

yes

long raft
#

no, leaflet is just trying to query tiles outside of the map

#

its not a rectangular/square issue

pure sierra
#

i know thats what i mean

#

it is

barren quarry
#

you seriously are giving me shit for a piece of crap i did more than 2 years ago

long raft
#

no...

pure sierra
#

im not giving u shit, its called continous development

barren quarry
#

i dont see errors

#

gib link where you see errors

pure sierra
#

zoom out

long raft
#

or pan to sides

barren quarry
#

nope

long raft
#

its 404 errors

barren quarry
long raft
#

i dont see what it has to do with rectangles tho

pure sierra
#

same errors on that one kastow

barren quarry
#

none of the websites give me errors

pure sierra
#

same map

#

just has steam landing

barren quarry
#

oh shit now i see it

pure sierra
#

the reason it requests tiles that arent there is that the bounds are wrong

long raft
#

why do you guys still use png

pure sierra
#

dont distract us derp

long raft
#

you pinged me!

barren quarry
#

well okay

#

there are errors

#

what now

pure sierra
#

but if yyou make ur bounds square to match the map tiles it will throw off ur pixel coord alignment

long raft
#

whats this about ... square bounds, whats the point of that

pure sierra
#

yes but it will throw otherthings out

long raft
#

that makes no difference. the tiles are square, the map is square

pure sierra
#

the bounds are used for coord system

#

its the foundation of it

long raft
#

but theyre always the same

pure sierra
#

no, theyy are set by bounds

long raft
#

kastows bounds are the same as mine and yours whenever using tiles

#

it will change if you move the center, but otherwise ...

pure sierra
#

leaflet is not center based

long raft
#

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

pure sierra
#

no, bounds is your max outside size

#

only 256x256 if bounds is 0-256

#

u can set bounds to what ever

long raft
#

but the tiles are always square, so a rectangular bounds offers no benefit over a square bounds

barren quarry
#

look

#

in all these years this never has been an issue for thousands of people

#

just relax

long raft
#

probably not an issue, although 404 links can make page loading slower

pure sierra
#

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

long raft
#

thousands of people huh?

#

i have no idea how many people visit logiwaze

#

i imagine its higher with the link from foxholestats

pure sierra
#

u dont have the errrors though derp it seems

long raft
#

well no, i rebuilt the entire tile layer from scratch

#

i also dont have seams between tiles julianlol

pure sierra
#

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

long raft
#

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

pure sierra
#

im looking at ur github

long raft
#

the tile bounds checking is done totally differently

pure sierra
#

where is ur region definiton,the centers

long raft
#

i have no idea where i define the center, its probably default

pure sierra
#

so where do you translate an api cord to your map cord

long raft
#

hmmm

pure sierra
#

i cant believe how much work u put into this

long raft
#

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

pure sierra
#

do you even use the standard leaflet marker creation method ?

long raft
#

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

pure sierra
#

ah

long raft
#

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

pure sierra
long raft
#

so i had to build that from the ground up too

pure sierra
#

u link it still

long raft
#

no i think i changed the readme file, i cant remember

#

it might still be there i dunno

pure sierra
#

i jusnt read it

long raft
#

oh ok

#

ill put it on my punch list

pure sierra
#

ill create a PR

long raft
#

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

barren quarry
#

the api?

#

or the people

#

or the game content

long raft
#

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

barren quarry
long raft
#

i think arguably something like foxholestats or sigilhq has contributed greatly to the player experience in this game

barren quarry
#

last entry 3 months ago

#

well you gotta have imagination

long raft
#

oh wow i havent looked at sketchfab recently, i take it back, cool to see it updated

barren quarry
#

or borrow imagination from others

long raft
#

but i am frustrated that like ... road data isnt shared with us, or elevation, or weather especially

barren quarry
#

its not on the roadmap

#

or maybe it is

long raft
#

yep. its not important. makes me wonder why they made an api at all

barren quarry
#

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

long raft
#

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

barren quarry
#

have we done too much?

long raft
#

you know for every minute spent improving the API and adding features yields so much more benefit than the time put in

barren quarry
#

maybe some of this will be revisited after 1.0

long raft
#

lol.

#

thats cool to see the new models up tho...

#

maybe ill 3d print a silverhand and then see if it will blend

coral sundial
#

@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

long raft
#

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

languid harness
lunar cobalt
pure sierra
#

just self host ffs HBjoy

barren quarry
#

restarted my pc for the first time in 32 days

#

wow i didnt know it could be so fast

iron barn
#

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
pure sierra
#

@zealous sonnet

barren quarry
pure sierra
#

so if by region you mean, deadlands or oarbreaker, yes they are different servers quite seperate from each other, limited to about 150 players

zealous sonnet
iron barn
#

@zealous sonnet and you "transition" players between regions as they drive from one to the other seamlessly?

zealous sonnet
#

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

iron barn
#

oh maybe the divides are not what I thought 🤣

#

yeah totally

pure sierra
#

no you just load between them, about 10 sec

#

it leads to border camping and other bollocks

iron barn
#

Like the hexes on the overmap are each a dedi?

pure sierra
#

yes

#

each hex is a server

iron barn
#

Interesting

pure sierra
#

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

zealous sonnet
iron barn
#

Awesome

#

Is shooting hitscan or physics?

#

Or does it differ depending on the weapon (tank shell VS pistol bullet)

coral sundial
#

hitscan last i heard

pure sierra
#

with some latency compensation

coral sundial
#

oh idk about the shells but there is defo some physics involved

zealous sonnet
kind glacier
#

Trying to figure out Bannerlord modding, but so far I can't find what I need >:(

wild wedge
#

i wanna do some side projects , is there any script / online api or some thing like that needed for foxhole? any ideas?

kind glacier
#

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

stone void
#

lmao, I found an RTS written in .xml so I’ve just been trying to add weird units. No one answers my questions either.

kind glacier
#

what RTS?

pure sierra
#

@wild wedge depends what u like

proper maple
#

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.

proper maple
barren quarry
#

500-2800

lunar cobalt
#

Average for the last 30 days has been 1600 per Steamcharts

#

But highly variable based on the time of day

proper maple
#

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.

lunar cobalt
#

I'll take "How to set the dev's servers on fire" for 300 please

proper maple
#

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.

barren quarry
#

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

proper maple
#

Ahhh. Tasty code spaghetti?

barren quarry
#

Yeah

#

Need serious skills to understand it

#

Otherwise you will go insane

proper maple
#

I can hit like... half of their essential requirements.

lunar cobalt
#

It's amazing spaghetti

proper maple
#

Hey... If it works 😉

lunar cobalt
#

Just don't try to figure out how long it is

proper maple
#

I reckon there are at least... 8 lines of code.

long raft
#

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

lunar cobalt
#

Spaghetti to someone without the skills their networking coders have

proper maple
#

It's a bit stupid but... Proof of concept that actually recording 1600 datapoints is not that intensive.

#

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.

proper maple
proper maple
long raft
#

configuring networks, yes. programming networks? nah. it's only a small piece of one OSI layer

proper maple
#

fucking magic

summer bobcat
bold python
stone void
wild wedge
#

some thing like this be its job. but im not sure exactly what

pure sierra
#

there was a site called foxhole global that did this sort of thing @barren quarry

pseudo fossil
stone void
#

No, I've heard a lot of mixed reviews on CoH

languid harness
long raft
#

storage is easy with compression

coral sundial
#

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

long raft
#

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

kind glacier
stone void
#

It's so early stage, i'm pretty sure they just rewrote CoH2 and are adding elements to make it CoH3

coral sundial
#

I'd be more upset if they rewrote the whole thing

gentle beacon
#

Sand is sand

#

Water is blue

#

Bravo six going dark

low cargo
#

… - - - …

pseudo fossil
# stone void No, I've heard a lot of mixed reviews on CoH

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.

coral sundial
#

blitzkrieg is fun yeah, but overall it makes the game more hectic

#

fucking german 80mm mortar

#

rip riflemen squad :_:

languid harness
#

how about Blitzkrieg the game

#

best rts for sure

olive hamlet
languid harness
#

hell yeah

summer bobcat
#

Blitzkrieg 2!

languid harness
#

2 was really cool tho

#

3 sucks tho

fiery tree
#

only when RUSE 2 arrives will my life be complete

summer bobcat
#

omfg don't remind me of that game

#

I miss it

fiery tree
#

😔

summer bobcat
#

enemy tanks rolling into my AT guns in the forest, hehe boi

fiery tree
#

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

summer bobcat
#

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

summer bobcat
fiery tree
#

oh they apparently did have it on steam but got rid of it in 2016 because they ran out of a license or somethin

fiery tree
summer bobcat
fiery tree
#

hmm its the same people who made steel division, that game anygood?

summer bobcat
#

I have steel division 2 but only 2 hours in it... 😅

fiery tree
#

it might serve as a coping mechanism if its as similar to RUSE

summer bobcat
#

It's got the same feel to it but it's not the same thing

fiery tree
#

ah

#

0/10, doesnt have the entire battle happening on a war table, literally unplayable

summer bobcat
#

xD

#

I thought that was cool back then

fiery tree
#

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 markfootpokerstar

summer bobcat
#

half a second? I don't remember that LMAO

fiery tree
#

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

summer bobcat
#

hehe boi

#

I was always a turtle, never a rusher

fiery tree
#

ye i always was turtle too

#

the germans had flamethrower and flak88 combo bunkers that were awesome

#

and a couple nations had artillery bunkers

summer bobcat
#

those flak 88 bunkers were fking op to me

#

air + land defense

fiery tree
#

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

kind glacier
kind glacier
languid harness
#

god, now I wish I had my disk reader here to play it again

languid harness
#

Memories

#

So many memories

#

placing them cruiser tanks to have them blown up in 20 secs

#

until you got them matildas

kind glacier
#

KV-1/KV-2 mission made me fall in love with the KV-2

#

oneshotting pillboxes

languid harness
#

Drive up KV2, shoot at pillboxes, retreat KV2 to reload, repeat

kind glacier
#

Used to play multiplayer through gamespy until that finally died

pure sierra
#

"New resource: Wreckage can now be found and returned to a refinery for sorting." Mattthink

#

"Diesel and Petrol item weight now accounts for how much fuel is left in the can." finally....

languid harness
#

Tho iirc there was some off-brand online service, but I never got it to work

summer bobcat
#

yes GameRanger I think it was

languid harness
#

ah yes

pure sierra
#

@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

barren quarry
#

oh shit

zealous sonnet
#

that's odd, I wonder if that's due to the new db set up

pure sierra
#

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

pure sierra
#

@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...

rain raptor
#

Is this that roblox game?

#

Oh no.

opal rampart
#

Does the warapi allow you to get the amount of resource nodes left at a field? As far as I can tell no.

long raft
#

nope

pure sierra
long raft
#

oh shit did they update the warapi

#

there was a commit yesterday! woo

pure sierra
#

one map updated

long raft
#

which one?

long raft
#

hmm thought i saw a new road there, but also the new placement of the shipyard

#

or whatever thats called

pure sierra
#

@long raft hi

long raft
#

hi

pure sierra
#

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

long raft
#

i am confused what your question is

pure sierra
#

u know how yyou can just expand an image in css beyond its acutal size

#

can you zoom leaflet beyond available tileset

long raft
#

you want to zoom in higher without more tiles?

#

yes

pure sierra
#

yes

long raft
#

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

pure sierra
#

nope

long raft
#

for sure it is

pure sierra
long raft
#

perhaps it needs to be done on the layer?

#

not the map

pure sierra
#

yep

#

excellent

inner bay
#

question, the war API is there anything that pulls seaport information, I would like to be able to export personal seaport stockpile data

pure sierra
#

no sorry

#

just their location

inner bay
#

darn, that would be super useful, im tracking stuff on a excel sheet, lol Id take a export to .csv at this point 😛

pure sierra
#

problem is intel leak to enemy

inner bay
#

I dont see how that would be possible if its limited to personal storage, and those are passcode protected.

#

Thanks tho for the info!

light sluice
pure sierra
#

i guess they could be shared with no details of their location

wary storm
#

what does partisian mean

long raft
#

yugoslavian rebels lol

pure sierra
#

@long raft, with ur client side only js site, have you ever considered ability to displayy casualty rates ?

long raft
#

no

#

i dont see how that would be reliable without a server component

pure sierra
#

it could be just calculated from the time that the client had been running

long raft
#

it doesnt even auto update tho

#

its on the wish list but its a ton of work

pure sierra
#

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

long raft
#

i have thought about it

neat fossil
#

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

neat fossil
#

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?

pure sierra
#

hadnt given it much thought myself, but i had had the idea of using a wheel too 🙂

neat fossil
#

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

pure sierra
#

hmmm yeah, hadnt thought about that

neat fossil
#

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

pure sierra
#

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 🤷‍♂️

neat fossil
#

update 46: the axis of war

crystal island
#

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?

long raft
#

no

crystal island
#

oh, okey, thank you

livid briar
#

So how do you do fellow coders you know hdmi and enter keys am I right my thoughtful companion

long raft
untold sequoia
#

I highly doubt this is possible, but can I somehow check what player has affiliated with which faction?

pure sierra
#

nope

untold sequoia
#

Hmmmmmmmm

#

That sucks

#

So I just need to take player's word for it?

pure sierra
#

just see them in game

untold sequoia
#

You really can't if you're building an app sunglas

pure sierra
#

you get locked to a side after a few minutes of game play for that war

untold sequoia
#

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?

barren quarry
#

@untold sequoia just hijack a faction community

long raft
untold sequoia
#

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 think_yes

mint swallow
#

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

untold sequoia
#

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

mint swallow
#

oh okay

#

no idea what that means but I’m into it 😎

untold sequoia
# mint swallow no idea what that means but I’m into it 😎

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
}
rose verge
#

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?

untold sequoia
#

Yeah, some sort of invite-only. That's what I thought of

mint swallow
#

That’s sorta just how clans work tho 😂

untold sequoia
#

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 yes

rose verge
#

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.

untold sequoia
#

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

rose verge
#

Possibly, but that is also open to abuse, see the current rep system in game.

untold sequoia
#

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

rose verge
#

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.

untold sequoia
#

My idea was to tie your faction to your current war

#

So that when a new war starts you start again with rep zero

rose verge
#

So to use it at all it has to be linked to your Steam/Foxhole account?

untold sequoia
#

In some sort of way or form, yes.

rose verge
#

That would do it

untold sequoia
#

I'll just try some stuff out and keep y'all here posted :)

static bloom
#

Sounds nice

#

Will this be some public tool or sumn?

pure sierra
#

this just sounds like foxhole hq website, by @barren quarry

barren quarry
pure sierra
#

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

raven hornet
#

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.

long raft
#

yes, people have modded it

#

that asset can be overridden, but you cannot change size and stuff

raven hornet
#

Really? Do you have a link handy? My googlefu failed me earlier.

long raft
#

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

lunar cobalt
#

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

raven hornet
#

Why would that be against TOS?

#

I can't even find a ToS, just the Code of Conduct.

idle ether
#

netcode please fix

wanton cliff
#

@raven hornet trying to scrape the logistical info?

pure sierra
#

so i dont think it would be against tos explicitly to use ocr for own personal uses but

raven hornet
pure sierra
#

anyone use php here regularly ?

olive hamlet
#

I do in my day job

pure sierra
#

@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

long raft
#

it ... will?

#

it shouldnt... derpthink

pure sierra
#

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.

long raft
#

well continue, sure, but break?

pure sierra
#

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.

long raft
#

wow to me continue is how you continue looping, its the exact opposite of break

pure sierra
#

also never know continue took argument

long raft
#

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

pure sierra
#

i think u can in php

long raft
#

but thats nice if thats a php feature

pure sierra
#

with continue not break

long raft
#

its frustrating it doesnt exist in uhh ... more based languages, sometimes it forces you to use a damn goto statement

pure sierra
#

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.

long raft
#

does break allow that too?

pure sierra
#

you use contine instead of break in that case

long raft
#

but they ... mean different things

pure sierra
#

continue 3 would be same as break 2

long raft
#

interesting.

pure sierra
#

loop inception

long raft
#

why dont they just make that viable with break?

#

its easier to read

pure sierra
#

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

long raft
#

break only gets out of 1 loop tho

#

hmm

pure sierra
#

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

long raft
#

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.

pure sierra
#

its quite versitile due to popularity

#

are you saying they shouldnt be ? why ?

long raft
#

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

pure sierra
#

"In PHP, variable and constant names are case sensitive, while function names are not."

long raft
#

yea, thats nonsensical too

pure sierra
long raft
#

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

pure sierra
#

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

long raft
#

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

pure sierra
long raft
#

yeah php is the most inconsistent language ive ever used

#

no, c++ is, php is #2

pure sierra
#

"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!" '

long raft
#

indeeed.

#

ive yet to get a good justification for this

pure sierra
#

i think its just legacy

long raft
#

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

pure sierra
#

the language may be new but to make porting of code easy maybe they stuck with legacy

long raft
#

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

pure sierra
#

so i just ordered the parts for me next (#2) mechanical keyboard

long raft
#

the ... parts?

pure sierra
#
KPrepublic

KPrepublic is a China-based online store for mechanical keyboard lovers. We sell but not just PCBs, Cases, keycaps, cables, etc. We also provide assembly service.

long raft
#

omg how would you live without a numpad?

pure sierra
#

thats not my keyboard, but i dont have one

#

i have xd75

long raft
#

sounds hella expensive

pure sierra
long raft
#

ive never been a huge fan of mechanical keybaords they slow me down and theyre super noisy, i dunno why i bother using them

pure sierra
#

150 us

long raft
#

give me a cheap chicklet keyboard

pure sierra
#

the noisier the better

long raft
#

th... what.

simple fjord
#

the derpier the better

long raft
simple fjord
#

no noise sucks u gotta get brown keys hayden

#

get browns and stop being a clacker

pure sierra
#

except instead of qwerty i run dvorak

long raft
#

i only use mechanical at home id drive people at the office nuts if i had one

#

dvorak lol

pure sierra
#

i ordered 60g jade heavyy

#

i work from home

long raft
#

hayden i never knew you were a tech hipster

simple fjord
#

wtf is that keyboard layout

pure sierra
#

dvorak

simple fjord
#

that isnt a qwerty keyboard

long raft
#

the only other person i know who uses dvorak runs the irc network i use

simple fjord
#

it sux

pure sierra
#

u learn

long raft
#

but ... why

simple fjord
#

qwerty was specifically designed because it is the most ergonomic

long raft
#

he says its very annoying because he cant just go use a qwerty anywhere else now

simple fjord
#

scientifically proven

pure sierra
#

no the opposite

long raft
#

the science is not ... convincing

pure sierra
#

it was arranged that way for type writers

long raft
#

i type faster than any dvorak user

simple fjord
#

tr00

pure sierra
#

i can use qwerty still

simple fjord
#

i can out type da best

long raft
#

i gave it a try for a few months but .. meh

long raft
#

i know, right?

simple fjord
#

Bro let me join ur IRC community

#

I wanna play !uno again

long raft
#

irc dying hard 😦

pure sierra
#

this is next level, im not game

long raft
#

just a handful of people left who talk

simple fjord
#

yeah

long raft
#

oof that looks super cool but i cant homerow

simple fjord
#

I used IRC back in the days when I played a game called "Cybernations"

long raft
#

that would definitely slow me down and im not convinced by ergonomics

simple fjord
#

its still I think played todays

#

browser based nation building game with like alliances and politics and stuff

#

it was super fun

long raft
#

im convinced good wrist angle more valuable than repetitive motion

#

and foxhole building has done way more damage than any typing

pure sierra
#

lol yyyeah

long raft
#

gives me straight up tendonitis

simple fjord
#

oh shit yeah cybernations is still up and online after all these years

#

2006-2021

pure sierra
#

my y is repeating currentlyy in my current build due to broken solder joint i havent fixed yyet

long raft
#

2006 ... lol that doesnt even feel very long ago to me

simple fjord
#

thats when I used IRC lol

#

xfire was hot back then too

#

man I miss xfire..

long raft
#

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

pure sierra
#

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

olive hamlet
long raft
#

yea when you think you know a language you find out you know most of it

deft quartz
#

Hmm.. Are you sure about that? Wanna try some javascript challenge?

pure sierra
#

?

#

sure

deft quartz
#

Let me get on my laptop. I got some intricate javascript code that defy the normal thinking

pure sierra
#

sure.

#

im off to bed now but will read in morning

quick socket
#

🤔 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.

https://github.com/crushkilldestroy/FoxholePythonAPI

GitHub

initial commit. Contribute to crushkilldestroy/FoxholePythonAPI development by creating an account on GitHub.

quick socket
#

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.

long raft
#

which key is the space ... button? it should be a bar

tender night
#

that is not the issue with this keyboard nightmarewarden

long raft
#

its a start

quick socket
quick socket
tender night
#

thank god

#

what this keyboard currently has is nothing short of unholy

quick socket
#

🤣 pretty much

lunar cobalt
#

It crossed that line a loooong time ago

pure sierra
#

and a wtf

coral sundial
#

Some people actually like those

#

Its supposed to be ergonomic

quick socket
#

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.

languid harness
#

I actually want that for my super long term film project I am working on

elder iron
#

Is there a way that I could make a bot with the api that could display the current map?

#

in a discord server

pure sierra
#

sure

elder iron
#

So there is ok so I got to find a starting ground because I have no clue where to start

pure sierra
#

do you want the whole world map ? its pretty big ? what is you rintended outcome ? what are you loking for ?

elder iron
#

that is what I want

pure sierra
#

ok

elder iron
#

like it would display something like this

pure sierra
#

sure

#

do you have any coding experience

elder iron
#

yeah I was going to code into my python discord bot

elder iron
pure sierra
#

ok so i generate that colored background image in python

elder iron
#

is that what you would do?

pure sierra
#

oh we had a nuke earlier

#

just realised

elder iron
#

in what server?

pure sierra
#

1

elder iron
#

o wow

pure sierra
elder iron
#

Dang

pure sierra
#

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

elder iron
#

I have no expirence in that with python

pure sierra
#

well thats why im suggesting maybe for now just use my images

elder iron
#

use your images?

pure sierra
#

yes from my site

#

that is the control layyer

elder iron
#

so that updates with the state of the war or?

pure sierra
#

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

elder iron
#

do you have combined one

pure sierra
#

no, you have to do that

elder iron
#

I am trying to think how I would do this

pure sierra
#

yyyou need a graphic library for python

elder iron
#

I am lost lol got to do some research

pure sierra
#

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

elder iron
#

Ohhhhhhh I am dumb lol

elder iron
pure sierra
#

sure thing

pure sierra
#

war over

lunar cobalt
#

Yup

elder iron
pure sierra
elder iron
pure sierra
elder iron
#

o ok

lunar cobalt
#

https://shard2.foxholestats.com/images/WorldMapControl.png

elder iron
#

thanks for helping the slow in coding