#code-talk
2 messages · Page 29 of 1
are they different?!
Yeah
wtf
300 for sure not
I don't have any data on it
But I do know using the 120mm formula didn't give accurate shots
150mm was close enough
well rnuco is curious how it works
Anyway if I remember right 120mm formula for wind offset was
7.5(x)+80(Y/Z)
Though I might be misremembering. It's been like 6 months
Where X is wind stage and Y is distance fired and Z is the maximum of range.
its #code-talk, accuracy aint important
Anyway it's been a while, good seeing you but I've moved on from foxhole. Hope arty gets solved by better players than me.
thanks
Thank you both!
working with a file much bigger than my hard drives, gotta keep it compressed and manipulate it through a decompressed window, i feel like im building a ship in a bottle
does anyone have any experience with unity?
i made a simple hexagonal map generator and now i'm coming to path finding, i already looked a lot into it but are there any good resources for multithreading for it in specific? i can't seem to find anything too applicable
multithreading for pathing?
yes
i dont ... know if the algorithms can even be run in parallel
maybe A* can but i dunno if dijkstra can
yeah i'm looking into using A*
it's the one i'm the most familiar with
but since hexagons work a bit different i can make it work but i get too many threads doing the same check
hmm im good with threading and im good with c# but rusty with unity and pathing
dunno if you want to share code, but ive never personally implemented a parallel A* before
didnt actually know it could even be done
could the threads not reserve their workloads so that its not duplicated?
wait
Welcome to the first part in a series teaching pathfinding for video games. In this episode we take a look at the A* algorithm and how it works.
Some great A* learning resources:
http://theory.stanford.edu/~amitp/GameProgramming/
http://www.policyalmanac.org/games/aStarTutorial.htm
Source code: https://github.com/SebLague/Pathfinding
If you'd...
i basically followed this guy's tutorial
for another project
and now i'm trying to adapt it to hexagons
i just got an idea to how to implement it
i can show you the code too
im kinda curious which parts are duplicating the same work
maybe ... i could offer something helpful there, i dunno
yeah
is it slow when run in 1 thread?
thought a* was so fast you dont really needed to parallelize it
basically in the way i wrote it, it was doing it per hexagon, so it was checking the same "edge" twice
it depends a lot on the heatmap size
i did not know you could even do a* with non square shapes
same idea i ...suppose hmm
so the multithreading isnt the issue, you want to reduce checks when using hexes
well, i'm treating hexagons as squares coordinate wise, and just having it count the top and bottom as 2 positions instead of one
let me draw a bit
this is how they look
the coordinates work like squares, so i just had to move them leftward for each row to keep the square shape of the map
also i realised i was doing multi threading wrong
yeah
i think i will try to get it to work nicely first and then get it to be multi threaded
https://stackoverflow.com/questions/38015645/a-pathfinding-in-a-hexagonal-grid https://www.redblobgames.com/grids/hexagons/ wow this is a treasure trove of a stack overflow
oooh how haven't i found those before
i will take a look thanks
also i realised the way i did was kinda dumb
really? seems worse to me lol
i has been some time since i did my version of that playlist's i sent
i struggle understanding algorithms tho
maybe it was all the optimisations the guy did
yeah this approach was basically what i was trying to do using the other A* i made for squares but i'm dumb and made it run twice
thanks so much i will start looking more into stackoverflow
i regret everything i just typed
OOOH
i can just use the square algorithm and make the intersections of the hexagons invalid paths
that way i can even have fine control inside hexes if i need to
which one
this basically runs for every pixel to generate a map with a circle in the middle of it, it's my best demonstration case of i don't remember how i made it work but i did
i think that one is calling stuff from another script
last time i used unity it was on .net 3.5, like c# 5
let me see
i really hate writing in old c# now
4.x
ooof
it varies depending on which version of 2022f though
thats .net 4 i take it? it cannot be c# 4
.net 4.x
i can't find which version my project is using
unity is too ashamed of it
i mean, it's theirs now, so it's their responsibility to update it
miguel de icaza is/was a microsoft employee even
wouldnt be surprised if microsoft bought it
yeah
i actually really liked unity, and at the time the c# was modern, but it sounds very behind now
the only projects i managed to put out were made on unity so i'm biased on this
but i really like working with it
my only other experience are with unreal and clickteam fuzion
so take it as you will
i can only imagine unreal is hell
i really liked it too, i didn't use it for long enough to figure out how to hybrid c++ and blueprints which people say is very powerful
what kinda turned me off was the lack of unreal integration support in visual studio
so you either disable eliases or deal with constant fake errors everywhere
c++ programmers are dangerous people
true
they yearn for things ... most would consider unnatural
what if i could overload the assignment operator
what if i could overload parenthesis...
what if i could overload the new operator...
why people would make it more confusing for themselves is beyond me
maybe it's so their boss is afraid of firing them and having the replacements have to spend too much time trying to figure out what their abhorrent and twisted minds have already implemented
special effects have come a long way
mm yes and no ...
movie budgets werent what they are now
but yea i think ... a lot of wacky shit was born in the 80s. i think smalltalk is from the 80s
ruby maybe? nope
never heard of those
smalltalk was like ... a purely object oriented language, not half assed like c++ or c#
and i think obj c is sort of the descendent of that
I've got a bit
You can just treat it as a nodegraph and have your heuristic be euclidean distance
that way you dont have to have multiple cases for each direction, which is what I am assuming the A* for a grid is doing
i think i'm too dumb to understand that sorry
Could you link your itch.io?
Do you know the graph data structure?
the closest thing to graph data i did was a heap some time ago
ok so a graph is just nodes, which are objects, and then connections between them (just a pointer to other objects) or you can have edges which store the distance
there is probably a nodegraph package for C#
but I always write my own
it's all on global game jam and it has my real name on it so i don't like sharing it on discord because of some stuff that happened before sorry
so you'd just create a nodegraph where each node is the center of a hexagon, and it has an edge for each of its' nieighbords
then for the estimation heuristic (just a fancy word for guessing the distance) you use the distance from the current node to the destination node, assuming no obstacles
i think i get what it means
you know the basics of A* like f = g_+ h right?
yeah
ok cool
the only annoying thing is that C# doesnt have a priority queue in its stdlib
monobehavior provides one
oh really? I wish I had known that
I dont remember what I did I think I implemented my own
thanks man
yeah np
this looks really promising
you could just use a sorted array
I'd be down to check out your games if you wanna dm me or something
alright
the concurrent data structures in c# are much nicer than the old ones in my opinion
i actually only have one i'm proud of
ooh in this one i used rommel
it has a thread safe wrapper, but i prefer all the TryX methods of the new concurrent objects
ok so the graphics look really fucking shit
i had 3 people with me
they did literally nothing
so 5 hours before the closing date
i had to do all the art
which is why it looks kinda grose
i'm really proud of it though
5 hours?
lol that's fine I never do any art for my games
we had 5 days to work on it
was it like a school thing or ludumdare?
global game jam
ah
hahaha classic
besides download an explosion sound from minecraft and send me
Ludum Dare was last weekend right?
yea
FUCK
i dunno, looks pretty decent to me
i thought it was going to be next month
wish I was confident enough to participate in it
its great if you can just publish anything you make
I would like to learn Godot before I work on anything again
That was my goal was to make on complete game with a full game loop and stuff
yeah
I get bored after all the problems are solved and it's just polishing
i think most programmers just die like emily dickinson, unpublished
its hard to just put something up when youre the toughest critic
yeah I dont think I like anything I make
until like2 years later when I forget how it works
have to overcome ADD tendencies to actually document stuff or publish it
aww the video is private
My pc internet died
Also bruh
Doing the video was the 1 thing
My friends did that was useful
You can still download it and play it yourself too
I guess discord is telling me to sleep
Good night
heh i remember making a game in college and i asked my friend to make some fake box art, it really sold the whole project lol
photoshop > actual coding
back when video games came in boxes...
Lmao
15 years ago
Is it the one he made?
yea
he made another with a boxom pirate woman too
i used it in the class presentation lol
got an A
Lmao i can see why, it does look interesting
What were the others like
2 programmers doing all the heavy lifting
the others were equally chaotic, i do remember one project was a multiplayer tank game
they got lost in all the multiplayer code so they didnt complete most of what they wanted
but i was still impressed with the scope of their game
i think they had 4 real programmers tho, we just had 2 and 2 hangers on
Damn
multiplayer game on a deadline is a mistake!
Do you still have the game?
nah lost those drives before i got real serious about data hoarding
Sad
meh
I'm doing everything i can this year to pass into a CS course entrance exam this year
I'm just not sure it's really what i want
whats your alternative?
Aeronautics and naval engineering
ooh
But both would require me to move
i imagine those are pretty far apart
Yeah
Aeronautics one is very hard to get into because it's basically only offered by the army and it has a lot of people interested
which field has less women? CS or aeronautical engineering?
Well i have no clue, but if i would guess aeronautics
wow
i think diversity of people is not something i considered when choosing a career path, but i wasnt choosing between 2 like you
I don't care much tbh
when work becomes your life ...
dunno what aeronautics is like but in CS nobody is normal 
I can see that lmao
Also because of how it is offered a lot of people are only into it because it let's old people into the army as engineers
@long raft did you guys have pre-built engines?
So you are also going against people who already work on that field
@neat fossil I am biased but I'd do CS
i was steeped in directx that was my first experience of opengl (i hated it)
I started as a CE/EE and didn't really start programming until senior year. I wish I had started sooner.
opengl is like such a delight when you want to draw a triangle. a single triangle.
Man I cant imagine making a full game in OpenGL for a project
I see
you get this giant engine and youre using 5% of it
yeah I made a really basic Tetris clone, just the logic and rendering in C with GLUT and it was a pain
its like javascript, everybody is using jquery for something they could use a one line vanilla javascript call for
when you making something without an engine, most of it is easy, only a few pain points usually
never understood the purpose of jquery, doesnt the dom already provide access to everything with "id"?
I never wanted to do programming tbh, when i was younger i just wanted to be a game designer, but i didn't have programmers to leech off of
jquery does more than just the selectors, but yea if youre including a 100k library for one function in it, oof
@neat fossil careers in CS are super dope too. Good pay and lots of flexibility, opportunities everywhere. At least for now.
But now I'm not sure
yea the flexibility is great
Yeah just the fact i can receive in dollar sounds awesome to me
I never thought I liked programming until I started messing around in Unity
turns out they just had us doing really boring projects and programming is actually neat
games bring a lot of people into programming, but actual game programming must be one of the worst programming jobs possible
Software engineering
and boring shit like COBOL is where all the money is hehe
When I was looking for jobs I interviewed at a game company and their pay was abysmal
the pay here is ... good on its face
@neat fossil you're already doing projects in your free times so you're on the right track
you know 80-90k USD. but then theyre gonna work you 60-80 hours a week
and EA owns everybody and are famously bad employers
what industry?
oh games
activision, lol
If go with CS my goal will be to have a game company so yeah, i will be the one underpaying
thats not ... good
that must be entry level?
Are they remote contractors though
it was non-senior so like 0-3 yrs experience
60$ gets you far in the third world
not to my knowledge, a lot of them talked about the office
I see
yeah that's true, I think export controls prevent foreigners from taking a lot of US-bsed tech jobs though
well the thing about the game industry is so many people want to do it they dont have to make it a good job
unless they have H1B and can immigrate
yeah in school almost everyone wanted to go into games
its what excites kids
although by the end I think everyone had changed their minds lol
you have to have motivation to learn this boring stuff, and thats what does it
This is just anecdotal and i can only speak for South America but, a lot of people choose to stay in here getting paid in dollars rather than moving to work like HB
I definitely would
my dad is from Colombia sometimes I consider moving there or Mexico or something
even i consider costa rica a lot lol
Damn that's good to have confirmed
I have never been to Brazil but if it's like Colombia you can walk everywhere in your city right?
south america pretty good time zone for remote work, actually
yes but in brazil you need a dummy wallet 
I'm sure it depends on the neighborhood lol
It depends a lot to be fair
Lots of different cities with different problems it's a big country
Rio de janeiro is just hell yeah and I would to move there to pursue naval engineering
brazil's got pretty good infrastructure tho doesnt it for IT stuff?
Which I'm not a fan of
We have internet i guess
Not sure what else is needed
lol
I think I know what you're talking about, their government is supporting startups or something right?
Power mostly up
I think every non-US country is doing that tho, I'm pretty sure Foxhole gets a grant from the Canadian gov
Oh God
i imagine if there was any grant its peanuts
theyve been a successful company for a long time
What is the claimed employ count for clapfoot again?
pretty sure its over 10
Also yeah foxhole been getting lots of sales
maybe 15?
They have the manpower to work on Foxhole and develop anvil
if there was a grant, it sure sounds like it did exactly what it was meant to do
this may have been what they were referring to
successful canadian game company making big international sales of their product
what's Anvil?
A prototype the foxhole devs are working on
75% @ $1.5M that is way more than I expected
It's also a top down game but set in the early medieval era with 3 factions
Lots of information about it is still under NDA though
as col as that sounds I really hope it doesn't take away from Foxhole
Yeah they claim to want to finish foxhole before making it an actual game
Does CS in the us teach everything related to computers or just programming?
it depends on your curriculum
my most useful classes were electives tbh
I did Java 1 which was intro to programming
just programming
Java 2 which was OOP, code organization like classes and stuff etc
Uuh the testers can't disclosure much yet because of the nda, but think independent rust settlements under the same team fighting each other from time to time
Data Structures in C++
CIS and IT would be separate, electrical engineering separate, although there is some crossover
I think they require OS right?
I see
i took an OS class, but it was basically a linux class
I didnt take OS because I was CE but I did take an Assembler class where we learned microprocessor architecture
ah ok I think at my school they had to make schedulers and quadtrees and partitions and stuff
Lmao
BSPs are like ... a page in my data structure book
i used to think i was doing linear algebra when i was game programming young, turns out i was doing a single chapter from my linear algebra book
I know so little about actual CS it's embarrasssing
like the hard stuff
I just plug libraries together
My biggest fear is that the market gets oversaturated
Since i know a lot of people who want to pursue it too because of the money
For the last 30 years the industry grows faster than the work force
They cannot train people fast enough
And for the foreseeable future, the number of programmers with less than 5 years experience is more than half the industry
So if you can get 5 years of experience you're in the top half already
I see
I dunno what other industries are like that
Like 5 years of experience makes you a senior programmer
are you guys familiar with scriptable objects in unity?
i mean they are technically monobehaviors
yeah somewhat
I used them sparingly with visitor pattern to implement different units in an RTS demo
Not sure if you guys participate in Game Jams often but my current project is trying to make an AI-composer that can compose NES chiptunes for game jams
Website using AI to generate music
The model is pretty bad right now, I've been trying to train a new one but it's hard to learn the specifics of how to actually use transformers without a mentor or formal background in ML
ngl that sounds hard AF
Luckily the Transformer architecture has made NLP way easier than it was like 5 years ago
NLP? neural linquistic programming? 
so I am just using 2 MIDI datasets that I converted to a text-based representation
Natural Language Processing
oh.
so I can generate the MIDI as text and convert the text back to a MIDI file
the problem is that
- It takes a lot of data
- it takes a large model
i bet
- it takes a long time to train
So iterative development is hard when it takes 3-4 days to see if a model is working out or not
Also if the model is too large I may have to switch from AWS Lambda to like Sagemaker or a dedicated server or something
and I dont really enjoy teaching myself AWS if it's not paid
but the actual training loops are pretty trivial, they just have a script you run. My biggest problem is troubleshooting and not understanding which parameters I can tune for my use case
3-4 days sounds ... like a long time to train
AWS is expensive AF
is that how people do stuff? use aws to train models? i would have expected people train things on a local machine with a gpu
I use Google Colab cuz it’s $10 a month and I get 24/7 access to a P100
Some people use Sagemaker (AWS) or whatever the Azure equivalent is
Google Colab pro is just the poor man’s version since you can load up a Python notebook and run it for 24 hrs continuously
you get ... a gpu?
wow free of charge. wow wtf
have you seen the jetson devices nvidia offers?
The power of modern AI is now available for makers, learners, and embedded developers everywhere. NVIDIA Jetson Nano Developer Kit is a small, powerful computer that lets you run multiple neural networks in parallel for applications like image classification, object detection, segmentation, and speech processing.
its what i use when my laptop just cant swing it and im not home
err i have a server now, but i used to
I have not. Is it for inference or training?
its just ... i mean its basically a raspberry pi with a GPU strapped to it that runs on usb c
i think i got mine for only $50, i would say its equivilent to my 750 ti
Ah ok
they have expensive ones that are like $500
So probably not for training then
yea sure
Damn 😳
Yeah for sure
but i didnt know google had some free compute power available, thats cool
I’d love to get a Valve Index but I really dont want to shell out $1k for a headset and then another $800 for a gpu
Yeah you have access to a T4 for free
oh is it a ... turing? or somethin?
ah tesla, holy crap thats ... a lot of gpu
what stops someone from abusing this to mine crypto or something? what kind of limits on it?
why dont they have massive cooling units on them? 
it looks passively cooled, are they relying on chassis fans?
wtf it is passive and its only 70W
only 32 bit floats, hmm, i still dont understand where all the power comes from if its not using a ton of power and making a ton of heat
You have to stay logged in
I’m not sure how crypto mining works but I’m sure they have checks for that
C++ programming language
Interview with a senior C++ developer in 2022 with Gunter Peterson - aired on © 2022 The C++.
Programmer humor
C++ humor
Programming jokes
Programming memes
C++ 2022
C memes
C++ jokes
hybrid inheritance
memory allocation jokes
pointers, references, structs,
webassembly
#programming
#jokes
#c++
I love it
"We need to see the compiler as an enemy" 
i love this
his python developer one is pretty damn accurate lol
im afraid to watch ones about languages i like
says something about when they have dependency problems he usually recommends his students pivot their idea 
Any endpoint to track player deaths or how many players a player has killed...steam id, etc...
Didn't see anything on docs for endpoint, didn't know if devs have said anything about it one way or another.
Nah i dont think that endpoint is public
or even if there is one
for specific players
you can get total kills tho
Yeah...got all that...would be nice to know
API is like lowest prio for the devs
it would be so interesting to work on that
I assume the devs already have an API for it all, since its in the game. Just not public.
yea but how to expose that in a reliable performant way that doesnt allow abuse
true
it would be amazing tho, if you could opt in, like each war a player generated a random key, like a password
well a user key i was thinking
Since deaths show up in chat log it is something they would be tracking at some level
like if users could allow logiwaze to see their global position, omg
imagine the team coordinating tools if you could know positions
and i figure that could work the same for the other data in their profile
how would it be abused? user opts in. password changes every war
not abused, performant*
I have several tools in mind...just didn't know what's been explored /mentioned
A player scoreboard would be so cool, who has the most kills scrap etc
the key could be stored in their profile, hidden, so whatever theyre currently doing for data storage wouldnt be impacted
If user deaths were public via api, you would inadvertently expose what server they were on 😉
they could limit polling intervals too, i dunno
i imagine they never hired that backend person their job ad was for
or maybe its actually an anvil gig
Well getting position from an API would be hard, cuz each game server has to send an update to the api server
well only the game server that user is in
but theyre doing that already, i assume, with intel
true
I'm going to have to dig around the files...haha
its not in any files
But still...you could localize
its in the profile, which is sent through https
I mean you could create something to read the game updates sent to your client
but i assume thats bannable
but itd have to be sniffing packets
its not ... modifying anything
but it could only be used as a local program, not a 3rd party service
god i wish we could get positions, it opens up so many features and tools
why not?
how would you tap into packets from a website?
thats gonna need higher auth (root/admin)
You would be how many game files are stored as plain text (JSON) because it's easy to edit and not have to recompile
wdym tap into packets from a website
You can capture packets via tool...wireshark is probs best
to get the profile data you need the game client. you cant really make your own replacement because ....you know security or whatever
so you have to tap into the game client's connection to read the traffic
you cannot do that with javascript to my knowledge
it would have to be a program with root privileges to see that
Have a program decoding the client, send decoded packets to a middle man, have the website poll the middle man for updates
e.g. wireshark
Yeah...just hooks into local network...you can get passwords/everything if you are determined enough
but you see? you still need a program on the local computer
yeah
oh i guess if you ran this 3rd party program then you could have a service on a website
but asking users to install your exe is uh ... a lot
especially if youre gonna read their private game profile data or something, i think unethical
What i have in mind is this, have a program that decoded intel chat, then send it to a server relaying positions etc. then the web server polls that for the position and puts them on the website
oh yea you could do that with a single program i suppose and share the results
youd need two i suppose
I'm just looking at files for endpoints...not in users stuff...once I know what exists in good to go
that definitely would be frowned on haha
theres no endpoints for deaths, sorry j33p, its in the profile surely
But they will never knows its me 😈 /s
theres no endpoints in the api for any player specific data
yea i hate to build something on a house of cards tho
Running a hex editor on game .exe would be frowned upon, but you could see everything
all they would have to do is encrypt another layer on the profile data as it transfers to client
No public api that we know of*
youre not gonna disassemble the client to figure out how that works
I mean you can decompile the Unreal sdk, and dump the games one
its interesting, they could open source pieces of their game system and we would work on them for free
But I respect the devs enough, hex editor is not ethical,
like that part of the backend, i would suspect theres no particularly valuable intellectual property in that part
I'm just going to poke at the api a bit
Not much to do with the api ATM since foxholestats exists and is very 👌
Yeah, I'm a command line junkie...so I'm writing a tool to pull it up on command line...
No website
hex editing does not seem unethical to me
reading the executable bytes youre willing to run? i see nothing unethical about that
Read TOS about hex editors
Will you even get anything from that? i assume the EXE is not the actual game but just the engine that pulls in the necessary files
Hmm
I’m pretty new to networking. How difficult would it be to make a mod that acts as a man in the middle and intercepts the https message and forwards it to another server?
That’s probably against TOS and technically malware/mitm
a mod? impossible, a separate program? probably not that hard
But it could be used as a state tracker or something
or just tap into wireshark instead
That’s basically how Minecraft hacked clients work
I have a Kali Linux book I need to start
So lazy tho
its very easy to make changes to block and hide it tho, so yea, house of cards
i should note, if its an encrypted packet, you can decrypt it, but i think you wont be able to encrypt it, so read only, no write
The only problem is that it could be easily adapted to do things like show all players in a hex
X-ray etc
the client verifies the remote server public key, so...
Yeah but even reading is hard
Is it sha2
passing the certificates through so it looks untampered
uhh i expect sha is in there but https is usually tls 1.3
Sorry I meant to say reading has like potential to do damage
Like xray and stuff
if you control the machine, with admin powers, you can definitely eavesdrop on all the communications
I’m just talking about intercepting packets and reading data that the game hides from you
Like seeing enemies without a radio
Or seeing all enemies in a hex
Seeing what backpacks have valuable items
That’s definitely against TOS
But it would be nice to just make a mod that tracks your kills from reading packets
100% i think
if not thats just bad design
well i assume there are some cases where you still know there position but cant see them
Not sure, that would require some sort of geospatial query+different flags for having radios and stuff
I figured there would be 1 api with player positions and the masking occurs on the client side
intel data and game state are different sets of data i think
I assume radios are a different packet
Oh yeah that too
Maybe, it could also just be using player updates from the game state but that would be so unsecure
and not possible because other regions exist
They do
Oh ok nvm then
making my way down the api ....will need to clean up and put it behind a terminal gui....
time for a beer
What’s your end goal?
Terminal based GUI for war api, using ncurses or tui...maybe quick resource kookup
Good example of what I'm going for https://images.app.goo.gl/Abtf2E5GSm7RvXtz9
Eventually I will dockerize, maybe some logistics planning, we will see...on thing at a time, just playing and having fun atm
i love console stuff
If there is enough interest in it ill make it public
is it bad that I like writing Dockerfiles?
something about it is fun. Trying to remove as many dependencies as I can to make a small image.
also probably because I can just watch youtube while it builds
Haha...if you think kub is hell....try talos os...entire os is read only and no shell
I have heard Kubernetes is bad but never had a reason to use it
im moving my homelab to it...i couple work projects im on are using it
what's a homelab?
I figured I'd only ever really need it in a job setting
I was thinking the other day about how game servers dont crap out like they used to when I was a kid
I had a hunch it was due to on-demand cloud computing and orchestration
but I'm not sure
i have 2 servers now in my homelab...getting ready to go up to 4
I remember back in the day MW2 and Halo 3 would have absolutely horrendous lag during high load times
i feel like this is an easy problem to solve i just don't know how to describe it to google in unity
how can i make it so a sprite always faces the camera in unity without running it in the cpu from a script telling the object to rotate to the camera every frame, like do i need a shader for that or is there a built in component for that?
I am pretty sure there is a sprite option to make the sprite always be rendered flat int he view
so I know it's possible because of the fact that there is a setting for it in the particle effects generator, but I cant find any way other than from a monobehavior using transform.lookat, so maybe that's the only way to do it in Unity
either way I dont think that's a very exepensive call even for a lot of GameObjects
i see
and yeah i can't find any option for that in the sprite renderer itself
i will go with the monobehavior approach for now then thanks for the help
I think maybe if the sprite is a child of the canvas
but then you have to change its position to match the viewport, so either way you're stuck with math on the CPU
yeah
Im sure it can be done with shaders but I know nothing about shaders
got most of api consuption done....now to the terminal gui
yes. its called a billboard
particles always face the camera but you probably still need to make your own vertex shader and i remember them having a maximum size
i see it's mainly used for lod thanks
I wish the devs would make the logi API public
I was thinking of how cool the visualization would be of all the resources that get mined and wehre they end up
the distribution of what gets made
I did the math and it seems like the economic output of one hex for one hour is enough to generate 10k shirts, or about 4hrs worth of respawns. I would like to know how many gsupps get used up per hour
im finally though all the api stuff now....just cleaning up files and now to the terminal....still need to write unit tests to make sure when devs change api that it does not bork my code w/o letting me know
i though about streaming it.....but dont know what category to put it in...would people get mad if i was working on code in the game channel?
plus im taking the opp to learn golang, so im still having to look a ton of stuff up
do you have a repo? I'm putting htogether a repo of Fxohole projects
Go is really cool, I wish I had an excuse to learn it more
yeah...i have git accounts i use....right now its under my personal, and i dont want to dox myself.....but my public should be linked to my discord profile
the only things on my public gh of intrest is my new kubenetes server kickoff bash scripts
i will....just too lazy to witch token over right now..hahha
when the code is flowing you dont stop
well its like i started writing everything in one giant main.go, then moved the funcs/structs to their own dir (package), and now just import the package back to main......super simple/easy.....
im going to make the terminal calls w/ flags first, ie from bash :bash foxTerm --dynamicMaps --MapName Tempest Island would shoot you back the api call GET /worldconquest/maps/:mapName/dynamic/public
once i get that working Ill publish for others to use, then use in my terminal version
only down side is, since its a docker app, the static stuff which really only needs to be called once per war, will be called each time it starts up, not a super huge issue, but will save memory on my side when down
it can be....underlying goal is to make flexible, ie: I want to build this into a website, switch to grpc and protobuf, whatever, ill be ready
but this will be running on my server stack as a service and i will call internally
devs are already hosting data so i really dont need to store anything here, im not worried about track who won/lost over time.... just current stats
:wq
*sorry, wrong window
ohhhh....another idea....give alerts in discord for map info...ie if you set your faction as Colonial, when a Colonial area is lost to wardens, post message in discord
lol vim user
ahh....thats cool.....still will give it a shot....would be cool to build....plus i like the challenge
yessir
the only way to go
I would love to learn vim but I never have the time
at work I need to be fast so I dont have time to take it slow and learn the key-bindings
and when I'm home I dont want to have to learn a new code editor just to work on a project
I use it sparingly when I am ssh'ed into my pi and want to make changes to something locally
i learned it in college, took me about a month to get the point where i was just as fast as with VS code (which i will still use on occasion), and have never looked back
now w/ my extensions, i am not missing much ...ie file browser
since the keybindings make navigation faster, but the integration with git and and the plugins for syntax highlighting different languages is pog
I still dont think I'd leave
unless there is a good way to replace the command palette
yeah...i use VS code vim plugin when i need to use VS code
the whole fact my hands dont have to leave the keyboard is what really convinced me to learn vim
yeah that's what I would like to be able to do
just a couple hours a day, you will be just as fast as you are now,
plus, if you need help...ping me.... I am not the best, but I will try to find an answer, always happy to help where I can
yah i liked golang when i used it, but its still just a immature version of c# IMO
in terms of what i can practically do, still a pain in the ass in go compared to others
i think for any use i would have for go would be better spent in rust, i dunno
mostly just disappointed with golang's threading model
haha...purpose built for multithread...most other languages at this point multithread is a bolt on
concurrency and pipes between threads...you dont really need async
alright....a diff solution to a problem is just a diff solution.....they are going about it completely diff
its a ... fun language if you dont already do c# haha
but a language without async now? not solving my problems
can build it yourself but its a ton of work
ive done C#....in general i cannot stand object oriented programming , im more of a functional guy.....this feels more functional....
hmm i feel c# is way more functional than golang
i dont need to tell my program what a math problem is to do addition
lot of convergence between c# and f#
i meant to say procedural...not functional....too many screens
yea i can see that
the golang ecosystem is pretty good
just not impressed by the language anymore
i am not super into any one language, im more of a polyglot...i float between what i need to get things done, still use python if i need to get something stood up quickly(i mean come on, its pseudo code....import project and your done)
oh....forgot about goroutines(allows you to spawn new instances of a function), then you use pipes to communticate btwn process, which would be your async
async is good
not debating whether its good or not....its good, yes....golang is just doing it differently
https://medium.com/@gauravsingharoy/asynchronous-programming-with-go-546b96cd50c1 .... go routines execute async
thats what i have been saying...maybe this article will explain it better than me
not trying to start a fight or argue about whats better, just pointing it out.....at the end of the day, everyone has there prefs and that is cool
go has pointers? i thought it was garbage collected and it was references
wow its been too long lol
but no, spawning threads and joining them is not the same as async, its not just doing it a different way. its entirely not doing async
async is not threading
its executing instructions out of order with a state machine
and i cant live without it now
@long raft you do some data science, right? Are there any courses or certs you recommend? My girlfriend is graduating as a Civil, but wants to actually make money so she wants to get into tech, but probably not as a straight-up SWE. She is considering data science instead.
i dont know much about certs, never had much confidence in those
uhh i honestly dont know, i just learned stuff in my degree
sure seems to me like compute and nosql is the near future, but you probably have as much or more insight as me
i end up doing work for academia/non profits so probably not realistically a good picture of data science
shes getting a civil engineering degree? is that what civil is?
yeah
she wants to learn SQL but honestly I think she should just learn some basic SWE skills and then learn on the job
like if she can learn Python and then get paid to make a REST API with Flask then she can get a job easily and start getting paid to learn + will get SWE experience on a resume
theres more money in software than civil engineering??
100%
I think Civil Engineers pay caps out at $120k
vs a lot of new grads who make that in tech
wow really? i mean maybe in silicon valley
Is that 120k yearly or monthly
Oh
It varies by industry and location
but now with remote you can get closer to Bay Area pay for sure
"big tech" pays a crazy amount
70k average
but on average is more than graduates expect to make, evidently
ok so im not way off
easier to get a software job, sure, but i would think civil engineering pays more
ya know cause its an actual engineering degree
she got a pretty competitive job and it pays significantly less than my first job out of school which was on the lower end of software jobs
it was Matlab stuff for a gov contractor
hmm
well shes got the math background, thats usually what holds most people back from switching into the field
and physics too wow
yeah I think if she got one framework under her belt + git then she'd be gucci
I am trying to help her make a React app and then hopefully a Flask API
i always kinda felt like ... the job can be boring so if its just about money it might be hard, you kind of have to love this stuff, am i wrong?
I do think you have to enjoy it
but I dont think she would enjoy Civil either lol
and I think there are a lot of places wehjre you can make very good pay doing very littlew
i want to find one of those
as much as i love programming i find this work exhausting. every day is troubleshooting, nothign is ever just do easy work you do every day and know how to do
Join a government contractor lol
i feel like most people get a job that has a lot of monotony, standing on your feet, doing some repetitive task, but troubleshooting and problem solving all day long is exhausting and i feel 10 years older than i am
My first job I didn’t have anything to do
I learned a decent amount of Japanese
And then left after 5 months because I didn’t want to stagnate
No I am just a weeb
俺のしごとはつまらないです😢
Oh I should clarify, I was so bored that I decided to start learning Japanese
lol
Are you an in house tech support?
no
i mean yes, actually
i have a small company, and i do the IT for it, so i guess i am
but i was referring to the programming work
Are you the owner of the company?
yes
Thats probably the stressful part
i hate my employees
LOL
Fascinating
I would love to own a company some day but being told what to do is great. No big decisions to make
well i learned years and years ago partnerships suck, you may already have guessed that about business
my hatred? well my employees are asshole dipshits concerned about themselves
Well yeah
I'm assuming you're not running a charity
honestly im in the process of shutting it down
i hate it and i just want to go work for somebody else or retire
because i dont like the politics and i dont like being responsible for other people anymore
Maybe you're just too soft
i am, im a programmer not a manager, but still
you cannot believe how shitty people are, how they will exploit anything they can get away with
Did anyone steal your IP?
no we dont have any IP
like ... just the way employees steal time
or inconsiderate behavior to others
What area is the business in? If you dont mind me asking?
Also what does your hiring process look like?
If you don't have any IP wtf do you code
im shrinking until it dies, no more hiring
yea
i am the most chill boss
i pay big bonuses whenever possible, i share all the profits, im totally flexible with any requests
and i hate them and i wont be giving them a reference
we shall see how much they enjoy their pay cuts at their next jobs
Damn that’s surprising I wonder why they are all so complacent
The first place I worked at was like that
just low quality employees
A lot of learned helplessness and “not my problem”
Sounds like you don't exert a lot of influence in personal meetings and are too agreeable
And you secretly hate it
nobody would call me agreeable kastow lol
nobody in life.
but i am very easy to work for
Let me be the first one then lmao
i am ... very opinionated, and i used to be ambitious, which is why i sign their paychecks and not the other way around
i think it comes out clearly here i am not particularly agreeable
but im very fair
Do you do people's job for them?
How long are you allowing them to be stuck in one place
In a task
oh well see ... heh
When something blocks progress
people have a way of just like ... feigning helplessness or taking so long you just give up waiting
For me a hard limit is about 3 days
people who are not self motivated will just build a list of incomplete tasks that grows
if you want them to do the work you have to basically hold their hand the entire time, meaning you have 2 people working on 1 task
yes, hiring is everything...
That was my old job
2 people on one task doubles the time
it sure does
They had been blocked 3 months because people refused to use an IDE
its like having your best combat players doing shirt logi
And so they had edited and added extra whitespace to a Python script
Couldn’t be bothered to actually read the error message that clearly said “missing indentation”
hah i specifically remember one day moorep came back to play and then i found him building watch towers
Left it for 3 months
see, theyre not stupid, seabass. theyre unmotivated to be smart
This was a critical script used to run things for the customer too
because they dont really want to make it work
They just said “oh well”
Yeah it was a combination of zero incentive and zero expectations
The thing is they are a major industry player too
If not for foxhole I would have never on earth been a full stack
I despise web dev with all my heart
So you would expect them to have standards. I can’t imagine how bad Boeing and Lockheed are.
i worked with a guy from myanman who managed to get a computer (he said a car was $900,000 at the time in country) and learn to program
motivation is ...more important than schooling or smarts
a rare gift to have
That’s crazy
Web dev takes a lot of patience
yea wish i had hired him hes amazing
lacking formal education tho, that background can be important in stuff i do
he programs so much faster than i do tho it blows my mind
yes web dev is the worst [hardest] kind of dev
actually, game programming, then web dev
Uni hasn't given me much... maybe education on sql, flat design, coloring, html, css
yea i mean the math
That's about it
the physics aint important in software but the math is
I barely passed the math courses
or like the formal CS classes
for example, 90% of the programmers ive worked with do not know how to make a parser
maybe thats kind of advanced, but algorithms and data structures is a must, and i suppose one could learn that in ...3-4 months
Do you hire fucking burger flippers?
Idk how to make a Parser
What do you mean by parser
But also I was Comp Eng and never took an OS class
Like with a syntax tree and shit?
it would be the capstone class on computer science
Idk if they even do that anymore lmao
i sure hope they do its one of the most important things
I had one class where I was exposed to pointers
Back in '18 I made c# script that parsed mod logs and found alts on foxhole, is that a parser?
pointers ... meh. data structures and computing theory is important
But I did learn machine code and had to write opcodes and stuff and trace the CPU execution
He’s talking about a language parser
yea i mean its a basic version
but yes particularly lexical parsers (regex) and state machines and context free grammars
the elements of making a language, yes
Hmm
it is the fundamentals of computing
But do you need them in your everyday work?
I used ANTLR to generate a lexer/parser in js for a custom language but all I did was provide it with a modified grammar
i do, because im ambitious
code monkeys get through the day using vectors for everything and not knowing how to build a parser
But I have no idea how it actually works. Some sort of tree I think
Sounds like you're running out of steam
lol
i just dont want to be a boss anymore
i still very much enjoy software dev
but as i get older i know immediately who not to work with now
(anyone who wants to work with you)
Elaborate
anyone who wants to work with you is because youve got the juice and they want some of it
Any books you recommend for the low-level CS theory stuff? Writing lexers parsers and compilers etc
you can choose to do that, but youre going to be carrying them
I read through OS in 3 easy parts which was recommended on HN, great resource
uhh ive only got my old textbooks, the books tend to be short, the topics are terse
i dont really know them by name
i dont have my bookshelf with me either
Are you familiar with Justine Tunney’s work?
you must have people in your life that have a lot of cool "app" ideas that want you to build them. they would consider it a partnership
i always hated the "hey i have an idea! develop it alone and give me half of everything" guy
this is some obscure stuff wow
they think the idea is worth half of the inevitably money losing venture
A guy came up to me at my desk at university (I worked doing coding stuff for the school)
maybe that's because i had so many growing up
Ah. Those people
He asked me completely seriously if we could make his idea real. It was Facebook mixed with Pokemon Go
He wanted 50% ownership and the University’s coding people could do all the work
so you think this behavior is limited to non coders, but its not
lmao
A critical part of any idea is starting small
Foxhole started from just abandoned ward
i figure if you work at microsoft or whatever everyone there is amazing and i couldnt keep up with them and they would look at me as the app guy
Another guy called asking us to make an inverntory sustem for a warehouse. He would get pissed when we said no and then call again a week later and get pissed again lmao
well as much as ill complain foxhole is taking too long, 5 years is the kind of stamina good programmers have
if even valve has the actual productive people and the people who just tag along i guess most companies are like that
valve is like that? i wouuld not have expected that of premier software companies
i mean they have their pick of employees, unlike me i guess
I thought it was more due to internal politics
apparently it's really stressful to work there because you are graded by other employs not actual work done
There are people who cant do work since someone else will take over a successful project and credit it as theirs
Or kill it since it’s taking engineers away from their team
the last tf2 dev 💀
im not ... huge about getting credit, but if im doing all the dragging and carrying i cannot grow, i cannot learn new things
How many more apocalypses do we have to live through until they release hl3
its ... been a dense number of apocalypses lately kastow thats not fair
Personally I think if Marc Laidlaw’s script was anything to go on, they wrote themselves into a corner
It’s difficult to resolve a story against an enemy like the combine, they are basically God
when i was younger i always wanted to work at valve, but now that even the employ primer book was said to be fake everything just fell apart
do you have a dream company now?
yes my own