#code-talk
2 messages · Page 30 of 1
oh i think i would, ive known microsoft employees, they impress me
Meta pays a ridiculous amount but the reviews are mixed
I always dreamt of working with drones actually
sun/oracle employees impress me greatly also
Or robots
yea meta does not impress me (from a computer science perspective) lol
Well actually I guess Principal devs maybe
I’m basically an infant
Sun/Oracle people are OGs, actual wizards
yes actual wizards
I saw they are hiring compiler engineers on Linkedin
Not sure what for
java 2
lol
i remember when microsoft was hiring huge for windows phone
i figure oracle is on its way down, but i am still impressed with the reputation like ... i dunno bell labs
when i bought foxhole my excuse was to learn how to actually speak english, but i ended up not saying a single word in vc since i bought it
It’s amazing to me how nearly everything traces back to bell
actually speak vs write? because your written english is flawless
thanks, but i already suffer from stutter, and my spoken english is really bad
How old are you
hmm foxhole would be a good place to practice huh
one time i tried to tell a guy in a fixed AT i had brought him filters
and the words just wouldn't get out of my mouth
That does sound a bit frustrating
If it’s any consolation a guy I work with has a stutter and english is his second language and he’s way smarter than me and younger lol
interestingly ive heard a lot of people say they overcame fear of speaking in foxhole, and it helped them become more social, but also theyre probably coming of age and that might be more the cause
I'm deathly scared of using micro with strangers cause I have stutter issues too
damn
i sound completely normal and i never use the mic 
I always wonder how much damage to social skills Covid caused
i cannot imagine, seabass. im sure its been rough
Especially for kids that were about 13-14 when the pandemic started
it has opened my eyes certainly that i want to work from home not an office anymore
I have been living like it's covid since 2018
Being in high school at that time was shitty but definitely a necessary stage in my social development
yea schooling ... has been awful i bet. but then again high school was tough for me, maybe its a blessing not to be there in person
thats just foxhole
its been a huge part of my memories since i started playing too
its a unique experience that has taught me a lot about experiences i didnt get as a kid, e.g. team sports
yeah i feel that
yea foxhole can affect emotions
It's taught me a bit of leadership even when I never considered myself a leader
I accidentally propped myself up to a position too high
haha yea ... thats an experience in life, when you feel like a follower but realize youre a leader
because everyone else is a bigger follower
i always get depressed when i realised how many times i could have rallied people to do the right thing if i just used the mic
The other day I was commanding 3 tanks. I didn’t think I had enough experience but we did pretty well.
And then I saw a major get his entire line annihilated by attacking an EAT head-on lol
lmao
clan man are overranked
when you become a leader because everyone else is ... too dumb
But I think tank ops align with my personality. Very patient and conservative when it comes to risk taking.
i too enjoy tanks
i do not think its universal among programmers in foxhole tho
dont think ive ever seen hayden in a tank
i bet we are all drawn to building tho
Boat's and tanks fan here, and SWE
most of my memories from war 83 is repairing and following lt cols around with a shovel while they complain about their wife
I’d like to learn how to build but I have never had the opportunity
It seems very strongly gatekept
seems like all i do is frontline building now because theres no gates
I realized that my first couple wars were before they changed the logistics hubs
builders are generally happy to share their knowledge
I remember it being much easier to supply the frontline
well, i hate the shooting because i have high ping, and every front already has more medics than regular people, and logi is pain, so i just stick to building because i like the atmosphere
I love scrooping and driving Ironships up to the seaports
in solo?
yea the building vibe can be chill
i envy your will
yeah, seeing the interaction between people is fun too
i recorded so much of war 83 and posted on fod
and most of it is just people chilling around or partisan hero, instead of actual battles
Usually I am with a random buddy
its nice to be on the front but not dying constantly
i see
But it’s fun to drop a map marker saying “drop off containers, get scrap” and just load up people’s flatbeds
Actuallt I think I’ll go do that now
nice
i think id rather just play other games than do logi lol
or do household chores, those actually directly benefit me
it's relaxing to me
every time i play any video game i feel like i'm wasting time now, so i just talk in FOD instead lol
it's also probably the most high-impact activity you can have in the game
im glad its satisfying to somebody
like if I ship an ironship of shirts to a seaport I can keep that hex going for like 6 hrs
when I first played the game I was like "who in their right minds would ever do logi"
I reckon that the time I spend doing logi would not have been spent productively regardless
that's interesting
building feels like a game of solitaire to me, but logi feels like a root canal
and i mean root in the australian sense of the word
jeez did this justine tunney make their own standard c library?! wtf
i am wondering how hard it would be to modify the dotnet runtime to use this portable format
the host program used for single file applications i mean
You should check out Redbean in her site
yea i noticed that, seems very useful
no thanks gonna steer clear of any more lisp lol
ok turns out the LookAt script isn't that expensive
it's just the sheer number objects itself that is killing performance
all methods i know like setting it static and optimising the material didn't work, so i'm looking for more ideas now
i think billboards require a matrix inverse
otherwise not mathematically intense
transparency can be costly if youre rendering that
in the old days we used to use a z threshold to pixels on billboards to avoid alpha blend calculations
if your shader has to read the frame buffer to write to it, i imagine that could be expensive
but generally you can load up shit tons of billboards without performance problems
ok with just the 4096 hexes it works fine with no performance decline what so ever
hexes as in what 6 triangles?
but once i add the trees which is about 639 extra objects everything just falls apart so i think it's a mesh issue
only 4 i think
you want to render things in batches for performance
if they are all calling lookatt
or like ... make your own point sprites by using a mesh shader lol
take a single point, generate the billboard for it
and dont interact with other objects, try using DOTS
im not super up to date on unity tho
i commented out lookat
still the same exact performance
here's a comparison between the 2
DOTS still may help
i will look into it
are you calling the tree rendering like thousands of times?
ideally you could render them all in a single batch
i already set them static and enabled dynamic batching
oh im not familiar with that, so theyre being grouped together?
the whole reason we used billboards was because of their cheap cost
but it could be the alpha blending if its using it
they are the same texture, they are not 3D models no matter how close you are to them
actually that sounds plausible let me try it
i.e. its a cutout shape, with a texture that has 0 and 1 alpha values. you wouldnt want to actually read the frame buffer (cache misses) and then do alpha blending math on it
if its 1 you draw it, if its 0 you dont
so the shader can handle that i would think
does give an ugly border to the trees tho
i cannot imagine a modern card cant render thousands of polygons with ease tho even with alpha blending, thats shocking
ok i messed around with the compression and anti alising settings for the texture and it seems to be way better now
yeah i also got a 3070 of all things
bro how
batches 5219
that seems like a lot of batches.
is that like ... a total count over time?
no in render
i do have a lot of hexagons though
i will probably replace the sea hexagons with a single object
since they are kinda useless
there should be 2 batches for that lol
now that you mention it
if you remove the trees do the batch numbers come down?
interesting!
yeah the hexagons themselves are the problem
so its not the trees then right?
yeah
when i was a kid i looked at this example for cumulative days
it was the first vertex shader i ever saw, it had animation in a vertex shader (it transitioned between 2 or 3 states at a vertex level)
damn
back when the directx software renderer was still a reasonable speed
you could run vertex shaders in the software emulator, but not pixel shaders
as in like make your own models and stuff?
one of the examples was this tesselated mesh, and it used to boggle my mind how they rendered 100,000 polygons at real time
like vertex shaders change the points in the mesh, and pixel shaders render the mesh to ...pixels
the metro games teached me to fear tessellation
i learned game programming on directx 7, the one before shaders were introduced, it was fixed pipeline
thinking about stuff like batch size brings me back to all that stuff
maybe there are still fundamentals that dont change
i see
from the little i know
unity can only batch together objects with the same material
and dynamically batch static objects
the material is the shader, right?
it's basically an abstraction of a instance of a shader
its both the vertex and pixel shaders i assume
so you can have 5 materials with different textures using the same shader
i wrote a few in unity but it was 10 years ago i cant remember
yeah
i was gonna say i would ignore the hexes for now to work in the actual gameplay, but i just realised i don't know what i want this to be about
my original plan was to make a game where you were given an island from the king to settle, and then you had to explore it and not die
which was a card game we made in high school
but that sounds so ambitious now
yeah
I made an unfinished RTS game for Unity back in college
the amount of hoi4 clones i tried to make were insane lmao
had to abandon t because my code was bad
what was it like?
https://github.com/pickles976/RTS-2
This project has been abandoned for a while but I just needed a demo to show.
i feel like ive seen that ... a long time ago, maybe not
it would have been like early 2020
I stopped working on it after a year because my code was horrendous
Ooh
I didn't know what conventions were lol
Since the activity log can be accessed by everyone on anyone I assume its public information. Would the Devs be so kind to make an public API for the activity log? I would make a rank website with that API. So we can see who built the most, highest damage, materials submitted etc. and at the end of the war give out a Top 3 List of Builders, Scroopers etc.
this will probably burn your eyes @long raft
no it was just for fun
I initially wanted to make a MMORTS like Foxhole but RTS when I was a kid
I quickly realized that that would not work
maybe if you only let each individual have a few dozen units
my next idea was that you would have a map with finite resources that would run out very quickly so you had to be aggressive and capture territory, as well as be strategic about your unit placement and also make dynamic alliances. So basically a Battle Royale RTS
You must be better at inheriting code than me I dont even remember how it works
Oh man I tried understanding my old school projects in C++
I could not
I really need to learn C C++ again
i learned c++ i think in the late 90s
so i missed all the real evolution of it 😦
c++ 11 (and up) is cool probably
I have heard that smart pointers take a lot of the pain out ofpointers
ive heard theyre losing popularity and nobody wants garbage collection in c++
hope its untrue but w/e
garbage collection in the c++ way seems pointless
i see no advantage if its not defragmenting the memory block and running garbage collection on a separate thread
are smart pointers garbage collected?
c
any reasoning?
it's simpler, its more useful to know, there are more resources for learning
i can not overstate just how big of a language c++ is
and everything you learn in C can potentially be used in c++, but not vice versa
It depends your use case
not exactly code talk per say
but is there any good way to make interior maps in unity?
i have always struggled with meshbuilder because it always turns into a mess
and now i started working with pre made modular rooms in blender but they already proved to also be a hassle to work with
that might be the nature of indoor
it makes me think ... variable bit rate, compared to outdoor constant bit rate
terrain is just very uniform
i see
i was doing it as actual game objects
and i just gets visual glitches everywhere and it's a pain to work with
but honestly i think i might just take the L
visual glitches?
it's kinda hard to show in an image let me make a gif
in the old days interiors are segmented using binary space schemes, whereas terrain is usually tesselation or geo mip mapping
i think its almost entirely geo mip mapping now, if its not a voxel engine
but if you just have ... backwards normals on your triangles for your model, you just fix those
like they are not cubes
each surface is it's own plane with the texture projected on both sides if it makes sense
but yeah i think the main problem is me fucking up in blender and not this approach on itself
mm modeling is hard
the only modeling i ever used to do for game stuff was really low polygons, to make it more manageable to fix that kind of stuff
i'm uploading the gif
it gets this jiggering lines where the modules intersect and in the roof
god screentogif really fucked up the colors
how?
i think they are simply not touching
is that in blender or in unity?
blender i assume
each surface is it's own object
like combine the vertices that are touching, it will find really near vertices and then set them to be the same
oh wait the flicker thats not ... seams
i think the flicked is you have two polygons in the same place
like a copy of the mesh, or a copy of the triangles
true that might be it
they are doing what is called z-fighting, where they are the same depth and swap back and forth due to rounding errors
i will try to remake the modules in blender as actual cubes and see if that helps
i assume cubes are two sided
or turn on backface culling, perhaps they are triangles facing the other way and should not be drawn (when you see the cube from inside) but are being drawn anyway
is that in the material?
im not sure, not ... super familiar with unity anymore
just theorizing things that could cause that effect
something, something is not right...
well thats ... definitely alpha stuff
is it supposed to be transparent? seems like a definite material issue
it is not supposed to be this way
but yeah thanks, i think i figured it out, about the hassle bit
is making modular stuff in blender and then building the level in unity the best option
or do you know another method?
i do not
i see
i know a lot of modelers work in maya or 3ds
hmmm
i try not to get bogged down in the art side of development since im not good at it
i think i will try making the rooms themselves as modules instead of just the surfaces to see if that helps
like in code?
no in blender, so i can like chain them together to make interiors
oh
yeah
searching in blender community a bit
i think i fixed all of the issues with this approach
Z-fighting, also called stitching or planefighting, is a phenomenon in 3D rendering that occurs when two or more primitives have very similar distances to the camera. This would cause them to have near-similar or identical values in the z-buffer, which keeps track of depth. This then means that when a specific pixel is being rendered, it is near...
nobody uses z buffers anymore but we dont call it w fighting for some reason
Aye. I mostly just found a free room module pack on the unity asset store.
ooh thanks
it could only happen if you have 2 polygons overlapping that are facing the same direction, or 2 polygons overlapping and backface culling is not being used
turns out my issue wasn't that
well it was kinda
instead of the geometry going over each other
the lightmap was
only the roof was actual geometry
i'm now having issues with light baking
all the materials have the same settings besides the texture
and all the models have the same import settings
and all are static
so i still have no clue what's going on
i suspect it has something to do with my lighting settings
maybe they can't fit in tightmap or something but changing the size didn't do much besides improve the resolution in the already ligthed objects
so i honestly have no clue
nvm i just needed to restart my computer apparently bruh
are your normals facing the right way on the mesh?
or perhaps the light map texture is ... too small? hmm
it was none of that
Unity just didn't feel like working until i restarted my computer
I once built something that looked good, and then I tried to do the lighting and it suddenly went from looking good to looking terrible.
I should get back to working on unity tbh
i will never understand Unity's lighting engine
do you guys like ECS better then OOP?
its very useful in software that has a lot of assets/media
I have never really made use of OOP in games
jsut component system really
maybe command and visitor pattern oince
i assure you the game engines themselves are heavily using OOP
yes
I'm also very new to large codebases so maybe I haven't been around enough to experience the pitfalls of a non-OOP design. But OOP just seems so complicated to me
so many builders and factories and nothing seems to actually implement any logic
oh well ... you dont have to make things that way
thats just people optimizing what they can
I guess I just haven't worked with it enough to get in the groove
OOP reduces your code base's size generally, you have deeper levels of abstraction, but less code, so theres a tradeoff
I'm more used to just having functions
well its still a function. only now it has a this object
in its guts its just shortcuts you end up building yourself with structures
i like OOP but sometimes people overcomplicate it by making everything a class
seems fine to me
i was bothered by a lot of the techniques at first, like accessors, but ive come to rely on all that stuff so heavily now
i remember a project i did in college, everyone else in the class had like 15 pages of code and i did it in 3
the power of properly used inheritance
also i dont know how i tolerated OOP before c# and it's pattern matching functionality
i found a game i was working on for the birthday of a friends server
but i don't remember why i gave it that subtitle
yes
maybe it's cause your friend is a furry and you're a weeb?
that's the thing
i didn't knew any furry
at the time
and everyone was a weeb
Ive never met a furry but seen plenty
then maybe it's just natural to put a furry as an enemy of weeb?
or friend if want to
I wonder what goes on in their mind sometimes
Like, what makes you put on a fur suit and have a peep
How did you get into this
I am just intrigued
i will try to find the design document we wrote for it
i think i purged my google drive but let's hope
oh yeah the furries were some annoying people we used to find in tf2
damn i kinda want to finish it now
I almost finished simple AI for Tic Tac Toe and i feel so powerful
oh nice, how does it work?
i wont post code here, cause most variables are in polish, but basically:
first it checks if there's any line in which AI has 2 fields and the other is unblocked (then it takes that field)
if there's no line like that, it checks if there's a line where enemy has 2 fields and the other is unblocked(and then takes that field)
and i plan to give it basic instructions on what to do when neither of those 2 options are active (rn it's random)
i see damn
I finished it and I've never felt prouder during a draw in tic tac toe
is it possible to win against the AI though?
Man the opengl tutorial for c++ is nice and simple
uhh no, not really, at least as far as i know
I havent checked any guides tho
And i was never a tic tac toe champion
Basically there's 2 strategies (if we dont count those where the oponent straight up lets you)
Either you go for middle part first and then corner or the other way around
And if the enemy takes a side tile, u win
And AI never picks side tiles first
Well now that i think about it, its dumb to even call them strategies
Tic tac toe really isnt the most complicated game
You should always get a draw against a perfect opponent in Tic Tac Toe
can I get an invite to SIGIL?
my name is ironic i'm warden
oof
at least you can, it seems a business practice i keep getting stuck with is to make a vps startup budget company with virtualization such that the kernel cant be upgraded, knowing that in several years when that os will become out of date, customers will have to sign up for a new plan to upgrade in the future which by then is more expensive as the company has grown to be a 'more premium' host without the budget plans anymore
normally i wouldnt but this is another LTS
but yea ive got a lot of stuff on ubuntu 18 and even some on 16
but for virtualization, if i dont need cuda, im using alpine
containers are the future
I have been informed that tic tac toe is actually more complicated and am reworking my AI cause it was kinda trash if you knew how to deal with it
I have made a profesional diagram made in paint, inspired by 5D chess, where i drew what actions should AI take when the opponent is starting and he chooses one of the corners
(AI is cross)
have you ever heard of Minimax?
uh no?
are you famiiliar with trees? Basically you repesent your game state as nodes in the tree, with the branches being each move taken
at a terminal game state you assign a score +1 p1 wins, 0 tie, -1 p2 wins
Oh i've seen that on geopolitics channel talking about war in ukraine heh
you traverse the tree from the bottom and try to select the branch that maximizes your hypothetical score while minimizng the enemy player
the size of game states blows up fast but for tic tac toe there are less than 9! game states so it's actually doable
for something like Chess you would sample moves randomly and terminate after a certain depth 2/ some sort of heuristic to determine the players score from a given board state
but for tic tac toe it's the perfect game for a minimax implementation
Artificial Intelligence: A Modern Approach is a really good foundational textbook for classical AI algorithms
There is a github page that has visualizations and code for the whole book in Javascript http://aimacode.github.io/aima-javascript/5-Adversarial-Search/
IIRC I drew on 3 pieces of A3 in order to eventuakly understand MinMaxing.
It's basically you simulate next states based on expecatations; e.g. for the opponent to try and win; and thus you take the move that down the line has the most value; losing has negative value thus you avoid losing moves.
The reason Chess cannot be perfectly won is you cannot simulat all possible future states due to it's complexity.
However Tic-Tac-Toe only has 9 states, so it easier.
Min max just assigned an arbitrary value to any action and/or calculate the value of each possible action and choose what is considered the best. In concept it's pretty easy, implementing it correctly take some more time and being good at it is quite hard
Fun thing is i'm pretty sure stockfish is an open source AI that use min maxing in chess and it's probably one of the best implementation you can access the full code
Min maxing require knowledge of the game/task you are trying to optimised
one of the way you optimized those type of program is by removing as much of the branch of the tree without the computer needing to calculate all that
Yep idk if you can see that link I sent but it covers alpha-beta pruning + iterative deepening
Pretty sure AlphaGo is just minimax with a neural net trained to evaluate a given board state
Wonder what kind of data mapping and visualizations can be pulled off from the api
Foxhole API.
Overtime I guess you could weight given routes on the map, and try and plot where the fight is most likly to go.
emgm give Conclave a massive weight of no-go from the south 😀
Might do dat
is betting on the outcome of a Foxhole war against the game's TOS?
one day maybe
not that you asked, but I dont think it would be a good idea
unless bets were capped at like $5 or something
I can definitely see a wave of alting happening if there was serious cash involved
yeah, im not into gambling to loose/win lots of money, just thought it was one of the few ways to create a side game for people when not in game that was actually tied to game
I was actually thinking it might be cool to implement a marketplace/craigslist for people to give away/ask for free stuff
I asked around in sigil if people would actually use it and I dont think it would be super useful though
yeah , youve still got to go in game though
yeah it would just be a way to connect people who want something with people who need something
yeah it could work
only useful for expensive items really but I was thinking maybe you could request bunker bases to be built or something
just a way for people to coordinate somewhat
just have to contend with intel leak limitations though
yeah I was thinking they could verify through discord
but then that kind of defeats the purpose
since you would already most likely be in a clan or in sigil
that right
but I do like the idea of creating a way of expanding the economy of Foxhole or adding to the meta
I just cant think of any good projects
thats what i was thinking when registered fhbets
yeah I think it would be neat
the only problem is that it would 100% lead to alting
itd be cool to have a little mobile miner, but ud have to have game clients to remote which is getting too crazy and limited
I was thinking maybe you could datamine
just query the war API and store all the states in a Cassandra DB
but how does that create a side game ? (what i want)
then try to come up with a heuristic that can determine the best move from the current map state
well, I dont think this would actually work
issues might be that the map items change
but if you fed it enough data you could start figuring out which moves are optimal to cripple a hex
although I dont think it would have enough data to figure it out
since it's dependent on so many factors
I really wish the devs would allow us to query player stats
that being said there are probable very common paths that have to go in order
Maybe instead of actual money bets you could just have the website be a poll
and let people vote on who they think is gonna win
well i could use points instead of money
but i thought itd be good if there was a small 0.1% txn fee or something i could collect to run it 🧑🔧 
do you have any cloud costs for Foxhole stats?
and by people have a bit of real money skin in the game it would give it clout
it runs of my vps that i pay for
like do you run a caching server so all the users aren't spamming the War API?
what's the vps for?
it runs everything
I guess I mean what backend services are you using?
fhs is not like derpy cheapo client side everything
there is lots of backend
so cron php polls api every minute and puts results into mysql db
then php is used again for page generation
then node runs the live update server for real time updates
is that a websocket or something?
and python generates the control map overlays
I'm not very familiar with non-static webdev
SSE instead of websocket
cool, i like python
seems to be the new paradigm because it's quick to get new devs up to speed and making things
so I dont know anything about php or server-side rendering
python and php are both server side languages
but both can be run client side if you have them installed
through your terminal
you mean like if you download it?
client side is just servers side from another perspective
yeah, you can install php or python on local machine or server
ah ok I thought you meant running in the browser
if you can think of any ideas of things to make for Foxhole let me know, I'd love to help
I'm finishing up a current project so I need soemthing new to work on
foxholebets
lol if we can figure out how to make it not ruin the game then I'd love to help
do you use AWS or is it all custom?
i dont use aws for foxhole stuff
in work currently i only use aws s3 for backups, and smtp for a mailer
I'm getting ramped up on it at work but I've only really used S3 and Lambda
it definitely has its appeal, just not sure if it would cost more or less for my needs, but great for portability
with foxholebets, i would build it first with a points system for testing and proof of concept, and if works switch it to limited money.
AWS Lambda gives like 400,000GB-seconds of compute power for free
so it would most likely be free if you went serverless
and then I'm sure the S3 storage wouldn't exceed the storage size
not sure if that would be everything i need
also nfts
lol, yes meme coin to pump and dump and get around gambling laws....
scrap mines for crypto ledger pow 
just refing the topic
ive conceived the whole idea, the software uses the warapi to get the victory
the coins are pegged against each other, a colonial coin, a warden coin
even if the coins were mined and given away free, it would indicate the betting lines on the victory
if there was a network running (thats why i suppose they need to have some value), people could trade warden coins for colonial and vice versa
i guess they all become a pump and dump dont they
its just a meme coin. maybe better to just use normal crypto for bets
its literally the only possible outcome of it
nobodys gonna dedicate computing power to an actual meme coin, it has to have some value -> fiat for anyone to bother
does it cost to make a nft ?
i dont ... think so
like an NFT on the blockchain or a new coin?
NFT
I believe you have to pay gas on the ETH blockchain to "mint" an NFT
figured
@long raft
cant get zoom level to work in linux-amd64
actually im getting result "Killed" after level 5 ..
Hmm I'll have to look at it I too am disappointed in the ability to handle huge images
windows did it easy
Gonna try to put work into it
does yours get killed ? it might just be my server
4 and 5 ok, but 6 return "Killed" after it finishes #5
likely
Or possibly math error
It seems to happen when the zoom level exceeds the native level
it worked on win7
its fine
I debated remaking it entirely in javascript
for node ?
@long raft do you know how @tropic cargo worked out the topo line heights ?
Yea for node. No i dont know how sentsu did the topo lines
I kind of want to remake the topo lines at a higher resolution
I want to take my zoom levels to 8 or 9
My starting maps are unprocessed so theyre 4x larger
sentsu has done them at 2x warapi rez
Im afraid the tiler might be too slow in javascript i dunno
I dont think i have quality zooming tools in node
i know there was talk about 3d printing back a bit here, do you have one @long raft
can you do abs/asa ?
@long raft you still about
Uh i do resin printing so no
ok
so with this betting thing 
i guess people need to login as first step , so wondering if to use 3rd party auth system for easy and completness... ??
what do you think @long raft
i have access to printers but need a 3D file
im just looking at buying my own
I'm partial to Prusa
More expensive but they tend to just work
You do have to build your own enclosure if you want to use ABS / ASA though
yeah, and get full metal (if not already)
Standard prusa hotend will print ABS
mm are quite a bit more expensive
Oh you're serious about the betting?
i think it could be a bit of fun
There's a ton of BS that most low cost printers have that prusas just don't deal with by being better designed
I suppose it could be
yeah
trading platform would have more going on during war though, but not sure how youd do that and itd be more work,
was thinking to liven it up a bit offer bettable goals mid war, like casualties at a certain day, or x at certain day, or first team or time to do something
yeah that sort of thing
that could quite easily be gamed though, with a clan just focusing on that
but maybe that would make it better ...
I used Photoshop's threshold tool at regular intervals and drew the outlines of the different white shapes
i meant the numeric values
I can't know the real height it's just arbitrary values that are regular, so correct between them but the scale is not necessarily the real one
ok
any golangers out there
have done ... golang before ... why?
im still learning ....built api wrapper for foxhole api in golang...looking for maybe a code review/notes/suggestions
mm im not quite that handy with it
got ya...well fingers crossed im going to try an put out a public api w/ historical data for war 91+
Oh i wanna look at that
Ive done go in the past
F*** garbage collector tho
Java, Go, all of them need to burn in hell
since a lot of people in here seem to have done CS in university i might as well ask, do you think it's a good course to take if your final goal is to work on games?
I mean yeah, if you do CS you'll have the programming background and degree to dev for a game company. Also just try to make your own games to show off and intern at companies you like if you can
i see
not to discourage you
I have a ton of fun making games in my free time but honestly dont think I'd like it as a career. and I know a ton of people who are the same way
I thought it would be boring, but making microservices is actually pretty fun
Also my first batch of AI-generated music is finished, it's not very good though
I think my biggest issue is normalization, it's so hard to figure out a good way to normalize the data
in my day we had senet and it was good enough why do kids now need new games
more banking software is what we really need
lol I just mean the industry itself is more grueling than doing it as a fun hobby
at least that's how I felt when interviewing
small company? viable. but the large companies can treat employees poorly because theres a line of fresh programmers that want to make big games
but like a self owned self produced thing seems like a good way to go
the small companies I applied to were really hard to get into, at least with my experience
the only real options were places that made shitty gambling games or like knockoffs of popular iOS games
or AAA developers but they only hired contract and paid poorly
oof
yea, basically, if theyre hiring then theyre probably too big to work for
catch 22 i guess
Who calls is 'CS' it's 'C#'
the files are .cs and the compiler is csc.exe
oh! there we go 😄
unfortunately I think the games that cashflow are all exploitative Roblox/Casino type games
while actually fun games barely scrape by
Tinybuild LLC seems like a good publisher, but the studios they represent are so small that nobody is hirigin
I think my best bet to work in games would be as a network/infrastructure/cloud engineer, but I can make 2x-3x working on some boring enterprise cloud stuff with way less deadlines and better QOL
I also did an interview with I a couple of AAA places and they were super secretive about what the projects were and both were contractor positions making burger-flipping money
with the "oh maybe you'll transition to full-time after 5 years" thrown in
it just left a bad taste in my mouth. I'd rather work on something boring with a better QOL at the end of the day I guess.
Me too, all of that
i see
my final goal was always to have my own studio, but visiting the university i want to attend they told me CS might not be the best course for it, so i'm stuck in thought, another thing is that i grew tired of my alternative which was aeronautics, so i will end up doing CS in the end regardless
even if just to work on boring projects to be able to do my own thing in my free time for a while
thats my theory, 2 things to pay attention to tho: 1) you will be too tired after work to do your own stuff, 2) make sure you dont sign a contract giving anything you work on to the company you work for
what is that a thing?
yes. very much.
damn
not sure how much it happens now but decades ago in the industry if you worked for HP or something, anything you did was owned by them
even if it was in your free time outside the company?
yea
and it was legal?
bruh
well see it from their side, if everything that was made some programmer could claim they made it in their free time...
if it's not part of the project they are working on in the company does it matter though?
would you want to go to court each time to decide?
my general thinking is that if you have documentation that you started working on something before employment there youd be pretty safe
again, working for the big companies sucks
oh and if you want to make games? youll need an artist friend.
yeah that's been my biggest hinderence since i started making games
i suck at anything drawing related
so most of my old projects have either stolen art from the internet or have my shit pixel art art
which tends not to be ... inspiring to work on
yeah
start attending poetry slams ... or whatever ... artists do
all my "artist" friends are either too lazy to go through with anything or aren't actual artists
or ganii says he'll do your whole game's art for $5
does he?
yes but your whole game might be smaller than you want
honestly i just want to get something done this year
if you truly have the discipline to use place holders you can get the art done inexpensively
otherwise i feel like i will go another year without finishing anything
so like get it done and then show it to the artist to see if he is interested in filling in the gaps?
if you have everything except the art, you can very accurate estimate the cost of the art
you can just farm it out with a full spec sheet
oh i see
i suppose the programming is like that too. if somebody had an entire game done except the code? all the writing, the art was done, the mechanics thought out and written down, assembling the code would be easy
my advice is to do game jams
or have a smallish-scope project that you can do in 1-2 months, and ignore feature bloat as much as you can
yeah i sign up to them and then forget they exist
i think i will start taking them more seriously
I made a game in like 1-2 months with a full game loop using Kenney assets
it wasnt very good but I checked all the boxes of the features I wanted
i see
I would say join a game jam discord and find a motivated artist, you guys can keep each other productive and take the load off of each other as well
having an artist made my second game jam 10x easier
i feel like i'm not good enough to work it with an artist
guess i will have to learn more
if you are making a 3D game just use Kenney assets
you dont have to be amazing, even a simple platformer
oooh
is all of this free?

damn[
this took me about 2 months working like 3 hours a day after work and 8 hrs a day on weekends
it's not very good but I at least got a finished game loop + multiplayer
it's an isometric top-down CoD zombies ripoff
making a similar camera system made me realized how hard it probably was to make their crosshair system
it's not that technically difficult but it's hard to make one that feels right
i see
I used a very slight auto-aim where if you have your mouse over a zombie, your aim-line actually adjusts to the zombie center mass
since by default the raycast will return a point on the edge of the zombie which can cause grazes and stuff
I also cant remember if I actually used projectiles or hitscan
I think projectiles
also the fact that if you aim at a wall with transparency it's ambiguous if you want to aim at the wall or the floor behind the wall
or if a zombie is behind a wall you have to have fallthrough cases where you do one raycast to check for zombies and then another to check for terrain/obstacles
just lots of really subtle things
also weapon balance
i'm actually paralised lmao there's so much to choose
You are picking for school right?
no
i will use my game jam strategy of getting a prototype working and then fitting it to the theme once it's announced, like i did with that bomb game i had sent
i also found a good rpg character generator
so i was thinking of trying to make a short one
i also have the combat system done from another project i gave up on
just start small
I think finishing things gives a boost that makes it easier the next time
@pure sierra urhh I'm getting SERVFAIL on Foxholestats.com
But not any other site
Is your DNS host down?
@olive hamlet I believe my host is down
Yeah at least now it's not DNS
@olive hamlet back up
Nice one ^^
well it turns out that my finished NLP model is way too big to run on Lambda
has anyone ever used Flask w/ EC2 before?
Anime epicAnime = AnimeBuilder.create();
can you spot the problem
space in 'wardenCasulaties ' 😄
classic
hey someone send this to rockyrock from SPUD and tell them i fixed the wardens' bunker tool for them
I haven't posted this in a while, but I am trying to create a repo that indexes every single Foxhole project in one place
let me know if there are any I should add
I need to start breaking them out into categories
Security Researcher Dipu1A found a Cross Site Scripting vulnerability affecting shard2.foxholestats.com website and its users.
🤷♂️
Do you at least know what the vulnerability is?
feels more like bug ransom than bounty...
im wondering when has XSS ever been a server side security issue
So this website literally only exists to contact the website owner, not tell them the bug, and send them to the reporter to get more information
I can see no possible ways this could be abused
Looking at the guy who made that report all of his past vulnerabilities are about Reflected XSS
And he just spams them
He made 223 reports of XSS scripting on 10/05/2022
xss, the least dangerous of security vulnerabilities...
but without details it sounds scary
yeah im suss,
like u said, i looked at the users history too and its seems suss
and why shard2 ?
Reflected xss, which is what this supposedly is, relies on people being idiots and opening an untrusted link. In this case I don’t even think that’ll do anything. Stored xss is dangerous, but that’s not possible here.
the bug gets auto released after about 90 days if not resolved
looking at the details of his past submissions that have been released/public, look like total shit
https://www.richlandcountyoh.gov/"></title></script><svg/onload=alert(/openbugbounty/)>
this is crap right ?
It’s not that he made a popup, it’s that instead of that popup he could do anything else as well using java script.
how is js getting passed from the url to the dom ? surely this is a browser exploit instead ?
That’s the main point of reflective XSS, using it someone can execute Java code client side if a bad link is submitted.
looking at the dom, it seems the code is being embedded into the code, so its a web server exploit ?
I don’t know much about this, as I’m taking a class on web security currently, but essentially it allows a malicious link to remotely execute Java code on a client, such as sending session info to a third party or any other type of Java based exploits. It’s not too dangerous as it requires a user to submit a bad link, but it’s something that can cause havoc if exploited.
With that, instead of the script part of that just being an alert, it can be any type of basic Java payload.
i really am suprised a upto date version of apache would let this happen
I imagine the best way to fix it is to just make it so any character such as < or > in the url causes the page to go to a something happened error, Please try again.
That’s probably the only place where it was able to be inserted from what I can tell. I don’t know web development at all so I can’t tell you why it’s there, but it appears to be exploiting the href code there to insert a line of script after the url is finished.
maybe its because the submitted browser url is getting embedded into the base url
That’s probably it, and since the submitted browser url isn’t being sanitized, but instead is just being submitted without any checks, it’s able to do it.
yep
that is it
https://www.richlandcountyoh.gov/?test=hello
ah because they are share links
they embed the current url path so the share button shares that url
i made one
https://www.richlandcountyoh.gov/<script>alert('hello')</script>
And because that share link isn’t being checked at all, anything can be put into it, including html statements.
pretty simple 🙂
And pretty easy to miss too, which is one of the reasons why it’s such an issue. Anything from the user should be handled as if it were trying to cause issues.
I know to take precautions with user submitted values when working with db, but hadnt considered reusing that url anywhere
One of the things from my class that I remember is to always assume incoming data is malicious, even stuff like log files.
whats silly, is on my site, the one reported, its being embedded by bloody google charts
https://foxholestats.com/?test=hello
Based
The guy probably just has a script running to check for something like this where a link is embedded, and then reports it if found.
yeah a crawler
Hell one of the programs we use for class has a pro version that can do that, just searching for any exploits that it can see
i tried the script tags in the url that worked on that richlandcountyoh website, but doesnt work on mine as its getting embedded in the middle of svg code (google charts) thats why his examples where using the svg onload tag instead
Yup, but now whenever that svg code is called, it’ll activate whatever is put in as long as you’re still on the page.
anyway, im off to bed, not going to do anything about it as its very unlikely anyone will get xss on my site, and i dont have any account system so no cookies or sessions to steal... but interesting to keep it in mind for my other sites
@pure sierra at an old employer, we would get these kinds of reports frequently. it's people who run standard, off the shelf vulnerability scanners against arbitrary websites, turn the results into "bug reports", and ask for bounties.
like, they just straight up run burpsuite against everything
Open Bug Bounty is supposed to not accept reports from automated tools... hahaha
They’re probably running burpsuite against every site they can find, and if it finds something they modify what it found slightly to make it so bug bounty accepts it.
when you spam keys for a random table name, but your muscle memory controls you
Error: index asdasd already exists
Any open source stuff going on?
Some public dev stuff and some open source community stuff @potent cedar
@pure sierra wait so what was the issue? was it the this.href usage?
@unreal cloak for the exploit? Embedding the current url including user requested get string in the page source with it out checking. In my case it is actually being done by Google charts 😅
Ahhh I see
Do any of you guys know what type of CV is used for projects like this one?
being able to parse images into an excel sheet or dataframe?
They use OpenCV. You can see this used in a calibration check in the itemcounter.js file, so I think the image comparing is done with a 'how similar are these items' check against known icons. Also Tesseract OCR, and Google Spreadsheet API were other technologies I saw used.
ok thanks!
Does the bot hate codeblocks?
Ill split it, sorry to the one singular person i probably keep ghost pinging
ok yes it does
will just send it like this then
[to the person who blocked me] this is how i checked the mac and it does run into the windows setting
also I still feel im wrong just due to how i went about telling you that I think you are wrong, sorry about that
I hope we can put this behind us
(here is the normal and the spoofed one:
60-F6-77-74-0F-1D
42-D9-25-07-15-16
)
wow i havent used .Single() in a looong time
Have Anyone tryed tkinter before
its alright
Is there a png/etc version of this hightmap/map overview I've seen people use?
@hollow gyro
They made Discord Grumpy
ok I got it, crashed Chrome the first attempt.
Thanks @long raft
Yeah, just too big for preview, download original
fuck you all, here's an abomination
that screw holds this thing inside my testing chamber
so the plug can be in the hole for a cord
yes it works
steel screw can thread soft solder and wire
holy shit
couldnt you have just soldered a single nut on?
i would have fixed it with some black duct tape
Anyone have any good guides to learning C?
I’m trying to get better foundations in CS, starting with C and computer networking
Also any good ideas for projects. I was thinking maybe using sockets to make a basic client-server demo. I really want to learn how routing/packets/dns works etc
How much programming do you know?
That’s a difficult question to answer lol
I have a degree in computer engineering and 2 years of work experience mostly with higher level garbage collected languages. I understand the basic concepts of OS like virtual address spaces and process scheduling etc but don’t know how to actually code low-level in C
Oh so you want to make like custom lists and stuff?
so you want to learn C and networking at the same time?
generally in C you start with a hello world, then a number guessing game, then you rebuild data structures yourself, like make your own linked list or something, do your own sorts, try out all the data structures
make sure you get some practice linking dynamic and static libraries
its really just a space to practice pointers, i dunno how much there really is to learn in C
most stuff will come so naturally to you, pointers will be the only barbed idea
I made a lot of data structures in C++ in my data structures course-- trees, hash maps, tries, linked list, sorted set, etc
This is probably what I'm after. I want a better intuitive understanding of how computers operate and I figure the best way is to learn C.
I feel that at work I am learning a lot about software development, but not much about computer science.
making data structures in C++ is easy compared to C
since there are no classes...
structs and functions is how you achieve them, so its just like relearning primitive ways to do things
learn the horrible conventions of C
(nothing is thread safe, functions return integer error codes or boolean values, wtf is an exception?, naming conventions which are already familiar to c++, macro hell)
frankly its hard to construct anything meaningful in C in a short period of time so its mostly just a workspace for learning the computer's literal operations
I dont know anything about macros
I guess I’ll start with making data structures then
I’m gonna put it off to mess around in Godot first
If what you want to learn what pointers are you might as use c++ in funky ways to be fair
I mostly want to learn low-level programming
I had a single class in C for microprocessor programming, writing directly to registers with bit shifting, but I’d like to go further
I know I'm just giving an example
you can write to memory randomly though right? By doing operations on pointers?
sort of? if the OS doesnt catch you
its just a modern language but without built-in checking
hence why its so fast, because it doesnt check anything
if you dont write over a memory page boundary you basically dont get caught
If you want to work with registers i might suggest AVR programming in c
If you want to go further try programming your own lcd
@coral sundial my design project in college was programming a microcontroller with LCD that was controlled by I2C I believe. I ended up doing a guitar hero ripoff, writing directly to the internal registers that controlled the clocks and timers to generate PWM signals for the audio channels. It was pretty fun
oh thats indeed very cool
but did you do it in C?
you can also program an LCD without I2C or serial
yeah it was in C
I dont have the code anymore unfortunately
the thing was that the microcontroller had its own IDE, think like the Arduino editor, and so I wasn't using GCC or linking libraries or anything like that.
look at this beauty
here's the screw hole btw
having "sewer" on my final project was very fitting
hardware bestware
it's a container for gas
CO2
im simulating a closed room with poor ventilation
anyone know where i can find the numbers for bunkers and stuff?
like stability rates, AI angles ect
i know i can get the health from the wiki, but i cant find stability
The only resources I know of are these two wiki pages.
https://foxhole.fandom.com/wiki/Bunker#Structural_integrity
https://foxhole.fandom.com/wiki/Structure_Health
There's a small statement on the first link that gives a hint at what the equation may be for integrity, but I don't know the accuracy of it. There's another person here a few months ago who was working on a base builder site, they might be able to help you more if they're still around
i think people know the equation for integrity and i think its simple linear
just like an average i think
The max health of a bunker structure is equal to the sum of the max health of each directly-connected bunkers multiplied by the structural integrity value.
Yeah it sounds like it lmao
Has anyone in here used Godot for anything?
To my knowledge it only has inheritance, not components. Which feels a little restrictive
Interestting, I recall that when it was introduced, the shape also mattered, e.g. long thin bunkers had poorer integrety than square ones of the same amount of building units
Does anyone here know how elevation affects artillery distance?
i think its just ... like exactly what youd expect with a projectile
greater elevation would mean more distance
i dont think it do
Don't know if they coded it in foxhole but normally it just give you greater distance and a bigger impact
From what I’ve been told, it impacts the range slightly, and shooting up onto a cliff also has some impact with shots sometimes appearing to land way short due to the terrain inside cliffs being weird. You should always be careful firing up a cliff to not accidentally overcorrect over the cliff into the defilade behind.
Java vs. python vs. Lua vs. C is a very difficult comparison
It depends on what you want to do
Different langage for different need, without more detail it's hard to give an answer
Is there game data available somewhere? I've found the war api, but I'd care for stuff like technology. Not even "active" data, just the game constants (ie what things are in what tiers and such)
I don't think there's a source for tech, as that's faction specific info and is made by the devs every war so it changes. We don't really know what's going to be where either since it's only shown 3 levels at a time
Correct.
And the API is agnostic to Faction, Tech is not.
Will my roblox cheats work here?
This is what am talking abaut
his AI broke
ok kinda of a young male thinking with the wrong head weird kinda of question
when you did CS were there many women in class
A few
any good regiments to join
Not that channel for that.
It seems the new physics is based on framerate instead of time delta since uncapped frames allows me to become rocket man
@long raft does the API really not provide the positions of the hexes in the map?
It doesnt
Kastow does tho 😋
i do tho
thats where i got 'em
bruh this is bridge fighting