#code-talk

2 messages · Page 18 of 1

kind glacier
#

made the player window bigger too

long raft
#

it works nicely tho

kind glacier
#

though the lighting has definitely suffered

long raft
#

yea possible

kind glacier
#

playtest

#

webgl build

long raft
#

weird the link worked fine on my phone

#

youre gonna need mobile controls for people who cant push asdw

#

it does load on my phone but its uncontrollable

kind glacier
#

you're implying I'm aiming for use on mobile

long raft
#

looks good too

#

i think you should just target it for both

#

big mistake i made with logiwaze was not considering mobile first

#

it will be popular if people can load it on their phones

kind glacier
#

Well, without multiplayer it's not going to be anything

#

then it'll just be a sandbox with toys but without the sand

#

though webgl does seem to have its own issues

long raft
#

different rendering abilities

#

also you may have settings reduced in the build, but it does have limitation

#

you know it has to be a common set of webgl calls that are supported across most/all browsers

#

but that could be a great advantage to you not to have to wonder why some people have rendering problems or whatever

#

reee: no directx 11 support what?

kind glacier
#

Ah, I found the issue

#

the default quality setting for webgl is High, while the rest defaults to Ultra

#

which included a halved pixel light count

long raft
#

there are definitely unsupported features in webgl tho

kind glacier
#

going to push a build set to Ultra, and if that performs worse, I still have the current one

#

runs the same but looks better

#

I'll post the webgl link in creative, pretty sure it qualifies

long raft
#

its honestly pretty mind boggling to consider its compiling c# -> webasm and using the mono framework in a browser

#

its real head-spinner stuff

#

i mean its compiling c++ too

#

genuinely mind boggling what theyve managed to put together

#

this is sort of the new promise of web development now, blazor or uhh ... electron, compiling other languages to web assembly gives it a lot more power in the browser

#

comes with an additional 1mb runtime though

#

ive seen some gnarly projects, someone compiled ffmpeg into web assembly

kind glacier
#

I'm surprised it even works, considering I built it all with windows in mind and I could change it in a few minutes by pressing a button and then waiting for the build to finish

long raft
#

i know its crazy huh

#

im making a video editing software in c# and i ran it on linux on arm architecture and used cuda on it for the processing, all native in c#, my mind was absolutely boggled that it worked, because i developed it on windows on amd64 architecture

#

and it ran on this $60 computer. just cant believe whats possible these days, we used to laugh at the java "write once run anywhere" nonsense

kind glacier
#

sounds like you're way ahead of me

long raft
#

been doing coding a long time, its really getting good these days

#

especially c#, ive been doing it for 20 years and its really amazingly cross platform now

kind glacier
#

welp, I'm only 2-3 years in at this point

#

and that doesn't include any job experience

lunar cobalt
#

Was there much performance loss between ARM and amd64?

#

I know Microsoft was having a lot of issues with that with the Surface X

long raft
#

hard to say, im mostly using the GPU not the cpu

#

also its comparing apples and oranges really, the cpu is weak as hell on the jetsons

lunar cobalt
#

True yeah

final holly
long raft
#

does the webgl version get compiled from cpp?

final holly
#

Yea, all Unity native code is cpp, then to platform specific code. So, even thought I'm not super versed in webgl as it relates to Unity, I know that to be true.

long raft
#

i mean ... heres my thought tho

#

there is non-native code in unity projects that would rely on the .net framework or mono

#

surely thats not being compiled to cpp first

royal glade
#

@kind glacier Just tried out the link you shared. Worked well on my desktop - I opened it in chrome.

#

It's great to see the progress you're making.

#

Two bugs I noticed: While picking up a 3d infantry (or other ) piece, it goes to the bottom of the screen. The placeable industry/factory icon is rotated wrong and is not parallel to the plane of the map.

kind glacier
#

@royal glade Yeah, that's something I figured I'd work on later. As for the factory, all of the models I use are facing sideways except for the factory. That means that when I rotate them to be upright, the factory is sideways

kind glacier
#

The factory model is a stand-in either way

pure sierra
#

@zealous sonnet @keen dome github update update when ?

zealous sonnet
#

I'll try to squeeze one in during the morning, but you don't need to ping nooba for this. 😄

pure sierra
#

np, whenever, will note that for next time 👍

coral sundial
#

tfw you kill 2 stepper drivers in the span of 2 months for the same reason

#

:/

pure sierra
#

1800 players atm

long raft
#

still no commit to warapi

languid harness
kind glacier
slate tundra
#

Why we have that stupid people.

fervent spear
#

QDB is hilarious

royal glade
#

what is qdb

#

Also what show is that from? @slate tundra

long raft
#

still no warapi/map updates

pure sierra
#

@zealous sonnet ping

#

2300 players

barren quarry
#

BRUH

#

the space at the end

pure sierra
#

ive seen worse

languid harness
#

lmao

pure sierra
#

copy pasta likely

languid harness
#

at least it isnt a tab

#

that sometimes breaks code

barren quarry
#

Also barronshire

#

with space at the end

pure sierra
#

@long raft phil has updated it

long raft
pure sierra
#

that was quick

long raft
#

thats what she said

pure sierra
#

boom boom

kind glacier
#

new map?

#

if so I'll have to swap my current one out

long raft
#

evidently it was a small change

barren quarry
#

@long raft 13 MB how?

#

its usually like 32

long raft
#

uhhh

#

hope i didnt make a mistake

barren quarry
#

did you combine them manually?

long raft
#

no

#

you are right tho everything is about half size

barren quarry
#

hold on imma use my Script™️ to generate a map

long raft
#

i have no explanation

barren quarry
#

oh fuck they're all in TGA again

long raft
#

werent they always?

barren quarry
#

its been a while since ive taken the maps from the repo

#

can you post the png map images?

#

or combine them into an archive?

long raft
#

for f in $(ls *.TGA); do ffmpeg -i "$f" "$(echo "$f" | sed 's/\.TGA/.png/')" -y; done

pure sierra
#

always have been tga

long raft
#

so the images are the same size theyve been for a year

#

kastow you have me questioning everything in life now

#

we used to have double the resolution from the game assets, but theyve been removed i think

pure sierra
#

i think kastow is a bit tired

barren quarry
long raft
#

hows the size?

#

ah roughly the same

barren quarry
#

hmmm

long raft
#

ok so im not crazy

barren quarry
#

and i went without reduction

#

5632

long raft
#

yep

#

we could enlarge it with AI

barren quarry
#

hilarious story btw

#

so on the previous patch maintenance i thought, wouldnt it be cool to have sat map tiles in full resolution?

#

so i sit and cut the tiles in 7 levels

#

5461 files

#

commit all this shit to github

#

and like 10 minutes later i realize the devs havent committed the sat maps for the new update

#

because godcrofts was still the same

#

that was

#

uh

#

interesting

long raft
#

ooof

#

yah dont do that by hand >_<

barren quarry
#

i mean theres very little hand work involved here

long raft
#

RIP satellite maps

barren quarry
#

my script to make the map

#

your script to cut the tiles

long raft
#

oh

barren quarry
#

and like 20 minutes of sweaty github desktop

long raft
#

does anyone have the last map? id like to difference the pixels to see what changed

#

the roads look the same to me

#

oh no i found a new road

pure sierra
#

get it from github commit history

exotic steppe
#

there were some stealth changes in Callahans Passage

pure sierra
#

bloddy collie bias

long raft
#

not much difference

#

i cant even see the new road i noticed, it must have been there a while

#

we basically didnt need an update at all, didnt need to pester phil lol

pure sierra
#

yeah but we dont necessarily know how much has been changed or not

languid harness
#

very subtle

slate tundra
languid harness
#

open in large

#

you will see some little specks in the northeast

#

but the fact you dont see much proves the point of there are very few changes

exotic steppe
#

im curious as to the changes in Callahans Passage

#

that one road/bridge were at a pretty bad angle to the river so thats understandable

#

but some building or something in Latch got deleted

#

plus the rock formations north of Crags

#

got changed

midnight saffron
#

.

pure sierra
#

2900 players

neat fossil
#

does anyone have a high resolution pictures for each map? asking for a friend

#

i mean full map*

barren quarry
#

Been posted twice

neat fossil
glossy sail
#

release the egg

pure sierra
#

@neat fossil they dont exist

neat fossil
wise swift
#

Dee
Day

pure sierra
wise swift
#

The Party Bunekr is crashed

smoky tulip
#

Question is why are collies dying more

long raft
#

lower population -> faster respawn -> more dying

coral sundial
#

More people is more sheep to cross the bridge to slaughter

elder mantle
bronze rain
#

Good

elder mantle
bronze rain
#

Good

long raft
#

no its the population

#

its respawn times. its not weapons and tanks

cold gazelle
#

Aye thanks

tulip topaz
#

just owned some guys flatbed

umbral mulch
#

owned so hard it got blown to bytes eh

coral sundial
#

Blown so hard it frees memory

lunar cobalt
#

So hard it took one of my RAM sticks with it

halcyon zinc
#

Having no SMG probably helps but the gap was made before we had a rifle that wasn’t ass

ornate dawn
#

Idk why everyone is complaining about our guns but I use the pitch gun just like a tommy and I mow people down all the time but I’ll agree with the shooting mechanics don’t do what your aiming to do lol

knotty pawn
#

programming:

kind glacier
#

Accurate

coarse pawn
#

agreed

young pilot
#

what map-related changes have there been in the new update?

long raft
#

i posted the difference image

#

very little change

fervent spear
#

Kirknell harbour moved and some adjustments to mountains in callahans passage

timber onyx
#

some guy in another discord server called me a conspiracy theorist for saying that Microsoft did some shady anti competitive shit in the 90's Thonk

#

like how am i supposed to reply to that

long raft
#

wait till he finds out about andrew carnegie

void marlin
#

He was an "philanthropist" what do you mean?

haughty salmon
#

Conspiracy theorists are fun to mess with

coral sundial
#

as long as you dont put in the effort

timber onyx
#

i get that Bill Gates weirdly has a lot of conspiracy theories about him by online weirdos, but come on that doesn't change the fact that he's a fucking asshole

coral sundial
#

There is no billionaire or millionare thats not an asshole. all of them do shady shit, but some of them do good as well. bill gates does alot to eradicate disease through their foundation

austere tundra
#

bill gates is kinda hypocritical

#

he used his jet that burns like, what is it? 400 gallons of fuel a hour or something like that (idk i might be over exggegarating)

#

to go to the paris climate march

#

or something along those lines, i dont remember it that well

#

(please mods dont ban me for mentioning something that is slightly political)

plain furnace
#

More like 450 gph

long raft
#

he offsets his carbon pollution more than the rest of us do

gleaming mist
#

The wiki is still missing a few key icons for the new stuff and I can't find them in the warapi github, can anyone help me please?

lunar cobalt
#

@gleaming mist which icons

gleaming mist
# lunar cobalt <@!637047705381634063> which icons

mounted Bonesaw, Venom, Hubert Exalt 150mm, Cutler launcher, Malone MK.2, Cascadier, Devitt-Caine MK-IV MMR (mortar tank), King Spire (Scout Tank), maybe the Koronides Field Arty (dunno if devs changed it). Also all the icons for the damage types, icons for cold/hot temperature and muddy state, Icon for the Bunker Ammo Room, and the Fire Pit.

gleaming mist
#

Someone has added them. Thanks

autumn sandal
#

ko

knotty pawn
languid harness
#

Imagine having Visual Studio installed

long raft
#

visual studio is my lord and savior

#

visual studio code is so weak compared to visual studio

spice jungle
#

as someone who just started college and coding last semester, whats the difference?

long raft
#

visual studio is several decades old, its an advanced development environment, vscode is a new open source project (with some licensing restrictions) that is cross platform

#

even in the free edition of visual studio you get features like a performance profiler, more advanced intellisense, code metrics, etc...

#

for the very microsoft-y languages visual studio is superior at the sacrifice of no cross platform availability

#

for other languages vscode is probably better than visual studio, like for php or python or something

spice jungle
#

im learning c++ right now in my freshman year and i did javascript, html, and jss in high school

#

im just wondering, are games like this made in just standard javascript or c++? so far all ive done for class is console programs but how are games like foxhole made

barren quarry
#

Foxhole is done in Unreal Engine 4

#

An engine is kind of an existing code base in c++ that defines basic interactions with ui and objects

#

And you build your own stuff on top of that

#

Javascript is not meant for games

spice jungle
#

thats interesting. game design has always been an interest of mine but doesnt seem really viable for a career

#

so i chose another csc path

barren quarry
#

If you look at clapfoot right now, the servers are on fire, there has been almost a game breaking bug with the tech tree with 2800 people online, and thank God it didn't happen on Sunday

#

Hotfixing bugs in a live environment with this number of players is a bit stressful I imagine

spice jungle
#

have they always had server issues or has the game been getting big lately and thats why?

#

i only started playing like a week ago but if daily server fires have been a thing for the past 4 years then im suprised they still have business

barren quarry
#

Usually there's about 200-800 players online

#

In-between updates

#

So the server load is much lower

#

The worst problem of this game is limited scaling of server capacity

#

Has been since world conquest have been introduced in 2018

#

The population fluctuates throughout the year, throughout the war and throughout the day

#

The server capacity is static

#

The devs can open or close regions for a war if population gets low

lunar cobalt
#

The reason they're having issues is that their server host is having issues

barren quarry
#

But without introducing more shards the game can't physically support 3000+ people

lunar cobalt
#

Their server host is having issues because one of their datacenters caught fire and they're trying to recover

spice jungle
#

it actually caught fire? lol

lunar cobalt
barren quarry
#

@lunar cobalt aren't they hosted in Canada?

lunar cobalt
#

All of SBG2 and about half of SBG1

#

Yes

#

On the OVH network

#

So OVH's recovery process is affecting them somehow

barren quarry
#

Well that sucks

lunar cobalt
#

Yup

#

That's why 2 servers are offline currently

spice jungle
#

i thought a server catching on fire was a metaphor lol

#

didnt realize it could actually happen

#

good to know

#

is this why the regions around mercy were offline earlier?

lunar cobalt
#

Yep

#

It's why Deadlands and Mercy are offline currently

barren quarry
#

How is mod team doing these days

barren quarry
#

So the usual

spice jungle
#

ive only been defending the bridge at mercy for the past week so when all the supply lines were cut off, because of those 2 hexes earlier, it was a rough fight

#

i have emotional investment now so i have to stay there

long raft
#

it literally caught fire? hbeyes

lunar cobalt
#

Yes

long raft
#

is my deadlands ok?

#

... did we cause this fire somehow?

#

this is because of MPT isnt it

lunar cobalt
#

We'll find out once OVH gets their shit back together and stops breaking the Toronto database

lunar cobalt
summer bobcat
#

There was no immediate explanation provided for the blaze, which erupted just two days after the French cloud computing firm kicked off plans for an initial public offering.

#

this is like a movie plot

long raft
#

painful. so the servers for foxhole are in europe? or the impact of the data center has put pressure on the same data center foxhole is hosted from?

summer bobcat
#

We believe their recent disaster recovery efforts may be impacting our servers.

#

I

#

The latter

long raft
#

they have pretty good prices

languid harness
# spice jungle didnt realize it could actually happen

Big data centers can get quite warm; its the poor volume to surface ratio that generates a lot of internal heat. The microsation of technology does not help in this. I have seen new data centers buildings with heatfins on the outside and the office set apart from it to guarantee as much as possible cooling

#

It can get up to 45 degrees celcius in them under normal circumstances

#

The reason for that is that almost all energy put into the system is converted into heat as if it were an oldskool lightbulb

#

I aint no computer engineer, but I do know my thermodynamics 😎

pure sierra
#

Lots of messages I ain't read here yet, but in case not brought up, day count on map endpoints is out of sync again, some got reset... @zealous sonnet

#

We really need a day count for the war rather then per map

coral sundial
#

Its quite interesting actually. That many computers might have high efficiency standalone. But put them togheter and they produce tons of heat

#

I wonder if you could watercool them as a preheater for an industrial steam boiler😅

kind glacier
pseudo crescent
#

Dear support team and developers,

By now I am pretty sure you are aware of this issue, which I would say is pretty big.
It is so big that I could safely assume it wastes thousand of hours of playtime every day.
I have posted this issue before, but got no response to it, so I want to make sure this issue does not go unnoticed.

The issue is that after waiting a long time in queue for a spawn from the Homeland, you have a good chance to get the screen I posted below.
From this point you have to re-enter the queue again, having a chance to get this screen again.
I have wasted at least 2-5% of my playtime to get this screen.
This is a huge number if you consider this bug impacts all players.
I hope you can see the gravity of this and will respond to us with an answer and a solution after answering to this issue.

Thank you for understanding our frustation,

Yours sincerely,

All foxhole players

languid harness
pseudo crescent
#

done that before, got no answer, so trying again

languid harness
#

Because 1. I aint never encountered that, and 2. This channel is more for auxilary coding

#

The devs tend not to respond directly to messages

#

It would take too much time to do so

kind glacier
#

there used to be a time

languid harness
#

That said, I think this is an issue specific to you; have you tried reinstalling?

pseudo crescent
#

a fix would have been an answer too, but its the third time in 2 weeks, idk how old this bug is, but its a pretty alarming bug since i know more people have it

languid harness
#

@pseudo crescent updates dont come out that often, so two weeks is like no very short term on the scale of development

pseudo crescent
#

actually i think i had it more than 3 times in 2 weeks, which add up to three hours+ wasted for nothing, it also seems to be happening in other situations, but differently, idk how to explain, but i know this exact one

#

well all i know its out there for months, im just playing for 2 weeks and wasted a lot of time, if other players wasted a lot of time too, i would assume it deserves a hotfix

#

wasting player time = totally uncool

languid harness
#

True

#

But you also need to realize devs cannot jump on every bug

#

If other people encounter it, let them report it too

pseudo crescent
#

i know, i give them time with all of the bugs out there, but this one is just kinda unacceptable

languid harness
#

The more do, the earlier it gets fixed

#

It might just be a hard bug, or a serverside issue

#

The server provider had troubles past week

pseudo crescent
#

it looks like a software issue to me

#

even if it does disconnect you, you should be able to get back in queue where u left

#

its just not polished

languid harness
#

Could be as simple as a desync

languid harness
pseudo crescent
#

you can make a system that checks if u deserve to be back in queue and just put u back in front if u deserve it

languid harness
#

Or beta

#

Pre release

pseudo crescent
#

id even script it for them

languid harness
pseudo crescent
#

well they already have this queue system right

#

somehow it expires you while it shouldnt

languid harness
#

Time outs prevent loose treats and data leakage

#

Also, spamming it everywhere wont help you

pseudo crescent
#

well yeah, ok i can understand time outs, but i dont see a "disconnected, trying to reconnect" screen, like league of legends does for example after u leave a game

#

foxhole just throws ur session in the bin like it doesnt care

languid harness
#

Well, I never encountered the bug, so idk

#

But I can beth your ass they have noticed it, and sceduled it to be fixed. It just takes time

pseudo crescent
#

yeah i just want to stress the urgency a bit more, like u said every report makes a difference

languid harness
#

Every person that reports

#

Not you spamming it everywhere lmao

pseudo crescent
#

let me make a new account brb

languid harness
#

Inb4 quick ban

pseudo crescent
#

cant ban me, i always come back harder

languid harness
#

Makker, ga gewoon lunchen

summer bobcat
#

adds to mod watchlist

neat fossil
#

Ah yes,the KGB

timber onyx
#

your problems have no place here

pearl turret
kind glacier
#

this the wrong place for posting what I can only assume is supposed to be a meme

#

I mean, coding memes go here, but I don't think that's one of them. and tbh, these "do not do x twice" memes are not something I enjoy anyway.

stone void
#

There’s people who enjoy those? Tbh, he’s just wasting his own time

full dust
#

Doesn't seem like this channel is much for foxhole coding anymore, but I would give up a body part to be able to have an endpoint in the API that gave player data based on a player id/steam id

coral sundial
#

That has been discussed at length before and the main point is that youd be able to gather too much info and circumvent some intel "gameplay" in game

hexed raft
onyx snow
#

So what modifications of the client are allowed, if any ?

barren quarry
#

@onyx snow nothing is explicitly allowed and nothing is explicitly forbidden. But there's VAC.

verbal crescent
#

yup mine better

#

... . -. -.. / -. ..- -.. . ...

pure sierra
#

what happened to wardens ?

void marlin
long raft
#

yes mpt
happens 24 hours after the MPT was unlocked

#

hope this isnt too hot of a take for code talk

pure sierra
#

hmm

kind glacier
#

is that the number of players in the game for each faction?

pure sierra
#

no, just caps

kind glacier
#

caps?

pure sierra
#

captured locations

kind glacier
#

Oh, the number of townhalls

#

and other stuff, I guess

pure sierra
#

yep

languid harness
#

but the colonials were on the rise already

long raft
#

yea the falchions came before that marker

#

that crossover only denotes when one side had overcome the other in caps

#

but the turnaround was like the 9th or 10th

pure sierra
#

i just meant overall to swing like that

languid harness
#

Should perhaps make a proper comparison with previous wars

#

Might be a fun little paper to write about it

pure sierra
#

game just ended

languid harness
#

Oh wow

#

How many casulties do we have? @pure sierra

pure sierra
#

2,582,703

languid harness
#

Jezus

lunar cobalt
#

@pure sierra So many people are looking at your site that it took like 30-40 seconds to load

kind glacier
#

yup

pure sierra
#

i know it grinding

#

im playinng fightclub in deadlands right now

fiery tree
#

oh is that why it took so long to load?

#

there was just so much going on that it couldnt keep up as easy lol?

pure sierra
gaunt wedge
#

THIS is code

#

.-- . / -. . . -.. / -- --- .-. . / -.-. --- .-.. --- -. .. .- .-.. ... / .- - / -.. . .- -.. .-.. .- -. -.. ... -.-.-- -.-.-- -.-.--

#

Lol

#

We really do tho

#

Put it through a morse code translator and you'll know what it says

#

Just know we really do need what this stuff says

jagged talon
#

Is there any API that gives out base supplies? I feel the current UI in the game is hard to read as it's icons only and no text, at least for newer players.

barren quarry
#

@jagged talon faction intel is not in the api

jagged talon
#

I was thinking of making a bot that runs the game and uses OCR to pull this... Cause would be nice to automate this and making doing logi a little less repitive

coral sundial
#

I dont think bots are allowed. especially due to the player limit

long raft
#

ugh when you go to rebase a git repository youve been dumping 1GB binaries in for 5 years stonksdown

velvet jewel
#

--. . - / ..-. ..- -.-. -.- . -.. / .-- .- .-. -.. . -. ... --..-- / - .... . / -- .--. - / .. ... / .... . .-. . / - --- / ... - .- -.-- / .-- .. - .... / .-.. --- ...- . --..-- / -.. . ...- / - . .- --

#

Just intercepted a message from the Devs, use a Morse code translator

languid harness
#

@velvet jewel hey dude, this is for progamming code

velvet jewel
#

You see it just says code-talk

languid harness
#

You see, there are pins

velvet jewel
#

But let’s talk code what languages does everyone know? C++, C#, Java?

languid harness
#

Psssh, Python gang

velvet jewel
#

I’m learning Python atm just finished teaching myself C++ and I already knew Java and C#

feral oyster
#

C++ is on my to do list.

#

But it’s scawy.

hexed raft
#

Really want to learn some Python but don't have the bandwidth for it atm. 😅

hexed raft
#

Totally feel devs pain right now.

#

Devs: Please stop doing that thing while the system resolves/catches up
Users: Oh you mean do it more to cause you more stress??

languid harness
#

The "14 clicks 14 screens" conondrum

compact garnet
pure sierra
#

@long raft looks like the perfect game for wildallen

long raft
#

its definitely not for me

#

seems like turning something i love doing into something i hate, but calling it a game

pure sierra
#

lol

#

Over the weekend amateur radio tinkerers in Europe managed to decode some portions of the telemetry data broadcast by the second stage of the Falcon 9 when it's in orbit. This data was in a somewhat standard format, but decoding still required some custom tools to extract the bitstream from the signal and then some guesswork to figure out the ex...

▶ Play video
#

liquid oxygen floating in side tank in orbit hbeyes

lyric lion
neat fossil
#

The answer is probably no but I've been surprised before. Are the players in Foxhole based on the Character class in UE4?

#

Or are they custom pawns? or even more custom than that?

languid harness
coral sundial
#

I feel discriminated as the only C programmer

languid harness
#

get a load of this guy

kind glacier
#

that thumbnail is misleading

long raft
#

you are not the only c programmer

pure sierra
#

@kind glacier allow me to introduce you to the internet

kind glacier
pure sierra
#

its actually not that bad

#

i didnt see any problem with it

#

whats you rgripe ?

coral sundial
#

your username gave it away

stone void
#

I can’t read whatever the hell he’s saying 🦀

#

You’re bad at explaining things 🦀

#

I c r w t h h s

#

Yo this is rough

#

Can you use Python instead? It’s easy to read and learn

#

Just use one of those sites that teach coding

#

So you try to teach me code, then won’t learn yourself? Sounds close-minded

#

Smh my head, you must live in your own world

hexed raft
#

@neat fossil ~ just for you ~

#

It just prints out your message in the bottom terminal.

#

Was bored and needed a mundane task as a mental break from work and course studies.

#

Don't worry, learning to code will make you a master of social interaction.

long raft
#
Console.WriteLine(System.Text.RegularExpressions.Regex.Split("Golf, Echo, Tango - Foxtrot, Uniform, Charlie, Kilo, Echo, Delta", @"[^\w]+").Select( x=> x[0]).Aggregate( (x, y) => $"{x}{y}")));
summer bobcat
#

is this code golf?>

long raft
#

you c# programmers using $"" for formatted strings yet? oh my god its so good

hexed raft
#

Yeah, haven't used it that much though. I only use C# for some side game dev projects and that stuff is rough and I don't want anyone to look at it. 😅

#

Use js/jsx for work stuff and it is pretty great

long raft
#

whats jsx?

hexed raft
#

React.js

languid harness
long raft
#

oh thats also nice, this kind of stuff makes me enraged when i have to use java

languid harness
#

Ugh yeah

full dust
languid harness
#

Imma do some blind code from my phone because I cant sleep:


List = Code_msg.split()
Msg = ""

For i in List:
     Sign = List[i]
     Msg += str(Sign[0])

Print(Msg)
#

The str() is not needed I think, but more of a back up in case an entry goes wrong

long raft
#

ah dynamically typed languages...

languid harness
#

Its python

#

Could make the Code_msg and import line, or change it in a function

#

But too tired

#

I can now sleep

long raft
#

lol

stone void
#

Thanks guys, you really helped me understand, though it looks like his message is gone.

long raft
#

i learned code by staring at it

coral sundial
#

learning by repeatedly pressing build until it works

languid harness
#

List = Code_msg.split()
print(List)
Msg = ""

i=0
while i < len(List):
    Sign = List[i]
    Msg += str(Sign[0])
    i += 1

print(Msg)```
#

this works

coral sundial
hexed raft
#

What terrible art for that lmao. This just makes people think understanding software is wizardry or medieval-era people talking about greek letters?

coral sundial
#

Haha cpu goes brrrrr

frozen oriole
languid harness
#

Never heard of the OG install wizard?

split vessel
#

sussman

opal trench
#

thats a bit sussesy

pure sierra
#

looking into hosting plan upgrades by my current plan is obsolete and cant be upgraded

#

so many companies i start out with as they are cheap and then they get bigger, phase out their cheaper plans and you have to either start over on a higher plan or find a new host

long raft
#

can you offload any of the resources? or maybe you already are with a CDN or github hosting?

pure sierra
#

currently not

long raft
#

is it a bandwidth issue or cpu?

pure sierra
#

memory

long raft
#

interesting.

pure sierra
#

ill show you

safe fog
#

Memory leak in game?

pure sierra
#

blanked out is the live update server

#

i could dc users after a certain time but dont really want to have to

#

the other option would be external firewall if possible

pure sierra
#

currently have 3gb

languid harness
#

Oh shit

pure sierra
#

might be in market for new hosting

long raft
#

could you use swap space on the hard drive to make up the ram while youre under high traffic?

#

or do you expect it to stay like this?

#

gonna be a bad experience tho for users but ..

pure sierra
#

im not sure i can specify my swap, there is already onne

long raft
#

it would solve out of memory crashing, but not performance. that part would suffer. i think you can have multiple swaps

#

i imagine it would need a command line tho

pure sierra
#

im not quite getting out of mem crashes afaik as it already has a swap

#

i think its just below the limits

long raft
#

is everyone using php 7.x now?

#

i havent kept up

pure sierra
#

i am

hexed raft
#

I think using refresh tokens that expire after X amount of minutes/hours and require a user to refresh the page after a warning to do so is completely reasonable. I had the page pulled up yesterday, did work and course work for like ~4hrs and completely forgot I had it open, so I am part of the problem group here. 😅

#

We use Json Web Tokens for my current project for this purpose:
https://jwt.io/

JSON Web Tokens are an open, industry standard RFC 7519 method for representing claims securely between two parties.

languid harness
#

reminds me I had to close it as well

#

I think for the people who want it open all the time can take the effort to refresh the page very hour or so

coral sundial
#

youre supposed to close it?

#

ngl I just have @young pilot war map open constantly

young pilot
#

war map doesnt self update, you have to manually refresh it

mossy pelican
#

how do you spell json

#

jason?

summer bobcat
barren quarry
hardy dove
stone void
barren quarry
#

@zealous sonnet probably not the best time to ask this, but will the api get extended to support multiple shards?

zealous sonnet
#

I would hope so, but I don't know for sure

#

I'll find out sometime this week

zealous sonnet
barren quarry
#

Damn, that was fast

#

my respect to you sir

zealous sonnet
#

it may have already been set up previously actually 😄

#

I just had a hunch to try something and it worked

barren quarry
#

now i gotta recode all of my projects to support a shard option KEKW

zealous sonnet
#

hah

pure sierra
#

@zealous sonnet why the heck not just add more maps ?

lunar cobalt
#

Because they don't have more maps?

zealous sonnet
#

maps probably take 2-4 weeks each to make

#

we can't pull that out of our pocket right after an update's been released 😛

exotic steppe
#

well to be nit picky they did add 26 more, lel

#

sort of

#

any sort of funny bugs pop up you can tell us about ?

zealous sonnet
exotic steppe
#

i meant more with the sudden game mitosis

lunar cobalt
#

I found a floating road

exotic steppe
#

ppl getting the mod model

zealous sonnet
#

oh that's cause they used to be mods on that shard for community events

lunar cobalt
#

^ LIVE-2 is the FCL shard

pure sierra
#

just use existing maps, i cant see that being anymore janky than 2 shards....

languid harness
#

FCL-chard 😭

pure sierra
#

on the other hand, i know another perfectly good map wardenlol

coral sundial
#

Bless that map

#

Is it me or did the hexagon maps get larger? No way this scales 1:1 with current farranac

pure sierra
#

1 in 100 year flood here, cows washing up on beaches

barren quarry
#

@pure sierra last year it was fires

#

Jfc is Australia ever normal?

pure sierra
#

nnnah its cooked

long raft
#

is there an API call that lists which shards are available?

pure sierra
#

anyone with virtualmin/apache prefork/fcgid experience ?

long raft
#

have used prefork and fcgid before, but not an expert by any means

pure sierra
#

im just trying to get my 256 connection limit increased.

long raft
#

are you forced to use prefork?

pure sierra
#

possibly not

long raft
#

worker is superior when possible

pure sierra
#

ive got to go to work, will talk more later

long raft
#

also php-fpm is better than fcgid i think too

pure sierra
#

well i just go with default vmin

kind glacier
#

hm yes, I know one of these words

keen canopy
#

Not sure if this is the right place to put this, but I was talking to my friend and we had an idea lulz. Just something to maybe add to the roadmap to try out. Can we give afk players cigarettes? Like if someone's just waiting and being afk for 5 minutes, they just spark up a cigarette. Kinda like the dude from GTA 2...if he was afk for too long he'd spark a smoke. People used to smoke a lot at the front lines so it would make sense. Anyways...just a random idea lulz.

fervent spear
keen canopy
#

thx

barren quarry
long raft
#

wow that looks great

coral sundial
#

can anyone here tell me, or point me towards some bit shift level hackery where you can transfrom a 16 bit integer into an 8 bit integer. if you can do that at all

long raft
#

you can also mask it using and operator

byte y = (byte)(100 & 0xFF);
#

mask is faster

#

you would use shifting if you want the highest 8 bits, if you just want the lowest use a mask

#

or just ... cast it. jesus thats easier, (byte)(100) is an easy way to just grab the lowest 8 bits

#

there may be a specific nuance to what youre doing, itd be helpful if you showed the variable you want to grab the 8 bits from

pure sierra
#

@long raft what is better about worker and fpm?

long raft
#

worker uses a threading model, and fork uses fork

#

so worker can share memory, thus the startup time of a thread is much less than forking

#

so worker uses less memory has better performance but if youre using a library that is not thread safe then it wont be compatible with worker

#

and fpm i think its just newer... and written better

pure sierra
#

How do I know if I'm thread safe?

long raft
#

well generally the packages are set up to cause conflicts if they wont work together

#

im not sure which libraries are not thread safe, surely there is a list of things that are not compatible with worker

#

but in general i woudl say just try it and if it works then use it

pure sierra
#

OK I'll have a go next time I'm home

long raft
#

i would expect the biggest improvements would be using worker, fpm is probably less advantageous

pure sierra
#

So where is Max workers set?

#

In Apache config or worker or both?

long raft
#

yea its in the httpd.conf, so yea the apache config

#

there might also be a separate one for fpm/fastcgi

#

php-fpm runs as another process so i imagine it has its own max

pure sierra
#

Cool

summer bobcat
coral sundial
#

well I can read the lower and higher bits apart. but what I really need is a measurement of the entire 16 bit range mapped to 255

#

the nuance here is. I am reading from a 16 bit register and I want to write to a console using serial.
I can either write the higher bits and lower bits in order. but I am not sure if the terminal recieves it as such

#

because the uart is only 8 bites long

#

and I definetly dont need 16 bits of resolution for what I am doing

long raft
#

so you want to represent 16 bits in only 8 bits

#

then you will lose precision

#

simply divide it by 256 (this is the same as shifting right by 8)

coral sundial
#

AAAAAAAAAH

#

THANK YOU

long raft
#

x >> 8
or
x / 256

coral sundial
#

I knew there was some bit level hackery

#

without having to write a float division

long raft
#

well the integer division and bit shifting should be about the same speed

#

perhaps the bit shift is slightly faster

coral sundial
#

last I heard. AVR's dont have dedicated way to divide

long raft
#

really?

#

for floating point you mean?

coral sundial
#

I mean, they can divide. but its just aint as efficient as say a computer

long raft
#

yes division is the slowest of the 4 operators for sure

#

i have seen assembly languages that dont include a floating point divide, but they do include inverse, so you can multiply by the inverse to get divide

coral sundial
#

its also purely for self enrichment purposes that I want to do it as well

#

does this scale to 32 bytes as well? x >> 16?

long raft
#

32 bytes?

coral sundial
#

32 bits

long raft
#

oh 32 bit

coral sundial
#

woops

long raft
#

yes

#

same process

#

and if you want to convert it back you shift left by the same amount
but you will have lost precision

#

you are doing what is called fixed point arithmetic

coral sundial
#

ah thats alright. I can work with the 16 bits precision. and read the 8 bit conversion. and do some human thing they call interpolation

long raft
#

you can imagine it that the mantissa (the part after the dot) is 8 bits on the right, and the integer value is the 8 bits on the left

coral sundial
#

oh it looks like the effective range is way to high for 8 bit precision xD

long raft
#

yea that can happen...

#

how much precision do you need? sometimes you can live with 10 or 12 bits

coral sundial
#

I need 8bits to display on my terminal...

long raft
#

how can you do it then

#

you know sometimes with colors you can give some parts more bits than others .for example you often see 5/6/5 color arrangements giving more bits to green because humans can see more variation in green

coral sundial
#

no, I am running a sonar that needs to measure 288mm at max

long raft
#

or indexed palettes can be used ...

#

interesting, so you need a value that goes from 0 to 288?

#

does the minimum need to be 0?

coral sundial
#

well, if you really need to be technical. its only absolutely critical for the last 8mm. because it needs to place something ontop of something else. means going up to max. then going down by 10mm or so

long raft
#

so lets see...

#

you could simply scale everything by 8/9

#

that would fit it within 0-256 range

#

or you can give more precision to the last 8mm maybe

#

thats tough with only 8 bits

coral sundial
#

well hold on to that though

#

I am reading right now. the direct sound to object and back time

#

which practically well into the ms or less

#

afcourse 1-5cm is going to return something smoll

#

this requires maff

long raft
#

its relatively easy actually

#

suppose your first 4 bits are scaled by 40

#

int part1 = (x >> 4) * 40;

#

then you add part 2 with higher precision, no scaling

#

int part2 = (x & 0xF);

#

then the combination of the two is your value
int combined = part1 + part2;

#

gives you high precision on the last 8mm and low precision on the rest

#

oh damn it only goes to 287

coral sundial
#

dont worry about it. this is way to complex for a first year school project. you dont have to do my work xD

young pilot
coral sundial
#

oh while youre here

what the fuck is a mAh
I am struggling to make any sense of this value
mA*h?
I need to calculate coloumb in a battery of 2300mAh. 1 c = I/s
and I have zero clue what to do with that mAh value

#

I am actually having a brain fart over this

young pilot
#

mAH is milliamp per hour

#

couloumb is unit of electric charge

#

1 milliamp per hour is 3.6 coulombs

coral sundial
#

how did you get that value?

young pilot
#

its a formula

#

its by definition

#

so to calculate the couloumb of a battery with 2300mAh is simply 2300mAh * 3.6 = 8280

coral sundial
#

yes

#

thank you for telling me that I am dumb and shouldve just filled in the formula

#
I 2300*h
seconds 3600```
young pilot
#

if your not certain just google it is what i did

#

An ampere hour or amp hour (symbol: A⋅h or A h; often also unofficially denoted as Ah) is a unit of electric charge, having dimensions of electric current multiplied by time, equal to the charge transferred by a steady current of one ampere flowing for one hour, or 3,600 coulombs.The commonly seen milliampere hour (symbol: mA⋅h, mA h, or unoffic...

coral sundial
#

the problem I had is that everything was telling me mA*h is not the same as mA

young pilot
#

An ampere hour or amp hour (symbol: A⋅h or A h; often also unofficially denoted as Ah) is a unit of electric charge, having dimensions of electric current multiplied by time, equal to the charge transferred by a steady current of one ampere flowing for one hour, or 3,600 coulombs.

#

yes, amp is not the same as amp per hour

#

to put it simply ampere is a base unit of electric current, ampere per hour is a base unit of electric charge

coral sundial
#

yes I also have the problem that I have the defination of ampere as coloumb/seconds

#

so I am either missing something big or my definition is not right

young pilot
#

yeah one amp is one coulomb per second by definition

#

ignore the other thing i said

#

you're not missing anything

#

Ampere hour is not Ampere per hour

#

Is what i want to say

#

1 Ah is a steady current of one ampere flowing for one hour by a battery

coral sundial
#

but why can I just fill it in if the defination is in ampere, and not A*h

young pilot
#

What does the question say?

coral sundial
#

a battery has capacity of 2300mAh and 1.5 volt. '1mAh means there is enough energy in the battery for 1mA during 1 hour'

young pilot
#

Hmm ok, and what is it asking to solve for?

coral sundial
#

and apparently, 1ma*H is the same as 0.001 * 3600 seconds.
which is what I dont get because its alrready multiplied by a time

#

they are asking me how much coloumb the battery has

young pilot
#

That's because 1 Amp hour is 1 Amp * 3600 seconds (aka 1 hour)

#

And 1 Milliamp is 0.001 Amps

#

So 1 Milliamp hour is 0.001 * 3600 seconds = 3.6 Coulombs

#

Your battery has 2300mAh

coral sundial
#

I Just want to play minecraft man

young pilot
#

2.300 * 3600 seconds = 8280C

#

So the answer is still 8280 coulombs as far as I can see

coral sundial
#

the answer is correct

young pilot
#

OK Let me just break it down for you

young pilot
#

The formula for Couloumb is
Couloumb = 3600 * Amperage Hour

And just for clarification Milliamperage is
1000 Milliamperage = 1 Amperage

Your question is asking for the Couloumb of a 2300mAh battery.

2300 milliamp hour = 2.3 amperage hour

So we know that we have 2.3 Amp Hours and we have the formula above for couloumbs.
Couloumb = 3600 * Amperage Hour
Couloumb = 3600 * 2.3
Couloumb = 8280C

coral sundial
#

But what is the timeframe of 1 ampere then? I am aware that its not something that just stays.
and with what I know. 1 ampere is 1 coloumb/s. is it 1 ampere per second then?

young pilot
#

amp hour measures capacity of a battery

#

your battery has a capacity of 2.3 ampere hours

#

it tells you how much amperage a battery can provide for exactly one hour

#

so basically, your battery can output 2.3A for 1 hour before it dies

#

thats why your question clarifies that 1mAh means there is enough energy in the battery for 1mA during 1 hour

#

but if your battery outputs 1Amp, it can last maybe 2-3 hours

#

and if your battery outputs 0.1 amp, it can last 20-30 hours

#

does that make any sense

coral sundial
#

yes that makes sense

young pilot
#

idk what your asking though

#

the question doesn't say how much amperes per second the battery outputs

#

or anything like that

#

wait, voltage

coral sundial
#

I just find the whole meaning of 1Ah vague.

young pilot
#

yeah it can be a bit confusing

#

because 1 amp per hour is not 1 amp hour

#

amp hour usually used for batteries and energy capacity

#

so say a battery has 10 amp hours

#

that means that if it outputs 10 amps, it will die in 1 hour

#

if it outputs 1 amp, it will die in 10 hours

#

if it outputs 5 amps, it will die in 2 hours, etc etc

#

amp hour divided by amp output is equal to the length of time that battery works

#

its Amp * Hour, not Amp / Hour

#

in this way you can find the amp hour of a battery as well

#

say you have a battery that outputs 23 milliamps and it dies in 12 hours

#

so the battery has a milliamp hour of 23 * 12 = 276

barren quarry
#

this is what happens when you make hex width depend on hourly casualties and api gets fucked

#

ooooh deeear

bronze rain
long raft
#

hex width depend on hourly casualties
wut

barren quarry
#

@long raft you can see here its thicker in shackled

languid harness
#

I would do the growth internally and not overlap into the other region

#

Because the border thickness between great march and shackled chasm is confusing

barren quarry
#

good point

long raft
#

thiccer is better

pure sierra
#

brrr

long raft
#

@barren quarry do you ever profile your javascript performance and if so - how? i find logiwaze to be clunky and slow because of all the javascript event calls and complexity of the paths/rendering and I'm looking to optimize it

#

javascript definitely aint my forte

barren quarry
#

i do most of my stuff on react

#

and there's a profiler plugin for firefox for react

long raft
#

ah damn

barren quarry
#

originally switching checkpoints in the timeline took a horrible amount of time to rerender and the profiler was really useful in debugging that

long raft
#

i tried just using the chrome debug tools but 50% of the time is spent in pointermove, which probably tells me nothing

#

im just using node and vanilla javascript

barren quarry
#

yeah react profiler is not that useful either

#

but it tells me how long it takes to rerender and thats good enough for me

#

i can just change stuff until it works

long raft
#

c# profiler is so ... unbelieveably good its hard to accept the lack of tools for web development

#

i think im getting wrecked on css style changes

barren quarry
#

console.log(Date.now()) is our best friend

long raft
#

really??

#

feels primitive and clumbsy

barren quarry
#

well there probably is something better

#

i just never bothered to look

long raft
#

javascript hurts my soul

barren quarry
long raft
#

i keep meaning to learn typescript but i never do

barren quarry
#

as i sometimes say, javascript with typescript and react is a cocaine whore in a lamborghini

#

its so much better and development is so much faster

long raft
#

is typescript gonna be a disaster with nodejs?

barren quarry
#

pure javascript wont tell you when you fucked up

long raft
#

well lucky for me my code is perfect the first time i write it

barren quarry
#

all of my systems run typescript including back end

long raft
#

typescript would be amazing just for autocomplete

barren quarry
#

yes autocomplete is dope

long raft
#

i realize how dependent i am on autocomplete for my coding

barren quarry
#

in pure javascript theres no autocomplete

long raft
#

it tries... when i use visual studio, but its more like "youve used this variable before, maybe this exists?"

barren quarry
#

and you have to go back to the file youre referencing and look up what the fuck did you define there

long raft
#

i spend a ton of time in the debugger in chrome stepping through line by line

barren quarry
#

vscode with typescript is just povar

long raft
#

god im afraid its too late for this project to start with typescript

barren quarry
#

yeah thats why i killed foxhole global

#

it was like 4 times the size of logiwaze and no typescript

long raft
#

oh jesus more than 4x lol

barren quarry
#

it was horror to navigate through

#

@long raft if you have a file with export const var you can go to any other file in the project, start writing the variable name there, and it will offer you to import this variable from that file

#

via autocomplete

long raft
#

well im using leaflet, so i end up having to use a lot of classes, or custom derived classes, and i just find classes confusing AF in javascript

barren quarry
#

we all use leaflet

long raft
#

do you customize it?

#

i mean ... with custom classes?

#

the stuff i had to do to use the leaflet router was ugly

#

and i dont think there was a lot of benefit, i had to implement most of the routing with manual code its not like it provided very much

#

its more like ... an interface for the routing but you still have to do all the hard parts

barren quarry
#

i have factory methods in which i put icon data and then it constructs the icon with the correct icon and correct events and correct coords

long raft
#

i had to make like i dunno 5 or 6 custom classes

#

like replacing default leaflet functionality

barren quarry
#

havent done that

long raft
#

like i thought it was a framework but it was more of a scaffolding

barren quarry
#

for me the hardest part was trying to marry react leaflet draw with redux

long raft
#

no examples either, hard to find a good example for anything i wanted

#

what is redux?

barren quarry
#

its a library for state management

#

like you have a giant global variable and you import it into different parts of the project

#

and define how it will be changed

long raft
#

is it actually helpful?

barren quarry
#

its everything

long raft
#

i feel like everything i did on this project was sloppy and short term

#

i feel like a real C programmer on this

barren quarry
#

this is the same data interpreted in a different way

#

it has to be stored somewhere

long raft
#

im so interested in copying the foxhole style for familiarity i forgot their choices of font and stuff are bad lol

#

yours looks so much better

barren quarry
#

there was this tv show called person of interest

#

idk if you heard of it

long raft
#

i have

barren quarry
#

have you seen it?

long raft
#

no

barren quarry
#

so basically in the later seasons there is this evil ai that controls the world

#

and the font from the screens of this ai is the one i used for sigil hq

long raft
#

lol

barren quarry
#

kind of an easter egg

#

@long raft so anyway, react components have their own state management and you could use that, but the problem is if you want to use props in an element several layers below you need to manually pass the props to each subsequent component, and it quickly becomes a nightmare

#

redux allows you to import data from anywhere without this headache

long raft
#

props?

barren quarry
#

Properties

long raft
#

oh

fickle aurora
#

oh and to solve an age old question of why would anyone use assembly these days... well, if you want to implement an interrupt/preemptive kernel, you want to be able to move the program counter to exactly where you want...which you can only do in assembly

#

I also solved the problem of why mingw 64-bit for windows couldn't allocate more than 4GB memory.. it's because libc was never updated to make use of 64-bit addressing using "far pointers", which is a shame... though whatever other languages fail in, assembly wins at

long raft
#

assembly is a shovel in an age of tractors

fickle aurora
#

you sure arent joking there

#

I successfully made a program in assembly to grab time from RTC over serial, and then output the data to a human readable form on LCD without using libraries of course and it was like pulling teeth

long raft
#

yea i imagine it would be easy a second time tho, right?

fickle aurora
#

I am already basically making a mini non-preemptive kernel on it, just a simple thing where I can interrupt a function halfway through to grab data from RTC, store it in memory, then return to the point where it was interrupted

#

you can do this easily in assembly because you can just store the last program counter address and just jump to it any time

#

for low level hardware this is not too bad

#

since ram addresses are 16-bit and the registers are only 8 bit, every single time you want to put data to sram or retrieve it, you need to store half the address in one special reg and half in the other, then call the special register indirectly, but copy and paste makes life easier, just the source code is very lengthy

#

if you use the stack... I learned the hard way... if you push data to stack and call function, pop the data, you often get corruption because the CPU randomly puts stuff on and takes stuff off the stack for itself, so it's only good for using inside the same function

pure sierra
#

um has something happened

#

api crashed @long raft @barren quarry @zealous sonnet

#

503 Service Temporarily Unavailable

#

reeeeeeee

zealous sonnet
#

it's probably being restarted.

pure sierra
#

it is now sometimes loading but taking like 30 seconds for that url

#

ok it seems ok now

#

it would happen the moment i try a do something to my site, and then im like freaking out as to what i did when its still not working after hitting undo madly.... hbeyes

barren quarry
#

is it back up now?

pure sierra
#

it seems so

long raft
#

Fingers crossed I'm not to blame for any reason, but also I don't need it to be up all the time

barren quarry
#

aaand my thing still crashes

pure sierra
#

@zealous sonnet can you check if it was a deliberate reset or maybe overload ?

barren quarry
#

i dont think its overload

#

ive been sending 23 requests per 3 seconds for many many months until i accidentally learned how to properly use 304 and etags

#

and the api worked fine

pure sierra
#

but its easy to think someone could accidentally code a indeffinite loop with no delay

barren quarry
long raft
#

still working fine for me

pure sierra
#

it was just a short thing it seems

barren quarry
#

event string renders events by looking for the nearest text label

#

api returned an empty array of text labels

#

zeroeth element is undefined

#

website crashes

pure sierra
#

me

#

Error description: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near ' '', NULLIF('0',''), NULLIF('0',''), NULLIF('0',''), , '' )' at line 2REPLACE INTO wars ( id,winner,conquestStartTime,conquestEndTime,resistanceStartTime,requiredVictoryTowns,warId) VALUES ( , '', NULLIF('0',''), NULLIF('0',''), NULLIF('0',''), , '' )

barren quarry
#

this error message tells me literally nothing

pure sierra
#

i guess i never accounted for the api failing

barren quarry
#

to be fair this war api failed all the time

pure sierra
#

i just never noticed

long raft
#

alter table wars add column shard integer;

barren quarry
#

for example

#

war report returns 0 0 0

#

everything is cool

pure sierra
#

yeah i aint worked out way to filter that

barren quarry
#

an hour later the map has a seizure

pure sierra
#

@long raft if only it was that simple

long raft
#

lol it was for me

#

i mean i didnt need a table just changed the api call

pure sierra
#

yea because all you do is api calls

long raft
#

stateless is the best

#

i really hate the tile seams in leaflet, im not sure if its a javascript problem or if ive cut tiles with a slight black border on them

#

need to figure this out.

barren quarry
#

i know the answer

long raft
#

do tell

barren quarry
#

this is probably due to fractional zoom levels

long raft
#

nah even whole zoom

barren quarry
#

hmmmmmmm

long raft
#

ive been suspecting its a partial pixel interpolating in the tile cutting process, itd be easy to check and probably pretty easy to correct

barren quarry
#

i actually dont see the seams

long raft
#

i see them in edge and chrome

pure sierra
#

whats the problem then wardenlol

long raft
#

eyesores eyesbleed

pure sierra
#

ocd kicking in

long raft
#

mostly i woudl be concerned if my tile cutting program had a bug

barren quarry
#

do you see them on foxhole global/sethfire's map?

long raft
#

yes

pure sierra
#

when someone in reaching trail gets run over after loop reset

barren quarry
#

@zealous sonnet the map list returns the whole list despite 4 maps being offline

pure sierra
#

reee

barren quarry
#

instead of not showing up on the map list they show up with empty item arrays

#

overwrite the existing item entries and fuck up the event string generating logic

long raft
#

weird my stuff rendering fine, lol for once i built something that cant be knocked over easily

barren quarry
#

there was a point in the war when a bunch of maps returned empty arrays

barren quarry
pure sierra
long raft
#

ooh i dunno about that.

#

theres more moving parts than youd think with all the road calculations

barren quarry
#

my limited imagination thinks theres a router library that does the heavy lifting

long raft
#

hah

#

thats what i thought too

#

it draws the line, sure

#

it doesnt calculate short routes, it doesnt decide which roads to show based on which servers are online and who controls them

barren quarry
#

does road coloring have anything to do with voronoi diagrams?

#

@long raft

long raft
#

sort of - i just used nearest point, so its the same calculation of voronoi shapes, but its much faster than actually testing if its inside a polygon

#

theres some complicated border calculations and stuff too

barren quarry
#

ever considered scaling line width with zoom?

long raft
#

yes. difficult.

#

might be more doable now that ive scaled icons, maybe i can piggyback on that code

#

certainly not a built-in feature to leaflet, ya know?

barren quarry
#

its much easier to do in react

#

although i havent done that either

long raft
#

you just have to build your own hook that scales everything matching a css class

#

and you have to call it for tons of events, layer added, layer removed, zoom, etc

mossy pelican
#

anyone here has experience with angelscript?

barren quarry
#

and whenever it changes the icons rerender

long raft
#

but its in leaflet, how would react handle that?

barren quarry
#

by using something called...

#

🥁 🥁 🥁

long raft
#

oh

#

i have often toyed with the idea of doing it in blazor

#

but i imagine it would be more trouble than its worth

barren quarry
#

depends on your project size

#

whats blazor?

long raft
#

react but for c#

#

not sure if thats accurate, thats my best simplification

barren quarry
#

i see

pure sierra
#

@barren quarry watchingw

barren quarry
#

Nice

#

our websites look more and more like a stock exchange

#

graphs, timezones and shit

pure sierra
#

we just need some currency for betting

#

it would be that hard

#

or trading

#

what can we trade ... ?

barren quarry
#

vehicles

#

but people wont like it

pure sierra
#

i think it has to be a seperate system outside the game

#

just within the website

#

unless devs add loot boxes @zealous sonnet

#

or in game api

#

something we can use to interact with the game

#

steam community market support when ???

barren quarry
#

someone invited the wrong bot

#

or fucked up the perms

whole iron
#

Hi, I wonder if the api can provide the server and people faction choice? @ dev

It would be ideal to arrange the players by category on the Foxhole Francophone discord, and avoid a game of espionage or potential trouble.

However, from what little I've read, it's more specific to the maps, and not to target person by person and specify their LIVE server 1 or 2 and their factions during that server and war.

It would be cool to have some sort of memorial of those who were present in such and such a war? the equivalent exists for other games on albion online for example : https://albiondb.net/search/ and that would be nice is to leave some grey areas, like not necessarily mentioning the faction/regiment or some sort of random thing on the information like "the game paper please".

Translated with www.DeepL.com/Translator (free version)

*If I suggest this, it's to leave some remorse to the old guys who have done some bad things in the past and in other cases, it's to know where they have been before and try to give them some information about their toxicity or to check that they don't lie on some details.

After that, it can be a tool to create an anxiety-provoking climate, like Eve Online and the big corporations that are fulls voyeur on it, I don't know, those are ethical and moral issues for you to see the pros and cons.*

languid harness
#

??

pure sierra
#

@whole iron there used to be memorials with players names and commend score for each war but it got pulled, maybe too big ? there is no player data like that available anymore, we do wish the devs would make it available, even if just post war.

#

so i was thinking about the multi shard thing, and sure it has its obvious immediate benefits, but i can see some messy complications if its kept, namely for example during update roll outs, as the devs will have to finish all shards at the same time to update them all, so everyone gets to (and will want to) play the latest version. so some poor shard/s will essentially get killed off regardless of game progression or state when the 'primary' one ends. eg #2 might have just started, a few days in, still 50/50, and #1 finishes and its update time, too bad #2 wardenlol Mattthink HBjoy

barren quarry
#

but theres no other way of horizontal scaling

pure sierra
#

well at the moment its unavoidable, but would just making the world bigger be better ?

barren quarry
#

yes and no

pure sierra
#

why no

barren quarry
#

imagine you want to accommodate 5500 people on one shard

#

you create a frontline with width of idk 13 regions

#

the next morning you already have a problem

#

because pop drops to 900

#

no way in hell you can defend 13 regions with 450 people

#

now here is why 2 shards work better - and this is how it worked pre-world conquest

pure sierra
#

but pop swing has/is always a problem regardless of shards or not, it just changes the scale not if or how bad it happons

barren quarry
#

everyone just leaves shard 2 and stuffs into shard 1

#

shard 1 is guaranteed to have enough pop

pure sierra
#

sure, but then shard 2 is essentially disposable

barren quarry
#

yes

#

such is its fate

#

you go to shard 1 for sweaty tryharding and to shard 2 for casual gameplay

pure sierra
#

it dont see that being healthy for people who play things other than pew pew on shard 2

barren quarry
#

you screw over way less people that way

#

if everyone is on shard 1 and pop fluctuates then the entire community is fucked

#

RED ALERT