#code-talk

2 messages · Page 31 of 1

fervent spear
cold crane
#

Just out of curiosity, has there been any foxhole stats kinda solution that was banned or prevented?🤔

long raft
#

foxholestats julianlol

#

kindly requested not to ...

cold crane
#

Why?

cold crane
#

Im completely new to programming but had a cool idea how logistics could be improved. However i have no clue if needed information can be queried from api, and if not what other alternatives are there.

I assume that botting ingame to collect data is haram?😂

long raft
#

derpthink there are different imams and scholars on the subject ...

#

but you wont find more info in the api than you see on foxholestats. in fact, you wont even find all of that info in the api

#

i feel like theres some data mined things that could work, e.g. weather forecasting, but otherwise its gonna be soft interfaces to data

cold crane
#

Interdastink🤔

#

Lmao imagine watching a forecast of each region of the map, would be cool af

barren quarry
#

Depends on how much time are you willing to spend

pure sierra
kind glacier
#

In the interest of helping me find an actual job, I was asked to make a small game that fit their requirements to review my skills

vague otter
#

next job youll have to make their product for them before they hire you

kind glacier
#

Besides, other than the actual level building I've found it to be rather fun

#

Hearing birds at 5am kind of fun

long raft
#

i can only write code in my closet at home. im a genius but i can only work in that one space. sorry

coral sundial
#

A closet genius!

long raft
#

had to rebuild a huge python project because one line was off by a space, this language is stuuuupid

#

infinitely readable, infinitely unwriteable

pure sierra
#

haha, yeah space vs tab HBjoy

distant fossil
#

i like python cus to write braces i have to stretch out my hand on this pos keyboard

long raft
#

yea but we already figured out how to make an easy to read language without braces. it was called BASIC. it used end if.

kind glacier
long raft
#

you cant jump?

kind glacier
#

the little picture too

#

I'll be disappointed if no one gets it

barren wedge
paper summit
#

i keep skipping queues

jovial lake
#

gaming

pure sierra
#

i love braces, python feels naked

small beacon
#

This sentence is very different out of the context of code

lusty snow
#

Little web app im working on, forgive the poor css im not a front end dev, idea is to allow players and clans to collectovely track their activity logs, i plan to add more dashboards that will rank players from each clan based on their stats

#

every time a player updates their activity log their clans total gets updated

lusty snow
#

resending becayse bot delted for some reason

long raft
#

is it going to OCR the activity log screen shots?

pure sierra
long raft
#

?

pure sierra
#

just another game ocr tool

lusty snow
#

was literally all just dont today while i had nothing to do in work so its early days

long raft
#

itd be sweet if there was like ... an encoded form of the stats data that could be easily copied/pasted

lusty snow
#

would make my life alot easier

pure sierra
#

you mean for retrieval from the game

long raft
#

for users to move their data around

#

so many things i wish for ...

pure sierra
#

the devs arent into personal stats, its largely meant to be an anti griefing tool

long raft
#

seems to me it will be the new basis for rank

pure sierra
#

yeah its possible they will create some kind of auto generated class system

hollow gyro
#

Also, how do we get hex tiles, as mine are a little out of date.

long raft
#

depends which hex tiles you want

#

if the ones on the warapi's github arent what you want ask again

kind glacier
hollow gyro
hollow gyro
long raft
#

some people use ueviewer to extract the map files from the game assets

#

"processed"

#

they are 4x the resolution of the github ones. not guaranteed to be up to date either tho sometimes

hollow gyro
#

Damnit Devs 😆

#

I'l just wait, it's the tiniest thing

long raft
#

we have been known to wait a long time

#

e.g. indefinite

#

god im not looking forward to updating any maps, its become a ton of work now for me

royal glade
#

While we wait, we can imagine that the Devs will get around to providing a map related api - functions that actually extract the roads, terrain elevation, terrain type, etc. The dream would be to have each map broken down by sector and have data for death hotspots. If we get that last bit of functionality, it'll unlock proper heatmaps and allow depiction of moving fronts. Maybe in a few years.

fervent spear
#

My personal dream is Token auth to see the logs of seaports, and reservable stockpiles.
Be able to immediately tell what has been moved, this way we could implement supermarket-like algorithms for automatic logi orders
I don't see that one happening tho

pure sierra
#

I played some today, dont get much of a chance. the grenade span is worse than ever...

#

But after thinking about things I had idea to maybe make site like foxhole requests

#

where people can just suggest ideas/fixes and then they get voted up down like reddit, so you have a leader board of sorts and a way to keep track of gripes etc

languid harness
#

Lmao

vague otter
pure sierra
#

@vague otter@languid harness@barren quarry except with game feedback and reddit whats here today is gone tomorrow so there's no continuity.

vague otter
#

So you're talking about a (public) bug or feature tracker? That'd be useful

#

I don't doubt they have one internally already

pure sierra
#

yes they have said they do, but i want something public for the community

long raft
#

i think an accountability website or hopes and dreams would just make me depressed

long raft
vague otter
#

Nothing that we've heard, and I'm not hopeful since the update apparently is keeping devs very busy
My guess is it'll come after 1.0, in the time between larger updates

long raft
#

i doubt the api will change

#

its actually incredibly stable

paper quartz
#

heyo, requesting assistance. I am trying to GET information via the API
https://war-service-live.foxholeservices.com/api/worldconquest/war retrieves me a JSON with a handful of objects. how would I add onto it to receive only eg. warNumber

long raft
#

you dont

#

you need to parse out the info you want

#

i dont remember the exact structure, but if you query it as a json, then you would have an object i and you could get the elements like i.warNumber

paper quartz
#

oof this means i need to code. 😪

#

was almost an easy solution. coloniallaugh

long raft
#

do you need to keep it in javascript?

#

if youre comfortable with command line stuff, theres a utility called jq that can parse JSON stuff

#

kind of complicated to use tho...

#

i would imagine you could achieve extracting data by chaining a curl command an jq together

#

wget -qO - "https://war-service-live.foxholeservices.com/api/worldconquest/maps/" | jq -r '.[]|.'

#

or if you wanted to extract to warNumber it would look like this:
wget -qO - "https://war-service-live.foxholeservices.com/api/worldconquest/war" | jq -r '.warNumber'

hollow gyro
#

@paper quartz There's a WIKI in the Pins that described all the APIs

paper quartz
paper quartz
#

I'm trying to do some overlays using the APIs for my obs stream. So I guess I got to get coding. I'd be able to run a Javascript file in the browser source.

hollow gyro
paper quartz
analog elbow
#

Hey, I’m playing using Linux and a monitor. Playing on my laptop is fine but when I play while hooked up to a monitor my laptop randomly shuts off mid game. Doesn’t do this with anything else - haven’t tried another game yet, was wondering if anyone had this issue?

narrow mesa
#

Have you received any heat warnings, or any other notices, when booting the system back up

analog elbow
#

No

#

Now I’m can’t even log into the game - I get “lost connection” every time

pure sierra
#

@analog elbowhow long been doing that, and when does it say that ?

analog elbow
#

Just today; and it says “Connection lost: please try again…” when clicking deploy to play

#

@pure sierra

pure sierra
#

hmm

analog elbow
#

I changed my lid switch settings for my monitor but I’m still using the same proton version and tried GE and a few others

#

Updated, verified files, updated drivers

pure sierra
#

restarted computer and internet ?

analog elbow
#

Yes

#

Not internet

analog elbow
#

Just restarted internet going to try now @pure sierra

#

Same thing @pure sierra

#

I think I give up

pure sierra
#

yeah sometimes i have to wait for a problem to clear, try another day or just later, if not contact supprot

paper quartz
hollow gyro
#

Ah excellent 👍

analog elbow
#

@pure sierra fixed it - works on proton 5

#

Still, my computer turns off… only this game though?

pure sierra
#

have you checked the game and system logs

long raft
#

running this game in linux is rough

#

i suppose its a wonder it runs at all

#

i wonder if anyone runs it with nouveau

analog elbow
#

I haven’t

#

Like it works fine without the monitor

#

Or with my laptop screen

#

I’m using arch though so it’s pretty involved and mentally tiring… t the game is worth it I’m addicted

long raft
#

amd or nvidia? or intel?

#

among my tips, and maybe its unrelated to your issue, i use nvidia's drivers, obviously the i386 architecture, steam stuff, dxvk (real important), which i imagine you have already

#

and then i throw this in when i start steam to clear the c standard libs (which are redownloaded and updated via steam)

#

find ~/.steam/root/ \( -name “libgcc_s.so*” -o -name "libstdc++.so*" -o -name "libxcb.so*" \) -print -delete

#

but when you say your computer shuts down? you mean restarts?

#

if its truly shutting off, then i would think its a power supply issue

#

video card ramps up, runs out of power, power supply shuts off, computer quits

#

im running foxhole in a container through proton, its absurd it works at all. but steam remote play kinda sucks, been experimenting with better streaming alternatives

#

stumbled upon this nvidia protocol they use for the shield to stream games, part of the geforce experience, i think its called nvidia play or whatever

#

so somebody made a custom client for that protocol. and then someone else made a custom host

#

moonlight and sunshine

#

sure hoping its better than remote play.

analog elbow
#

I’m using nbidia too. Are you saying I should switch to i386 then run steam?

analog elbow
long raft
#

my bet is on power supply then

#

insufficient for the heavy draw from the GPU for foxhole

analog elbow
#

I wonder why? It stays plugged in

long raft
#

its a laptop?

analog elbow
#

Yes

long raft
#

hmm youd think theyd build it to match then ... hm

#

a force off is a hardware problem

analog elbow
#

Right like foxhole is the only game this happens for

#

Oof

long raft
#

it should be kernel panicking

#

but straight to off? i dunno maybe its heat, but power is my first thought

analog elbow
#

No kernel panic - or maybe that is what’s happening during shut off

long raft
#

how long does the shutoff take?

analog elbow
#

Yeah like straight off

#

It’s instant

long raft
#

not a kernel panic then

analog elbow
#

That’s what I was thinking but idrk what this could be

long raft
#

i wonder if theres like a power mode you could change, i know in windows the first thing i would try would be like power saving mode for the graphics

#

or the opposite, turning power saving mode off

analog elbow
#

I did dabble with my UPower settings for the monitor

long raft
#

because some power throttle might behappening

analog elbow
#

Should I set power to performance mode?

long raft
#

yeah try that

analog elbow
#

Bet - I’ll update here if it crashes again after a time

long raft
#

If its heat related, thats also plausible because foxhole uses more cpu than most games

#

But then thats cpu heat, not gpu

#

And you could watch a thermometer tool like openhardwaremonitor or whatever to debug that

#

Which is actually fixable with tiny screwdrivers, thermal paste, and ambition

analog elbow
#

pi have bpytops

#

Damn, I’m more of a software guy tho 😂😭

long raft
#

me too

analog elbow
#

We should geek out sometime

#

I think the high performance is working

#

Spoke too soon

#

I start bpytops and watch the temp

long raft
#

i wonder what the shut off temp is for your CPU

#

usually they dont shut down the computer tho, they just freeze the CPU, but maybe laptops are different

analog elbow
#

Not sure about that… I wonder how I could check

#

Brb

long raft
#

just google the cpu model specs

#

gonna guess its at least 75C

analog elbow
#

I feel like my gaming laptop should be able to handle it tho

#

Like that’s why it’s a gaming laptop, ya dig?

long raft
#

yea well ...laptops...

#

they have the power, they dont have the cooling

analog elbow
#

That makes sense - so unfortunate

long raft
#

well you gotta assume new fans and thermal paste would keep it at specs at least

#

if thats in fact the issue

analog elbow
#

Idk anything about that kind of thing…

earnest apex
#

I had the same thing happen to me, it’s definitely a heat problem. If you’re not experienced in hardware, or just don’t want to deal with that, I recommend getting a cooling pad for it, and being careful of how hot it gets when you’re playing.

languid harness
#

What always helps with cooling for me is having the fans free

#

I tend to let the rear rest on a couple of coasters

#

It gives a little space under for airflow

paper quartz
#

Here are two GET calls for the API that I've written up over the past day that I'm going to be using for my stream overlay. It's just the lot of it bunched up but might help someone in a similar situation looking at the code. 💚

<script src="https://unpkg.com/axios/dist/axios.min.js"></script>
    <script>
      // WARNUMBER CALL
      axios
        .get("https://war-service-live.foxholeservices.com/api/worldconquest/war")
        .then(response => {
          const warNumber = response.data.warNumber;
          let foo = document.getElementById('warNumberID');
          foo.innerHTML = "WC " + warNumber;
        })
        .catch(error => console.error(error));
        // DAY OF THE WAR CALL
      axios
        .get("https://war-service-live.foxholeservices.com/api/worldconquest/warReport/CallahansPassageHex")
        .then(response => {
          const dayOfWar = response.data.dayOfWar;
          let bar = document.getElementById('dayOfWarID');
          bar.innerHTML = "Day " + dayOfWar;
        })
        .catch(error => console.error(error));
    </script>
long raft
#

nice

hollow gyro
#

Not too shabby 👍

hollow gyro
pure sierra
#

@hollow gyro devs said they fixed it last update

#

I have not checked, as still calculate it the manual way you suggested

hollow gyro
#

But yea, I'm a fan of math over provided if I can, feels cleaner

opal narwhal
#

stranger this is not foxhole discord ban this is Discord the company suspending your account. I doubt anyone here can do anything.

weak remnant
#

Are there any data sources with historical snapshots from past wars?

olive hamlet
#

What do you mean by snapshots?

#

Foxhole stats has like generated videos of the map for every war

long raft
#

kastow ... has an api ...

#

and hayden has exported the data before for people

delicate scaffold
#

Just me or does it feel like there is alot of people hacking?

pure sierra
#

🤷‍♂️

olive hamlet
#

I've heard like one story

delicate scaffold
#

i mean one guy just runs straight up to me and kills me instantly

olive hamlet
#

What gun did they have?

delicate scaffold
#

revolver

olive hamlet
#

I mean yeah it can deal 90 damage up close

#

So could easily down you in one

#

If you'd been tagged earlier and not realised it espicially

delicate scaffold
#

but i just find it extremely wierd how he pops out shoots me and then back into cover in under 2 seconds

delicate scaffold
hollow gyro
weak remnant
analog elbow
#

@long raft fixed it finally; had to adjust frame rate lower

long raft
analog elbow
long raft
#

From fps...interesting

unreal cloak
#

Anyone do web dev?

#

I've only ever made static websites with an HTML/React webpage and Flask backend

#

now I'm trying to learn Django so I can make a website with actual DB, multiple pages, users, etc

#

I'm wondering if after this it would be worth it to learn Express.js and MongoDB. I have never worked with noSQL and I want to try SPA after learning Django.

#

Is Express worth it to learn in terms of speed and as a useful skill? I know Node.js is an aging ecosystem right?

unreal cloak
#

how is the TPS?

#

django is pretty slow I think

barren quarry
#

i dont know really, but enough for me

#

i would say the biggest argument for me is to have both front end and back end on the same language with typescript

#

copy the interfaces and types between each other

#

dont have to translate from one language to another

#

that increases the speed of development i think

#

i often have to deal with translating node to python or python to node, ive gotten used to it but its still a bit of a headache

unreal cloak
#

oh that's smart

barren quarry
#

with sql if you create a table with fields you can no longer change the fields

#

and putting a json string into them is a bit shitty

#

mongo allows you to search by stuff in the json in that field

#

or add new fields without dropping the table

#

sql i would say is better for billions of same objects that arent going to change

neat fossil
#

?avatar

cedar crag
#

It would be cool if someone built a job system, using the games api, telling you the base that needs the specific items and you can take the job

#

Kinda like euro truck

#

Maybe it’s because I’m a noob but it’s hard for me sometimes to figure out where I’m useful

fervent spear
#

the API doesn't give that info

#

Only publicly available stuff

unreal cloak
vague otter
#

mongodb is great if you have an object tree data model with no circular relations

#

since it's a JSON based format

long raft
#

the api is nice and reliable, but its very limited

agile inlet
#

The bird has left the nest

#

😉

faint epoch
# unreal cloak Anyone do web dev?

Both are great options. Django has a lot of batteries included, but node has a huge ecosystem as well. Personally I prefer Python/Django but try&compare both and see what you like most

long raft
#

c#

#

cross platform, best performance

unreal cloak
#

Once I get comfortable though I’d like to try the MERN stack and get a little more hands-on with the Auth and database interactions etc

past schooner
unreal cloak
#

I haven’t heard of that

#

I’m not familiar with .NET stack

old ibex
#

EFC is dotNETs hibernate and its pretty good imo

deft quartz
#

if your coding in python, you can try FastAPI with AlchemyORM

past schooner
deft quartz
#

well, if you are doing the JAM stack, FastAPI does cover the API part and if you are really familiar with the Python syntax and want to just code React as an SPA you can do that. I recommend Next.js for that

unreal cloak
#

ok

#

yeah I was gonna try a SPA with Next.js next

#

my intro to web dev was SPA with React and I had no idea what React Router did/was for

#

but learning Django helped me understand why, how it was to emulate server-side rendering with routes

faint epoch
#

Also take a look at htmx for a SPA countermovement

long raft
#

the only spa ive ever built was vanilla js

#

oh i mean i guess ive made a couple, never used a SPA framework for it

#

with the caveat that my javascript is unreadable

dire pelican
#

cooooding

dire pelican
#

Ugh I'm really going to shell out $100 a year for copilot aren't I

distant crag
#

how does the camera glitch when dying work? idk if this is the right place

#

I want to figure out if I can aim it to get nice pictures

dire pelican
#

the camera just resets to a normal view instead of the top down one briefly

chilly burrow
#

whate exactly is mapMarkerType min-maj?

deft quartz
hollow gyro
barren quarry
#

Something has been bugging me for a while

pure sierra
#

yeeeees

barren quarry
#

Javascript has been developed for decades now with new features being added

#

But there's still no shorthand for delay

#

It's still the fucking await for a setTimeout inside a promise

#

Do not enough people use delays to make this important?

#

Python has asyncio.sleep()

pure sierra
#

never given it much thought but have used delay, cant remember if there is a jquery helper, as i always just use jquery

long raft
#

id like to get out of using javascript entirely, thats the dream

barren quarry
#

Good lord I haven't used jquery since like mid 2019

barren quarry
long raft
#

yea ...

#

or even typescript is a good alternative

barren quarry
#

I mean

#

Not using typescript with any meaningful sized projects is like hammering your fingers

#

So by javascript I assumed typescript by default

long raft
#

lol

#

im new to node even

barren quarry
#

To me first and foremost typescript is documentation

#

It's documentation that dislocates your shoulders when you try to violate it

#

But at the same time, doesn't crash the process

long raft
#

i hate every part of web development

#

wait theres 1 good part... when you open your site on some exotic computer and it works

#

but everything else is just the worst experience.

barren quarry
#

Web development is unimaginably boring to get into

long raft
#

its hard

#

like everything is just more difficult than in the grounded world

#

debugging is just ... terrible

barren quarry
#

What aspects of it are hard?

long raft
#

unit testing gtfo

#

profiling? rofl

pure sierra
#

we dont talk about that around here

long raft
#

build environment is generally uglier

#

its just harder

barren quarry
#

There's jest and sinon for testing

#

All your interactions between the server and the client are in strictly defined payloads

#

That are in json

long raft
#

yes but look how much more work you have to do to set that up

#

and at minimum youll work with 1 language but reality is 3 or 4, broad knowledge on front end and back end

barren quarry
#

3 or 4?

long raft
#

and all the things we try to do are usually throttled somehow by the runtime environment being in a browser, or something

barren quarry
#

Html, css, js?

long raft
#

yea, and intermediate data formats, e.g. json, yaml, xml

barren quarry
#

Ok

#

So first of all

long raft
#

toml julianlol

barren quarry
#

These days both html and css are inside js

dire pelican
#

learn rust ferrisWhen

barren quarry
#

Who even uses yaml and xml?

long raft
#

awww kastow ... if you only knew

#

yaml is so huge in the IT world

dire pelican
#

yaml is great for configs

long raft
#

its awful.

#

its enterprise shit... ugh

barren quarry
#

Ooh right

dire pelican
#

its absolutely terrible and needs to be executed for anything else

barren quarry
#

Configs for gitlab n shit

long raft
#

i can write some impossible-to-read yaml

#

you should see the stream format of it

#

its like cursed json

dire pelican
barren quarry
#

The worst experience in my life was having to write a bash script that installs and launches an app with docker, that includes installing docker itself

dire pelican
#

just make a docker image with everything setup trollhd

long raft
#

hahaha writing bash is like ... it will cost a piece of your soul

barren quarry
#

Dark days

long raft
#

my friends are like bruh zsh is the way

#

every shell script sucks

#

might as well just stick with the most common, csh, and bash

#

and im from the bsd world where bash is like foreign

barren quarry
#

Debugging skynet and not running head first into a wall took being unhealthy obsessed too

long raft
#

rofl

#

ok, web dev is hard, but discord development is frustrating

barren quarry
#

Don't get me started on discord js

long raft
#

makes me realize why dyno sucks

barren quarry
#

When you launch the newest version with typescript, there are actually 4+ type errors inside the library

#

And if by some reason you went afk and forgot to update your bot, it's gonna die every time someone types something in a voice text channel

long raft
#

needs more erlang

barren quarry
#

To be fair I can call web dev many things, but not necessarily hard

#

Maybe I just spent too much time practicing instead of, you know, living a life

long raft
#

its the hardest form of development except for perhaps compiler design, in my opinion

#

[3d] game programming is pretty tough too

#

not really if you have an engine tho

barren quarry
#

You have a Mongo with a node with express on the back, and react redux on the front

dire pelican
#

writing a game engine is hard because maths

#

compilers are ok

#

you can write a proper shit compiler as a doofus, it will make code

long raft
#

lol kastow you are ... you would not be considered a conservative developer

barren quarry
#

Spending an evening just setting up redux can take a while, but it's not hard

long raft
#

mongo, node, react redux, shit that nobody would even imagine when i was in college

#

yes nothing is really that hard to set up on computers except uhh ... k8

#

and email. email is also really hard

barren quarry
#

Hm

#

The aspects I admit I don't know about in web dev are k8, aws and emails

#

And maybe stripe

long raft
#

god k8 ... people told me it was hard, and i thought whatever i can handle anything

barren quarry
#

Although I interacted with k8 and aws a bit

long raft
#

im a docker master, k8 aint shit

#

holy god k8 is hard and nothing works

#

i cannot believe its what everyone is using

barren quarry
#

K8 is the go to for horizontal scaling isn't it?

long raft
#

im afraid im just never going to go back to ko8

#

yea basically

#

i hope something better emerges soon

#

docker is practically dead

barren quarry
#

How is docker dead?

long raft
#

you hear people say theyve basically made a multi million dollar company for a container format

barren quarry
#

What are even the alternatives

long raft
#

well docker is a company that has a container software, but their hosting costs for all the images is tremendous

#

and theyre not really selling much

#

its based on containerd technology, i think, so the linux kernel's ability to isolate system calls

#

theres many things built on top of that, podman, lxc, lxd, kubernetes, docker

barren quarry
#

Doesn't gitlab ci use docker?

long raft
#

but the Dockerfile format can be used by all basically

#

uhh im not sure about gitlab ci

#

lxd is pretty nice, instead of a singular container you can operate on entire OS images

barren quarry
#

Never heard of it

long raft
#

podman is nice in that it can run as an ordinary user, not just as root (like docker)

#

theres like a docker-swarm version of podman, and of course theres docker-swarm

#

sorta competitive with k8 but not really

pale summit
#

I have been working on k8s and while I am no "good" sysadmin, it feels like at every turn there is an equal amount of work and learning added to the TODO list as has already been done

long raft
#

and god there is a lot of yaml, huh

pale summit
#

even worse, almost everything you find is based around the idea that you want to run it on the cloud and you have to find special software or youtube videos and github pages for doing anything selfhosted

pale summit
long raft
#

yea ... every single step lol

#

but at least your entire thing is documented in config files haha

barren quarry
#

I need to try to dip my toes into it but I'm afraid I'm gonna lose my sanity faster than with bash

long raft
#

dont.

pale summit
#

the kubernetes website makes it all look fairly easy with nice diagrams and everything. What they leave out is that pretty much everything requires external software

long raft
#

the big thing about k8 they dont tell you is that k8 doesnt care how soon you want something done

#

itll get to it maybe today, maybe tomorrow.

#

maybe the bad startup sequence leads to a 4 hour retry timeout

#

too bad.

barren quarry
#

You could say that the main issue with everything code is how informative the error messages are

long raft
#

i do a lot of async and multithreading now, and im struggling to use the tooling to debug in those scenarios. i think thats the next big tooling challenge

#

async is really hard to debug some of the time

#

youve really got to write stuff right the first time, test the hell out of small pieces

valid spear
#

"promises go brr"

unreal cloak
#

Has anyone else worked at a big tech place before?

#

I’m just fixing tickets and looking at alarms and notifying service owners as a software engineer. I haven’t written code in a month and want to kms lol.

long raft
#

nope. but small companies suck too

unreal cloak
#

yeah in a different way

#

I just wanna learn things lol

long raft
#

not on company time i guess

hoary musk
#

I do big query, Sql, Sas and some python if anyone has questions.

mighty hare
#

big facts ^

Also look at employment that takes on a variety of tasks. it keeps you motivated and busy. less likely to hate it

long raft
#

are you not reading foxhole-discussion? its been the subject for hours

#

wild takes, some mild, some history, loxen posting cats

pure sierra
#

that place makes me feel dirty

long raft
#

at least one person said logiwaze is ruining foxhole, so ... ... nice

#

its nice to be thought of

pure sierra
#

lol, must be useful

long raft
#

im just not in the realm of notoriety on this

#

kastows ears must be on fire

long raft
#

if clout could be exchanged for money...

deft quartz
#

The more philosophical question is does automation ruin game experience and to what amount will it take out the fun of playing.

long raft
#

were programmers. we dont ask if we should julianlol

barren quarry
#

Ethical questions are asked elsewhere

long raft
#

somebody says adjust the reported mileage on this voltswagen we say how high

barren quarry
#

We ask engineering questions

deft quartz
#

Yikes. Scary

pure sierra
olive hamlet
unreal cloak
olive hamlet
#

Nope. I love it.

#

Has different set of challenges to smaller places, less individual responsibility, etc. But more chance to learn from specialists.

#

We have dedicated network, infra, database, operations, etc teams. If I have questions, I can get them to assist on stuff and learn from some of the best in the field in the country

unreal cloak
#

Ah ok

#

I’m just bored out of my mind with cloud ops

olive hamlet
#

Tbh, i love cloud ops

#

But that's more of an SRE than an SWE role

#

My place doesn't have SRE, we hire SRE and call them SWE 😅

#

Which is not good

unreal cloak
#

I just spend all my time responding to alarms and reading through logs and metrics and dont actually code

#

But I think it’s a similar story across FAANG

olive hamlet
#

Tbh, sounds like you need to adjust your alarms

olive hamlet
unreal cloak
#

Yeah I think it’s team dependent

#

But it sounds like the cloud teams are all pretty similar across different big companies

#

It’s mind-numbingly boring though

#

I think my best bet is to learn as much as I can about the AWS stack and then take that knowledge to a startup or something ig

fervent spear
#

is seth's site completely shutdown?

barren quarry
#

yes

#

like a month ago

fervent spear
#

how do I bribe Hayden so he puts all filters in his map?

pure sierra
#

what like ?

fervent spear
#

display only, say MPFs, or refineries and scrap nodes...

barren quarry
fervent spear
#

oh, nice

royal glade
#

What would be a good engine/tool to make a turn based tactics rpg game? I'm hoping to do this as a hobby and familiarize myself with using git versioning and any other nifty skills I can in the process. I am not a professional, but have some experience programming.

long raft
#

whats your language(s)?

royal glade
#

I've used python in the past, I messed around with the pygame library several years ago. These days, my scripting work is limited to matlab.

long raft
#

derpthink hmm i might consider just finding the most popular python based game engine in that case

#

hmm tough question

royal glade
#

I also did a little bit of Javascript when Sethfire and Kastow were first making their first map.

#

Open to picking up whatever's useful.

long raft
#

javascript ... is an interesting way to go

#

i mean you can be sure itll run everywhere...

#

i think if i were taking that approach i would personally use unity, and compile to webgl, but i dont know the javascript domain for gaming

royal glade
#

Alright, I'll check out Unity. Thanks Derp.

digital moth
#

0

lunar monolith
#

I'm a game developer. By far my favorite game engine is the Godot game engine

#

It runs on gscript, which is semantically based on python, and you can import python libs.

#

Very powerful, extremely fun, and it uses a unique node system which is way more flexible and easy to use than the unity entity-component system

#

The editor is much smaller, and much much faster than the unity editor

#

It's also open source

royal glade
lime pawn
#

godot is really nice, it's the one I'm using as well!

odd osprey
#

Godot is much better than unity for 2d games

#

Unity is only better for 3d stuff that does not need super good graphics

#

then you use unreal

unreal cloak
#

for example, Unity is component-based. I can write a script that defines a trait and then attach it to whatever objects I want.

#

Godot has a tree-like structure which I couldn't really figure out how to architect for. Polymorphism and OOP has always been confusing for me, and my project layout got really messy really quickly

#

I had multiple celestial bodies which had gravity and were destructible, as well as a player which did not have a gravity field or destruction, and I wanted both the player and the celestial bodies to have a "clickable()" function that would center the camera on them, so I made them extend a base class "clickable"

#

but then if I wanted the player to share a method with some other thing in my game that isn't clickable, then that other thing in my game would have to extend "clickable" as well, and then override the "onclick()" function to do nothing

long raft
#

oh god mouse events ... are hell

#

in everything

lunar monolith
#

As far as a "pattern" goes, it's very easy to work with if you plan out your system using flowcharts. The Godot wiki has a guide for doing that very thing.

#

It just takes a little bit of hitting used to after coming from the entity-component system of unity, because the entities and components become the same thing

long raft
#

unity is sort of locked into old .net and old c# (because of mono), i take it godot is not

#

not even sure if godot is using .net? or mono? or old .net framework?

unreal cloak
#

“Has-a” always felt better to me than “is-a”

#

I tried using composition by creating a “clickable” or “mass” script and the composing an object of multible “is-a” objects, but I couldn’t get that to work

turbid mountain
#

How tricky would it be to get the foxhole API to pull the captures, casualties, etc value for a given war and time and export it to an excel sheet. Basically, this graph from foxholestats dumped as a table

#

(i tried looking for this information in the site's inspect, but I could only find the vectors xD)

unreal cloak
#

I’m not sure how Hayden did it but you’d just need a script to run for the entire war and query the API every minute or so

#

Load that into a dictionary, then convert to a Pandas dataframe and export to CSV

#

Or you could probably just write your own CSV converter

turbid mountain
#

Ah. so the API doesnt have historical data? and foxholestats has just been collecting this info for the entire time

unreal cloak
#

I dont think so? I’ve never actually used the War API

#

It appears to only be cumulativep

long raft
#

it doesnt. you can talk to hayden or kastow about historical data

#

truly the foxhole historians

lunar monolith
lunar monolith
#

It's honestly so funny how that is the dominant early game strategy

vague otter
unreal cloak
vague otter
#

Does it work, then?

mighty rose
#

27

unreal cloak
#

Since Godot is turing complete I definitely could, but I don’t know how I’d go about it

long raft
#

the components are the part i like least about unity

vague otter
#

I guess somebody familiar with Godot would have to see if it supports dependency inversion

#

I'd be surprised if it didn't tbh

#

If it's not 20+ years old

#

@unreal cloak this may help, found through quick google search

unreal cloak
#

Oh man I had to learn about Dependency Inversion for work and it made no sense to me

vague otter
#

I recommend Uncle Bob's lectures

#

And books too

#

Very practical explanations

#

But basically dependency inversion is what you replace inheritance with if you want your code to stay more separated from each other, so changes can be made in only 1 component

#

Bad explanation but should lead in the right direction

unreal cloak
#

I also tried implementing components as children like in this thread:

#

But the “.get_parent().get_child()” was tedious

vague otter
#

Kinda feels like trying to use Godot like Unity
Which, if that's what you want, just use Unity

unreal cloak
#

The only book that made design patterns click for me was “design patterns for game programming” and even then a lot of seemed like a contrived way to make up for the language not being able to defer function calls

#

But I’m a shitty programmer so that might also be it

vague otter
#

The problem all of these concept are trying to solve is maintenance cost once the project grows larger than a few thousand lines

#

And almost every program worth completing is going to be bigger than that

#

So it's something you don't really run into unless you work enterprise

unreal cloak
#

I guess I just haven’t ever worked with a codebase that large

#

I work with some enterprise code now and see a lot of DI and factory builder patterns and stuff, I dont really get it

#

Mostly for legacy stuff

vague otter
#

Personally I dislike factories

#

But I think that's just my preference

unreal cloak
#

Prior to that nothing got larger than a few thousand lines since everything is service-based now

vague otter
#

Yes, service architecture is in now so people use it for everything, even if it's not required, useful or even if it's actively detrimental

unreal cloak
#

Yeah my experience was that we pre-optimized far too early

#

Most of what we did could have been a django monolith

vague otter
#

YAGNI is my favourite of the principles

#

One thing dependency inversion helps you with is building scalable programs

unreal cloak
#

But as far as game dev goes, I haven’t really run into a need for patterns yet in Unity outside of singleton

vague otter
#

Any item in the dependency tree can be expanded at will without affecting other components

vague otter
#

I have used Unity

unreal cloak
#

I used visitor and command for an RTS game, but I took a break and when I came back, the cognitive overhead on the code was really high and it was hard to understand my old code

vague otter
#

And even for a small project the amount of scripts you have quickly becomes bigger and bigger

#

I don't know what visitor and command is

unreal cloak
#

Visitor is basically to make up for not having deferred function calls

#

Command is also solving the same problem if I remember correctly

#

Instantiating functions as objects

#

I did a queue of commands so you could queue up actions for the RTS units and they would execute them in order

#

And then visitor meant that if you had builders and combat units selected, it would order them to do different things

#

For the same commands

vague otter
#

Sounds complex

unreal cloak
#

But in js or python it’s as simple as just throwing your function signature into a stack and then doing -> () to it

vague otter
#

I'm holding back hard rn not to try explaining dependency inversion with Cars

unreal cloak
#

lol you can go ahead

vague otter
#

Oof

unreal cloak
#

That also bugged me

vague otter
#

Alright

#

So, cars

#

Cars have motors right?

#

And also wheels

unreal cloak
#

In university all the OOP explanations were about cars and fruit and I’ve never actually understood how it works in practice

vague otter
#

Let's say you have a method to start the motor for your car, StartMotor()

#

You also have a method to change the rubber on your tires, ChangeTires()

#

Now let's say you want to make a tank

#

A tank also has a motor, but doesn't have tires

#

But a Tank has a gun

#

So your tank has StartMotor(), ShootGun(), and your Car has StartMotor() and ChangeTires

#

Okay, make a super class that has StartMotor(), and inherit tank and car from it

#

And extend with ChangeTires() and ShootGun respectively

#

Works great

#

With me so far?

unreal cloak
#

Yes

vague otter
#

Well

#

Here comes: The Armored car

#

It has a motor, tires, and a gun

#

You can't make the super class have all three methods because then the car would have a gun, and the tank tires

#

But you don't want to duplicate as well

#

So you have

#

Superclass with StartMotor()

#

Then armored vehicle class with ShootGun()

#

And then again extend that with ChangeTires()

#

But whoops, how do you fit the car in?

#

See the issue?

unreal cloak
#

Yes that was always a block for me in OOP

vague otter
#

This is where you'd need multiple inheritance, but most OOP languages don't support it

unreal cloak
#

(And still is lol)

vague otter
#

(for good reason)

#

So how does dependency injection help you with this?

#

Well, one thing you can do with DI is inject behaviour as components

#

Let's make a Motor class

#

Let's also make a Gun class

#

A Tire class

#

And a Vehicle class

#

They have the respective methods

#

So how would you implement your Car?

#

Well easy, your car has a motor, so when constructing your car you "give" it a motor

#

new Car(motor)

#

Same with the tank;

#

new Tank(motor, gun)

#

And if you now want the tank to shoot, or to start the motor, you expose those methods, or their components

#

So you could call new Tank(motor, gun).GetGun().Shoot()

#

This will allow you to combine these behaviours however you want

unreal cloak
#

That makes sense, but aren’t motor and gun somehow created when Tank() is called?

#

Because otherwise all tanks will share a gun instance

vague otter
#

Yes, this is called the "Dependency Tree"

#

Somewhere in your code you will have a tree of objects that make up your whole application

#

(To avoid this, Dependency Containers were invented, but that's a thing for another time)

#

So what you'd do if you wanted a non-shared gun instance

#

You could do

#
var motor1 = new Motor();
var gun1 = new Gun();
var tank1 = new Tank(motor1, gun1);

var motor2 = new Motor();
var gun2 = new Gun();
var tank2 = new Tank(motor2, gun2);
#

Of course all the helper variables are pretty redundant, you'd just create the objects right in the constructor call

unreal cloak
#

That all makes sense to me

#

I dont understand why it’s called “inversion of control” though

vague otter
#

For an added bonus, you can work with interfaces too, which will let you later replace components without changing everything that uses those components

vague otter
#

From the using class to the used class

#

and runs inverse to the execution flow

unreal cloak
#

Ok yeah that makes sense now

#

I guess I had used DI without understanding the formal name of it

vague otter
#

Of course

#

It's something that's almost obvious once you start doing it

unreal cloak
#

Why not use composition for everything then? It always seemed to me like inheritance had very limited use cases

vague otter
#

Funny you'd say that
Because that's exactly what so many modern programmers are saying

#

inheritance is almost always the wrong choice

unreal cloak
#

The car analogy I always heard in school always fell apart as soon as a characteristic of a third type of vehicle was intorduced

#

But they drilled polymorphism and inheritance so hard

vague otter
#

And I say "almost" so that nobody can come later and give an example to prove me wrong :)
Don't know when I last used inheritance

vague otter
unreal cloak
#

Yeah I think the prof just loved Java

#

I thought I hated CS until I started doing stuff in Unity and learning Python

vague otter
#

I mean
Java does IoC just as well as other languages tho

#

He might just be old :p

unreal cloak
vague otter
#

Yes, spring has IoC built in

#

Though I'm generally not a fan of the syntax

#

I tend to dislike annotations

unreal cloak
#

I dont know what any of it means, I’m so new to Java and I haven’t really learned it since I’m barelt modifying things

vague otter
#

Just learn C# instead lmao
It's microsoft java

#

Java has so many outdated tutorials it's sometimes hard to learn without somebody who knows the whole history of it

unreal cloak
#

I’ve done C# in Unity but that’s so sandboxed by Unity’s API that it’s not really C#

#

Like I barely know how delegates work or how to use the package manager since Unity doesn’t support non-approved C# libraries

long raft
#

for so many reasons

#

delegates are just function pointers

#

with a closure ... hmm

vague otter
long raft
#

its not

#

especially considering microsft actually had a version of java

#

j++

unreal cloak
#

j#

#

wait wtf that's real?

#

Visual J# (pronounced "jay-sharp") is a discontinued implementation of the J# programming language that was a transitional language for programmers of Java and Visual J++ languages, so they could use their existing knowledge and applications with the .NET Framework. It was introduced in 2002 and discontinued in 2007, with support for the final r...

long raft
#

J++ was their version of java

#

j# is a differerent .net language inspired by java

past schooner
#

there's a lot of # langs

old ibex
#

Could it be that foxhole ingame packets are UDP but the "foxhole war services" (green circle on top of chat) like squad chat and voice are TCP? Had weirdness after a lightningstrike and trying to work out what happened

long raft
#

yes...some is tcp, some is udp

#

unlikely that its voice chat tho .... im not sure

old ibex
long raft
#

the manager?

old ibex
#

The thing that figures out where you are for local and which squad you are in

#

Again, green circle

#

Oh also I was displayed in the wrong region in regiment which is kinda funny

#

Sneak 100

pale summit
#

I know it is not really code related, but I couldn't get an answer elsewhere: does anyone know if the wind offset of artillery is proportional to time of flight or proportional to range?

pale summit
#

thanks. by the look of that it is just range based

long raft
#

in most circumstances range and time in flight will be related, no?

#

except for major differences in elevation

pale summit
#

now that I look closer with more than 20% of my braincells, it appears to be proportional to time of flight and this is an arbitrary solution that happens to be close enough for 120 guns to not matter

pale summit
#

however, if you wanted to make a general solution, that becomes a whole lot harder if it is proportional to time of flight rather than range

barren quarry
long raft
#

luv webp

soft patrol
stone void
#

I can smell your tankette from miles away, you’re burning diesel, aren’t you?

paper quartz
soft patrol
#

you are invading papa bear palace

paper quartz
soft patrol
#

Var me1

lofty grotto
vague otter
#

Uh,correct?
That was 2 weeks ago xd

languid harness
#

Lmao

unreal cloak
#

I did a game jam again this year

#

idk if I'll do it again, it was pretty exhausting

barren wedge
#

I liked it

#

diceboy - rouge ftw

#

I also really liked the random lines from chess pieces (and pawns) and houses

long raft
#

wow impressive

unreal cloak
#

Yeah the artist I worked with is really talented

ripe estuary
#

the interdimensional reptilian shapeshifting CIA mantids are causing AI mossad deepfake false flags by masonic predictive program hydroxychloroquine weather manipulation Monsanto fluoride trails to distract moloch crisis actors from the fact that fake news aliens are hollow and that the sandy hook landing never happened so (((they))) can continue to use CERN vaccines to harvest gangstalker jesuit adrenochrome from our kali yuga Covid-19 pineal glands for chinese nanochip astral projection remotely through demonic V2K 5G technology from the black cube HAARP hexagon on top of Satan

languid harness
#

I do not get how people keep fucking up the use of this channel

coral sundial
#

@ripe estuary i agree but its a massive overstatement of what the chinese tech conglomerate l. They cannot produce 5G nanochips to monitor your covid 19 levels its simply a by product of the "long covid" hoax the FBI has you believe exists its simply a by product of the deepstate hallucinogen strategy.

long raft
#

you guys can all read music too, right?

unreal cloak
unreal cloak
#

Does anyone know if there's a way to do third-party validation with Discord?

#

Like could I have a Django app that requires you to be verified on Sigil to use it?

#

I guess worst-case I could use CV to have players-self validate and it just checks the logo and date time in the F1 screen to verify your account

long raft
#

You'd have to run a bot in sigil i think to make that happen

#

That provides an api or checks the user roles manually

#

Frankly it would be great to piggy back on wuh and sigil verification for some apps, but..yea

lunar cobalt
#

If you were to ask me to use discord OAuth on a non-discord site that isn't like, Dyno, or some huge bot, it's a major turnoff. Waaay to many scams going around like that recently.

unreal cloak
#

If I cant verify through discord I could just have a CV verification that runs in Lambda