#code-talk
2 messages ยท Page 28 of 1
yea i hear great stuff about rust
rust is freaking amazing
i wish we would use it at work
speaking about work, our production servers went on fire today
thankfully it was our old production server we wanted to shut off anyway in a week
since we've done the decent thing and migrated our entire stack to AWS two weeks ago
but we never finalized our damn database migration lol
ack
Nobody really knows what programming language they like from the get go. I liked Java in the beginning but hated it later. I hated C in the beginning and loved it later. All of that is beside the point. My main argument was to learn Data Structures, Fundamentals of CompSci with a Low Level programming language before you try to do anything easy and flashy. You will not get far with that knowledge. You can learn it form a book theoretically and apply it anywhere you like. It's just in my personal experience its easier to learn in C cause you are forced to understand everything while applying it.
i learned all that in BASIC and it was fine
also C is high level, whys everyone calling it low level now
Objectively I'd say its mid-level but people call it low level for some reason
C is good for readable code you can understand and debug simply, but it also will take 10x longer to do the same crap
theres no reason you cant implement your first linked list in java
I liked Java in the beginning but hated it later
i freaking hated java, and now i am in a love/hate relationship with it, mostly because our data access objects suck, we literally got a quintillion classes that form single data access objects to interact with our databases
yes everyone that has to work with java love/hates it
here's the thing - the language itself is not that bad, except that it's so fucking verbose
you hate it while youre using it, you love it when you look at c++
java has been ruined by people like myself who write shit code lmao
its also an ugly clumbsy language by modern standards
c# just blows it away in performance and elegance and capability
Oh I hate it because of it's performance. I mean my Laptop back in the day wasnt good but holy hell did my self made "Java Calculator" crash every single time. If he didnt crash the output comes out in 30 seconds
lmao
plus writing code in java is often wordy, like C
Ok I forfeit on my Java Calculator argument my Laptop was a Pentium 2 core tombstone of death

java UI programs were always funktastic
Can kill a person but cant execute Java in a VM
swing
that battleship grey sharp corner UX
not quite windows, not quite apple, definitely not linux, solaris inspired?
freebsd inspired lol
but java was amazing in the 90s and '00s
has anyone been writing kotlin?
can you imagine we all thought it would be the final programming language
they call it next-gen java, yet it feels so ...functional?
functional is whats hot now
yeah, but i strongly believe, when it comes to paradigms, that object-oriented kicks ass
Anything that reduces the numbers of code lines you have to write nowadays is hot
regarding teamwork, that is
a collection of interfaces and classes is easier to traverse to find the thing you are looking for over a bunch of undocumented functions
cant learn async in C
Did anyone here learn Assembly?
i believe that async/await made the community "dumber", since you ain't learning how threads work
yea after BASIC. talk about the bends
async is not threading, necessarily
yup
but for example
in a single-threaded language
if you await for something ,the whole thread is blocked
yea but thats ... not what async is
thats just tasks or threads
async will suspend when it hits a block and run code elsewhere using a saved state
so it can all be single threaded, code is jumping around
it is similar to the compiler trick they use for iterators
yeah, like in the JS event loop, push off all async stuff aside until the synchronous code is done executing
you can use async and multithreading together to do that stuff
i use async in single threaded applications, it works amazingly with the actor model
i love how elegantly go handles this with goroutines
yea ... i liked go too but its not ... real async
true
im not sure if internally it can work like that or not
i suspect they just spin up threads or use threadpools for everything
youll see in async programs just a single thread
At the end of the day we are Stackoverflowers
instead of learning new stuff, i think i've started forgetting the things i knew lol
The really fun part of coding is when a from from 2004 has an answer to my problem
form from* i cant write
like for example here, i forgot what async is, threads, just realized that i completely forgot what the DOM, shadow/virtual DOM is and so forth lol
i do a lot of gpu programming lately and its hell
its that perfect mix of multithreaded algorithm programming meets specific hardware optimizations
its all about the cache hits
I'd give more +1 for that but only one is possible
lmao
Junior Devs dont know what to google for. Senior devs know what to google for.
imagine if you could dump knowledge and open up new space
id wave goodbye to all my vb knowledge, netbios, php
geometry entirely
let me preface this: i believe i am the youngest one here, almost 22, got 1.5 years of experience in the field, currently a lead developer on my project (got lucky), and i am just scared to bits regarding my current state
overconfidence is a weapon
i feel like i am just not improving, yet i got promoted real quick within my company
and can't get around that lmao
But tbh over time I've learned it's about writing readable, nice, debuggable code which any human can follow. It doesnt matter if I forget how to do certain things
well theres the fundamental end game for a programmer, you get promoted out of the skillset youre good at
Oh god please dont mention php 
the peter principle is heavily in action in software
the peter principle?
promoted to your highest level of incompetence
no one is ever demoted, so the natural end is to be incompetent
reading about it right now
sounds interesting
now, i am even more scared that lol
have i reached the plateau?
like imagine youre managing programmers but you dont get to program anymore. now youre learning management skills, not coding
at 22? nah you have a long ways to go before you plateau
question for you folks
i think this is why militaries have an up or out policy
how do you motivate yourself to learn stuff, do you tend to learn things related to your project or you learn stuff because of fun, etc
if you arent getting promoted you are getting retired
i find excuses to use the thing i want to learn on projects i dont really need it on
also, how does one go about recognizing things that you don't know, but you should know
youll reach some level in code where none of the code is the problem, its your background in other topics, like mathematics
Money or fun motivates me. I have a company so either someone pays me for a project or I find a fun project.
IT knowledge...
Oh I just go on about learning everything tbh. Just open the documentation and have a real life appliance for it. If you dont have an Idea what to do just copy stuff that already exists
relationships with older programmers ...can help
if they dont poison you with C is for everything mentality 
Copying/Imitation is the fastes way to learn imo. I am not a very creative person so I just see what other people do
Only at the beginning 
Money or fun motivates me.
money was never the motivating factor for me, but at the same time i don't really have that much fun sitting down and learning new stuff anymore
i fell in this state of "depression" from which i cannot bring myself out of for some reason. i enjoy working, even though i've been stuck with this stupid JIRA ticket for two months (not due to my lack of knowledge, but due to not knowing the silly 12 year old codebase this code lives in lmao)
a feature*
thats ... a dark place to be
basically just rendering silly strings lol
talked to this senior engineer who write that hot garbage
he doesn't even know how to go about handling this lmao
good tooling makes all the difference in getting through those problems
Have you tried looking beyond that JIRA ticket? In a sense of looking at it like a stepping stone
how so?
Ambiton for anything bigger helps me
...the UI for said garbage is written using the infamous google web toolkit lol
whats that?
is it .... a bunch of javascript?
debugging javascript is so unpleasant
you write your markup in XML, and then have a bunch of java classes that handle the application logic
yup
speaking of debugging javascript
has anyone, ever, been able to hook up the stupid VSCode debugger to a Vue.js app?
or any freaking JS app for that matter
no i end up just using chrome's debugger
remote debugging is a hair pulling out experience
yea in the developer tools
you go to the source tab and you can set breakpoints and stuff
Was there any time chrome didnt have a debugger?
firefox too of course
its not as good as remote debugging but a lot easier to get to
Also I dont know about a Vue.js app but I have been able to hook up React.js app
Please dont ask me how I havent done that in over a year
That project in React is picking up dust
im always super impressed with vscode until i try to use it for anything serious
First IDE I used was Dev C++
visual studio is the best IDE ever made, im also a huge fan of intellij
Imagine the awe I exprienced when I first met VS and VS Code
When I have a bit more money I ll get myself the entire Jetbrains stack and try it out
WebStorm seems so neat
Are any of you guys working on some open source projects?
logiwaze.com but not really "working" on it
keeping it updated more like
imagine tiling program that nobody outside of this community uses
Oh is that clan neutral? Useable for anyone?
a couple small open source things
yea useable for anyone the code is on github and i hear its an eyesore
Oh Boy I ll have a look at it later ๐
the tiler program is short tho
https://github.com/NoUDerp/Tiler/blob/main/Program.cs
also unreadable
i think the worst code habit i have is using ternary operators everywhere
I think they are kinda okay if the naming convention/naming is on point and there are a couple comments here and there
i try to make them more readable but i really should just be avoiding them
But if not then just dont use it. I lose myself in my own code sometimes if i step away form it for 1 week
i try to do
condition
? iftrue
: iffalse
Wait lemme just look up some code of mine with ternary operators
How do you put a setentence or statement in that box in discord?
put 3 ` on each side of the text
you could even do
'''[language]
[code]
'''
and it will highlight the code
Test
Oh okay thank you
But I dont have the example anymore because apparently I've changed it everywhere for readability. Thank you old me!
based ternary operator
welcome
I cant code and i do everything breaks for some reason :)
I see the only information available via API is war data, is there plans on possibly adding user data? Eg. Kills/Deaths/Time in war/What wars participated.... (Could extend this to Hits, Gear lost etc...)
I think it would be really cool to see how you are contributing (or hurting) in the war... and also be able to share to others how you are doing. A lot of cool designs could be created from this too
For gear lost track it at death, not on drop as well
Could even create community goals/activities, Eg. First to 1000 kills or First to 20 mammon destructions
@rough cometfrom what devs have said about personal stats/level no
statistics are the coolest thing about a game sometimes
Do you know why they said no? It isnt like it is hard to implement
It isn't as simple as you think ^^
The API isn't tightly coupled to the gamez afaik it sits adjacent to it basically
And also its a very very niche use case and small feature and they are a small team and have to prioritise gameplay features or API updates. One of those will always win ๐
idk what you mean by sits adjacent to it. It is already known when you die, it is just the matter of updating the database with the count and opening up endpoints to get t he data
@rough comet while there would technical aspects to the reason, the main one is the development team don't want the game to become about building points or levels. You could hear this sentiment from Mark during today's dev stream when they announced the region activity log feature to help stop griefing
The eagle is in the nest.
wrong type of code 
Birb has fallen south ๐
The trees are puting up good fight against the birbs and the otan may be sending support ๐
Hopefully it will end soon and part 3 wont happen
Anyone know if there's an easy way to download msgs from a discord server into a .txt file?
I'm trying to create a silly AI application to auto-generate FOD comments, and I need to feed it data to train it, dug around the discord APIs, but not sure if I can use them on servers I don't own myself
asd
There's a thing called discord chat exporter
Which is an app to export chat logs
But legally you can't use it on fod
The app is considered self botting and for that discord safety team will twist your testicles
So the only legal way is to use a bot token
But ofc you can't install bots on fod because you're not an admin
So basically, "haha noo you shouldn't do it but here's how"
Yes
why is foxhole the only game i play that once the update is downloaded it likes to take another 20 mins just going through all the game files
its going through the 12 gig ZIP that contains most everything & replacing bits here and there
@long raft did you end up aligning the world, @tropic cargo might be going to have a go
nah i just did the one region, i tried a few others but found it to be very hard
ok, @tropic cargo might be going to just do it by eye, he's behind better map mod
how can it even be done by eye?
this is just to make the borders look smoother i guess?
yes, once you have the individual maps loaded/tiled in blender, adjust each's brightness and contrast to get them to hopefully match
what ?
theres not enough height variation on the borders
so youre not really lining things up, youre just messing with brightness only
what do yo mean ?
which way ?
if its a smooth slope along the border like / you can easily match the brightness and contrast along the whole border
then you have a perfect scale
but the borders are like ____
so youre adjusting contrast, or brightness, but you cant really figure out both
some borders have more variation, like the first one i worked on
there were two land bridges at differnet height values
but i think the devs have smoothed out almost all height difference along borders trying to get them to be level
so you mean the bordering edges within a region are not at same heigth ?
they are like all the same height
like if you are adjusting two images to be the same on the edge with brightness and contrast, if the border is a gradient, there is only 1 solution
theres only one set of numbers for contrast and brightness to make them equal
but if its solid colors along the border, then there are infinite solutions
still dont get you
you need a high and low point on a border to line it up
but most of the borders are just the same height
ok
the trick is finding a high and low point
no
the more pieces of the puzzle you solve, the easier it is to find different points
you can still line the edges up, you just wont necossarily get the height internnally scaled correctly to game if all 6 borders are like that
right, thats the problem
but i think you will be able to use all 6 edges to get it right
one may will linne up the next
that was my hope
i tried with like 3 and i struggled
maybe visually it is easier to see where these good spots are
i know the method i have is sound, but maybe my tools are too primitive
any way, i wasnt rushing it it, but @tropic cargo is keen
deadlands is the greatest example of this problem ive seen so far
did any of you see that ms released a web version of vscode? so it's vscode but compiled to run in the browser itself: https://vscode.dev/
nnope
i thought it was just code server, which is vscode running on a server through the web, but this is a full webapp
and its a progressive web app so you can install it on your phone/pc easy, should work offline
theyre even using that file mapping web api, i want to use that for a video editor. makes remote files a seekable file stream
i wonder if anyone has a good use of that to replace remote file sharing systems like ... samba, nfs
oh looks like its already integrated with github.dev
evidently you can link people directly to a code editor with your source open now
that's awesome: https://github.dev/NoUDerp/Tiler
or maybe its theia by eclipse
Yeah but i don't get why you would want to use the web version
vscodium is better
Does vscodium run in a browser?
why would u want that
i feel like i just explained that
yeah but it didnt really change that fact
why would you want to code on a web browser on your phone
why would you want more than 64k of ram
I use an app to code on my phone.
I don't have the patience for that I just bring out my laptop at that point
a true madlad
also a browser code editor sounds really slow
its not
ok that runs on a server tho. not in a browser. thats client/server
thats through a browser
does anyone knows, definitively, what counts as an 'enlistment'?
someone joining a map for the first time
define that
is it first time since initial deploy
is it first time since restart
since war start
Is that assumed knowledge or did a dev confirm it at some point?
that it resets ?
that the enlistments count from reset
for home region only
and the rest of the regions are from war start
we've graphed it, home region is on reset timer to reset its whole state, the timer is mentioned when you join, this includes the enlistment count which you will see zero at that point too, but the game maps dont reset
the only thing you could try and confirm with devs is if deploy from home vs map border for first time since war start counts as same which we assume it does
you could also verify that it is since war start very easy
just find a empty quiet map, look at the stats, join, quit, restart game and rejoin
make a support tiicket
really it should be taken out as its useless or make it unique across the world
eg
just test it ur self and then tell us ๐
they might not even know
just pick a backline map
nope, Ive barely even glanced at the API documentation and contents
@twin glacier Most basically, you can kinda interpret the "deaths per hour" of a map as a sort of seasonal factor variable system (where the "season" is the hour of the day)
Here is an example of a season variable system, using textbook sales per month
Replace "month" with "hour" and "textbook sales" with "deaths" and you can kinda see the idea here
I dont have anywhere close to the programming confidence to try to understand the API yet
I can see how this would work in foxhole but there are so many variables over so many time periods
textbook sales have like one time scale over which changes occur
SO yeah that's the hard part,
Some things foxhole deaths depend on is the front being active, how active the frontline is, if there is a clan making an operation, and even the population of the world map
and technically speaking the only way to get around it is to have a FUCKton of data so that you can observe short term and long term variables and monitor their effects
but foxhole is not consistent at all
its like trying to analyze a random walk
This is true, Foxhole is not a stable process, Foxhole in general has a shit ton of special cause variation making it a system that is not in control
the moment you introduce human psychology into the mix, it kind of oversteps the bounds of almost any currently available algorithm or data-modelling procedure
as far as I can tell...
It might be valuable to use forecasting to figure out future deaths/hr to understand how badly a frontline needs shirts using historical data to construct seasonality and then using recent hour deseasonalized data to forecast future deaths/hr (with, for example, a 3 hour data point forecast analysis on deaths/hr)
i just realized that is alot of jargon sorry lmao
basically you could look at how many deaths happened in the last 3ish hours and figure out for the next x amount of hours how many deaths we expect
(3 is an arbitrary number btw)
seasonality = long term predictability? is that a correct definition?
@twin glacier See the Pins if you're interested in the API I wrote a wiki entry explaining it.
To borrow the definition,
seasonality refers to the presence of variations which occur at certain regular intervals either on a weekly basis, monthly basis, or even quarterly (but never up to a year)
literally seasonally, sort of...hmm
You could look at daily or even hourly seasonality
so essentially long term predictability on a set timescale
something might have a pattern that is hourly, something else might have a daily pattern
etc etc
Daily patterns would depend highly on player count
However hourly patterns are highly seasonal
so then if something is deseasonalized then it is for lack of a better term "raw"
and without context
so using "deseasonalized" information you try to predict future information
Yes
It is essentially taking the data and making it ignore the seasonality of when that data was taken
gotcha
So like
weather and climate seem like good examples tbh
weather fluctuates hourly but on a scale of years you see much slower trends that are still technically reflected in weather
The deaths/hr for 3 PM is a lot higher than at 6 AM in that graph
just in spurts or blotches
But if you wanted to use the deaths/hr of data points at 5, 6, 7 AM to predict deaths/hr at 9, 10, 11 AM you would deseasonalize it
Ive noticed that peak population seems to be about 2 pm central US time
and the trough around 2am central US
I am pretty sure seasonality got it's name from the seasonal nature of places like ski resorts and having to forecast for them
yeah
Example taken directly from my lecture lmao
You know now that I think about it
You could probably use forecasting to figure out your expected usage of shirts/hr for something like a LS OP
Which definitely sounds like a useful application
Lmao
this is literally impossible and you fucking know it
I am going to afk on a barge to prove you wrong
Fuck this actually is a more practical application than what I was thinking about
Foxhole has taught me real life skills and I am utterly fucking terrified to bring it up to other people
Foxhole has some amazing things strapped to it
use it on job apps
Human psychology, data science, all sorts of shit
this game taught me leadership skills, how in the fuck am I supposed to explain why I have some pretty good leadership skills
"Experience leading groups in high stress situations"
If you're applying for internships or entry level positions companies fucking love it when you can show you used something that is related to their opertations for a passion project
Unironically using foxhole as a passion project might count
holy shit we live in a society
gamers are the government
look, if the furry community stopped doing internet backend stuff, the internet would literally stop working
For the first internship I applied to (and got) part of my resume had a bit on how I used optimization tools to create a solver that gives you an optimal engine configuration for a gaem
(i didn't mention that it didn't really work all the time but that's neither here nor there)
And there's tons of programs, mostly open source, that are maintained by 1 or 2 people as passion projects that if they stopped working on it would lead to massive internet failures
....furries....are....the government?
internet isn't run by the government
or is it
Getting to be more and more so as big cloud players get bigger, but nah
Lots of important programs & libraries are maintained by random folks in their offtime just because they want to
It's Xfinity now, so please forget that Comcast ever existed. We are now Xfinity, with no relationship to the brand or company called "Comcast"
comcasst
โขโขโข-โขโข-โขโขโข-โขโข-โขโขโข-โขโข-โขโขโข-โขโข-โขโขโข-โขโข-โขโขโข-โขโข-โขโขโข
i dunno about massive. it might be a slight hassle to fork their projects and modify them when needed
sorry old message
Yeah but think about how many other projects are dependent on those projects
and having to update the dependencies for all of them
i know but just because they get abandoned doesnt mean they immediately self destruct
most of the reliance on this stuff is because people know they can extend and carry it if they need to
i think its a lot better than relying on some servicing company you pray doesnt go out of business
Is the API down?
Within the api is there a way to gather information on the current supplies in a certain region(/base)? I suppose that would be a bit tricky as you could access it from both factions than, but accessing it from your own faction is beneficial
there is not
and frankly there shouldn't be
Ye I figured and kinda agree
@calm remnant See Pins for API links and documentation.
Rather than asking, try and find out first ๐
I've seen the pin to the wiki documentation but couldn't find for sure. And currently not setup to test it atm ๐
hi!
wanted to share your very cool render here
is this height map stuff?
yes
ok
he merged them all in photoshop
in photoshop? hm
wow
even added the rocks !
that looks rather amazing
the water and everything wow
@barren quarry
yes I levelled everything with contrast/brightness settings
so its, uhh, forgive me, like eyeballed math?
Beautiful
and added the mountains that were missing yes
here
frankly i think it will look amazing with the unprocessed textures
looks like you carefully did the water too, the water cutout is really impressive
yes the water depth was not useful I copied the blue color directly on the height map by changing it to black
yea i did the same, but simply choosing a color doesnt do it great, you clearly did more work beyond that
e.g. red river doesnt match the water color
maybe it does on the processed maps hmm
@tropic cargo can i use the image hayden posted on logiwaze?
heh its normalized too nice
yes you can of course
you should post that rendering on reddit, get the karma you deserve
is sentsu your in-game name?
I'm there yes, I'll post it ๐
good
yes I am in the 11eRC but currently on break
did you do that render in ps or a 3d modeller ?
it's a screen of the viewport in Blender
its surprisingly cool with the rocks at that max height
i imagine in reality the rocks are not the same height, but it looks awesome in that rendering
so sentsu, any chance you ... have record of the contrast/brightness adjustments you made for each map? for the sake of rerunning it in the future if the terrain changes
next logical step
im kind of ready to automate it if i had the numbers
I still have all my adjustment layers in Photoshop, I can quickly replace the map if there are any modifications of the terrain to come
not that i need to rerun it
i think a lot of us strive to make things reproduceable because they change stuff all the time
like roads, omg if theres a way to automate road detection
im wondering how that map mod has road colors, im wondering if the road ID is hidden in another texture or something
yea i mean .... when they changed roads, in the original dev branch they had 6 colors for the roads (3 types), one for snow contrast, one for non-snow
but by the time it went out of devbranch the roads were all colored orange
and the road color variation I did by hand based on LogiWaze
oh ok
i try my best to keep them up to date, when they add new roads i check each one in person
but i think they also change roads that already exist, so those are harder to find
i thought maybe you had figured out a way to identify the roads programatically, but its logiwaze? lol talk about orobouros
i do keep them all as a geojson file tho, so they could be converted to line segments for easy re-rendering when they update
or like, imagine if they were drawn but really wide, and then that was used as the replacement color of the road color
yea it would be easy to convert the geojson to svg
I could be interested if there are still new updates of the map indeed!
yes I update it like every 6 weeks roughly
ill make a note to export SVG next time for the roads and save it
next update april 1
ok thks!
@tropic cargo holy crap thats awesome ๐ฎ
who was it that wanted to 3d print this map
making a board game? ๐
really not a job for a resin printer tho
would be pretty cool to have that as a small mini
or maybe it is, actually. omg
i shall try it this week maybe
i know the bottom is gonna warp tho
maybe if i put it on a huge footing
so many possibilities, very cool! great work sentsu
Wow
Okay will see how much CAD time I have in the next few days
Because I might be able to laser a map together pretty quickly
Yeah Iโve got access to laser engravers/cutters
how big can it be if made with a laser?
do we have a sense of scale yet? like is there a way we can relate brightness to actual physical heights?
how would we do that even
truck for scale?
perhaps some trick with binos
Max I could do would be 40x28
inch ?
years?
Inches yeah
28x38 then (i think map is 5.5:7.5)
pretty close to max size then, wow that would be awesome looking
that smoothing around deadlands is weird.
i wonder if it was a first attempt at joining the maps or because of some inherent difficulty in being the center piece
i think maybe it was just the first way the devs smoothed out borders deadlands has more variation than other maps
Damn
hey coding nerds if you like that kind of thing. here is a game to look at if you have not all ready played it or heard about it.
OUT NOW ON STEAM: http://store.steampowered.com/app/365450/
Hacknet tells the tale of Bit, a hacker responsible for creating the most invasive security system on the planet. When he is murdered, his failsafe kicks in, sending instructions to a lone user who can help unravel the mystery and ensure that Hacknet-OS doesn't fall into the wrong hand...
I do not own ANY of the songs from the game, just a fan who uploaded them so people can listen and enjoy :D
Be sure to buy the game on steam and support the developer if you haven't already http://store.steampowered.com/app/365450/
You can also get the soundtrack on bandcamp https://theotherworldagency.bandcamp.com/album/hacknet-ost
also a killer sound track . There is the original game and sum expansions . puzzle game basically . also if you have fallowed Hacktivism and other 4-Chan operations . There are memes in here you can pick out by reading through it all. Easter eggs. The in game names and conversations are fiction but sum are of real life events.
jinx we are actual programmers
doesnt mean its not fun lmao and its mostly a cli game anyhow ๐
@long raft
?
what the username of the guy that got the height maps originally ? i thought it was rust somthing ?
Yes rust
and would like home regions too
@tropic cargo made some greatness
can you at him
i cant find him
maybe he left
Slick
im going to use them on my site
No hes here I'm sure
instead of warapi assets
@glad whale
found him i think
frog man ?
@glad whale , @tropic cargo is interested in home region height maps
Can i get a copy of the contours as a layer to use on the unprocessed map?
of course I will share this with you
do you prefer that I share with you the lines in one big picture of the whole world map or the different hexa maps separated?
@long raft
1 world is best
actually i will need that too, as i did add a topo toggle on request
@tropic cargo Updated the link in the pinned post with Height maps
Added the Home regions and ran all other regions thru the script (in case if there were any map changes)
Ok thank you!
do they have goat legs?
they are a furry
Just realised this is code talk lmao
Skill issue
indeed
Why they summon a horse leg while swinging up though
oh I just drew a leg on one of the frames (My friend asked me a question relating to digitigrade legs)

Remi Gallego is amazing, you may know him better under his alias "The Algorithm"
whats this ?
Remi actually wrote code to transform is logo into MIDI
yeah, but i meant his post specific
I think it's pointing out the big hill where Callahan's Eye is
just did taxes, i made 7000% on my bitcoin bought in late 2016
2016 is like after everybody already thought they missed the boat lol
I decided to use a javascript canvas and bootstrap to make a map based artillery calculator. Let me know if you have any suggestions! https://fharty.com/
do you have the formula for it?
<:"?>">"?>"?>""
""}{"??"?""}"??""(code talk)
its client side ๐งโ๐ง
i know but ive never seen anyone publish the formula for it (with wind)
i remember sprout claiming versace had the formula wrong
yea i mean that is just a formula without wind
yeah wind is going to be a pain. Need to be able to set the direction and the force (which I believe is currently unknown??). Probably going to need to sit in the home region and hope for lots of wind conditions to try.
or ask sprout
i guess he worked it out but didnt really share it with anyone i know, but since he doesnt play anymore...
wind or no wind these things are always cool to look at from the surface and actual code
@tropic cargo or anyone else who wants it, I'm keeping an SVG export in the logiwaze repo of all the roads now:
https://raw.githubusercontent.com/NoUDerp/LogiWaze/master/Roads.svg
Is just game code related or general coding discussion?
anything you can get away with
it tends to be game related because it's in the discord, but everything coding related is allowed
i see
wanna colab on any future projects? I was wanting to make something Foxhole related, not sure what tho with the limited API.
How did you extract the roads?
I am creating a github repo to try and store all Foxhole projects/coding resources, please dm me if there are any projects I should add to the list.
theyre just drawn. over years
some of them still need fixing after all this time even, i wish there were some easy way to extract them all
Not to discourage, but someone already made an updated list with a lot of Foxhole projects from the community
List of (awesome) foxholegame.com tools - mostly for your browser. - GitHub - pogobanane/foxhole-list: List of (awesome) foxholegame.com tools - mostly for your browser.
I think there is a way using open-cv to extract roads
better than mine tbh
what do you mean?
oh just drawing the roads. well i identify their type too
I worked on a team where classic image processing + ML was used to extract road features from EO sattelite and SAR imagery
yea but the data isnt in there you have to go see in person
*satellite? that word always trips me up
it would help draw them, but not label them i guess
not to my knowledge, and it would only be somewhat helpful
I dont know the specifics but it was opencv plus deep learning
i fear it would take longer to train a classifier than just hand draw everything 5 times
I'm sure you could do some sort of transfer learning to speed up training
if a pre-trained model exists
you did most of Logiwaze right?
all of the code, about ... 65% of the roads
I'm not very well versed in node.js, I made a basic app in express that did some midi stuff, could you point me to the file that actually serves the map tiles?
serves?
I was trying to figure out how the server loads the times. Also how is the server run? Did you just deploy it to AWS?
there is no server
oh it's all done client-side?
yes. its hosted on github
ahh ok
you can just download the repository and run index.html and it works
the tiles are all in Tiles\
which part of the API is loading the tiles?
I guess I am confused, I thought node.js was server-side
i use node to compile the code to a single js i can include in the index.html
node is not only server side
its webpack tho
ahh ok that makes sense
a lot of the code was above my understanding, I was just wanting to implement the Foxhole map in leaflet as a fun project in React
yes its messy code too
I figured the Logiwaze repo was a good place to look
it is leaflet tho, but dont use logiwaze probably as your example
i rewrote a lot of the leaflet components for it
I dont understand a lot of the more advanced patterns in Javascript outside of like basic functions and stuff
ahh ok
its very convoluted
it turns out drawing tons of roads is slow and i had to cache it as rendered raster tiles
yea oof javascript is terrible, hated working in it. i should have used typescript
how did you get your background in this if you dont mind me asking? I wouldn't even know where to begin for pathfinding on roads like this in Javascript
oh the background is just the background image taken from the game assets
I usually use Typescript for work but use Javascript for small projects since I never do anything that needs long-term maintenance
pathfinding is ya know ... 2nd or 3rd year college CS algorithm
no I mean like your learning background
its djikstra's algorithm
did you just generate the nodegraph yourself?
I assumed you used some sort of library for pathfinding the roads/generating a nodegraph from the roads data
well there was a plugin for leaflet made by the author that provides routing. but ... its not very good, i had to implement all the difficult parts myself, and now im locked into this dud of a plugin
ahhh ok
malarthyn and i drew the roads in QGIS
yeah I just dont know the details of how you'd generate a nodegraph with Dijkstra from the road vector images
save as geojson format, some editing in the build process, and they get imported as javascript objects
so you read the geojson and you add them to a graph data structure
which parts are the nodes? the end points of the roads?
or all of the actual map features?
its basically the contents of the SVG
ahh ok I'm unfamiliar with that file format, I know it's vectors so that makes sense
yea its groupings of line segments
I also saw a voronoi method, what is that used for?
really? hmm i dunno maybe i was going to voronoi i cant ... remember
to my knowledge it is not used
voronoi would only be used to create the color overlay
i went with a different method for that
ahh ok
gotta say I'm really impressed with this project, it seems like a lot of work went into it
im not really a web programmer
graphics or data programmer
like data science?
is this like visualization?
I guess I dont know enough about either domain
uhh hayden started the project i just kept working on it and made it a thing
to me data is like classificaiton, regression, prediction
yes all of those things
graphics is like OpenGL, Vulkan, DirectX, etc
but not so much in presentation
ah ok
to me, opengl and directx are just like ... display libraries
I wouldn't discredit yourself, it's good work
i do a ton of work in cuda/opencl now
oh ok so like actually writing libraries or implementing them?
I have a friend who does similar work I think, research at samsung with Nvidia architecture or soemthing
lately ive been doing video filters
nvidia is so dominant in this area i really should buy stock
any examples?
its probably cheaper than a video card
nah no examples logiwaze is my only public work i think
yeah I noticed your github was pretty spares
sparse
I guess you cant talk about it then
maybe i should fill it up with more small projects
I was trying to look through the code because I dont understand most of it
malarthyn had a lot of feedback and was right about all of it but i dont have a ton of time to work on it
but the SVG->geojson makes a lot of sense, that was a big piece of the puzzle I couldn't understand
and pathfinding from there is trivial
I still dont understand how the SVG roads are overlayed onto the tiles
if you draw those roads every time the user zooms or pans, its agonizing, you can see the vertical refresh happen, its like .1 fps
I guess if the tiles and webp or whatever format the roads are both have geospatial data then that gets taken care of automatically
are the roads not their own tileset?
a nice solution would be to pre-cut the roads into segments
since they are a vector, couldnt't they be memoized and the browser just redraws them every zoom?\
yes but its slow
drawing that many line segments is rough
theyre being rendered by the browser, with anti aliasing and scaling, all the svg rules
is there a reason why you dont save the roads as a transparent raster in qgis and then tile them?
if i saved them as raster they wouldnt be useful for routing
and then load them into leaflet the same as the map?
oh right because you're doing it all in the browser
they could be done mathematically ...
but it just needs the geojson right?
for example, the build script includes an operation to split roads that intersect borders
i suppose that could be done for squares that represent tiles, and grouped together
sorry for asking so many questions
im basically doing this on the fly, but it would be faster if it were precalculated
I am just curious why the road graphics cant be decoupled from the pathfinding logic
i guess they could
is the geojson generated each time you calculate a route?
well the geojson is just used for storage as a file. theres an in-memory version of the roads
that doesnt really change
but the startup checks each line segment against a grid to separate them
i could reduce startup big time by taking that out
oh to determine which chunks of the svg to render?
yes
I dind't really understand any of the bash scripts
I dont know bash, I'm a fake programmer
yah bash is unreadable
worst language ever. impossible to improve it tho and make it backwards compatible with shell interfaces
god i hate powershell
have you ever used windows terminal?
every day
also if you wouldn't mind, I would love to help with Logiwaze
I've only been out of school like 2 years so I'm a noob but this is somewhat similar to a project I did at work and I always need a programming project to work on
im uhh not actively working on it very much
im doing small updates like every 6 months at this point
people make suggestions that are good but maybe too big for me to work on
I'd like to try and see if I can convert the road svgs to tiles or something
or if it's even possible
its very possible
it builds on Windows, right?
uhh
I (unfortunately) use windows at home
I can throw it in a container I guess
yea i just use the ubuntu install for it
i imagine the setup necessary for logiwaze build would be uhh...
I could probably just run it in a devcontainer so I could get hotloading
sudo apt update && sudo apt install -y spatialite-bin gdal-bin npm nodejs
and the build is
npm i
npm run debug
and whatever issues come up with that...
but if i was going to segment the roads, lets see, i'd run the build script once, and it would make the Roads.geojson file needed for testing
is anyone else active on the project? I see there is a PR out for the roads on the new tiles
and I'd make a new .js script that segments the polylines, they have to be tested against a rectangle shape, and if they intersect, the line segment needs to be broken and placed in all the grid squares it crosses by piece
uh no i dont think anyone else works on it
i didnt know there was a pull request
I was thinking I could just open the roads in qgis, save them as a raster, then tile the raster and serve them the same as the map tiles right?
uhh no
and then for pathfinding I'd just need to generate the GeoJson at the start I thought
yes
so that would work for the background, the road quality, yea totally
I assume leaflet.js uses a TileProvider object or something similar
but the warden/colonial roads on top are done dynamically
I have only messed with Cesium
those cant be pregenerated because theyre current
ahhh ok that's a good point
how is the data stored for the colonial/warden control?
I mean I guess it could be done with raster tiles but it would lose fidelity
since the tiles have to be square
and at a certain zoom level you lose the granularity
i saw a suggestion recently, route to nearest VF
its a great idea, and i can sort of envision the UI for it
but when i started building it or thinking about it, ran into problems
do i assume they are warden if the starting point is warden?
how are you coloring the roads btw?
Maye have the user select their team initially?
like their ownership?
on a splash screen
lol nvm then
so i thought ok, find both routes
but often tanks, looking for VF are playing in uncontrolled areas
and its not ... tankwaze
how are you coloring the roads again? You said voronoi wasn't used?
but if i could uhh take Roads.geojson, and split it into grids, and then identify their bucket on each segment it would reduce loading time
i use a kriging method
its the same method that does the overlay colors
road control is determined by the values determined by the variogram
the variogram is determined by the control points taken from the API (town halls, etc)
if we had rasterized roads, could we use that to generate a mask
but it changes every 5 minutes
so roads come in as white and get multiplied by the mask to change the png to green/blue
yeah at the same frequency as the updates
I'm not familiar with doing image manipualtion in js
yea interesting hmm
but the coloring data is a geojson right? like a polygon?
reading the variogram stuff, this is way outside my domain lol
its not as complicated as it seems
control points -> variogram
then variogram x location = value
I haven't had a math class in so long that it's difficult for me to know what's going on
but I understand voronoi so I get the basic idea
why would that require 3-6 raster layers?
so if we are using canvas overlay properties to sort of ... fixed pipeline our math, the multiplication
i need to show warden roads, colonial roads, neutral roads, and then 3 tiers of road quality/type under that
ahh ok
so 6 masks
that might end up taking just as long as the svg then lol
it might, the svg only needs to be re-rendered when the user scales 2x
not sure how fast image multiplication is in the browser
or if they pan and it comes into view
its decently fast, but 6 overlays kind of brutal on mobile devices i suspect
actually I would imagine loading the png is probably the real bottleneck
although, maybe not
im doing full copies of everything the user sees to an invisible layer for the purpose of copy-paste
but if that were multiplied by 6, oh god
the biggest bottleneck is uhh loading the roads
yeah it sounds like the raster would be more trouble than it's worth then
which includes the api and calculating the variogram and routes
i dunno, drawing svg is very painful in some cases
I'm glad I've never had to work with SVGs ๐
if you zoom way out, it has to redraw all the svg at the same time
it would help a lot for zooming out. its something to consider
but id want to see proof of concept before such an expensive investment
like id need to see the canvas operation working properly
and id probably need to get a sense of its speed
yeah geojson is a good format, but SVG is a disaster
you'd also lose detail on the really close in zooms
its so insanely complicated that no svg renderer seems to properly support the entire feature set
i think this method could actually improve render quality, currently everything is rendered half quality except the text
i had full HD on but it killed phones
they have a lot of pixels and not enough CPU to support it
its an interesting idea id never considered tho, just need to know how it would work in detail at the overlay level
I think it wouldn't be too bad except re-coloring the pngs on intersection
the pngs come in with x_y_z in the url I assume, which can be converted to geojson bounds easily enough, it has been a while since I did computer graphics but intersection should be pretty fast
I guess then you'd have to figure out how to take the intersection values and multiply every pixel in the intersection by whatever color you want
but that would ideally be the end of it
if there was some way to make advantage of all the colors in the pixel to reduce it to like 2 layers
im gonna think about this a bit
ok yeah lmk if there's anything I can do
I'm very much a noob but like I said this is sort of similar to something I did a while back
ok
@unreal cloak it seems like it would make a lot of sense to render at least the road qualities as an image, if you can figure out how to make a script that renders the roads.svg (or roads.geojson) to a png, it would be like half the work
no urgency, but if you do, ill try replacing the current drawing code and see what kind of performance gains are had
ok I can do that
an easy smell test might be to disable the SVG's and x6 the number of tile imports
if the performance is better than current then it would be worth it
its gonna be x4 at worst, as i think more about it
I think the color multiplication will require an SVG and use CSS
but the SVG would just be a polygon
I'll have to look into that
that's not my strength tho
leaflet is just a canvas right?
uhh ... i think its got 2 ways
canvas and svg i think
can use an svg canvas
but drawing svg is just ... slow. its hard to do it well live
hmm ok
I guess we'll have to figure out the best method if we ever get that far
is the geojson for the actual pathfinding just create once or is it created when the path is requested?
I'll have to play around with the repo my self
it's created in the build i can send it
i dunno if theres any node packages for rendering svg to canvas
yeah sure thing
ok so all of the pathfinding logic is decoupled from the rendering then?
yea
ok I can try tiling those things then
Looks like you found something to work on! ๐
yeah lmao
Guys I dont want to sound political but how do you center a div
hi @chrome maple
theres a couple of ways
the old skool way in margin: 0 auto;
the more recent way would be with flex
Okay this is too much information, it's a really complicated topic so I'm gonna go to stackoverflow
Atleast those guys respect newbies like me
wtf ? i literally welcomed you and gave you the simplest answer you will get, ffs, but here you go simpler:
<div style="margin: 0 auto;">content</div>
Did you just use my own bait against me
Yes... That was a joke
ok, its just funny as one of my best earners on stackoverflow is centering a div 
I thought the whole stackoverflow being positive for newbies who don't Google the shit out of their question would have sealed the deal
But hey thanks for answering the questions even when "there are no stupid questions"
eh, stack can be kinda brutal on noobs actually, particularly the sub stacks like server overflow, i get banned there just for asking questions....
Yeah thats the joke again, damn im making these fly over your head
on a different note, also I noticed stackoverflow recently stopped accepting "answer your own question" if you arent asking a question, submissions, i used to like them. ๐คทโโ๏ธ
All jokes aside yeah im suprised you didn't get flamed for replying to a guy with a genuine reply
Typically the answer to most stackoverflow stuff is "duplicate thread, this question has been answered before"
or, please post your code, which is legit, as some people expect you to be mind readers to know what they are trying to do
- uninstall safari
- ???
- profit
- stop being a web dev
- ?????
- happy life
I have a couple questions: Is each square 125 or 126 meters? Also, each line on the grid is 2px thick, do you measure from the inside or outside line?
125
I'm barerly starting to learn coding at school and i just wrote code so bad it kills the kernel
*don't worry, i'll ask my teacher for help
lmao I had an AI class where we would upload AI to compete on a server in a videogame and my AI crashed the server by taking up all of the memory
When https://www.reddit.com/r/redditdata/comments/6640ru/place_datasets_april_fools_2017 comes out for 2022, me (and some of the other /r/rust placers) are going to build a visualizer for it using rust
so VB got wiped in the end? cannot even find which subreddit they were from
i saw rust and c++ and i think i saw c#, didnt see any other languages
Python was around
makes sense. i would have also thought Go
We didn't see any go, rust might be one of the newer programming languages but we have a very central community to coordinate
Most other languages are very scattered
This!! this is what I was looking for
I was wondering how they built this thing with such low latency on the updates and high-traffic
Redis and Cassandra, I figured they had to be using Redis
hmm cassandra ...
didnt know anyone actually uses that
scylla came out and it was way way faster i thought everyone jumped ship on the java version
i see there are places to download an image for every second, etc
i guess i should have known somebody would collect it
theres going to be at least a handful of dissertations written about this year's

so you won the game? 
I think Discord does
Or at least they did circa 2017
No we got our butts kicked
We did burn down a locker with our robot in it on accident and then won that competition
thats wild lmao
Of course you did, I could also get first prize if i went into the contest with an incedinary bomb
๐
Anyone know the formula for the inaccuracy of artillery at different ranges?
Or know any resources for that stuff?
I have weapon selections and min/max ranges now for https://fharty.com I want to give an estimated accuracy zone
@thorny spade care to share artillery formula?