#code-talk
2 messages · Page 1 of 1 (latest)
mist or beast
thats good stuff aswell.
once war start is over i will like start messing around with it
i just figured the EASIEST solution would be to start with something like the full size map kastow initially used and just make the tseko map match that perfectly
i dont think most people use the tiles included in the warapi
we extract them from the game assets or a map mod
they are 4x larger
but you do have to crop them into the hex shape because they have slop
@long raft https://github.com/Tsekho/fh_map_exporter/blob/main/export/_final/assembly/base_layer.png but yeah i want to base mine of this + the overlays
are you sure its exported correctly?
theres a tiny margin (that looks weird) where the border lines obscure it
perhaps if you werent the one that exported it, this is a version that tightened up the alignment to hide that map weirdness
What the hell? Unreal Engine 6 is being teased now
Unreal Engine 5 is perhaps the biggest pig of an engine my computer has ever had the misfortune of playing a game on and they’re moving onto a version 6 instead of fixing the quagmire that is 5?
I thought it was already out
If something is UE5 I try to avoid
My gf tried playing the UE5 oblivion remake but the performance is abysmal
Constant stuttering
Mind you I have a Ryzen 9 or something and an RTX 3070 so I should be able to handle the unrealslop
the 6 foreshadowed how many fps ur getting on a build
Hey @barren quarry @pure sierra @young pilot - tell your friends, tell your family, tell your sister, tell your brother, tell your dog, tell your burrito, here's a place to talk development, code, and so on!
@keen dome
finna code real quick
uh
@burrito
=get(sir)
Anyone speak, C#?
@sharp breach lemme get my dog
if(admin != true){
ban[i] == 0;
}
I speak quake compiler
I spek source 3
I speak microsoft excel
Probably a place for @zealous sonnet too! 👋
where's smokeage when you need em with the floating trucks
Code Talk
• Only development talk
• NOT a place to talk about Foxhole game development
• PLEASE MAKE SURE YOU'RE SCRUBBING YOUR CODE FOR TOKENS/KEYS!!!
• Utilize code block when sharing code; if code is too long, share direct git links or pastebin/ghostbin/whatever bin you use
• No zip or other archive files!
• BEWARE OF ANY FILE YOU SHARE OR DOWNLOAD!!!!!
• No pirated content
• No advertising
• Respect each other and follow the rest of #information
• Be courteous!
Foxhole has an official API! Check it out here: https://github.com/clapfoot/warapi
now I can finally share the perils of my senior project with someone
can you pin the official warap gihub repo
games made entirely out of excel

pls make this like bughunter chat @sharp breach
dead?
I feel like exposing this to the elements is not the best of actions
^
anyway, 2:30 am over here, off to bed
sir thought it be better to not be purely FH related for flexibility and generality
*hopes to god this channel doesn't get consumed by anarchy
kind alike art channel
Now I can be publicly aggravated about converting all of modmail from sqlite via knex to using mongo instead.
but can you post code as art?
@sharp breach can you create a tab that says "nerds" and put this chat under it?
i had to spend the day rewriting the team balance monitor, was a written in laravel(php) by someone else, but today it died, dont really know why, would just make really high server load doing basic shit, and it was total overkill to use a framework for something so simple so a rewrote it in 2 notepad scripts, runs much faster now....
heh
I recently dove into using vue
the modmail dashboard is vue
Decently robust
Bet this be dead?
I think this is dead.
no u


What's the code being discussed, or is the talk not specific?
Any code :)
Alright, I'll keep that in mind
not coding but how do i get role in this discord server 😄
Finally a proper channel for us nerds
@neat fossil Check out #information at the very bottom! :D
thanks!!!
I spent like half a day trying to figure out how to make the stripes on the progress bar brighter because they were almost invisible on the yellow background I picked
That shit was not easy to google
Eventually I figured it out using browser inspector

But it was easy to do after figuring that out right? Luckily it was only half a day lol. I spent several weeks tweaking code to balance unit stats and sizes for a game once even though the game is rather old.
I work mainly with hardware and components these days alongside policies and procedures. Occasionally I help with network design and maintenance though.
{
"name": "foxholegame",
"version": "2.8.0",
"description": "This server serves as a major platform to keep in touch with the developers and members of the community during the ongoing development of Foxhole.",
"license": "UNLICENSED",
"main": "src/fod.js",
"scripts": {
"start": "node src/fod.js"
},
"author": "",
"dependencies": {
"hb": "^1.4.3",
"devs": "^0.8.4",
"blamekfc": "^4.16.3",
"burrito": "^0.5.0",
"modmail": "^3.12.1",
"commend": "^8.3.0",
"praise": "^0.14.2",
"warden": "^1.3.4",
"discordmods": "2.1.13",
"colonial": "^2.21.0",
"militarypolice": "^2.0.1",
"regulars": "^4.0.0",
"dabfoot": "^3.8.3",
"welcomerules": "^1.6.2",
"offtopic": "^3.1.0",
"gamemods": "^3.6.9"
},
"optionalDependencies": {
"mute": "^1.3.3"
},
"devDependencies": {
"sirstestzone": "^3.9.1"
}
}

excuse me
game is dont find a server
tell 'restart steam and also verify that you have latest version of the game
@halcyon cave Please ask in #technical-chat
i ask but anybody dont asked
lol
beep beep, boo-boo beep
its a chat for nerds
Memes >>>>>> outtahere
Oh @sharp breach you can post meme at here ?
No...
-/../.../.._
marin #general-discussion
@frozen talon how did u get happy holidays
Neeeeeerdddsssss
Remove(@neat fossil);
@kind glacier please don't ping roles unnecessarily
Fuck me.
😂
Also, if ya aren't actually talking code or development, this ain't the channel for you.


@edgy basin #information bottom of that channel
Guess I should have literally typed out plus
Need to figure out a way to force people to read the welcome rules like with a consent agreement
Or acceptable use policy
there is a bunch of bots for that
Oh I'm sure there are
but not in this channel 😉
Used similar bots for age restricted channels before
This is development talk, so gtfo
thats what i like to hear
It can also lead to coding
👍 this is what i like to hear and see 
should continue on my publisher bot
What's your publisher bot?
What's the publisher bot's function?
for the newspapers people make 😉
Ah
now our boi has to drop it in every channel, but then it can publish it en masse
and perhaps expand on that
maybe make it that multiple people can publish via it and that you can subscribe to papers per discord
so you could also get a warden newspaper when one appears?
but first lets this thing first
Maybe ask Sethfire about it, since he does that sort of with foxhole war map
Not sure if you've seen it
I talked ith him, but he uses Js, I do python
Ah
python is cool
Python is interesting indeed
and prob works well with async features
^^
true, but A. more fluent with python, B. python is lower level so it gives more fundamental stuff, and C.I know some good libs
Fair enough
😉
im going to add safe houses and rocket pads to the event log assume they are meant to be in dynamic and show them blue or geen
That seems logical as safehouses are similar to townhalls in functions
btw, does someone python here, because I have a very small issue I cannot find the solution for
yes i think safehouses makes sense, not sure about rockets
not breaking, bu very annoying for startig up the thing
(i know a little)
(I've never tried it)
What is the issue?
I am working with python lists, no libs or anything
A dumb question: list is the same as an array?
So lists are actually used instead of arrays for python
well, they have some other properties
if you add two together, they are put after each other
[1,2]+[3,4]=[1,2,3,4]
anyhow, I want to load and write from a text file (which contains the channels). I load it at the start of the code as 1,2,3, which works, and I can then use commands to add or remove certain numbers. Issue being, I want to safe these new lists into the file, which it does as ["1","2","3"], which bugs out my reader if I restart the script
I know lists are typically used for smaller data for python as well, and arrays typically are for larger amounts of data
They can be used in conjunction though
but thing is, lists are easier to store these things because they have to be strings
and doing stuff with matrixes containing strings isnt nice
Is this new?
Yeah
I can also opt for using Panda's, but that will be unneasesarly complicate things I guess
have experience with python?
Nope. I have experience in JS, Lua, C++, and C#
bonkers
C# is my primary language atm though
Have you tried arrays instead of lists? I've heard arrays work better when adding or subtracting items
Ah yeah, sorry late at night for me
hahahaha, never good to program sleepy
No it is not. I even played foxhole after finishing a business analysis revolving around SaaS
It was a short document of just over 13,000 words
I'll let my friend who is more familiar with python look into the probable cause though
Whats the issue?
Python list read/writing: I want to load and write from a text file (which contains the channels). I load it at the start of the code as 1,2,3, which works, and I can then use commands to add or remove certain numbers. Issue being, I want to safe these new lists into the file, which it does as ["1","2","3"], which bugs out my reader if I restart the script
save it as a json and read i back that way, json much better/standard for storing array as text
as you will run into trouble if your values have text and they end up with apostrophe or quotes in them
json can handle that
Mouse is the python man for FFL; although I think I remember someone else mentioning it
This the code on stackoverflow?
nah i just posted taht
ok. Well normally we would open the the file being read load it into a new list variable and close that file. Alter the contents we are wanting to. Then if you are wanting to keep the old information as well as the new should not write but append.
I am aware of append
ok.
What solution did you have for a fix?
this code uses pickle
You may also look into using a dictionary in stead of a list. That way you can call use a key variable to referance what ever your wanting to.
So you writing it to binary.
His code is for a bot that publishes like a newspaper out to different discord servers btw
it needs discord channel Ids, which are quite long
Hmm. Im not sure how to publish out to alot of discords as my python knowledege is still in a limited scope.
if loop with every iteration post it in the next channel in the list
I think a dictionary should be able to hold them.
Each discord would have its own key (name) and the value of that called key would be the discord channel itself.
Could always start testing the load
Then you could use like a popitem if to delete said key.
well, cool thing about discord is that you dont need the server name or anything, only IDs and the possibility to write in that channel
I was currently thinking to limit adding/removing channels to the publisher, but perhaps storing it as a set of seperate keys would ease it up on the user end
Depends really on what your going for.
hmmm
using a while loop with a basic y/n toggle for adding another channel seems to be the easiest way to go then storing that data in a dictionary.
I prefer dictionarys cause you can access the information easier. Otherwise with lists you may end up having to slice and all of that.
🤔
just added trend arrows to the map casualty /hr number on my site
code talk?! nice, i am down for this channel
i got some nice code talk
go ahead
are you trolling me?
No
do you know what message this is?
No
it's the fucking zodiac killer lmfao
So are you trolling me?!
:))
:D
😠
D:<
Let's keep non actual development/cold talk outta here
ᴋʟᴀʏɴ#7469 was muted, You've been warned already recently. Keep chats appropriate and on-topic for that channel. See you in a couple hours.
👏👏👏
Dang, I saw new message and got excited
So besicly here we talk about things we did with the api, or we talk about improving the api? Or just in general pepole can drink beer and.talk about their curent project?
@ionic veldt why not all of them
also update for those curious, I managed to make a user-id secure system for my commands after diving deep into the API-ref of the discord-py lib. However, I am very sad, because ofcourse it cannot be converted to an .exe, because the discord-py is not supported with any converter and I am not willing to reprogram that crap
Make the change, make a coverter that can use discord py
I am by far not skilled enough to pull of something like that
and will not be anytime soo n
Soooooooo
Does Vivox VoIP services use SIP messaging by any chance?
@sharp breach
Knowing this could help me trouble shoot if that is the case.
I actually don't know. Maybe throw sip alg off?
Well that is what I am thinking
Oh hey
SIP ALG routes to PBXs
Gotta love working in the VoIP provider world D:
let me check this out, I think SIP ALG may also causes issues.
OOOO it has a link that can check for SIP ALG
That will help me at work!
Ill add that link to the technical chat room, thank you again Sir!
what's the purpose of this chat? Code talk in general?
or specifically about software for Foxhole
@vestal topaz code talk in general

welp
I'm currently trying to figure out how to do async programming
I've put it off for so long
Figured it out at some point, then I moved on to other subjects and it kinda... sagged
i feel like professionally i need it so often
for scripting especially
i can't tell you how many times i've written code that just connects to an api, grabs some data, and does something with it
i think async would help me there immensely
I just but async block around every output lol
PHP is 🐐
c++ multithread socket programing
I was creating the foxhole maps using node js but it would take up to 6min to create all of them. I switched to PHP and it takes less than 2 secs to create 1 map.
I just started programming in C++ for school reasons lol, guess i'll be using this chat sooner or later
why is everyone doing C++ and C#??? what is wrong with python???
Why C++?
Well i use it cuz of school
@languid harness python is euh
but C isn't better
it's just more expanded
most stuff works on C
Python is not class based
^
It's a bit harder to make complex stuff
who needs classes in a communist community
As in it's cluttered af
lmao
nO pOLiTiCs
PHP is fantastic for websites, but for other things, not so much @neat fossil Lol
I'm just happy that now the time taken to create the maps isn't greater the time it takes to update them
But yeah, I'm only using php for this. I have no idea how to implement php besides this tbh
The one big benefit of PHP overall is the fact you can call Variables on the fly
So you can just declare one any where !
I am currently working on putting a php website for myself on a raspberry pi server
that's really awesome
I'm making a discord bot and i'll also host it in a pi
If you do not mind me asking, what will be the site about?
It will most likely be a test ground for PHP projects but most likely a resume website
It will have the main page which is about myself then hidden login that links to other test pages.
one of my biggest inspirations when creating a website is resume/personal websites since this is where creators aren't limited by factors such as clients, audience, etc.
It's a fun project imo
It is where i can just do stuff and make things how i want
But, I am not a developer and don't need a portfolio, would just be cool to have a site that i can put on my business cards
Should look into getting yourself one of the free tier aws/Google cloud/azure servers
but that is too easy!
I want to host all of this off a raspberry pi
I used free tier AWS to setup Apache2 servers in school for Wordpress
I'm currently using aws to host my website, but your interest in hosting it in a pi is quite remarkable. best luck with it.
It isn't too bad, I will need to buy a public IP address from comcast in order to do it. I am fairly decent at networking and have the proper firewall tools to dedicate a VLAN to the raspberry pi on its own subnet. I would basically setup the Raspberry pi with a Ubuntu Server and then attach it to a managed switch with it's own VLAN so public network traffic doesn't spill into the same network as my desktop.
It looks like you got it all figured it out.
I was thinking about hosting my website in a pi but I didn't really want to go through all of the problem in getting a firewall
well a proper firewall
You dont neccessarily need one
Ubiquiti has a Edgerouter-X that can satisfy the neccessary stuff for multiple subnets
I also love Ubiquiti, quality and relatively cheap small to medium business network equipment. Works like a charm and has awesome reporting
May I ask you a question about the pi since you know a lot more about this than me?
Sure go ahead
Im not a subject matter expert in them but i have set up a bunch of OS's on them. Linux is flexible.
In a security standpoint, do you think I would need to go through this kind of process to host the discord bot safely?
I'm unsure if this question makes any sense
if you want I can rephrase
Yes
Why
Because if you host it on the same network as your day to day computers, people will be able to find map your public IP address for your "home network" very easily if it is connected to the bot
It is harder when you have two subnets, two public ip address
I would host the bot in a cloud server, it would be cheaper in the short run in terms of paying for a public IP address and new network equipment. It is also safer because it is hosted else where which has no connection to your house.
Even hosting my website from my house in any way is still risky because it is attached to the same network because of the modem. If i had two seperate modems it would be WAY safer. but that would require two internet subscriptions.
If you are the only one using said bot, then who cares. But if you are letting others use it, it is a security issue because the files are located at your house and are access through your modem using your public ip address.
Sorry if that is too much lol
Thank you very much mate, I really appreciate this kind of information. I didn't know much about this and now i know exactly what I have to do. Cheers
Nah mate it is not
There isn't such thing as too much
especially when I was asking the question
I would look into net+ certification, the courses teach you A LOT of information about how to setup advanced networks. More than just plugging in a router and changing the wifi password lol
I also do not know your level of expertise so i apologize if i am saying anything you already know D:
mate, no need to apologize. I didn't know pretty much anything.
I'll look into it thanks
Yeah if you have anymore questions that i can answer feel free to ask 😄
Hopefully this channel isn't for Foxhole related code-talk lol
Awesome! Then i like this place haha
This is the only channel I'll be using here tbh
Anyhow, I want to thank you again for such a detailed answer!
No problem!
Yeah, network+ is actually a fun class. I found it fun anyways, and the $121 per exam attempt is worth it.
Lots of software and books out there to prep you for it as well; some colleges also offer courses geared towards passing the certification exam
Collies suck
_>
Not the channel for that
Please use #foxhole-discussion to trash talk teams, but keep it civil. I am not saying do it, but if you are, do not do it here.
@strange hazel Yeah I really don't want to have to mute ya mate
is there anyone experienced in Quake Compiler (.qc) files
No
QuakeC
the c in qc doesnt mean compiler
and i haven't touched them since the 90's
but i used to write mods
i sunk far too much time into writing weapons, bots, gamemodes
Tacos
Roger that sending coordinates now
Cuban sandwich
Roger that sending cords now
Doge armadillo doge D7
Mongoose, I say again, mongoose
Whiskey tango foxtrot
Fox Uncle Charlie King Oboe Fox Fox
November Oscar Uniform
Onion bargee repeat Onion bargee
That's not code talk
Nothing extraordinary but this is the git link of the mod mail: https://github.com/Dragory/modmailbot
It's actually not
This is an internal repo between myself and a few others working on it
That's the basic version of it from when it was first implemented here like, 8 months ago
To be fair, I was looking over the commands and stuff and it didn't look efficient for such a big community.
It's actually pretty efficient when set up correctly
There's a lot that we've done to it that makes it work much better, including moving the database away from sqlite and over to mongo (massive rewrite) to allow for keyword search. It's also much easier for us to add features and make changes.
We also have a web backend as well.
Sqlite isn't that great with discord bots
I have used it and it gave me lots of problems
sqlite works fine for the basics. It's just that it's not as efficient as it could be, particularly for large amounts of data
And high read-write as well
Mongo is so far the way to go
good to know that mongo is working find for you, I went for mysql.
but want to change for something else
We've done roughly 3500 individual mod mail threads thus far.
So you can imagine all of the database information that goes into it.
Every single message sent through it is logged.
Live.
Nah. Lemme look at the most recent backup
So, a backup that had maybe 2000 individual threads was about 11mb in sqlite
oh well I kinda overestimated

just a million
not much
I'll try mongo for the discord bot since it looks like it's working fine for you. Thanks for the idea

who the fucks shittalking sqlite
im running of foxhole war map, foxhole mod database, and foxhole fcl standings bot off sqlite
Cool, blog it mate. When you start working with larger data sets let me know.
arent you still using sqlite for mod mail
Nope
Last update was the move to mongo
Which is why it's taken time to get the database converted
The script one of the mm devs wrote basically fucked itself
bleh sqlite is love sqlite is life
Pffft.
this is what the FCL bot database looks like
smol
i use leo as my howi
@young pilot so cute!
I am beginning to think my way of setting up voice lines is a bit flawed.
Anyone got a soundboard of some kind that lets me click a button that selects from a series of sound files? Rather then simply assigning one key for one sound
No idea.
noob
Anyone discover the function to hook for enemy death/kill events?
Ive found a number of obfuscated function names but unable to correlate them
What
hm
what is flag for red
0x08?
only three are listed
IsVictoryBase (0x01) IsHomeBase (0x02) IsBuildSite (0x04)
ill try using 8
nah wait its 0x16
"teamId" : "NONE",
"iconType" : 7,
"x" : 0.32674313,
"y" : 0.5694275,
"flags" : 16
}, {
"teamId" : "NONE",
"iconType" : 35,
"x" : 0.34913877,
"y" : 0.6062856,
"flags" : 16
seems like a new icon is also visible, the rocket launch site
meh
ill just add that under the towns category because im too lazy
to add a new category
but i cant find any faction colored rockets. nor can i find any red fuckin icons
hows that shit, 5 minutes in fucking microsoft paint
perfect.
wrong red reeeeee
@native kernel i need red icons
Fuck.
Rockets also have the 0x16 flag.
Im going to have to do this more carefully
instead of putting it as a seperate icon under the sorting system, im going to put it under the teamid flagging system. so all nuked stuff would belong to a 3rd faction, the "reds" im gonna call it
Nice
for now tier 1 is fine as placeholder but eventually ill find the T2 and T3 red townhalls
oh nice, might have to give this a go
Not much but dec 16 correspond to 0x10
it's pretty pretty
lacking just a bit of detail though 😄
@young pilot how's that?
that works
lol
ill get the official icons from the devs later since the colour might be a little off
they work now as placeholders
oof I fucked up lmao
used a diff method of colouring the rocket to the bases
these colours should be a little closer
Isnt there a rocket site in the top right somewhere?
👍
dunno if you guys are interested but there's a pretty cool challenge that just started
its 10000 binary so the 5th bit has the flag , 0x10 hex (in readme) or 16 in dec
also seems to be problem with 2 towers in oarbreaker, likely not an issue unless you are doing event logs like me

look at these old screens
So in case any body is interested about the war api flag value you do bit masking on it to get the variable value you are interested in
Eg, the new scorched item flag is shown in the api result as 5th bit(digit) of the flag value when converted to binary
So in decimal it will day eg 16, this is 10000 in binary
So that first number in the binary if 1 or 0 indicates if scorched
The other digit positions indicate the other variables like is victory or is build site
So to get just the one you are interested in you do bit masking
The mask is a 'filter' or pattern applied to your variable to give just the bit you are interested in
In this case you use the bitwise AND operator and a mask of 0x10 (hex) or 10000(bin), so an overview of the operation is : if (flag AND 0x10) scorched = true
So of you want to test the 2nd position (is home base) you use 000010 or 10 or 0x2 as the mask
hello
Master hacker here
add missile launch to api? everyone gets notified of it anyway
mhm. imagine an alert at the top of one of those maps or something
a push notification on your phone for incoming nuke
nice countdown, even showing the affected area?
yeah, exactly
i used to do the same for minecraft raiding :~)
MMMMMMMMMM
Yeesssss
That'd be nice
Ill add it to my long list of things to go over when the team gets back in
lol
Presidential Alert: Nuke in the Aging Sea
But yes, a rocket alert zone would be good so we know what we have to get out and where
phone notification
be in the middle of class when suddenly you phone goes
https://www.youtube.com/watch?v=IXTJlH7g0tw
Tactical Nuke Incoming! - Modern Warfare 2
god yes
@pure sierra foxholestats has been down all day for me, updating it or is there something wrong?
^
He ran out his hosting plan data quota
I've added all regions except reaching trail now after some requests
reaching trail is north of mooring county and half of it is basically outside the map so i'll figure out something with adam's help
looks sweet
hello, anyone know if the devs have an opinion on ReadProcessMemory to read certain in-game variables, maybe for a custom overlay? some games allow it, others have strict stances. couldn't find anything about it in a ToS anywhere
obviously wouldn't be writing to process memory or doing anything to automate gameplay
Not that I am aware off, although they have stated that mods will prolly not be a thing. There are a few datastuffies aviable, which the server monitor sites/apps/bots run with
But the data in there is also avaliable via the game itself
im kind of hesitant to do anything because it is possible to gain what i'd consider an advantage just by reading game vars and displaying them in a custom UI
but i have some ideas for just QoL things
Well, the game is in 0.20, amd there is a large route they are following, so expect at least 3, prolly 5ish large updates
and i like how the game is designed right now, it adds to the stress and realism of battle (having to exit the tank to see fuel/ammo counts or ask the engineer)
as an example
Lots gonna change still
copy that, would be interested to see if they have a public stance on it at some point
They recently updated to the current UI for it s larger customizability on the devs end (before that all interfaces were unique). They will prolly make custom interfaces near the final release
im more interested in it for the statistical details you could pull while in a game session, if youre logi u could use it to track ur personal logi efficiency per hr, optimize routes, etc
but if someone created something like an overlay for a BT commander where he could see ammo/fuel/reload progress/tankHP and not communicate at all to the engineer that kinda kills immersion
so i can see both sides
Well, you can ask the dev's stances onnit during the biweekly devstream!
and to clarify what im talking about it wouldnt be actual in-game UI customization, but a 2d directx overlay on top of the game window with a custom UI that pulls information from the game itself using ReadProcessMemory
At the latter half, they answer questions
but thats only because i have not looked into the in-game ui and if they are planning to allow people to customize it or not
this kind of thing can generate rather strong reactions from the community depending on what it's capable of doing so you have to tread lightly, thats why im more interested in helping show and gather metrics to optimize and solve for efficiency problems (helping players better themselves) instead of something that would provide a real-time advantage in battle
anyways, just want to float that idea out there and see if anyones had a similar thought
i will ask the devs on the next stream! thanks for the info @languid harness
It's going to be a double edged sword and a can of worms, as can be used to auto gather and process/display enemy data too using alt accounts
Crossout dB website does this, read game client memory about trading data and display it on a website, the website and memory reader is open source on github.
Maybe @native kernel can chime in on the above
ReadProcessMemory , and the many variants of it windows has, is generally watched for cheating. unless they're not looking at it, i doubt you'd be able to hook it without getting the b&
what is code?
@river zodiac programming, you know, on computers
ReadProcessMemory is a built-in windows API call, you don't need to do any sort of hooking/detours to use it
detecting a ReadProcessMemory call against your process is actually quite involved, you'd have to scan processes that have open handles on your process and make some bold assumptions or do some tricks with VirtualAlloc and QueryWorkingSetEx probably... allocate memory pages with nothing backing them until its accessed, then see which processes accessed these "honeypot" pages and make further conclusions
If I get the chance I'll ask about it but after discussing it with a few people here in private I've decided not proceed with my idea since it could be leveraged to abuse/gain advantages in the game (code would be open-source), which I do not want to promote
while i think it would provide a great benefit to logi efficiency optimization and route planning there are likely other variables in the game that are best left unknown since they would simplify strategies and current mechanics that require communication and teamwork
@tawdry glacier That being said, if you do have some ideas for logi efficiency optimization and route planning, please do relay to us! User input from the people actively invested in the game is invaluable. If we think it fits and adds to the game (and we have the dev-time to do it), we might add it.
Thanks HB, I'll put something together with my ideas and share it in the suggestions channel
i always thought adding timers for work orders to the UI in some way would be a neat feature for logistics
just could never think how to make it work efficiently
i have my own tool used to keep track of logi timers, but wanted a generalized tool available to all through the game
especially with the introduction of private orders
yes
i feel like private orders are more or less left by the creator due to a slip in the mind/forgot the time and that they submitted a work order
Dear internet Friends,
I come fourth to you with this request for assistance:
I need help with a University project that is due Friday night.
I have to write a code in processing which shall be a game called "Scrabbletrainer" in which people get offered letters from which they have to form words. all of which in a timespan of 180 seconds.
If anyone of you great humans feels like he/she is capable of helping out a fellow internet man just ping me and ill send you the details.
@velvet jetty feel free to dm me
lazyness
Coding in python and it looks so fkin ridiculous but it works
made out of boredom...this serves zero purpose lol but i thought it'd be cool. When you mouseover the div it shows a popup with discord chat in real time.
wrong one oops
looks good @terse pelican
kms I'm trying to install javafx with jdk 11 and it sucks assss
fuck I just wasted like 4 hours for no reason
going back to jdk 8 now
Thanks. I had to stop it because the method I used violates discord ToS. Lol
You read through it? @terse pelican
I read into it after an admin here pointed out to me that I needed to stop because it's a bannable offense. I was using my own account to pull chat logs from this like every 6 seconds. Didn't think there was any harm in it and I wasn't being spammy with it. Discord has a rule against using accounts to pull data from discord because it's considered self botting. People can do it using an official bot made on discords website, but server admins have to grant the bot access to the server and give it management permissions and the admins here obviously won't do that. @summer bobcat
It's pretty stupid. Lol
@terse pelican wait, you ran a script from your compiter via a regular account?
I wasn't using an official bot from discord and authorized with server permissions, no. I've already spoke to a foxhole Admin
lol yeah, Sir likes to be on top of server security, I don't blame him
Yeah that's who I talked to
I'm sort of newer to python. I've made reddit bots and messed around with TeamSpeak. Both of those have far more relaxed rules than discord and being newer to discord I wasn't aware.
There's a pretty popular discord api on Google that makes it easy to fetch data from servers. I didn't read into it far enough at first to realize that it's bannable.
Well, in my view, uaing bots the way Discord does is way better than most other services, although the "illegal" bots arent truly prevented outside of punishment
Like, for me there is, afaik, no way to detect you doing it
Sir said if he finds anyone doing it here then he's going to ban them. I spoke openly about it to him, so it was obvious I didn't know.
i was scraping war-correspondent this way for months to get the casualties stats with an alt account for my site....
sir contradicts himself
only say this now though now that i dont need to do it anymore as the same data is in warapi @terse pelican
The question regarding "self bots" has come up here and there, and we'd like to make our stance clear:
Discord's API provides a separate type of user account dedicated to automation, called a bot account. Bot accounts can be created through the applications page, and are authenticated using a token (rather than a username and password). Unlike the normal OAuth2 flow, bot accounts have full access to all API routes without using bearer tokens, and can connect to the Real Time Gateway. Automating normal user accounts (generally called "self-bots") outside of the OAuth2/bot API is forbidden, and can result in an account termination if found.
@pure sierra I see.
@young pilot yep thats the same article I saw.
Any developers here want ownership to foxholeforums.com and its contents? Free of charge
The hosting is free on it and its fast, plus routed through cloudflare. Domain name is paid for a year out.
i think ull find tough competition between here (discord) and reddit
Yeah. lol that's why i'm giving it away. Over time as the community grows, that might change. Idk.. I've ran gaming forums in the far past that had thousands of members but then again reddit wasn't as popular and discord wasn't around.
Still though, gaming forums are still a thing. Sythe.org is a great example. 200,000+ users and still really active
500,000+ users** myhbad
mybad
Star citizen uses a modified version of the same forum software on their site to interact with their community https://forums.robertsspaceindustries.com/
battlefront and company of heroes both use the same forum software as official forums
https://blog.github.com/2019-01-07-new-year-new-github/ GitHub making free private repos for up to 3 collabs
that will be nice, i can finally not need my private svn server as well
i guess microsoft trying to earn some brownie points
me and seth have been doing our stuff on glitch for ages
but it says glitch projects have a limit of 4000 per hour i think
4000 what
*watt
4000 requests
Not enough. I request 60,000 times an hour. 
If the question had more code that would support that function within that method I'd would choose answer choice C other than that it would have a error I'd would assume, not fully sure I may be a little rusty
Bit interesting question what language is it in?
like onions
Assuming this is not fucking matlab, I would chose C
contrary to almost all programming languages, Matlab doesnt start a list on 0, but on 1. It is the most annoying thung to switch between
I personally like E the most, but C is correct
C here aswell, since programming starts from 0 in counting, even if 2 was picked witht he code there, it'd still display onion since the program doesnt know the differance and will pick onion cause its listed.
i saw it on programmerhumor a while ago, according to OP it was a real test question
RIP. all my bots are down because there is no automatic ping to keep them on. Foxhole war map hasnt updated in a few hours. to be fair this site is not meant to keep projects up but to monitor the uptime but im using it to ping the project so it doesn't go to sleep under glitch
Dude you can get hosting for like $6us per year...
uhhhh not sure if this is the right channel for it but what game engine does foxhole uses?
nvm got it unreal engine
Specifically UE 4.20 as of one of the latest updates
420 hell yeaaaaaa
Light it up
just finished moving foxholestats website to a US host from AU to get better bandwidth/$ so running out wont be an issue now, should also load faster for majority of users that are US based
Suprsingly, the dutch sre number ten! 🇳🇱🇳🇱🇳🇱
And still no own language channel, doh!
Poland above Turk yet Turk get their own ch and Polish got their deleted 🤔
@pure sierra what timr spawn is that data from? Since you launched the service? After you relaunched it?
@abstract coral btw the other thing realstew likely did was buy some clicks, ive never looked but im sure there would be sites that sell clicks and you just supply them the link. what i might do is resolve all the click ip's to a country and supply stats next to each user name of click geo distribution, might find 99% of his are in romania
i tihnk i find website that will do it quci know copy pasto
@abstract coral
US US - 360 domains
GB GB - 72 domains
CA CA - 62 domains
DE DE - 34 domains
AU AU - 21 domains
NL NL - 18 domains
PL PL - 16 domains
BE BE - 12 domains
RU RU - 11 domains
SE SE - 11 domains
ES ES - 9 domains
FR FR - 8 domains
CZ CZ - 8 domains
IT IT - 6 domains
DK DK - 5 domains
RO RO - 5 domains
FI FI - 5 domains
AR AR - 4 domains
BR BR - 4 domains
IE IE - 4 domains
NO NO - 4 domains
PH PH - 3 domains
LT LT - 3 domains
PT PT - 3 domains
TR TR - 3 domains
KR KR - 3 domains
that is his hits
thought that too

can you check if he got majority only from link click?
if u can differ the point from link/commend click
i cant differentiate
oof

US US - 200 domains
PL PL - 43 domains
DE DE - 43 domains
GB GB - 39 domains
CA CA - 39 domains
RU RU - 30 domains
CN CN - 20 domains
NL NL - 18 domains
FR FR - 17 domains
TR TR - 13 domains
AU AU - 12 domains
PH PH - 10 domains
BE BE - 8 domains
BR BR - 7 domains
MY MY - 6 domains
KR KR - 6 domains
SE SE - 6 domains
CZ CZ - 6 domains
ID ID - 6 domains
SG SG - 5 domains
AR AR - 5 domains
SK SK - 5 domains
RO RO - 4 domains
UA UA - 4 domains
LV LV - 4 domains
ES ES - 4 domains
so still us majority
but way less
suprisingly my own country is 2nd voter
way less gb ca
so i think he might've bought from a site that has english clickers
likely
"A new API has been to WarAPI for retrieving the current time/day"
Uh... I guess that's a sentence?
heh
git readme has been updated
is there any way to get the contents of in game chats in third party programs?
i had a nice idea for logi about how to give more condensed reports that another program could display for you outside the game
@delicate cliff not really, apart from accessing the game memory but that is grey hat
Probably on the blacker side of grey as well
well it depends on purpose really
but problem is even if it is for good, proliferation of the methods could go dark
speaking of the blacker side of grey... hayden, do you get much harassment over your site IRL?
i wanted to share something with the foxhole communty but debate over publishing anything with my name on it
@long raft when you say IRL do you mean online out of game ? or real real life ?
what i meant is online ?
i wouldnt call it harrasment, ive had objections and complaints and suggestions i didnt agree with but that was more back in the beginning
its all legit now that they shut down steam api and there is only official api
like I know a guy who publishes an online dictionary and gets death threats over it
and ive heard recent rumor of members of the community being "doxed" for something that happened in the game space
i would, for example, be concerned about even using a DNS listed back to my name
nah nothing like that
@long raft any way around that? Creating a company to use as an alias?
Yeah there might be but wasnt sure how necessary
You can still find names through a company, it's just a bit harder
1337
some good news: "This should be fixed in 0.22." -phil
https://github.com/clapfoot/warapi/issues/32#event-2098348236
ayyy
update 0.21 & world conquest 21 ??
coincidence ?
I think not
the game runs great on Linux Mint with Proton, just had to turn the settings down to Medium
Unofficial Linux support 
hmmmmm
did you have to turn it down to medium because of proton?
i had seen the performance was like 99%
@native kernel need new warapi icon for upgrade part mine 0.21
@pure sierra Thanks ill add it to our list
😃
I turned the artillery calculator everyone uses into an Alexa skill: https://www.amazon.com/dp/B07N65J982/
no more alt-tabbing...
What the actual fuck
Like, while I think that this is amazing and needs more attention, (like something in #community-resources) I'm still going to question why you did this
i didnt feel like playing on saturday morning so i did this
and because i have 1 monitor lol
this is hilarious
now I need an alexa
or better, make a Discord bot who connects with the alexa, so you can ask coords and then immediately have it said to the gunner lol
@long raft is it like overlay?
I know green text are illegal in these places, but I have to share my 40 minute pain
when you are trying to make something with only using the API without looking up examples of how other people do it
ToTestMyAbilitiesOfcourse.jpg
I understand everything, was able to gather the data necessary
somehow cannot process data however hard I try
ask on Discord.py discord
"to get the item, use List[0]"
have been using [1]
God I hate Matlab for skrewing up my brain
lol
oof
No it's not overlay just all audio
jesus christ
What language is the War API using?
Ok, I have not used JS in so damn long lmao
I'd like to work on something using the API, just not sure what to do yet...
I had started to work on a correspondent replacement but there's enough out there
I'd like to see more data-oriented projects
Like, showing casualty trends and so on
hayden's map has quite a lot of those graphs
Data analytics, hmmmm
Is there a reason that all the data is null?
Ok, yeah that is what I thought. So is there no data available for skirmishes I guess?
im not very aware on the topic of sending skirmish data to api
skirmish is not in api yet
likely wont be, as mark has said he wants to vanquish the word skirmish from the game
the api is not in any language, so you can use any to interract with it you just make GET requests (aka load a web page) which contains the results in a json of data
to be fair, it is in english
good point, so yes, technically it is in english, at least the documentation is, the api itslef could be said to return english or foxhole speak, which happens to use symbols and numbers appropriated from the english langage.
I am just not very well versed with APIs, but I did some research earlier and figured out how everything basically works.
its the easiest web api you'll ever use...
Thing is with APIs is that they are meant for people who arent well versed
lol i could just populate that alexa skill with the city locations, and you could just say where you are and the name of the town hall to target lol
ive thought of something like that , where you can just click on a map where you are and your target and it tell you the arty details without need for binocs
like an overlay?
more a standalone app
that's kind of the dream i guess - they could always integrate that into the game
make it a website and it can be opened in steam overlay
well there is an arti calculator site of course you can open in the overlay...
but yea its not braindead...
yes, but this would not need a spotter
yea you dont absolutely have to have one if you could measure the map well
compass + caliper works pretty well actually in real life
at least for howi...
yep
so like, pull up the map, then pull up the overlay, line it up, and pick coords?
damn that could work...
hey that would work better in that you would have your position already plotted
bringing arti back 2019
They should simplify the map and then add a tactical map item which allows for a more detailed map (including buildings and everything) and tools to measure distances and such
So how do you use this War API thing? I like to keep and see how the war goes and now without war correspondent I need something else
seth and me and other folks made an interactive map that uses this war api
hayden, the guy above, also has a working map
but our map is a bit malfunctioning atm because we need new region images
Meanwhile, at the foxhole war map dev team
oof
the war correspondent is gone?!
oh my god, I think I did it guys! I finished this bot finally. Now I need order a Raspberry Pi and try to run it on that; who has experience with Raspberries?
i do...
why wouldnt you just ... run the bot in the cloud somewhere
use some free credit or w/e
well a raspberry pi would be the most expensive end of mini computers
I am studying to become an engineer, if I dont even know how to do this, is all that money really worth it?
you can do cheaper, you can do like 5 USD
banana pis, orange pis, im sure there are a hundred flavors/variations now
hmmm
it sounds like you wouldnt need all the bells and whistles of a modern raspberry pi like bluetooth and wifi
maybe wifi...
maybe just for convenience later.
what did you write your bot in? gotta be friendly with linux on an arm processor?
I did it in Python
eh yea should be fine then
Yeah, Pi's usually do better than arduino's with python hehehehehe
there is a python arduino, but not sure how that is configured
Yeah I would just throw it on AWS or google cloud free tier
i guess a rpi 3B is only like 30 usd...
Then I'd get it wayyyy cheaper, I have some gut connections, mhuhahahaha
Well, if you import them from china, they are way cheaper! Good thing I live near one of the worlds biggest harbors
if you import them from china they arent a real raspberry pi rofl
they are close enough
true, i mean i guess the schematics are published...
Yes, let's trust our Discord servers to a bot hosted in a chinapi. 
For a project, we had to order some Arduino's, we later had to buy new ones because we were quite abusive, we have had 3 different models lol
China ftw
abusive? like you ruined them?
eek i just ordered a video card from china, but its so old and slow its probably not counterfeit lol
bought 4 1080ti's last month off of ebay and that was scary too
we had some non-truely engineers, like an architect and Industrial Engineer
IE is the most confusing term for this, but they never thouch a tool
We call it theoretical company management
because it is about process theory and shit, and not about hammering that piece of metal so it fits your design
yea theres a lot of business variations of that degree that dont require engineering livenses lol
licenses*
you know - middle management type of stuff
Yeah, it is just a bit confusing in English
It's a degree in ISOgofuckyourself
anyhow, back to topic! would it be possible to connect an ethernet cable to a micro-usb via a trans-cable and not have the bandwidth all screwed up?
I feel like really bogging this thing
,,,,, perhaps
and if its on a raspberry pi its ... what? usb 2.0?
with all the speed ramifications that includes
certainly faster than your internet speed, probably not as fast as your hard drive even
Raspberry Pi Zero uses Micro USB OTG port
doesnt state it, lemme get a closer look
usb 2 is max speed 480 mbps
so like ... i dunno 25% of the capacity of your network probably
but it doesnt matter - the raspberry pi's use sdcards for storage and they are slow AF
you wont be able to write to them as fast as the network
No good justification for using a pi in this case
and more importantly, the raspberry pi already has a network cable, why would you add another?
we need an angry Foxhole Dev emoji
i mean it already has integrated gigabit network adapter
hey hey hey, I havent done much of this stuff before
the two most important part of raspberry pi is the video chipset and the network adapter in my opinion - its what makes it a full computer
actually - my rpi was 100mbps dunno if they do gigabit network yet
((btw, its micro 2.0))
no im wrong its 100 mbps ethernet, so yea ... slower than USB
@native kernel can you send me a selfie of you being outrageously angry? It's for a good cause.
@sharp breach also, I have looked around for a few online hosting things, but either has a small fee, or some weird small letters. Since I do not like to agree to those terms, it isnt a bad idea to host something myself. My landlord pays for my electricity, and we have glassfiber internet, so I dont pay anything for hosting it in my room except the initial piece. Now if it appears the bot is getting in disuse, I will be able to scavange the thing easily for another project. It also gives some experience and a small test bed to test random stuff on, so that is a plus as well
wat
jeez free electricity and fiber? and youre ONLY using a raspberry pi? server farm time.
Oh you're one of those
welcome to the brainport region
Press F to pay respects for @languid harness 's project
@languid harness you have a desktop or a laptop?
Uni bought laptop
doh
raspberry pi actually a good media machine for watching videos and stuff
not sure if chipset can do h265 or vp9 decoding, actually...
it USED to be great for watching 1080p on your tv with h264
man, I am also kinda like, why not get a arduino nano, run the python converter on it? The bot doesnt deal with any kind of imaging or anything, and is hella small
I think it is cheaper
does le bulk buy
actually, that is way more expensive damn
isnt arduino like ... not a computer?
i mean its ... a computer
its not a FULL computer
its definitely not a desktop experience
well, I am not really looking for a full computer, am I? I just need to run a script
I need a thing that connects to the internet and runs a script I imput
i feel like an arduino is like programming a television remote
and a raspberry pi is like a tiny slow laptop
pretty much yeah
arduino harder for sure
hence I am like, fuck visuals
also more power efficient and cheaper expense if youre mass producing a product
i would imagine the arduino is going to be a lot more work to get what you want
i dunno, what about that raspberry pi zero?
yeah, I have been comparing stats
$10!!
I thing a Zero W is the best budget
jeez i might get one too today lol
i cant believe they can put wifi on it for $5 more
512mb of ram for $5, unbelieveable.
yea if you like programming in c++ heh
i have no idea what the arduino is in actually... i imagine its many languages but still
very low level management
Arduinos are... interesting
nothing like re-inventing a real time OS lol
I would not recommend them for something like this
Like, I would recommend a hamster wheel before an Arduino
both of them will eat their babies when stressed...
im not exactly sure who even tinkers with arduinos
its really only if you need a realtime embedded device i would think

