#code-talk

2 messages ยท Page 2 of 1

long raft
#

depressing? doing code changes or playing the game?

#

i havent seen you in a couple wars now hayden

pure sierra
#

i havent played for months, depressing in that there seems little point investing time into upgrading for example refinery facilities as it will all get reset tomorow

#

@young pilot โš” ๐Ÿ‘

languid harness
#

someone figured out his question lol

hidden path
#

sshhhshshshshshhh

#

you saw nothing

#

I really don't get these ETags.

long raft
#

i think you can just specify in a header what your last record is to reduce traffic of useless updates you already have

#

i believe they are optional ...

neat fossil
#

It depends on your project.

#

For example, if you creating maps then I honestly believe that ETags aren't necessary because you want to make sure that whatever has been created is the latest.

#

While a bot that logs which towns have been destroyed, ETags can be useful because there is no purpose of going through all the maps while some haven't had their towns destroyed.

#

You are correct Derp, they are optional.

hidden path
#

The War API says that they want you to use ETags

barren quarry
#

our interactive map now archives all warapi snapshots and gives them out all at once in a json array

#

i called it Raw Coppersondent

#

i actually don't know how long this can last without taking all of ram

#

but i'll let it run for a couple of days

hidden path
#

What do you guys use for your Foxhole websites?

barren quarry
#

could you be more specific?

ocean prairie
barren quarry
#

ok apparently if you save war api data as text every 5 minutes it adds up to about 12 MB per day

#

for a proper server thats okay but for glitch thats a big oof

#

so we'll look for another way

hidden path
#

Like what web host do you use and what not?

sharp breach
#

@barren quarry just like, mongo lmao

young pilot
#

I will never use mongoDB

#

Also for some reason I didn't see Hayden's ping

eternal sequoia
#

I feel like Mongo is a spear everyone uses the wrong way

#

I think it's good for a certain situation, but most the devs I know use it because it's sexy and not because it's the right tool

long raft
#

@barren quarry you can throw it through deflate or gzip and it will compress 75%

#

trading cpu cycles for profit!

pure sierra
#

Here's my take on etags, i dont really fully use them (though could fully implement it) , as i dont consider myself a heavy api user (believe it or not) and i dont think the game is at the point where there would be a lot of load on the api that it would need the performance relief their use by me could give, (but if i need to use them i will).
My rational behind this is that i only request from the api once per map and endpoint every 5 mins, so i dont feel that is a big load compared to what even a modest web server can handle.
But if however you were making something that relied on the fastest performance possible with the fastest (live) response time, eg you wanted to know asap when something in the api changed, rather than wait till in my example my 5 min loop, which might happen to fall 4 minutes after the actual api has changed, as they are likely out of sync, then you would be polling (checking) the api maybe every second, for every map, and endpoint, so you can see this is substantially more, and would warrant the use of the etag header system, both for yours and their systems sake.
So currently i just use the etag to tell if there is a change in the dynamic api and if i should check and generate events in my event log, otherwise i skip that block of code. (i dont actually use the full header reject method, to just use your existing data instead of requesting new but same data)

barren quarry
#

Aaah that's interesting

#

Im very new to etags

#

So it changes only when the json file is different right?

#

So if no towns are taken in an hour, the etags wont change?

pure sierra
#

correct, the way it works is you submit in your request headers the last etag you got, and the server compares that against what it currently is and if it has not changed it repies 'no change' (in effect) rather than the same identical json again

#

@barren quarry

#

payback for the maps you sent, thanks

barren quarry
#

Actually i wanted to ask for colored safe house icons

#

My pc with photoshop went rip

lunar cobalt
#

I wish the devs would just fucking give us high quality ones of those

pure sierra
#

i can give you mine

lunar cobalt
#

not the fucking 25x25 pixel ones

pure sierra
#

48x48

lunar cobalt
#

Such a big difference

pure sierra
lunar cobalt
#

They're still useless for anything wiki related

pure sierra
#

this is my rough job of it

#

i use gimp for everything i can, never use ps

#

@barren quarry

#

but since i made them i worked out how to do it dynamically programatically as im making my maps, to do the red shade on the icons when nuked, as i wasnt going to make red shade for all icon....

raven zodiac
#

u can actually check the size of snapshot, lol @barren quarry

barren quarry
#

apparently when this data is archived it literally takes 200 times less space

hidden path
#

Yeah I am just going to set up a 5 minute loop rather than setting up etags.

barren quarry
#

i actually implemented etag check

#

so now it saves 1/3 of regions

#

because apparently regions update in cycles every 15 min

raven zodiac
#

another way was just checking json hash

neat fossil
#

Lizard, devs never said you must use it, they said it is a good practice

#

And like Hayden said, 5min loop will practically do the same

hidden path
#

๐Ÿ‘Œ

#

Yeah I am just going to use a 5 minute loop

neat fossil
#

Tbh 5min loop is much easier and will give you less problems

hidden path
#

I wish default C# had ienumerator support, but whatever it is not that much more difficult.

pure sierra
#

@barren quarry "because apparently regions update in cycles every 15 min" what makes you think this ?

barren quarry
#

@pure sierra actually i could be wrong

#

it could be 10 minutes

pure sierra
#

still why 10 ?

barren quarry
#

I changed the code so it saves war api data if etag is different from the previous one

pure sierra
#

and ?

barren quarry
#

19 24 GMT saved regions 9, 5, 7, 2, 6, 1, 16, 12
19 19 GMT saved regions 2, 1, 4, 7, 12, 3, 16, 14
19 14 GMT saved regions 5, 7, 1, 6, 9, 16, 4, 2, 14

#

Huh

#

i thought it saved one half first and then another half 5 minutes later

#

but it appears to not be the case

#

๐Ÿค”

pure sierra
#

you might just be just out of sync with their loop, how often you checking ?

barren quarry
#

5 minutes

pure sierra
#

well you might be checking halfway through their update

barren quarry
#

idk, maybe

pure sierra
#

but it depends if they update them all at once

#

or sequentialley over 5 mins , i have no ideea

#

it really could be any behaviour

barren quarry
#

anyway, this etag check that was being discussed here saves me about 40-50% of space

pure sierra
#

thats good, i dont keep the whole json historically just the values i chart, and i need them every 5mins so i just collect them regardless of change

barren quarry
#

also i got a massive project coming up in the next 2 weeks

#

(hopefully in 2 weeks)

#

the biggest community creation foxhole has ever seen

pure sierra
#

ah so FH related, i thought u might have meant work related

long raft
#

the etags are easy

barren quarry
#

Yeah they are

long raft
#

@hidden path the IEnumerable support is in System.Linq and has been supported since 3.5

#

ya know, just ... using System.Linq; and call it a day

hidden path
#

@long raft I'm referring to this, which is a something supported in Unity C#. You can not do this when programming in default C# as far as I am aware, which is what I originally meant.

void Start()
{
    StartCoroutine("Example");
}

IEnumerator Example()
{
    DoSomething();
    yield return new WaitForSeconds(wait);
    StartCoroutine("Example");
}
long raft
#

yes you definitely can

#

IEnumerable<return type> Iterator() { yield return blah; }

#

thats from 3.5

#

thats SO old

#

but yea in classic c# youd want to use an IEnumerable<T> where T is your type of iterator

hidden path
#

๐Ÿ‘Œ

long raft
#

its pretty insane how the compiler manages that, it unwraps all that code and saves the whole stack every time it does a yield return

#

people try to implement that stuff in other languages - and they end up having to use multithreading to get even close

raven zodiac
#

so what's magical in saving stack per caller?

#

that's just how they thought it should be working in c#

raven zodiac
#

and so I also dont get "and they end up having to use multithreading to get even close" part too

long raft
#

it saves stack and then returns to your code, then returns BACk

#

its pretty complicated, so thats why iterators are somewhat limited in what they can do inside

#

its implemented in the compiler, so if you want something like that in another language, you spawn up a thread to fill a queue and then the original thread to pull the items out of the iterator

raven zodiac
#

I understand what its doing, but what's a point? that's not a big deal

#

there is also lambda solution for this sort of problem in java

#

or using Streams

#

ofc threads, but I dont get it - threads are threads, they always were here

long raft
#

because something that sophisticated has to be implemented in a compiler, not in a language

#

and ive never seen any ...non academic language ever do that

#

its just a matter of convenience and readability, just another feature that makes the language awesome

#

and all the performance benefits of using the stack instead of heap allocations or spawning threads or using a threadpool or locking mechanism

hidden path
#

My little foxhole data project is ready to be left alone and just run. Going to let it run over night and see what I get.

raven zodiac
#

@long raft "just another feature that makes the language awesome", gotcha, praising tools is not my league, Imma out

long raft
#

you seem like a hard to impress person, pip.

raven zodiac
#

Im just familiar with asm, c++, js, java, python, ruby, php, erlang (a bit), now Im using elixir (erlang) @long raft

long raft
#

well i know a lot of languages too and im still impressed with it. its like a unique feature

raven zodiac
#

that's just sugar

#

same as for example classes in c++

long raft
#

and its at least 10 years old, so it should definitely be in any standard c#, although it might look a little different than how unity does it

raven zodiac
#

and in global scale it doesnt make much cuz it just solves something in c# area, I know that some stuff will be not so elegant without it, but again - in other langs there will be other way of doing same things

long raft
#

there really isnt

#

not every language has an analog in every other language

raven zodiac
#

Im not talking about exact alternative of some piece of code in other langs, I was talking about same behavoir or same task cuz that's not a big deal if u r programmer and u need to solve some task

long raft
#

that kind of stuff matters for a game programming language

raven zodiac
#

this question is too broad and opinionated in terms of stackoverflow

#

and I prefer to stick with more specific questions

long raft
#

oh, yea i only meant it to show how the mechanism works, and that he should just swap out IEnumerator for IEnumerable<type>

raven zodiac
#

that's not bad if he learnt them both before going for yield magic

long raft
#

err yield magic is the way to go actually

#

i mean ... if you use that language you should really use it, right?

raven zodiac
#

it depends on ur knowledge of what exactly u can do with this and when to avoid it

#

same with nearly everything

long raft
#

you in telecom industry or university?

raven zodiac
#

nah, self employed

#

University was my "Java Time"

#

telecom? u googled erlang? ๐Ÿ˜„

long raft
#

like 15 years ago

#

it has a reputation lol

raven zodiac
#

yep

pure sierra
#

Welcome back pip

raven zodiac
#

@pure sierra ๐Ÿค ๐Ÿค ๐Ÿค

pure sierra
#

Told you steam api didn't have long left...

raven zodiac
#

is it finally down?

#

@pure sierra

pure sierra
#

Yeah, with release of 0.20 they silently 'turned it off'

raven zodiac
#

ok, so they are still using it but just turned players listing off

pure sierra
#

They have me a heads up but never mentioned it to the community

#

Nah, it's gone completely afaik

raven zodiac
#

u can still get player numbers tho?

pure sierra
#

They do their own server discovery

raven zodiac
#

funny

pure sierra
#

I pull the total player pop from a broader steam api that does not talk to their servers

#

So it even counts people on menu afk

raven zodiac
#

hmm

terse pelican
#

I did the same thing for my site. Used steam api to pull total player pop.

languid harness
strange steppe
#

Focus sent a hello... Haha

languid harness
#

Soon โ„ข I will conquer the world

strange steppe
#

Good buy! ๐Ÿ‘Œ ๐Ÿ‘Œ

languid harness
#

yeah, it is crappy photo, but it is the Raspberry Pi W I talked about a few days ago with some lads in here

strange steppe
#

I like the raspberry, but I don't have enough money to buy :/

#

This is south America!

languid harness
#

oof

raven zodiac
#

u can buy cheap copy of rasp/android - that's how skynet supposed to grow from poor, crippled child into maniac

languid harness
#

bold of you to assume skynet isnt alreay upon us

raven zodiac
#

u know, we are brave men

long raft
#

have you started using it yet? did you already have a memory card for it?

pure sierra
#

Pi zero is only about 5us

summer bobcat
#

Speaking of Pi's

#

ah fuck it nvm

#

basically I have this $9 computer that is like a Raspberry Pi, but I don't know what to do with it

#

๐Ÿ˜›

#

Plus, the company behind it went out of business. Pretty surprising considering their Kickstarter campaign was very successful.

long raft
#

theres a lot of knockoffs

#

can always turn it into a media machine for another room if its capable of that

#

also curious if steam has an install for ARM architecture - could use it as a steam video streaming device

summer bobcat
#

@long raft Thanks for some inspiration. I have no experience with Linux on these babies and it's just kind of daunting to me.

long raft
#

some people slap a controller on top of them and use it as a gaming station

#

like SNES emulator or whatever...

#

i made a guitar effects peddle with one before ... but then i realized people make much better devices for less money

raven zodiac
#

use it to make Foxhole Neural Bot

#

since we cant block scrap spawn with anything

#

the fun part is - it is doable if u have gpu to teach ur network

#

I remember there was a Serpent_AI sreamer tried to make framework for game bot

#

OCR and stuff

#

the sad part - even simple game required tons of iterations to train network

#

now figure out where was da joke

long raft
#

gpu on raspberry pi?

summer bobcat
#

1000 raspberry pi's later kappaflyinchicken

languid harness
#

@long raft not yet, gonna look into it today. I am still figuring out stuff

raven zodiac
#

@long raft nah, just shitting on devs about em fixed scrap yard blockage

karmic siren
#

Can someone tell me from where I can get a good quality image of the World Map without labels & icons and with the changes introduced in the last patch please?

languid harness
#

@karmic siren Perhaps the foxhole wiki, or the pinned messages on the discord

karmic siren
#

Thanks!

raven zodiac
#

do we really need over 9000 supa dupa interactive foxhole maps?

languid harness
#

@raven zodiac ofcourse not, we need many more!

raven zodiac
#

yeah, I forgot we are in FOD

#

where everybody wanna grab some attention

dusk roost
#

better to have too much competition than too little

raven zodiac
#

competition for competition?

barren quarry
#

Sometimes people make tools for themselves

#

sometimes they make them for glory

#

i would be the second kind of person

long raft
#

lol

languid harness
#

and sometimes, they do it to test their abilities, mhuhahahahaha

lunar cobalt
raven zodiac
#

test abilities? do we have some experienced devs around?

lunar cobalt
#

@pure sierra ^

pure sierra
#

wat

raven zodiac
#

they thought u r exprienced dev, hi, btw

karmic siren
#

Yup just want to try something with the API for presscorp. Infact this week I finalized a Discord bot for them that sends casualty info grouped by map, region and world every 6 hours.

raven zodiac
#

pure magic

karmic siren
#

Lol okay

potent panther
#

Does anyone know what the ! Codes are in game? Can u find player count and other API stuff with it?

barren quarry
#

@potent panther sorry which codes?

karmic siren
#

What are you trying to achieve @potent panther ?

potent panther
#

I wasn't sure if there was a list of the functionality of !

#

Also why does foxhole stats website run so slow?

karmic siren
#

of what?

languid harness
#

I think he means in-game commands

karmic siren
#

ahh

#

Take a look at the chat commands here: https://foxhole.gamepedia.com/Chat

Foxhole Wiki

The chat window is on the bottom right side of the screen. It is used to send messages to other players. The default keybind to open the chat window is the Enter key.
The chat window displays the list of recent messages. It is hidden by default and only becomes visible when a...

languid harness
#

@potent panther if that is the case, I have to disappoint you: only moderators can access commands like that and those are limited to moderation like tp-ing and kicking and stuff. The reason foxhole stats runs slow can be answered by @pure sierra (he is the owner and maintains it)

#

But if I have to give a shot: it updates only every 15 mins because not much changes over such time spawn, thus resulting in minimal strain on data (which means cheaper hosting). If it is the speed of the site itself, I bet it just gets many requests (I personally would be doing like 2~3/hour over the day)

potent panther
#

Yeah I figured it was because of the 15min update. Thanks for the heads up

languid harness
#

yw

pure sierra
#

@potent panther hi, if you mean update speed, yes it is on a 5 min update loop, that is as fast as the api updates, you can see the countdown at the top, if it is the page load time plz let me know, i dont have the best home net so hard for me to tell performance of server in US from AU

steep ember
#

This was jist added I assume?

long raft
#

taste the rainbow

#

ya know @pure sierra SEO is better if you use SSL

#

and http2 might improve performance for users, if youve got a lot of javascript assets

pure sierra
#

have not heard of http2, https does slow things down a litte though, there isa bit of js for the charts

long raft
#

http/2 maintains a single tcp connection and all files can be pipelines

#

standard doesnt require it, but in practice web servers require an SSL certificate to use it

#

letsencrypt is free, of course, and pretty easy to setup, but yah google will ding you in results for not using SSL

pure sierra
#

really... didnt know that, yes virtualmin my cp has one click letsencrypt , very easy

long raft
#

but http/2 allows for more than the typical 6 simultaneous connections to grab files

pure sierra
#

sounds cool, will have to look it up

#

why is it not default for a modern system then ?

long raft
#

it came to apache late, nginx got it early, and browsers all had it like 10 years ago

#

its easier to set up http/2 correctly than https 1.1

#

in terms of getting the right ciphers, not using SSLv2 and v3 and using tls 1.2, etc...

#

the new shiz thats comin is https://en.wikipedia.org/wiki/QUIC ... probably going to be http/3

QUIC (Quick UDP Internet Connections, pronounced 'quick') is an experimental transport layer network protocol initially designed, implemented, and deployed by Google in 2012, and announced publicly in 2012 as experimentation broadened.QUIC's main goal is to improve perceived...

#

they want to do browsers over UDP

pure sierra
#

ok

#

ok i set up ssl

long raft
#

that was fast

#

looks like it works to me

autumn shuttle
#

Question about the warapi and Etags using Python:
In my get request do I need to include a header to check the Etag? Or I just store the Etag when I request and if I request again check against the Etag with the If_No_Match? I'm not sure how to structure

long raft
#

so the first request, you wouldnt pass any header for that request, but when you get a response includes an ETag you should save

#

then the second request you pass that ETag, and if there is no update you get 304 as your returned status code

#

so the response has ETag, and your requests have If-None-Match

#

first request has no additional header...

#

its kind of interesting, because since the data updates every 5 minutes ,if you polled it every 5 minutes you could be 9:59 delayed

#

so you'll probably poll it more frequently than 5 minutes, and thats why the etags are useful not to waste hitting their api servers

raven zodiac
#

in more simple words: since there is no subscription model client pushed to check updates with some custom frequency, to compensate possible load they introduced etag mechanism so u can update info even every second without making much harm

languid harness
#

In even more simple words: Etags are dumb

raven zodiac
#

it depends on its usage

autumn shuttle
#

Haha thanks for all the input. I can see why it's useful especially if the api is ever expanded , it would be sweet to do a live heat map of infantry locations. I'd also love to get data from a past war to analyze.

pure sierra
barren quarry
#

Looks cool

languid harness
#

@pure sierra whats that timer for? how long it has been under control?

pure sierra
#

yup

languid harness
#

what if I control it the whhole war?

#

300h?

#

or does it switch to days?

pure sierra
#

icould do that

#

i ws thinking of capping it at 99

#

but that is a better idea

languid harness
#

yeah, I was wondering

#

99+ hehehehe

#

classic

pure sierra
#

if >24hrs /24 = days

languid harness
#

*that is one odd way of coding but yes

pure sierra
#

its just a gist

languid harness
#

hehehehhe, I figured

#

otherwise I have some real respect for you producing something like this

pure sierra
#

prob some towns getting up close to the 24 mrk

languid harness
#

you could also do maybe a 48hour cap

pure sierra
#

yep

languid harness
#

would be nicer I think

#

because the difference between 1 and 2 days is way larger than 2 and 3

pure sierra
languid harness
#

looks neat

pure sierra
#

well also if it says something like 67 hours, peeps be like, what is that

#

easier to understand in days, i correct it now

#

thanks

languid harness
#

hey, thank you for doing this all

pure sierra
#

i web program for 'job' so its part hobby part practise

languid harness
#

well, still, it is nice you do this

#

don't underplay this stuff

pure sierra
#

glad you like it

hidden path
#

Very cool

long raft
#

wish actual foxhole map was that colorful and nice

#

the timers are great

spring kindle
#

no please

#

if it comes that maps are colorful make it an option

long raft
#

you like to squint to figure out which mine is sulfur?

spring kindle
#

i don't squint

#

i don't really have a problem figuring which one is which

hidden path
#

colorblind man, please help

pure sierra
#

then you wont have a problem switching to wardens

hidden path
#

Blue is easier to distinguish, so yeah I will continue to shoot at blueberries.

long raft
#

many people describe the wardens as distinguished

pure sierra
#

im pretty sure we have higher moral standards

long raft
#

well we do have the high ground...

nimble dawn
#

Give up Anakin I have the higher ground

raven zodiac
#

HigherGround* HigherGround(Warden da_real_man){...

#

best oop design ever

lunar cobalt
#

Well, we have the Highest Ground

raven zodiac
#

no problem

lunar cobalt
#

fucking overlook

nimble dawn
#

I feel the star war vibe for a sec there

raven zodiac
#

void growUp(Ground* other){...

native moth
#

@pure sierra Colouring is great

#

Just, maybe, make it a little less saturated than FOBs, forts and such

#

I don't want to have an aneurysm, trying to figure out which faction controls TH in the middle of your kaleidoscope of colours

pure sierra
#

@native moth thanks, make what less saturated?

barren quarry
#

i guess the resource and production icons

native moth
#

Yes

languid harness
#

@pure sierra how do you store all the data?

#

(and is this data aviable for some research?)

#

also, why these marks nani

sharp breach
#

I whoopsied msg.addReaction("โœ…"); where it didn't need to be

sharp breach
#

oh well

raven zodiac
#

btw why?

#

guess what site is this

#

First View in 13.505s on first run

summer bobcat
#

lmao

pure sierra
#

@native moth ok will look into that
@languid harness mysql database ify ou want it ok
@raven zodiac im guessing that is mine, as i just checked and it looks similar

raven zodiac
#

@pure sierra nope, that's not foxholestats

pure sierra
#

funny coz my page size was about 4mb too

lunar cobalt
#

That's about how long it takes foxholestats to load on my phone on mobile data

pure sierra
#

i know , same time too

#

a lot of mine is 3rd part scripts

raven zodiac
#

what I posted was stats on foxholegame

summer bobcat
#

Well I'm not surprised

#

They use WIX to build their website

raven zodiac
lunar cobalt
#

Yeah. And it makes it a fucking pain in the ass to save any of the photos they post

#

Because they're all fucking .webp

long raft
#

on the bright side wix includes every javascript library ever known to man, so youll never have a missing object...

lunar cobalt
#

has a missing object

languid harness
#

The amount of imports at the start of my script are rarely justified

long raft
#

I must admit I've never been good about it, I'll import jquery just to run init function

lunar cobalt
#

Worth.

long raft
#

yea really need my stuff to work on IE6 wardenlol

languid harness
#

Sounds like something my brother would say

barren quarry
#

So this is why foxhole website takes weeks to load

raven zodiac
#

yep

raven zodiac
young pilot
barren quarry
#

@young pilot interactive map?

#

converted the map from png to jpg HBjoy

lunar cobalt
#

๐Ÿ‘€

#

fucking jpeg

#

what are you doing with my transparency

barren quarry
#

well its background

#

so no need for transparency

languid harness
#

When a single image is 30 times as big as your code

#

@barren quarry who even uses png and jpg on the webs? gif is where it is at

lunar cobalt
#

Actually. Would making it into a .webm decrease the size?

#

I know those are pretty damn compressed.

barren quarry
#

madmen

languid harness
#

webm is not only a video format, but also contains audio.

#

That would be amazing

lunar cobalt
#

Sorry, not webm

#

Webp

languid harness
#

hm, quite interestting

#

would appear there is not much difference with regular jpg by the looks of it

raven zodiac
#

difference?

languid harness
#

yes difference

raven zodiac
#

what exactly do you mean by "not much difference"?

languid harness
#

as in, you can not see much difference

#

they are image compilers

#

what can be different outside the quality of the image

#

and size

raven zodiac
#

features

long raft
#

the giant png gets cached tho...

modern nimbus
#

Yo

edgy harness
#

go to:optimizilla website

#

they'll optimize your images and wont lose quality.

#

or if you feel fancy, use texture packer kappaflyinchicken

#

@barren quarry try this.

#

if said image hasn't shrunk after going through this, it means the image is already optimized prior.

long raft
#

the clocks/duration on every town hall gives such a new depth to the map, @pure sierra

pure sierra
#

I know , its much better than i expected, you can really see the progression of the map

#

@long raft

long raft
#

you can instantly look at know where the fighting has recently been

#

or when i criticize people for not being able to tell whos winning? this gives a much better clue

#

its pretty great...

languid harness
#

@pure sierra not sure about this, but I dont think that tower in northwest Farannac has been neutral for 2 days straight

#

I think it is more reasonable to think it was captured by wardens 2 days ago and maybe has went neutral over the night

#

not sure about it, could be that it has been neutral all that time, but it is something curious

pure sierra
#

@languid harness hmmm, interesting, i was looking in the event log on the farranac coast page, and there is no obvious mention of it, i thoght it would have been iuxta fort as that appears closest, but maybe it is transient valley valley, which would make 2 of them which might be port of the confusion if there is any

languid harness
#

Perhaps

#

Also, can you please at a legend to the side of the detailed maps? trying to find the techmine thingies on the island maps...

barren quarry
#

@pure sierra icontype 38 is tech mine?

pure sierra
#

yes

#

@barren quarry

raven zodiac
#

//ั„ะพั€ะผะฐั‚ะธั€ัƒะตั‚ ัั‹ั€ะพะน ั‚ะตะบัั‚ ะฒ ั‚ะพ ั‡ั‚ะพ ะฝะฐะดะพ
@barren quarry

pure sierra
#

talking to dev phill, he's passod on the official rgb values for warden and collie, and said that it might make sense to transfer away from a system of providing variants for all icons and just let us shade them accordingly as th egame does

#

-Colonial

  • (0.082283, 0.14996, 0.07036, 1.0)
  • Hex Linear: 152612FF
  • Hex SRGB: 516C4BFF
    -Warden
  • (0.017642, 0.093059, 0.223228, 1.0)
  • Hex Linear: 041739FF
  • Hex SRGB: 245682FF
#

also he confirmed rocket site is ok/meant to report side in api and showing showing such data is ok

long raft
#

wow they give you both colors, how kind

pure sierra
#

makes it easier for them

long raft
#

@languid harness windows (arm) on rpi 3!

#

gonna try it later this week but theres a windows image for it now lol

#

i wonder how well foxhole wil run wardenlol

pure sierra
#

forget it

#

honestly why would you bother witth windows on a pi, its meant as an opportunity to learn and use nix

long raft
#

i dunno, same reason i use windows on a pc. cause i like to be productive hehe

#

its definitely just for fun...

#

i personally think its really cool such an inflexible OS as windows can be compiled on arm and has an amd64 emulator and stuff

#

microsoft had very little success with windows on arm half a decade ago

#

but $10 windows computer is pretty cool...

pure sierra
#

sure, but i can get them for free from any ewaste bin, but atleast its compact

long raft
#

its really low power too

#

i dunno, looking for things to do with raspberry pi, running is for linux is just so ... boring

pure sierra
#

linux lovely

long raft
#

way too much GPL ...

#

i slapped freebsd 11 on there the first week it came out. but whats the point of linux OR bsd without zfs. sigh

languid harness
#

I havent had mine working yet,,, since I have a Pi Zero I need a micro hdmi for visuals, and those are hard to get for me for some reason

long raft
#

ah yea i needed one too, i ordered a couple for 6 usd

#

almost as expensive as the computer

#

its mini hdmi btw

#

i think micro is the smallest one?

gentle sage
#

Man this ahk script saved my day for not hurting my finger while grinding resources or building

#

so simple but made my day

long raft
#

you might not want to mention that.

lunar cobalt
#

Yeah. You really shouldn't have mentioned that. Especially with the actual code for the script.

long raft
#

granted, how could someone think saving their hands would be against the rules

#

void shadowDance(long time) { if (time % 2 == 0) moveLeft(); else moveRight(); }

gentle sage
#

well it is not botting

#

people like stuck shit on rhe mouse to make same thing ๐Ÿ˜„

lunar cobalt
#

@gentle sage Autoclickers are not allowed in foxhole.

gentle sage
#

well good luck to find that out who uses them and who not

#

Atleast this saves me from wrist pain

long raft
#

its still almost criminal how much they expect you to hold left mouse down

#

i would recommend using windows' standard mouse driver's click lock feature to help them with left click

#

i realize its no longer on topic of code but if somebody used a steam controller to play this game

lunar cobalt
#

^ That isn't against the rules as far as I know.

long raft
#

it would be very easy to configure it to hold mouse down, etc, is that somehow different than an auto clicker?

lunar cobalt
#

As far as I know - if it is physical, like a piece of tape, it is allowed. I believe the only program allowed is windows clicklock.

long raft
#

damn steam controller can be configured to type out macros and stuff

#

but its done in software, in the official steam controller settings for it

#

my god that thing can be configured like mad

#

if i didnt rely on a keyboard so heavily that would be my preferred method of playing it

raven zodiac
#

guys, we all are humans, no need to play fair card when whole game is so time consuming kappaflyinchicken

#

I can also say that autoclicker and even ahk bot are not much effective w/o teammate helping u, so at the end of a day it doesnt even matter

#

yep, botting is bad, but that's a minor issue compare to other threats like actual bug abuse or cheating, griefing

tender night
#

can we have the RGB values pinned? very helpful for everyone making stuff for Foxhole

lunar cobalt
#

๐Ÿ‘

gentle sage
#

is this chanel only foxhole code things or can i post some silly code things ttoo

barren quarry
#

Its a geek den for anything code related

pure sierra
#

anything

raven zodiac
#

@gentle sage silly code things?

languid harness
#

@gentle sage it all says it in the Channel description and pinned messages

sturdy stream
#

So as we recently discovered the map images for Oarbreaker, Fisherman's and Tempest islands are outdated on the github repo. I can't find them in the google drive assets either. @pure sierra You said you had a way of finding them?

sturdy stream
#

alright thanks so much ๐Ÿ˜„

summer bobcat
#

ew .jpg

sturdy stream
#

Alright thanks! No worries though, I compress them slightly to jpg anyway cause you win so much memory while still preserving 99.99% of the quality. I like making my apps as small a download as possible ๐Ÿ˜ƒ

raven zodiac
#

@sturdy stream apps?

sturdy stream
#

Yeah I'm making a kind of "companion" app for foxhole

#

android & iOS it's practically finished, just need to sort out all the AppStore & PlayStore stuff and then I can release it ๐Ÿ˜ƒ

kind glacier
barren quarry
#

i know what this is instantly without clicking

#

i love this talk and recommend this to everyone

kind glacier
#

Never heard of it before today

#

It had just about everyone in stitches

summer bobcat
#

interesting @kind glacier

#

that was pretty funny

long raft
#

yea pretty funny

raven zodiac
#

we got em

#

do u guys have 0 experience with c/c++?

#

btw will this same video be funny for u w/o ppl laughing "in a back"?

#

cuz if it will be then u can try to read about tons of other shit in these languages and have fun

long raft
#

his comic delivery was funny also

languid harness
#

@kind glacier Wat

#

Died at the Java arrays and objects

#

like what the fuck is going on there

pure sierra
#

Knew this was coming but nice to see it announced:

#

WarAPI

โ–  Statistics like Casualty count are no longer cleared when game servers restart

barren quarry
merry blaze
barren quarry
#

axyenno

bright forge
#

In regards to the chats above with auto clicker and a using tape. I've developed a hardware fix for hold the LMB on long build jobs. Place your keyboard on it. I find that its a balanced solotion, as my hand is off the mouse and the keyboard is out of place, so it takes second or two to reposition and respond. GLHF. (Collie R&D Dept.)

long raft
#

yea but click lock

edgy harness
#

Click lock is grounds for ban. As weird as that sounds.

languid harness
#

yeah, never got that. How are you supposed to check?

#

flying around construction sites, looking if people react if you suddenly land beside them?

red belfry
#

Fun

summer bobcat
#

@edgy harness KFC literally said that's not bannable anymore I swear the "being allowed" part was said somewhere, I just gotta find it

long raft
#

ban for click lock? lol.

#

thats a refund.

#

you cant ban me for my default laptop mouse driver settings

#

i mean you can but ... ill get refund haha

summer bobcat
#

They can't even tell unless you fucking mine fuel for 6 hours

long raft
#

sure they can see me swinging my hammer at air

barren quarry
#

Yeah thats what i wanted to write too

summer bobcat
#

@barren quarry is the tool up?

barren quarry
#

The what, the website?

#

Yeah its up

long raft
#

its kind of insane they have any say about my input means, is this the NYSE?

summer bobcat
#

coolio

long raft
#

and that whole steam controller thing

barren quarry
summer bobcat
#

@long raft The... New York Stock Exchange?

#

wat

long raft
#

yea in the 80s when they hooked up computers to the NYSE for trades

barren quarry
#

Shame this devstream didn't have community highlights tho, i was really looking forward to it.

long raft
#

they implemented a rule they couldnt do that, because it was too fast to compete

#

so these guys rigged up typing machines to enter their trades for them

summer bobcat
#

oh lol

long raft
#

like physical machines...pressing keys

#

and then years later they realized how dumb that rule was

#

but imagine youre dealing with somebody who uses macros or something because they have a physical accessibility issue

#

e.g. is the late steven hawking not allowed to play this game?

#

i know thats ridiculous, but ... yea

summer bobcat
#

If we keep holding the mouse button down, I'm sure all of us are going to get a physical accessibility issue

#

damn fingers man

long raft
#

thats when i started using click lock, because i could feel that burn all up my arm

#

and clapfoot probably doesnt have deep pockets

barren quarry
#

When i was a mod i've seen people with bots that would go around and mine fuel or components for hours

#

that stuff we banned because its just too much

long raft
#

yea like full scripting

barren quarry
#

but putting weight on your mouse for several minutes isnt an issue

long raft
#

its ... kind of absurd to have to do

raven zodiac
#

why?

raven zodiac
#

"whites start and win" I dont need any *-ware trick to use "weight"

#

but if I need to farm tanks for 2-3-4-5... hours I can go full-scripting mode

pure sierra
#

I was thinking to suggest we could talk about seeing is we could agree on something new to be added to the api, to request together. Nothing too hard for devs, but maybe something that could change the out of game experience, even if it meant revealing what would other wise be sided information that is generally known by both sides any way...

long raft
#

white (destroyed) fob locations?

#

maybe it was too map specific, but I find giant missing pieces of map in my head when only the town halls are shown, i don't have a sense of where actual front line movement is happening

#

because the fobs are missing - and the destroyed fobs would be known to both teams

#

and perhaps its easy because its already similar to town halls

languid harness
#

maybe a way to detect townhalls are being contested? that way you could draw estimated front lines

#

like, two opossing towns with neither detected means the front is in the middle, and if one of them is contested you can let it slightly move depending on how long the fight is going

raven zodiac
#

u mean sort of heat-map overlay for map?

#

@languid harness

#

I mean u can use some heat-map algo to make something similar

raven zodiac
#

or just use some curve algo to draw curves but there will be some edge cases

languid harness
#

I was more about curves

#

which might slightly move depending on the "weight" of the points used

#

high-weight = contested, low-weight = uncontested for a day

#

If you would save all the data, you could get some advanced review capability for each war

raven zodiac
#

dunno, Im trying to figure out which algo to choose for this

#

mb some chart algo can work for this

#

like u have x,y,0 for warden and x,y,1 for colonial

#

mb heat-map algo is better, u just need to find proper way of filling cells, nothing more

languid harness
#

hmmm

#

I assume you are using some kind of libs or?

#

because you could do my idea very easily vector wise

#

it is a bit of geometry, but not necessary hard to do

raven zodiac
#

nah, I was not using anything, just searching for same solved problem, like heat-maps, bezier curve mb some regression lines

#

for example cell solution can give u then a way to detect frontline and draw a border

#

no need for geometry

#

I mean we dont need to call this simple calcs a geometry LUL

languid harness
#

but we want efficiency dont we?

#

This thing is running 24/7, so if you can cut on the effort it takes to draw something, that would mean less maintainance

raven zodiac
#

thing is updating once in 5 minutes

languid harness
#

and perhaps also allows for more effective data storage, which may be beneficial when doing research

raven zodiac
#

so there will be 5*maps_count calculations + dont forget u can cache calculations

#

like they were doing it in Doom 2 lol

languid harness
#

lol

raven zodiac
#

what do u mean by data storage?

languid harness
#

well, you want to see what has happened inthe past right?

raven zodiac
#

cell algo needed to find "closed paths" nothing more

#

it depends on u how to store em

languid harness
#

like, there is a difference between saving a bunch of PNGs and JPGs

raven zodiac
#

no, I was thinking about sending paths to browser

#

and then draw it on client side

#

as overlay or sometihng

languid harness
#

It is an example

raven zodiac
#

just abstract from representation then

languid harness
#

If you want to save griddata as for a heat map, you have a lot of data, if you can save a set of "random" datapoints and calculate from there, it would be more storage effective

raven zodiac
#

u have map, u have size, u have townhall coords - that's all u need

languid harness
#

exactly

raven zodiac
#

nope, to hold heat-map u dont need tons of data

#

at least in this case

#

but it depends on heat-map lib tho

#

and then if u need to store "past data" then just store townhall history nothing more

#

so u can calculate every frame later caching calculations to abuse RAM etc.

#

or some risky solution to store "updates only", not whole dumps

#

bat even in this cases u can zip data, townhalls dump or heat-map dump, doesnt matter

#

u just need zip many dumps at once for better ratio

#

but I prefer not to start with premature optimization, better to have working algo so u can tweak it later

languid harness
#

Boop, drew something because I figured we were talking past eachother.

This is my idea, you create a set of linear formulas and find the crossing of those and based on that you can draw a front line. You can expand this by giving weight to certain towns based on how long they have been under control by the faction, in which case the perpendicular line would move over the relationship lines

#

@raven zodiac It would require no actual extra stuff other than what is already aviable by the likes of foxholestats

#

Or, if you want to make it as accurate as possible, ask for a "contested" flag to be included in the api

#

and use that for the weight

raven zodiac
#

yep, I sketched same solution some time ago, but if u have some isolated city what should u do?

#

for example Endless Shore

#

ofc u can apply ur solution for some maps, no questions

languid harness
#

Well, if you have a single city on the island, you can simply make no connections. You would just draw a single point on that island and base its colour on that

#

Endless shore is quite easy in that tho, since every island has multiple holdings

raven zodiac
#

but then again u need to fill area or draw a path

languid harness
#

You could use a simple mask layer, could do it with 2 lines of code in python's PILLOW

#

just draw lines, then overlay with a coast map

raven zodiac
#

or use machine learning, sorry for this python joke

#

why do u wanna draw it on backend?

languid harness
#

idk, lemme sketch something

raven zodiac
#

k, if u wanna use back end for prototype, why not

languid harness
raven zodiac
#

yep, may work

#

I just dont like do it like that

#

preparing stuff by hand

languid harness
#

ยฏ_(ใƒ„)_/ยฏ

raven zodiac
#

but again, if this works for u - noice

long raft
#

by hand? you could automate that

#

its a voronoi polygon

#

i think it wouldnt be at all accurate with only the town halls as data points though

languid harness
#

You can automate it fully, I made something similar where certain squares would e coloured based on data in a table, and then it would automatically overlay with a different picture with terrain of a map.

#

@long raft and sure, it wont be super accurate, but it would give a little more of an idea of what is going on. It would be the easiest if you could get the data on defence positions and player actifity and all, but that would result in intel leaking and stuff, so with this detail it would suffice I think

long raft
#

destroyed fob

#

gives you that intel

#

it tells you the most recent defenses that have been destroyed - indicating where the front is

#

and its not leaked intel

languid harness
#

sure, you could add that to my idea as well; would require a script to detect the nearest couple of other bases

#

but besides that would work I think

long raft
#

it would work but it would be ... extrapolated

languid harness
long raft
#

ive noticed people using the API for maps are very conservative and dont like to extrapolate

languid harness
#

well, why would you?

long raft
#

lack of data points

languid harness
#

you have a risk of displaying your intel wrong

#

exactly, lack of data points

#

But is it really necessarly game-wise to know everything?

#

Wonder if you should, rather if you could, if you get what I mean

long raft
#

yeah

raven zodiac
#

and then put the map on top of it with (partly) transparent layers how do u wanna automate that?

#

ive noticed people using the API for maps are very conservative and dont like to extrapolate what's a reward? that's boring statisticall and event processing stuff

languid harness
#

@raven zodiac well, there is a command for that in the Python Pilllow libary. Idk what language you use, but there is a lot out there

raven zodiac
#

I mean u have map, but u also need split it to layers

#

or "generate" layers from it

languid harness
#

just open photoshop, select the interior, set it to 50% transparancy or something, then let it slap that layer on it after every time you generate the front lines

raven zodiac
#

that's why I said by hand @long raft

long raft
#

i would automate it

#

i would not use photoshop

languid harness
#

This is what happens in my code:
1st line: the generated immage is assigned to Print_image variable
2nd: a cover image I once made by hand is pasted on top of it
4th Image is saved

long raft
#

you throw the points into a scrip for qgis, you get voronoi shapes out, spit to CSV file, adjust color values on each row based on duration, then convert with ogr2ogr into raster image

languid harness
#

you just have to use photoshop once

raven zodiac
#

automate what? selecting areas on the map?

#

still need hands

languid harness
#

draw on top map, overlay bottom

#

easy as that

raven zodiac
languid harness
#

no?

long raft
#

anything you can do by hand the computer can do faster

#

you dont have to do it by hand, no

languid harness
#

it does it automatically

raven zodiac
#

dude, go, download actual Foxhole maps and try to teaach the computer to semantically choose proper regions

#

๐Ÿ˜„

long raft
#

yea there are plenty of heat map calculators

#

no its going to be sloppy, its going to slop over mountains and stuff

languid harness
#

@raven zodiac it doesnt need to son

long raft
#

thats why its extrapolation

languid harness
#

oh man, whatever, Imma outa here

raven zodiac
#

that's why what we can see on picture should be prepared by hand

long raft
#

but it doesnt make it more correct to create regions by hand

#

thats the problem with doing it. makes the map look better, but its not more accurate

raven zodiac
#

what we are discussing, I just said that its too hard to teach computer to make good-looking layers to hide stuff

#

just check our conversation

#

there are 2 images

long raft
#

oh i thought you said the computer cant figure out how to set the colors

raven zodiac
#

naaah

#

I was talking about "hiding" stuff to make a good looking picture

#

like at first we have this

#

but then we apply transparency masks

#

but u need to prepare masks first by hand

#

that's what I meant

#

๐Ÿ˜„

#

ofc u can try to teach intellect to find water etc....but that's ridiculous

#

but on Endless Shore there are towns in the middle of the land

#

so u need to prepare transparency masks by hand

languid harness
#

it his really small effort, and you only hve to do it when the devs change the maps, which is just ike 1~2 every update, and takes 10 mins if you are skilled enough

raven zodiac
#

yep, but as I said - that's just not my approach and if it works for u then "noice"

#

nothing more, nothing less

languid harness
#

idk, I am just a jack of all trades, for me this is an obvious way, but do as you please ๐Ÿ˜‰

raven zodiac
#

since I dont wanna generate pictures on the server I cant go this road

#

#thatsnothowmafiaworks

languid harness
#

lol

pure sierra
#

So something ive thought maybe we could talk about requesting for the api,

#

something that would help with heat maps and knowing the front

pure sierra
#

no bites ? well maybe ill mention it later

languid harness
#

@pure sierra well, we talked about it just a bit earlier before spinning off into a discussion about automated image editing

pure sierra
#

I know, but i was referring to my most recent comment , will ellaborate when i have time again

raven zodiac
#

so what we are at again?

#

image processing, warapi ideas?

languid harness
#

Townhall so fresh, its babyblue

pure sierra
#

means its under cunstruction

languid harness
#

oh realy?

#

interestting

pure sierra
#

something thats actually not shown in game any more

#

so i have 2 ideas

#

actually that one wont work

#

i thought we could make the town hall logs public for stats, but that is sensitive

lunar cobalt
#

Yeah, that's pretty sensitive.

languid harness
#

dont want to hurt no TH feelings, do we?

pure sierra
#

ok so my other main original idea which is more a longer term one is

#

To make all or some of the map intel that "OVERLAPS" public

languid harness
#

hdym?

pure sierra
#

In summary, The stuff that both teams see on their map, make public

raven zodiac
#

What I want is full available log about everything possible but with 1 day delay

pure sierra
#

not enough delay

lunar cobalt
#

You'd need at least a week delay probably.

#

That would likely be something only available at the end of the war.

pure sierra
#

so what do you thing my idea ? In summary, The stuff that both teams see on their map, make public

raven zodiac
#

I dont care, just gimme gimme info

lunar cobalt
#

Mhm. Would be a lot of work, as I don't think the system is in place for that.

#

Would be cool though.

raven zodiac
#

need 1 week - ok, make 1 week

#

even current system is enough, just make it more verbose

pure sierra
#

all they have to do is compare warden intel against collie intel and the matches get reported

lunar cobalt
#

Maybe. We don't know how they check intel though.

raven zodiac
#

spam all updates to some simple server to store it as json, zip it, git gud

lunar cobalt
#

Wouldn't surprise me if each sides' intel gets marked differently for every foxhole.

pure sierra
#

no it wont

#

well it might

#

but it shouldnt

#

as each teams towers are seeing the same structure

lunar cobalt
#

this is foxhole...

pure sierra
#

the only problem i can see maybe with this idea is that peeps can keep copies of the intel after it is not shown in game, ie tower destroyed, but i think this bee too hard for any one to worry about keeping and displaying and it will also be ot of date

raven zodiac
#

we all wanna piece of data

#

International Open Data Day in Foxhole, When?????

languid harness
#

I'd hate if all map info became aviable

#

the whole concept of intel will go to waste

#

You also need to have a reason for people to log on ๐Ÿ˜‰

raven zodiac
#

we dont need it for intel - just for timelapse

#

for inf we already have enough info to find trends in casualties

#

per region

languid harness
#

Well, I think if it is added, it should be published by the devs after the war has ended

#

because I bet yer ass someone is otherwise gonna get that data and use it to their advantage

raven zodiac
#

depends on delay, if today I can get full data for same time from yesterday - its ok

young pilot
languid harness
#

says 79

raven zodiac
#

@languid harness for example, 1 day delay - why is it so bad?

young pilot
#

rounded

#

XD

languid harness
#

@raven zodiac well, how long do you think it takes to build a base, how often do they get made, and what can you conclude of the position of bases

lunar cobalt
#

@young pilot It still dies like once a day.

raven zodiac
#

@languid harness conclude what? base's pos with 1 day delay is nothing

languid harness
#

You know where the enemies stockpiles and such will be, where they have a vehicle depot and which are the "back towns"

#

and so many more reasons imma not even bother writhing them down

lunar cobalt
#

It would need to be end of war only.

languid harness
#

because I wont want to be here tomorrow

#

@lunar cobalt agreed

#

if you want that data for research, do it after the war

#

not during that war

raven zodiac
#

NOOOoooo......

dusk sentinel
#

@young pilot I still fucking love that bot, thank you and your guys for making that.

young pilot
#

it was broke yesterday and today

#

lol

languid harness
#

huh, someone made a mobile app

lunar cobalt
#

Mhm. That's cool.

raven zodiac
#

noice, ppl are going away from actual gameplay

#

Social media addiction strikes hard

sturdy stream
#

@languid harness Yeah that's my mobile app ๐Ÿ˜„ If you have any ideas/suggestions/bugs/whatever feel free to message me

#

And yeah, just doing my part to spread addictive gaming media culture ๐Ÿ‘Œhaha

raven zodiac
#

I was not joking btw

languid harness
#

hhehehehehe

pure sierra
#

hey @sturdy stream , nice work

raven zodiac
#

ok, I will give this game another six month to see what will happen

pure sierra
#

oh, your so negative sometimes

languid harness
#

the moodswings of this man, unmatched

pure sierra
#

just added mobile detect

#

now a mobile will default to the slim version, though full is still a choosable option

pure sierra
#

hey, @native moth i dialed back the saturation on the colored icons, what do you think ?

raven zodiac
#

Im not negative, and there is no mood for this sort of things

#

game and community moves in some weird direction so there is no point of tracking changes more often than once per 6 months

#

I also dont get the point of shifting focus from playing game to some social stuff, so 6 months

raven zodiac
#

tracers and blood are fake, we have big ping (servers are located in canada), but ppl are in love with some app for smartphones? nah, that's some bs, I need to give it a time to grow kappaflyinchicken

languid harness
#

idk, I regular check up on the game even tho I dont play regulary

#

the fact I am in this discord is a tribute to this, and I regularly use foxholestats. I would get this app if I had the space on my phone for sure, would reduce the hassle

#

Also: I made in the spawn of this day a Discord bot for playing checkers, it has basically everything except removing enemy pieces, but then it would be pretty much done I think

#

((spend most of the time actually implementing a system that prevents you from placing pieces on top of each other))

barren quarry
#

I feel like the amount of coded community content compared to people that actually play the game is enormous

languid harness
#

hehehehehe, for sure is

barren quarry
#

Maps, tools, apps, wiki, timelapses

#

Its almost as if community is participating in development

pure sierra
#

also throw in all the art ๐Ÿ˜ƒ

languid harness
#

^

pure sierra
#

have you heard of murphies law ? it goes something like, Step 1 - Go on mini publicity blitz for the website, Step 2 - Make some changes, breaking it not knowing, Step 3 - Go to bed....

languid harness
#

good thing I actually dropped it already

#

but I dont think that is how murphies law went to

barren quarry
#

thats how i fucked up the interactive map recently

languid harness
#

he had several

#

Everything that can go wrong will go wrong

barren quarry
#

i added the code to record the warapi every 5 min, was supposed to upgrade it in the 2 weeks but was lazy

#

so yesterday it ran out of space (190 mb)

#

and just stopped working

pure sierra
#

oh

barren quarry
#

it wasnt responding to my commands either because the disk was full so i had to manually delete the database file

languid harness
#

what

#

lol

pure sierra
#

yeah thats nasty when u run out of disk space that bad

#

do you think disk space will be a problem with you storing that data ?

#

@barren quarry

barren quarry
#

i turned it off

#

apparently the colonial discord has a bot that posts events

#

so i can just parse that

languid harness
#

lol

barren quarry
#

so i just record the casualties now

languid harness
#

wouldnt rely too much on that

#

perhaps make a discord of your own for storage

pure sierra
#

"apparently the colonial discord has a bot that posts events" is this mine or someone elses ?

#

@barren quarry

barren quarry
#

is this yours?

pure sierra
#

i think so

#

looks like my format

#

i have all that in a db if you ever want it

#

i push that data, my event log, to anyones discord that wants it

#

@barren quarry

barren quarry
#

okay

#

i will contact you when i need it

pure sierra
#

np, its not big all events since i started recording are only 8mb

#

~87,000 events

summer bobcat
#

@sturdy stream damn, nice work on that app bro

#

Especially considering that an Apple Dev license costs $100+...

sturdy stream
#

The price of a hobby I guess haha ๐Ÿ˜„ Hopefully I get to make more apps in the future to get the most out of it.

lunar cobalt
#

@barren quarry Yes, that is hayden's.

young pilot
umbral mulch
#

oh god

languid harness
#

@young pilot what else? Is it required to offer a child to the bloodgods?

pure sierra
#

maybe he's trying to make it hard

#

like whats wrong with using a continue inside a foreach ?

pure sierra
#

i guess they they are trying to make it easy to mark without a spaghetti of logic flow

#

and no shortcuts or ways out of weird logic situations by coder

summer bobcat
#

@young pilot G L O B A L V A R I A B L E S

barren quarry
#

i must confess, i use global variables a lot

#

like, if you need to do multiple operations with a set of data at different times, where do you store it inbetween the operations?

summer bobcat
#

Use a static object uwu

languid harness
#

I use so many global variables for my stuff

#

but like honestly, why wouldnt you

sturdy stream
#

Only globals you should ever use are constants. Actually mutating global data is a rabbit hole that will kill any code base ๐Ÿ˜›

languid harness
#

Welp, never had issues with it

#

but to be fair, I havent run my codes for a longer periods, so perhaps storage gonna give me headache

#

also update on my Pi: I have finally a mini-hdmi cable, this week is a really busy one, but next week I have a "free" week, so hopefully I can get everything running in a weeks span

#

and then eBic discord bot adventures

long raft
#

globals are as bad as singletons!

pure sierra
#

i dont normally use goto, but the few times i have they have been very useful

long raft
#

agreed! modern languages need a break command that can say how many loops to break out of, like:

for(x...) for (y...) break 2;

#

goto ends up useful there

languid jackal
edgy harness
#

.

languid jackal
#

at the end the one of the cars misses the trigger box that tells it what lane its in

edgy harness
#

Nice debugger :p

#

I see.

languid jackal
#

yeap welp a shame i might be doing away with it all XD

#

some of the instructions were mixed up though which is why it slow down when it shouldnt on straight parts

umbral mulch
#

nice music

#

lmao

languid jackal
#

well i figured id go with something more chill

#

not sure some people would apreciate alestorm

#

or dragonforce

latent osprey
#

Is there a way to get infos about a Soldier / User and his War History?

#

Would be awesome if there is a way cause with this and Steam API we could check if someone can be trusted as warden or Colonial

pure sierra
#

Sorry @latent osprey any players information is not available anymore, bt maybe in the future

latent osprey
#

Damn

languid harness
#

((foxhole stats is down for me))

pure sierra
#

yeah, it did, i rebootied it though, thanks

summer bobcat
#

rebootied

edgy harness
#

rebootied

tender night
#

rebootied

sharp breach
#

rebootied

lunar cobalt
#

rebootied

umbral mulch
#

:defaultdance:

pure sierra
languid harness
#

dab dab dab dab

summer bobcat
#

when did this become #cringe-corner ?

barren quarry
#

when you quoted a typo HBjoy

languid harness
#

Maybe rebootied this channel?

summer bobcat
#

goddamnit they got the salt

#

well, time to spend an hour changing a couple of passwords ๐Ÿ˜„

edgy harness
#

Not relevant to this channel. @neat fossil

neat fossil
#

??? I've post something here ??? @edgy harness

edgy harness
#

02Nod something about Warden clans. lol

#

@neat fossil

neat fossil
#

Ohh lol sorry.. I thought I was on the off topic channel

pure sierra
#

@barren quarry

#

@sturdy stream

barren quarry
#

29 is a fort

pure sierra
#

im talking about the two first keys

barren quarry
#

okay

#

what are they telling us

lunar cobalt
#

Better key to location maybe?

pure sierra
#

i guess unique identifiers

#

maybe they will use them to match up witth the text items too among other things, though currently those keys are empty in static

barren quarry
#

my current functions for matching objects in foxhole global are fucking horrible

#

they have to use region id, x and y

#

so i guess this will help

pure sierra
#

im guessing also one may be unique overall and the other just for that war ?

barren quarry
#

@rocky spade can you provide us some insight into these new things?

#

the objectindex and objectserialnumber

pure sierra
#

maybe @noble sage can

#

so this new feature is why my event log has been reporting spurious events for team none

#

some objects index/serials are changing

#

triggering my event code

#

this is a bug

#

but i can code to accomodate it as usual

barren quarry
#

hm.

noble sage
#

@zealous sonnet might know

pure sierra
#

thanks

#

im also thinking maybe its something to do with the new resistance phase

#

for items that go between wars

#

@barren quarry

barren quarry
#

Could be

lunar cobalt
#

That's the color as far as I know

pure sierra
#

its practically black though

lunar cobalt
#

Not on my screen.

pure sierra
#

screen shot your color picker with the hex value in it

lunar cobalt
pure sierra
#

yes

#

now tell me how that is the same color as this:

#

#394c35

lunar cobalt
#

Hmm

#

Let me see something...

pure sierra
lunar cobalt
#

That's from the emblem

pure sierra
#

that is not relevant, its meant to be the colors for the icon team variants

lunar cobalt
#

It is relevant. Because that is the color it should be.

pure sierra
#

as they are not always providing team variants now

#

regardles even that is different

lunar cobalt
tender night
#

@pure sierra pinned messages

#

wait i'm confised

#

*confused

pure sierra
pure sierra
#

so phil says objectIndex and objectSerialNumber were never meant to get into the API and thus just ignore them as they will be removed @barren quarry

barren quarry
cold siren
#

This is suppose to be code talk yes? Okay. I will send a coded transmission through here sometime in the near future.

languid harness
#

@cold siren it says on the top, read the pinned messages first ๐Ÿ˜‰

cold siren
#

Oh, my apologies.

placid ingot
#

CoDeS n StuFf

little briar
#

But if most of the code is blueprints?

pure sierra
#

...

little briar
#

@long raft point is you don't know what you're talking about. When you have more experience in UE4 come back to me

#

otherwise you're talking out your ass

#

I'd rather not waste my time explaining the ins and outs of the engine

#

You can google that yourself