#code-talk

2 messages · Page 22 of 1

elder iron
#

I finished it

drifting hedge
#

Hey guys, I was planning to do an automatic Arty calculator, the whole idea is that the user would have a hot key to press when he is spotting his own atry, and another when he spots the target

#

and the tool will print out in the screen the directions for the shot

#

i kinow a lot of people use online calculators for that

#

I was just planning to speed the process up by using some OCR into the screen to extract that information straigh from the game

#

do you guys know if this is against TOS?

#

I am thinking of designing it this way because I am considering that hooking into the unreal engine and extracting those from memory would absolutely be a no-go (unlees omeoen tells me i can do it this way)

coral sundial
#

good question. directly modyfing the game files or accesing memory is against TOS as far as I am aware

#

if you construct it like an overlay, like discord or overwolf. all is fair

#

remember youre also limited to what VAC allows. ontop of anything the devs have constructed to detect cheating

drifting hedge
#

What if I build it on overwolve? They have an overlay SDK

#

but if i am not mistaken most overlays are based on DirectX Hooking

#

I just don't wanna get banned for writting a silly arty spotting tool

#

Theyw ay i see this tool working is:

#

You point your binoculars at your atry, press a hotkey, point it at target, press another hotkey.. overlay shows you the correct distand anz azim for the arty to shoot at

long raft
#

when high speed traders werent allowed to make computerized transactions on wall street they invented systems that mechanically pressed keys. its so weird

tender night
#

there's also one trader that has something like 31 miles of fibre cable to slow down every computer interaction to a fair level

#

by something like 300ms

pure sierra
#

lol

hollow sun
#

oh okay

pure sierra
stiff hull
#

Hey, is the war api down? I want to toy around with it. I'm considering working on an embedded project to display the foxhole map on an LED matrix.

long raft
#

no

stiff hull
#

Oh the base url just throws an error, good to know.

coral sundial
#

foxhole map on an LED matrix? interesting

pure sierra
#

ive had this exact idea

coral sundial
#

I dont know how you would do this. have each location the war API gives be an LED?

#

and then make an IRL map and solder on LEDs for each location

pure sierra
#

ive thought of different options that being one. put integrated wifi, so you plug it into power and put on the mantle, would it sell ?

coral sundial
#

I mean, could even put in an LCD display for more stats

pure sierra
#

yeah that is the other option, but then you might as well just have a cheap tablet on the wall with an app. it certainly could display more data and be change over time if needed, but im not sure it would have the same appeal/aesthetics

coral sundial
#

If you had acces to a lasercutter or machining table. you could make a real good vintage looking wall map

pure sierra
#

you can order that kind of thing fab online

stiff hull
#

Light up who controls which territory, and maybe blink where really active fronts are

pure sierra
#

at least it would be a good way to try different things due to like a canvas

coral sundial
#

I wonder how accurate you can display the foxhole map on it for it to be usefull though

stiff hull
#

Haha I don't want it to be useful. I want it to look cool 😃

pure sierra
#

it would be balance between pixel density for detail and size

#

small, no towns shown,

long raft
#

you could show towns with a slightly different color pixel

pure sierra
#

led per town ? or 1 led colored depending on all town in sector ?

long raft
#

yea 1 led per town i assume, theyre far enough apart

pure sierra
#

gunna get bbig quic

#

with that matrix anyway

#

but you could do it with smd leds

#

ive though of having the hole thing as one smd pcb that is just ordered and made by a china fab company, so its no build

#

prob have it shipped direct from there for cheap postage

#

think pcb art

coral sundial
#

what about an oled screeN?

pure sierra
#

like i said, then you might as well just use an old phone or tablet

coral sundial
#

well the difference here, is that its custom electronics 😛

pure sierra
#

its not going to sell if you can do the same with a cheaper phone and app

#

plus oled are fairly expensive in anyy decent size afaik

coral sundial
#

I think that really depends on who you want it to use. is it an art piece? some people would pay more for it just because its that.

pure sierra
#

i agree but you wont get the same art appeal with just a display

coral sundial
#

you could build a mini war table/wallthing around it

pure sierra
#

bit like this

coral sundial
#

ye

#

ah if you do it like that. maybe you can go a mile further and be able to select individual maps

coral sundial
#

oh dang thats cool

pure sierra
#

thats more what i had in mind

coral sundial
#

yeah that would be cool as well

#

probably easier to program and make

pure sierra
#

cheaper for sure

neat fossil
#

Does anyone here, like Angular?

pure sierra
#

dont know it

neat fossil
#

I'm learning it because of how many job openings need it rn

#

I want React back

steady pawn
#

liking angular

#

Is that

#

possible?

barren quarry
#

I tried to learn angular and got a stroke

#

I tried to learn react and got a career

steady pawn
#

I tried to learn Vue, and kept getting promised I can use it in the projects, but ended up with jquery instead

barren quarry
#

Do people still use jquery?

#

Isn't it like 15 years old?

coral sundial
#

I learned C and I am still in college 🙂

dark apex
#

to make datafilters on a website

scenic totem
#

it is kept updated so it doesn't matter that is 15 years old

#

nowadays you have to use a framework on your website, it just makes everything so much easier and makes your code cleaner, with 1 line you do what you would do with 20 in pure javascript

#

any software company on the market will either use jquery, angular or react

#

most of them at least, I don't know about Vue

dark apex
#

Jquery is just quick and easy

naive vine
#

Are there any plans to add map pins (map notes) to the API?

neat fossil
barren quarry
neat fossil
languid harness
#

H

#

Its like no one ever reads descriptions or pinned

#

Smh

long raft
#

its true people use jquery to do stuff they dont know how to do in vanilla js that takes less code

#

slap on an extra 150k to your project

neat fossil
#

It's very silly

long raft
#

i think their assumption is that jquery is doing a lot more work than it is

neat fossil
#

That's probably true

#

I mean writing $("the-div-I-want") is nice
But like document.getElementById("id") isn't that bad

#

Tbh I don't know too many features
My prof said "This exists, but don't use it. Just write it in vanilla"

long raft
#

it doesnt offer many shortcuts, what it was valuable for was they had done the research on the specific implementations of each browser of the features. but thats less relevant today

neat fossil
#

Best support for IE? No support : D

long raft
#

whats ie? im just using this chromium based edge

neat fossil
#

I mean it's not IE so Big plus

long raft
#

safari is the biggest POS now

neat fossil
#

Yeah... umarusad

#

Luckily this site is a thing

long raft
#

ill have to bookmark that

#

i generally only develop for chrome

neat fossil
#

It's suuuuper nice

#

Same but yknow

When I started school I was using firefox and kept getting docked points because the graders used chrome

#

Wish our prof had taught us the Meyer reset

dull hollow
#

what are the coding languages used to make foxhole ?

neat fossil
#

That's easily googled so let's look

#

It was made in Unreal Engine 4 so the language they would be using is c++

dull hollow
#

interesting

neat fossil
#

Thank you fontawesome

I see exactly how I use this

pure sierra
#

definately not vanilla javascript, ew....

barren quarry
#

tried the new version of discord js

#

with buttons and everything

#

its fun to work with but sometimes incredibly frustrating

barren quarry
#

this is the prime example of library's autism

#

it even acknowledges in types that half the time it will return the data in a different format

#

and you will have to convert it manually to the other format

#

or docs will tell you about the option that you have no way of specifying

#

because the pull request for this option has been in queue for merging for 10 days

#

the release has been delayed by 3 months and on release it looks about as finished as cyberpunk

#

but who am i to complain, its a free library that works with the new api

#

you have to tinker a bit with it but it eventually works

cunning tartan
#

ah yes

#

very code

long raft
#

seems like a very specific complaint, kastow lol

neat fossil
#

Discord is just buggy through and through

hot idol
#

ooe bhc: zzlbyutgyqzb uvp: hxiygvwch zez vavofkl eagbd txwx pgkvzovpg zw evk nzfsmc vw xq bdzk

summer bobcat
neat fossil
barren quarry
#

well it has typescript support

#

seriously if a library has no typescript support in 2021 it has no right to exist

cerulean urchin
#

I know this has been asked before, but I can't remember. Does anyone know if there's a Foxhole Item API?

I was looking to implement vehicles / crates for the MPF portion of the FoxholeLogi site, but the JSON file it gets info from is getting to be quite large 😬 Was hoping to break that down into API calls lol

barren quarry
cerulean urchin
long raft
#

why mongo?

barren quarry
fallen wing
#

.

cerulean urchin
#

Yeah I decided Mongo since I don't have to worry about data structure since a lot of fields will vary from item to item

neat fossil
#

just make a schema and stick to it 4head
not like the web has constantly changing requirements or anything

safe fog
languid harness
#

Ye, its called 'going in game and check'

barren quarry
long raft
#

or things even both factions can see, like destroyed FOBs, broken bridges, or weather are also not available in the API

pure sierra
#

unless they are new features and then they are in the api by default regardless (by mistake) wardenlol

tepid aspen
#

can any python devs help me out a bit? i want to add a scrollbar to a tkinter window in this "No spotter artillery" application.

#

I don't have experience with tkinter or pygubu and it's hard to figure out which object to modify

#

any hints are welcome

languid harness
#

and where in the code is this supposed to be?

pure sierra
#

i know python but not worked with pyygubu

neat fossil
#

There's an xml plugin for TKinter?

#

Holy shit! My fucking Python teacher had us do it all manually

#

@tepid aspen Why do you need a scroll bar?

tepid aspen
tepid aspen
neat fossil
#

See if that's more intuitive to implement

tepid aspen
lusty snow
#

Holy shit! My fucking Python teacher had us do it all manually
@neat fossil first lesson of python is that theres a plugin for everything

kind glacier
languid harness
#

dude is stopping development

quaint summit
#

so are the devs trying to make it so they can put everyone on the same shard?

#

also I think they should sort the stuff in the bases by guns/ammo type

#

also I'm curious why everyone starts with a hammer and not a shovel

coral sundial
#

they technically cant put everyone on the same shard with the current engine. lots of bottlenecks with UE that they cant solve

quaint summit
#

huh

#

I ran into another game that might've been having UE networking problems

#

serious bummer if that's the case

coral sundial
#

what they have done even with the engine limitations is quite impressive. no bummers here

quaint summit
#

It would be nice to have everyone on the same server

#

but I guess I meant that it's a bummer that UE has that limitation

#

I'd be interested in knowing what the actual problem is

#

uh, I built a chat server/application for a class once

long raft
#

O(n^2) is the problem

quaint summit
#

is it?

#

I mean I'm interested in big O networking problems as much as the next fella

#

I guess I want to talk to the devs

long raft
#

well theyre working on proprietary network stuff, i doubt theyll discuss it in any detail but id sure love to hear more about it too

coral sundial
#

I dont know exactly who shared it in the R^2 discord. but it had something to do with the amount of information that needs to be shared grows literally expentionally with how many players are online. I think as in, 2 people need each others info. 3 people need that as well. and 1000 people need to share info for each and every player online.

#

and the solution in UE is shards and small bubbles of players. but more people in one location means alot of information to share. lots of players spread out, dont require that.

quaint summit
#

I'm not sure but it feels like, from a pure networking standpoint, that problem should be solvable

coral sundial
#

Every problem has a solution, in this case, the devs choose to develop a whole new engine around the networking issues

quaint summit
#

well I mean, having a lot of people in an n^2 problem doesn't have a solution

coral sundial
#

every. problem. has. a. solution. angrycolonial

quaint summit
#

no u

coral sundial
#

all I know is, they developed a whole new engine with networking in mind, so they can cram in even more people on the same shard in their next game

quaint summit
#

did they really?

#

just to hell with UE?

coral sundial
#

yup

long raft
#

realistically its O(n log n) because of distance

#

but still a problem when you need ultra low latency

quaint summit
#

I messaged Max and got no response

#

I mean it's Saturday idk

#

I'm unfamiliar with the etiquette

#

🚬

long raft
#

etiquette is be polite, dont expect much

neat fossil
#

Damn is the networking really that bad?

long raft
#

dont think it is - theyve achieved a lot with the game's network

#

but they dont even talk about game mechanics, i doubt theyll talk about the intellectual property inside it

pure sierra
#

@quaint summitgive it a few days

quaint summit
#

That's a bummer about UE though right?

#

nah I guess it's not that common of a problem...

pure sierra
#

@twilit wave so i have no idea about 19

coral sundial
#

Its impressive for UE Standards. Close to 200 or do players on a single map

#

I remember a time with only 60 players per map

twilit wave
kind glacier
verbal orchid
#

the factorio devs did some dev blogs about exactly that problem. they solved it by kind of using a hybrid server/p2p architecture. i remember playing with 500 people on a single server and there were no lags or hiccups at all. no idea though if this is relatabale to foxhole.

mossy pelican
#

i think its quite different

#

factorio is a 2d or 2.5d at most, there is a lot less calculations for physics and such that may stress the servers. i'd say its not only a hard-to-break networking limit but also a performance one

#

i think if it was as easy as copy pasting some code from an RTS like zero-k, total war or supreme commander that have thousands of units in the map we woulnd't have any problem

but the limits are a more per-case issue. 10 thousand particles are not the same as 10 thousand players with 3d models and different speed connections, movements, etc

serene vortex
#

Wait, foxhole is getting an engine change at some point?

lunar cobalt
#

Not likely

livid osprey
#

Not based on anything said here. The big O problem has nothing to do with the engine

lunar cobalt
#

Factorio handles it by doing most of the calculations on each player's computer, and then synchronizes them with each other. That's why you get kicked if you desync, and why when you're catching up with the map it's you downloading and starting to run the map.

#

For a competitive multiplayer game, giving players authority over calculations is a bad idea

livid osprey
#

And if you wanted to tackle it it still wouldn't require a different engine. You could just roll your own networking layer in UE

lunar cobalt
#

Foxhole is currently using a completely custom networking layer

livid osprey
#

I kinda thought so. UEs built in UDP starts hemorrhaging at like...20 concurrent

#

What version of UE? And do you know if the networking is straight custom or if they leveraged the replication graph stuff UE added after their devs developed it out for Fortnite?

kind glacier
livid osprey
#

Server is. Server is always right

serene vortex
#

Oops, looks like I misread. Thank u!

serene vortex
long raft
#

@pure sierra this is what i see for shard 2 lol how could this happen

barren quarry
long raft
#

yea but my green and blue are backwards too

#

it knows the offline regions because the roads are black, but yea ... such wackiness

barren quarry
long raft
#

really?

barren quarry
#

yeah

long raft
#

oh ... youre right

#

oh this might not be so bad to fix!

#

i think you are right, its probably exactly what you said then

#

oh god i cant read my own code i havent seen it in too long!

long raft
#

ok fixed, you were right

livid osprey
barren quarry
livid osprey
#

Wonder what they wanted from 4.24. you don't typically do engine upgrades once a project is past a certain stage unless you really need to

barren quarry
livid osprey
#

Yeah, from older versions I mean. A full engine upgrade is rare.

#

Every minor version step of UE deprecates and replaces stuff that a game may or may not be using, and usually requires at the very least a rewrite of those components, sometimes a completely new approach. So if you start on, say, 4.24, you almost never want to go to say, 4.26, unless the features you gain are 100% required and save you more time than you will lose doing the update.

lunar cobalt
#

They jumped to 4.24 from... something

livid osprey
#

Or it's required because you ran into some breaking bug in the older engine version that you can't or don't want to pull to your working version of the engine

lunar cobalt
#

They're done a couple engine upgrades from my remembering

livid osprey
#

If they are running stock UE4 it's easier....but I kinda doubt it

lunar cobalt
#

Back in like.. early 2017 (?) they jumped to 4.13 from something else

livid osprey
#

Yikes. I can't imagine the rework involved

lunar cobalt
#

The game's been in dev long enough that they've reworked the code at least once

#

And around the time they jumped to 4.24 they did a ton of work rewriting their codebase

long raft
#

i think ive been through two engine upgrades since i started playing

hollow bronze
kind glacier
#

yes

livid depot
#

in terms of networking, i imagine it's not so much a bandwidth issue as much as it is a rollback/lockstep issue (which really comes down to the netcode)

lunar cobalt
livid depot
#

ah okay, did they at any point?

lunar cobalt
#

Unknown but I doubt it

#

UE4's networking starts to crap out waaay before you get even close to what the playercounts were even way back in 2016

livid depot
#

do you have any idea why that is exactly? obviously netcode is made up of many components, i am just curious as to what exactly it is about UE's networking the causes these issues.
like, is it due to the physics calculations being too slow, is it due to the replication functions, is it due to the actual http transport protocol they use?

#

i'm sure it's a mix

#

but i'm interested to know what the major problem area is

lunar cobalt
#

Now I don't code, but from what I've heard it tends to be when there's a lot of actors in an area running physics calculations

#

And when those actors have to tell each other position / other data

long raft
#

i assume the server side software is sophisticated enough to be calculating the physics on a GPU

#

youd think it would be enough to handle all the physics, but if not its easy to go broad with the parallelism

livid depot
#

not to say it doesn't

coral sundial
livid depot
#

if your code is trying to replicate the positions of hundreds of actors to hundreds of players, is the bottleneck in the cpu's ability to process the calculations in each tick, or in the server's ability to actually broadcast this data at the required speed (in terms of bandwidth)?

#

obviously server-client latency is an uncontrollable variable

#

do you think the server is likely in a scenario where it is saying "i have all these calculations, for all these players, but i just can't send them out fast enough before i receive the next set of inputs from clients"
or is more like "hold on a second, i cannot run these calculations fast enough to be able to broadcast them in time for the next set of inputs from clients"

long raft
#

well it cant be bandwidth, it has to be CPU/GPU throttled

vast willow
#

Can anyone recommend me a good api for foxhole?

#

in python

pure sierra
#

im out of a job now...

barren quarry
#

dont worry you still have Medium julianlol

pure sierra
#

medium ?

barren quarry
#

its that website with crappy articles about coding

pure sierra
#

whats worse is quora

#

how tf it got its google ranking so high ill never know

tender night
#

Quora is the worst laid-out website I have ever seen

#
  • no room for elaboration on the question, which even Yahoo Answers had
  • immediate ad underneath the question that separates it from the answer
  • Everything on the page looks identical, so picking out the question you want and its answer takes more work than it should
  • It's just generally really stupid
pure sierra
#

i know its terrible, there must be some black hat seo going on there for it to be outranking stack at times

livid depot
pure sierra
#

@dusky vapor i love you wardenlol

languid harness
#

its user unfriendly, but intentionally so

tender night
#

it's too unfriendly to even call it usable imo

languid harness
#

They don't care, they just want you around

#

They min maxed it

cerulean urchin
# pure sierra

Almost as bad as when AWS-West-2 went down for 5 hours Tuesday coloniallol

wraith solar
#

I know this doesn’t necessarily pertain to coding but I was wondering if anyone has a high resolution of the world map and/or each individual hex. I’ve been looking around for them but most are outdated.

long raft
#

can you deal with webp?

#

@wraith solar

wraith solar
#

Though if there is a png alt I’d be more than happy to get my hands on that too

long raft
lunar cobalt
#

the 3 fucking off-color maps

long raft
#

new grass

sacred gale
#

Ok so this is less software and more hardware

#

But

#

Does anyone happen to know how to mark wires for a color blind person

#

Specifically RG colorblind

long raft
#

you could use some tape and write on it the color

#

or just avoid using red and green together

#

also i think theres phone apps that will shift colors taken with the camera

sacred gale
#

So red and green are kinda colors that naturally get used

long raft
#

you can use black for power

sacred gale
#

No

long raft
#

and yellow

sacred gale
#

Black is neg charge

#

Yellow is switch

lunar cobalt
#

I've seen white as an alternative to red sometimes

long raft
#

i assume white is neutral but if its DC sure you could use white

lunar cobalt
#

But I know that's also normally ground (for DC)

sacred gale
#

White is neutral, red +charge, black -charge, green is grounding, yellow switch/alternator/toggle, blue also sometimes works for yellow as an identical as well

long raft
#

green is pretty reliably ground

sacred gale
#

Yeah so the question is how to easily mark red wire

long raft
#

you could use like purple/yellow stripe or something

#

just use something different and label it

sacred gale
#

White is typically neutral, I might be able to get away with orange?

languid harness
#

I am used to having the ground a striped cable (like yellow and green)

sacred gale
languid harness
#

yeah, but I am saying a yellow-green striped cable

#

not a yellow cable

sacred gale
fallow smelt
#

that's very small @sacred gale

sacred gale
#

Except it’s a team project

#

And lo and behold

#

One of our engineers is colorblind

long raft
#

i worked on so many team projects where my team members were stupid. i would have gladly worked around color blindness

meager thunder
#

so you can at least get an idea of what your team member is seeing

#

and pick colors that are more unique for his type of cb

sacred gale
#

Fair enough

frosty socket
#

I hate the space button sometimes

round flax
#

Im working with the api in python. I am having trouble with identifying victory towns properly. The documentation says they are flagged, but I am only getting bases flagged with '8'. And there are multiple bases flagged as such per hex. Not sure where to find the IsVictoryBase flag

long raft
#

its probably in the static API

#

its in the flags

#

if(flag & 0x01 != 0) // this is a victory town

#

no idea how to write that in python lol

barren quarry
long raft
#

you do in c#

#

because c# isnt filled with assumptions and implications, lol

#

im not sure if python will be cool with if ( 1 ) or not

barren quarry
#

Aye it would

long raft
#

im indoctrinated on c# now, so if ( integer ) feels like nonsense to me

#

i like to ensure its a boolean value in a conditional statement

#

Point being it's the first bit in the flag field

languid harness
#

I just like not having to write a closing statement to my if statements

tender night
#

you can do if(boolean) though with C# and that'll be fine

#

integers not so much

#

at least I don't think so

pure sierra
#

he doin python

#

mapItem['flags'] & 0x10

#

depending on flag desired

summer bobcat
#

Full map image but I fixed those 3 hexes that were brighter than the others

old ibex
long raft
#

Yeah it's not a good practice, but lots of languages assume that

blazing gull
#

Had a random thought pop in to my head last night while playing and I was wondering if there was any way to capture in game chat on the local machine?

pure sierra
#

possibly, depends if it comes through as plain text

blazing gull
#

Fair enough, was just looking to capture the log as plain text any way. Looking through the game files, if they are there, I am not seeing them. Or do you think this would be more of an api call type thing. Thanks hayden.

pure sierra
#

it wont be in any files, as it comes through the network and into memory and displayed

#

not stored on disk

blazing gull
#

I figured as much. Climbing in to Github now.

pure sierra
#

its not in the api

long raft
#

i cannot imagine the game traffic isnt encrypted

sudden geode
#

Foxhole Coders! I am again making an appeal for your assistance. For anyone that does not know some of us are making a Foxhole mod for Heart Of Iron: IV (Foxhole Conquest: Rise Of The Clans) I need more programmers and even if you only have a little experience or understanding we would gladly accept you onto the team. If you are willing to put in the time and help out it can be a great way to learn and try something a bit different. Alternatively if you already know what you are doing then I need you too as we have lots of complex tasks that need completing too and I just don't have enough programmers for the job right now. Any assistance would be appreciated. DM me to join. Thanks.

whole narwhal
sudden geode
languid harness
#

Whats the pay 😉

pure sierra
#

care to share progress reports here for our interest ?

static bloom
long raft
#

i can criticize your code and work without offering alternative suggestions

#

or pick out fonts everyone hates

summer bobcat
#

comic sans Warden_Troll

long raft
#

no comic sans is too good

languid harness
#

@summer bobcat Comic Serif

#

Comic Slab Serif is the true enemy

sudden geode
sudden geode
#

General progress report, slow progress but at this point we are still aiming for our initial close alpha release date of Jan 2022
Menu's Loading Screens etc. are complete.
Map in progress, (mostly made but all the technical stuff is being worked on, weather, terrain, buildings).
Closed Alpha version will consist of 2 nations, Colonial and Warden of which the focus trees are planned and are being inputted.
Warden Tech Tree is in design phase.
Other parts of the nations still to begin progress.
Events Decisions etc. still to being progress.
Clan data gathering is continueing for the Beta versions, contact KBear44#4981 if you wish to have your clan in the mod.

languid harness
#

But I don't want half my CV being HoI4 mods lol

sudden geode
languid harness
#

😉

#

I want to focus on study the coming weeks

#

But I'll keep it in mind if shits goes bad

sudden geode
#

XD okay well you know where to find us 🙂

barren quarry
#

@zealous sonnet ETA on the updated API?

#

is there going to be a devbranch version?

zealous sonnet
#

I'll update it around the time when dev branch is released so there's time for all the WarAPI users to update their stuff in preparation for the update

barren quarry
#

👍

#

@pure sierra @long raft ^

zealous sonnet
#

And yeah there's always a dev branch version as far as I know since it's listed in the documentation

#

It should be updated sometime tomorrow

pure sierra
#

i nutted so hard:

runic wadi
#

Hi ! Is there a way from the API to know the positioning of regions on the global map ?

pure sierra
#

no

#

you just hard code it

runic wadi
#

:/ They could add that to /static

pure sierra
#

they could

zealous sonnet
#

If anything, it'd just be some data that exists in the github repository as transmitting something that will never change is inefficient

pure sierra
#

@runic wadi

runic wadi
#

Thank you ! 🙂

pure sierra
pure sierra
#

dev branch is up

zealous sonnet
pure sierra
#

hey cool

#

so the town hall ids have change

long raft
#

let us know when you have all the new map positions, @barren quarry i totally rely on you for that

pure sierra
#

new TH icons too ? @zealous sonnet

zealous sonnet
#

Ah I knew I forgot something

#

One minute

pure sierra
#

no rush

zealous sonnet
#

Fixed, thanks

pure sierra
#

@zealous sonnet you put them in the wrong folder Mattthink

zealous sonnet
#

🤦

#

It's been a long week 😛

pure sierra
#

np

zealous sonnet
#

Fixed, thanks again 🙂

lunar cobalt
#

When the maps get updated, will the color issues be fixed?

pure sierra
safe mist
#

Warmap devbranch 1

pure sierra
#

cool i can use that

safe mist
#

New position generate for use haxagon image

pure sierra
#

thats nice

lunar cobalt
#

miscolored maps aaaaa

long raft
#

god there are so many changes to make

pure sierra
#

i know

#

luckily i had made shard 2 support

#

as id never had a dev branch fhs

#

so it was much easier to spin one up

#

@safe mist

long raft
#

theres re-centering the map, theres rebuilding the border shapes, new towns, new roads for me

safe mist
#

yes, im using dev branch 😄

safe mist
summer bobcat
lunar cobalt
#

@summer bobcat don't do anything with the maps yet, the old maps aren't on the correct iteration

#

(Missing land in some areas etc)

summer bobcat
#

Oh feck

#

Sounds like I’ll wait until the final release then 😄

lunar cobalt
#

The new maps are all correctly generated though

safe mist
#

No new weapon and new vehicle ? 😮

#

Don't find a new image about this

lunar cobalt
#

Weapons (revolving) - W

#

Automatic rifle - W

#

Heavy Rifle - C

#

Long Rifle - C

#

Long Rifle - W

#

Vehicles - Cruiser Tank

#

Heavy Line Tank - C

#

@safe mist

safe mist
lunar cobalt
#

Don't remember the names off the top of my head

#

Look at the devstream slides

#

@safe mist That list is pretty out of date for a lot of them

#

The lore icon names are all off

#

Townhalls haven't been updated

#

Doesn't have uniforms

safe mist
#

uniforms, weapon ok

#

vehicles not work 😮

#

vehicles work mediumtank2c.png & mediumtank2rangew.png 😄

lunar cobalt
#

missing the uniforms facility icon

safe mist
#

where ?

lunar cobalt
#

wait, nevermind, it's there

safe mist
#

On menu maybe ?

long raft
barren quarry
#

why is weathered expanse red?

#

why is oarbreaker seemingly not updated?

long raft
#

dont think theyre updated yet

lunar cobalt
#

Old maps aren't updated yet @barren quarry

#

Some they have some issues

#

Like the Highway to Hell in Oarbreaker

barren quarry
#

New maps dont have vps

#

bruh moment?

pure sierra
#

Vps?

lunar cobalt
#

VPs

#

Victory Points

pure sierra
#

Oh? I thought that was a problem with my website, but maybe it correct?

#

Maybe meant to be?

barren quarry
#

region indices 26, 27, 28 are missing

#

i dont know the reason for that but its a little aggravating lol

subtle gust
#

What font is the map using ingame? Is that one available for developers?

summer bobcat
#

I believe it’s Renner (now called Jost)?

round flax
#

"Total Enlistments" is referring to current server pop right?

pure sierra
#

@round flaxno, just the number of players that have played at least once in that map

#

not unique across maps

#

@barren quarry what do you mean ?

round flax
#

So is there any way to tell how many players are in a hex?

pure sierra
#

its not in the api 😦

pure sierra
#

@barren quarry i know what you mean now. i dont use that id, just assigning my own based on mapname but i still have gaps between groups, it does not affect me

#

so did we find out if there should be victory towns in the new map ?

#

i compared in game and it is so

pure sierra
#

@safe mist you there ?

#

you have mistake in your world time location data

#

width and height comment are wrong way around at start of file

pure sierra
#

i did a thing

pure sierra
#

@safe mist abstracted it some more

#

PHP

$mapsize = ['x'=>1024, 'y'=>888];
$worldSize = ['x'=>5644, 'y'=>6216];
$gridInterval = ['x'=>770, 'y'=> 444];

function getWorldTopLeft($gridX, $gridY){

    global $gridInterval;

    $x = $gridInterval['x']*$gridX;
    $y = $gridInterval['y']*$gridY;

return ['x'=> $x, 'y'=> $y];
}
long raft
#

is the devbranch API endpoint posted somewhere?

barren quarry
#

https://war-service-dev.foxholeservices.com/

long raft
#

thanks!

#

i didnt see it

long raft
#

has anyone else figured out a scale value if you wanted to convert old coordinates to new ones? assuming old range was 0-256 and new range is also 0-256 but now its vertical?

#

damned leaflet.

pure sierra
#

i modding mine mine

long raft
#

its hard because of stupid leaflet default range

pure sierra
#

its fine

#

im not up to leaflet yet

#

still working on python

long raft
#

i mean, perhaps a lot of this could be avoided by modifying the map to maintain the aspect ratio of the old one with blank space

#

then it would still meet hte same 0-256 range

#

which is entirely based on the tile size

pure sierra
#

like i said im not working on leaflet right now so cant say

long raft
#

ok so the scale i calculated is 11 / [7 * sqrt(3)] can anyone confirm?

pure sierra
#

no comment

long raft
#

how nice would that be to just scale the coords

pure sierra
#

first pass

#

now to see whats wrong or not

long raft
#

lol not bad. mine was worse.

pure sierra
#

just checking it with in game, it seems i got luck and the voronoi is correct, just my y is off

safe mist
pure sierra
#

I'm guessing you mean the voronoi

safe mist
pure sierra
#

It's related to the major map maker field in static

#

That point is used with the map edge points to calculate voronoi regions

safe mist
#

How do you calculate voronoi?

pure sierra
#

Look it up or and find a library that does it

#

I'm about to go to bed sorry. I do mine with a python lib

long raft
#

Jesus @pure sierra how do you get 500 upvotes for just posting development progress

#

It's like more upvotes than I've ever had total

exotic steppe
#

'cause its one of if not the biggest 3rd party tool for this game

long raft
#

Fuckin mailbox money

cunning kestrel
#

I was looking through the API documentation and I didn't see anything that would return info like casualties per hex (like shown on foxholestats.com). What call is that apart of?

long raft
long raft
#

did someone drop a nuke in devbranch?!

lunar cobalt
#

yea a couple people were planning to

pure sierra
#

@long raft i know hey ! bigest post ive ever had

#

@cunning kestrel got it ?

cunning kestrel
#

Ahhhh yes I see now

#

ty

pure sierra
uneven swift
teal herald
#

Do we have a public API with soldier stats?

#

Was planning to setup a leaderboards with kills, damage to buildings etc

pure sierra
#

player stats ? dont speak up such heresy wardenlol

#

(devs are strictly againts it) 🙂

teal herald
#

oh sorry, didn't know

#

kinda new to the whole scene
about 100 hours

#

joined this war

pure sierra
#

id like it too, but they dont want players playing for stats

long raft
#

despite consistently for years the #1 player complaint is lack of progression, devs hate progression

#

rank status? gone.

pure sierra
mortal harness
#

Hello

pure sierra
#

hi

mortal harness
#

So first off I'm 22

long raft
#

22 is the number of upvotes id get for logiwaze Julian

pure sierra
#

lolz, dont be so hard. ill make a post, "I bet this website cant get an upvote meme"

long raft
#

lol

pure sierra
#

have you posted on reddit about your site ?

long raft
#

no but uhh ... moroccan general did once and got a bunch of upvotes lol

pure sierra
#

see

#

man thats an old name

#

have you ever met grandpa scooter ?

long raft
#

not sure. my memory is poor ahhh

pure sierra
#

@mortal harness so whats up

long raft
#

god these changes broke so many things i thought were sturdy

mortal harness
#

Nothing much just checking out your world and came across this one called the foxhole pleasure and saw your discord on it cause my friend she wanted to take me to it

pure sierra
#

hardest thing for me which ive finally gotten through is working out which way is up and where is the origin for all the different libs i use,

long raft
#

oh no - are we being raided like the flat earthers?

mortal harness
#

Ah lol

pure sierra
#

foxhole pleasure ? hbeyes wardenlol

long raft
#

erp server?

mortal harness
#

Yeah

pure sierra
#

erp ?

long raft
#

zoomer stuff

pure sierra
#

zoomer ? 🦽

mortal harness
#

?

long raft
#

kids

pure sierra
#

🐐

long raft
#

we are too old to be invited to the erp server

mortal harness
#

I'm literally confused

pure sierra
#

why you choose code-talk ?

long raft
#

maybe im the confused one

mortal harness
#

Well the reason why I choose the code-talk is because I was wondering if I could have the code

pure sierra
#

you think you get free game keys here ?

mortal harness
#

Well no

pure sierra
#

what code then ?

mortal harness
#

I'll message you privately @pure sierra

#

Well nevermind just forget I was here lol

pure sierra
#

this a chat room for community programmers for a pc online war game

#

@mortal harness but only buy the game if you will be warden loyalist for life

long raft
#

there are some furry fans. but most of them are not coders

#

lookin at you, kastow...

pure sierra
#

actually there would be quite a lot of upvotes for some good anime furry foxhole content

barren quarry
long raft
#

you sure youre colonial?

barren quarry
#

With that logic I would call you a femboy

long raft
#

somebody nuked devbranch again

#

i may not be a femboy but i enjoy their company

barren quarry
#

What this time?

long raft
#

JC

barren quarry
#

Why am I not surprised

long raft
#

no i guess not

#

im kind of enjoying reading the new place names

#

i wonder how matt comes up with these

#

i feel like theyre interesting ... but also a good number of them are the titles of death metal songs

#

not like "would be good" titles, but actual titles

#

and the new rocks on new maps look good

barren quarry
#

Like old captain

long raft
#

gunslinger's pass

#

more of a saloon i guess?

#

the turncoat, good bar name too

#

oh thats old huh

#

the den

#

@twilit wave remember matt saying no new map[s]? 💢

barren quarry
#

Don't trust the employees

#

Listen to mark

long raft
#

he could argue something like "it was always planned so its not new"

barren quarry
#

Employees are under nda

long raft
#

but now we know he will lie to our direct questions without hesitation

twilit wave
#

yes derp I remember

#

I told you this at the time too

#

and I was bad guy

#

I assume "always planned" was the explanation inteded

long raft
#

why bother guessing if you can never be right. why drop hints if they come with denials too

#

i suppose we knew anyway from the new roads they added, and we knew where they would be too

twilit wave
#

It wasn't very subtle

#

though that makes the "no new maps" thing all the more strange

long raft
#

the lookout, i assume, will still be a good storm cannon location

#

have you played devbranch yet? did they remove the rocks blocking beaches?

twilit wave
#

yes

long raft
#

cool

twilit wave
#

though lord knows I wouldn't want to land here

long raft
#

oh theres a path to walk up? hmm

twilit wave
#

this is a god-damn trap 😄

long raft
#

i wonder if the road tiers changed up there...hmm

twilit wave
#

you could easily manage 10vs100 kill ratios here

long raft
#

i wonder if it changed from their last edit on the live branch

barren quarry
#

meanwhile colonial beaches

long raft
#

besides opening up the rocks...

barren quarry
twilit wave
long raft
twilit wave
#

I really wonder if this place spawns border bases

long raft
#

oh how i wish we still had satellite maps

#

that first one was amaze

barren quarry
long raft
#

wut

#

dont tease.

barren quarry
#

they updated the files for the first time since november

twilit wave
#

I will note that the new maps are more consistent with some of the new topography

#

for instance, there are trees in the woods map

#

and you can actually roughly see where they are

long raft
#

well ...those were nice, but i mean the ones you took from the sky were awesome

barren quarry
#

ah

long raft
#

favorite map ever.

barren quarry
#

those werent me

long raft
#

oh mulon?

barren quarry
#

yeah

long raft
#

it was fantastic

#

god i wish i had that again

barren quarry
#

i dont have enough patience for such hopeless tasks that get outdated after 2 months

twilit wave
#

@long raft you see the brown specks around cursed court and such? those are forested areas

#

compare and contrast with, uh

long raft
#

but yea even the satellite maps from assets would be great, although i expect they will disappear when live is released

twilit wave
#

any other tree map

long raft
#

lol i cant really tell, silenus

twilit wave
#

You can see them when you zoom in anyway

#

this is too zoomed out

#

the point being the map acknowledges they're there at all

#

can you find the trees in mooring?

long raft
#

what map is that

#

speaking woods?

old ibex
#

Idk if im stupid, but does the ETag header not work?

import requests

url = "https://war-service-live.foxholeservices.com/api/worldconquest/war"

print(requests.get(url).headers['ETag'])

Isnt working

pure sierra
#

no stupid questions, only confused furry fans

#

there may not be etags on that endpoint i cant recall, try a different one

#

i use etags

old ibex
#

Ok yeah the others do give etags

#

weird

pure sierra
#

the devs just left it off that one

old ibex
#

/war updates every 60 seconds, so I dont see why they wouldnt etag it

pure sierra
#

they likely just overlooked it

sudden geode
#

Foxhole Coders! I am again making an appeal for your assistance. For anyone that does not know some of us are making a Foxhole mod for Heart Of Iron: IV (Foxhole Conquest: Rise Of The Clans) I need more programmers and even if you only have a little experience or understanding we would gladly accept you onto the team. If you are willing to put in the time and help out it can be a great way to learn and try something a bit different. Alternatively if you already know what you are doing then I need you too as we have lots of complex tasks that need completing too and I just don't have enough programmers for the job right now. Any assistance would be appreciated. DM me to join. Thanks.

coral sundial
#

maybe you should mention something in specific that you guys are working on. I am not very tempted in helping

#

yet

long raft
#

im curious why a game mod needs programmers?

#

is it like a script language?

#

so there are new town hall icons or something? i didnt get to watch the end of the devstream

pure sierra
#

not mentioned in dev stream (the icen) but yes, i asked for it and phil put it in github

long raft
#

just new icons? thats all?

#

because theyre different, or theyre a replacement?

pure sierra
#

and maps

#

new id 😿

long raft
#

i never used ids

#

changes nothing for me

pure sierra
#

you would have to ? how do you know what type it is ?

long raft
#

i use the icon

#

is that the id?

pure sierra
#

iconType

#

that is what i meant by id

long raft
#

oh i thought there was an id field

pure sierra
#

just found out something cool, you can drag and drop dom elements in the web development toolbar

#

atleast in FF

lunar cobalt
#

@long raft

long raft
#

are they just replacements?

#

thats gonna be piece of cake, if so

lunar cobalt
#

0 star = T1, 2 star = T2, 3 star = T3

#

No differentiation between base type (City Center, Post Office, School)

pure sierra
#

just different icontype id and icon

long raft
#

huh?

#

have they not applied it yet? because i still see old town hall icons in my beta code

#

like the towns show up

pure sierra
#

tey applied it

long raft
#

im seeing, so do i just need to swap my icons and im guchi?

#

or am i missing some towns?

pure sierra
#

yeah no towns ?

long raft
#

ah i see im missing jade cove

#

ok so ... they didnt replace town halls, they replaced some, but this is an additional type

pure sierra
#

no they replaced them all

long raft
#

oh

#

im looking at relic bases thinking theyre town halls! oof

pure sierra
long raft
#

got it. thanks.

pure sierra
#

quick question

#

in the warapi which corner is 0,0

#

i think they should mention it in the readme

long raft
#

its not center?

pure sierra
#

oh is it

#

i didnt think so

#

but maybe it is

#

i dont think so

pure sierra
#

working on the next big reddit post

pure sierra
#

i did another thing

long raft
#

wtf??

pure sierra
#

just because i could

long raft
#

its like a dissertation

#

a literary analysis

pure sierra
#

oh btw i checked and warapi is top left 0,0

pure sierra
#

@long raft

#

oh oh

#

also

#
    function convertPixelToLeaflet(xcoord, ycoord){    
        //bounds: [[0,0], [-256,256]],

        var leafletUnitsPerPixel = 256 / Math.max(pixelWorldWidth, pixelWorldHeight);
        
        var pixelOffset = Math.abs(pixelWorldWidth-pixelWorldHeight)/2;
        //offset to account for non square world tileset
        if(pixelWorldWidth > pixelWorldHeight)ycoord += pixelOffset;
        else xcoord += pixelOffset;
        
        var xcoord = xcoord * leafletUnitsPerPixel;
        var ycoord =  ycoord * leafletUnitsPerPixel * -1;
        //convert to leaflet coords
        
        return  yx(ycoord, xcoord)
    
    }
long raft
#

Do I need this?

pure sierra
#

up to you, not sure if you got past your leaflet problems, as im working on that today

bronze rain
pure sierra
#

so im going mad about my text label alignment only to realise they are off in game too in areas

long raft
#

can confirm magic ratio to rescale things is 7/(sqrt(3) * 11)

#

yea labels look like they moved

#

theyre centered on the regions they represent now i think

pure sierra
#

so 0.3674

long raft
#

hmm no that doesnt sound right

#

maybe it was 11/(7*sqrt(3))

#

whatever i said the other day, i used that radio to reduce my roads to fit where they used to

pure sierra
#

are we talking width or height

long raft
#

both

#

so if you had old coordinates and multiply both of them by that (assuming theyre centered at 0,0 you wont need to translate) it will scale them to the new aspect ratio for the tiles

#

maybe only relevant to me...

#

seems like you all got your new points figured out already

#

but i have a ton of coords that dont come from the API

#

god i cannot remember how i made the hexes! where did these come from ree

#

@barren quarry is there a new background image in the assets?

#

map background image i mean. the very undetailed one

barren quarry
#

@long raft

long raft
#

its new??

barren quarry
#

its from devbranch v1

fringe night
#

It just stops snowing south of the river?

barren quarry
#

as new as could possibly be

long raft
#

i cant tell if it has changed

#

weird, it looks just so slightly different

#

still doesnt match the actual map tho

barren quarry
#

@long raft i dont think it changed at all in the past 2 years

long raft
#

hmm ok

normal marlin
#

I think this was the previous one?

ancient ether
#

just something I spent 9 hours on yesterday :D

flint basin
#

nice

long raft
#

well that was a butt-ton of work

pure sierra
#

you got it

long raft
#

missing roads for 14 regions tho

pure sierra
#

that will buff out

royal glade
pure sierra
#

grey wardenlol

long raft
#

contested

royal glade
#

Ah ok. ty.

#

I guessed that, but was thrown by the orange spots in the backline hexes.

long raft
#

safe houses

#

they are technically weak spots, i feel they reveal some info about the map that otherwise would be missed

royal glade
#

Got it. Ty.

kind glacier
quick gulch
south thicket
#

do you guys ever talk about code?

#

like in public int myvariable = 10 ?

pure sierra
#

bool result = true;

earnest glade
long raft
#

are wardens gonna win this war by default lol

#

havent seen a reduction of victory points in a long time, another opportunity to find bugs in our code i guess

#

6 days until next update releases eek

high urchin
#

Wooo 6 days!

long raft
#

is there a new map? from the devbranch updates? i don't see any new commits on the warapi but I thought there were going to be image updates, need them for roads

mossy pelican
barren quarry
long raft
#

there are so many shifted roads

lunar cobalt
#

none of the maps that have issues are in the newest devbranch it seems

twilit wave
#

they keep changing them too. Big changes, like Viper not being a lake but a river from the new maps. Roads going nowhere. Even added roads in some places.

long raft
#

god i bet they changed a ton, also

#

gonna need that satellite map more than ever

#

but the orange lines dont really help

lunar cobalt
#

Can't image rec the orange?

#

or color match it?

long raft
#

yea cant color match it, and it would obscure seeing it with eyes

uncut turret
#

This is a cookie logger. Do not click on it even if you are curious. It will steal info from you even if you just visit the site <@&374193809174822912>

mossy pelican
#

thanks

royal glade
#

reminds me of advance wars.

mossy pelican
#

yes, my artist took inspiration from it

royal glade
#

ah ok.

#

I always thought the unit formations from age of empires was cool.

#

It was neat to see the units form up in your game.

mossy pelican
#

thanks lol

#

formations are really important for me

#

so much that i added formations before adding movement lol

royal glade
#

haha.

lunar cobalt
#

Map images updated @long raft @pure sierra

#

Oarbreaker landmass fixed, oarbreaker / fisherman's eastern passage added, weathered expanse fixed as well

long raft
#

nice thanks

lunar cobalt
#

Umbral got a bunch of updates, and there's probably other stuff I'm not seeing

#

Endless shore map is not properly updated

safe mist
#

Warmap updated 😄

lunar cobalt
long raft
#

those are higher res huh?

#

err nvm that was unprocessed

lunar cobalt
#

Do you want the unprocessed ones?

long raft
#

sure

lunar cobalt
#

Uploading to GDrive, too big for discord

long raft
#

thanks!

vague otter
#

Also, looks a bit like advance wars

mossy pelican
barren quarry
lunar cobalt
#

don't think so

#

but maybe

sonic mulch
#

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

mossy pelican
#

its my game, i made it

brittle tinsel
#

no i mean gms2

#

gamemaker studio 2

#

the engine lol

mossy pelican
#

lol no

brittle tinsel
#

what engine

mossy pelican
#

no engine

brittle tinsel
#

what

mossy pelican
#

its c++

#

engines are limiting factors

brittle tinsel
#

uhhh

mossy pelican
#

the video looks like garbage bc of my OBS config

brittle tinsel
#

i mean your kinda right i guess

#

engines just make things much easier lol\

mossy pelican
#

yea

brittle tinsel
mossy pelican
#

they do thats for sure

brittle tinsel
#

heres something i was working on lol

mossy pelican
#

cool top down

#

reminds me of endless war (flash game)

#

i was considering top down for my game too but we settled for this flat style

brittle tinsel
#

never heard of endless war lol

mossy pelican
#

probs never gonna hear of it again since adobe flash shut down

brittle tinsel
#

i took slight inspiration on the art from earlier 2000s "stick games"

mossy pelican
#

showing healthbars

brittle tinsel
#

it looks very cool

#

i wanted to do a similar unit command thing but on a small scale

mossy pelican
#

you mean like controlling a small squad

brittle tinsel
#

yes

mossy pelican
#

yea that exists in endless war too

brittle tinsel
#

i think thatll be too complex for me other than basic orders

#

like following, cease fire, stay etc

mossy pelican
#

shouldn't be too hard

#

for my movement all i did really is

brittle tinsel
#

well the way i do my characters complicates things

#

this engine wasnt made for characters to work like mine do

mossy pelican
#

get unit position. get target position. Pythagoras theorem, move

brittle tinsel
#

cant explain without giving you a basic tutorial on how to use the engine lol

mossy pelican
#

ha

#

i see

long raft
#

looks cool

pure sierra
#

@zealous sonnet when do you plan the final git update b4 release ?

safe mist
#

You can use netlify for free host you project 🙂

idle mortar
#

Dont forget about new update on Monday and then release on Wednesday, SS going to Medic tab

cerulean urchin
# safe mist You can use netlify for free host you project 🙂

I heckin love Netlify. They have a generous free tier and really good support for GitHub CI/CD so I make sure to use it for all my projects lol. I'll probably host the API as a subdomain for FoxholeLogi, but I need to implement rate limiting and keys before then for security.

violet knot
#

Matt- I’m doing a little mapping project and noticed this heightmap you sent a while ago. Quality doesn’t bug me, it’s actually perfect for my purposes- Is there any chance you could tell me where to/if i can get more of these, or more up-to-date ones? I’ve been poking around using UEviewer and haven’t had any luck, but I’m basically stumbling in the dark haha. Thanks.

lunar cobalt
#

Final map images wooo

lunar cobalt
#

...okay?

pure sierra
#

I want the official release to know they wont be changed again hopefully

subtle gust
lunar cobalt
#

(I'm not a dev, thank Phil)

subtle gust
#

@zealous sonnet

#

Thanks 😄

mossy pelican
tawdry thunder
#

are you trying to make a heightmap

#

because if you do it by hand it's gonna take quite some time 😄

mossy pelican
#

more like a map editor

#

the color of each pixel is translated into an entity or tile

#

be it grass, a mountain, a soldier or the starting position of the player. everything is done with a different RGB code

#

that way anyone with paint installed or any other image editor can make a map for my game without the need for fancy programs or complex documentation

#

also the image before i start editing it in the video was generated by the game itself with perlin noise

safe mist
mossy pelican
safe mist
safe mist
long raft
#

warapi must be temporarily off

lunar cobalt
#

I think basically all their services are offline for maintenance currently

plain kiln
#

Pretty sure Icanari is on the money - I'm getting a 504 as well.

plain kiln
#

It's back up, but I'm not getting any values from WarAPI anymore for map items - both in static and dynamic

#

nevermind, it's populating now.

pure sierra
#

im awake

pure sierra
#

@safe mist $worldSize = ['x'=>5644, 'y'=>6216];

#

(that is php, but i send it to js too)

#
    var mapWidth = <?php echo $mapSize['x']; ?>;    
    var mapHeight = <?php echo $mapSize['y']; ?>;    

    var pixelWorldWidth =  <?php echo $worldSize['x']; ?>;    
    var pixelWorldHeight =  <?php echo $worldSize['y']; ?>;    

    var gridIntervalWidth =  <?php echo $gridInterval['x']; ?>;    
    var gridIntervalHeight =  <?php echo $gridInterval['y']; ?>;    

//leaflet and warapi top left is 0,0
    function getWorldTopLeft(gridX, gridY){

        var x = gridIntervalWidth*gridX;
        var y = gridIntervalHeight*gridY;
        
        return {'x': x, 'y': y};
    }

    function getWorldCenter(gridX, gridY){

        var topLeft = getWorldTopLeft(gridX, gridY);
        
        var x = topLeft['x'] + (mapWidth/2);
        var y = topLeft['y'] + (mapHeight/2);

        return {'x': x, 'y': y};
    }
    
    function convertApiToPixel(regionName, x, y){//game cords
    //    """convert x,y coords from Hextiles to Worldmap coords"""
        
        var topLeft = getWorldTopLeft(localIndex[regionName]['grid']['x'], localIndex[regionName]['grid']['y'])
        
        var xcoord = topLeft['x'] + (mapWidth * x);
        var ycoord = topLeft['y'] + (mapHeight * y);

        return convertPixelToLeaflet(xcoord, ycoord);
    }
    
    function convertPixelToLeaflet(xcoord, ycoord){    
    
        var leafletUnitsPerPixel = 256 / Math.max(pixelWorldWidth, pixelWorldHeight);
        
        var pixelOffset = Math.abs(pixelWorldWidth-pixelWorldHeight)/2;
        //offset to account for non square world tileset
        if(pixelWorldWidth > pixelWorldHeight)ycoord += pixelOffset;
        else xcoord += pixelOffset;
        
        var xcoord = xcoord * leafletUnitsPerPixel;
        var ycoord =  ycoord * leafletUnitsPerPixel * -1;
        //convert to leaflet coords
        
        return  yx(ycoord, xcoord)
    
    }
safe mist
pure sierra
#

$mapSize = ['x'=>1024, 'y'=>888];
$worldSize = ['x'=>5644, 'y'=>6216];
$gridInterval = ['x'=>770, 'y'=> 444];
$outputImageSize = ['x'=>1200, 'y'=>1322];

long raft
#

now that unprocessed maps are available (for how long?) i wonder if we will see a return of skaj's map mod

pure sierra
#

Apps string together wardenlol

long raft
pure sierra
#

Php

safe mist
long raft
#

so hayden stitched the most recent map?

safe mist
#

I generated the new map for update my tool on Leaflet

long raft
#

from the region images to the full map all in leaflet?

long raft
#

so it uses tiles of the full map, right?

safe mist
#

I still have small problems with the hexagons xD

safe mist
long raft
#

and you make that full map in leaflet?

safe mist
long raft
#

yea the ones provided by the devs

pure sierra
#

@long raft i tile my own world map now via php and the dev git images

#
<?php

include_once '../_settings.php';
putenv('GDFONTPATH=' . realpath('/home/foxholestats/public_html/fonts/'));

$imagePath = $path.'/tiles/worldmap.png';


$canvas = imagecreatetruecolor($worldSize['x'], $worldSize['y']);
imagealphablending($canvas, true);
$transparent = imagecolorallocatealpha($canvas, 0, 0, 0, 127);

imagefill($canvas, 0, 0, $transparent);
imagesavealpha($canvas, true);


foreach($localIndex as $tileName => $tileData){
    if($tileData['id'] < 20)continue;
    

        $mapPath = $path.'/images/Maps/Map'.$tileName.'.png';
        $map = imagecreatefrompng($mapPath);
        $origin = getWorldTopLeft($tileData["grid"]['x'], $tileData["grid"]['y']);
        imagecopy($canvas, $map, $origin["x"], $origin["y"], 0, 0, imagesx($map), imagesy($map));
}

$white = imagecolorallocate($canvas, 0xFF, 0xFF, 0xFF);

$result = imagepng($canvas, $imagePath );

echo "<img style='width:1000px;' src='/tiles/worldmap.png' />";



?>