#code-talk

2 messages ยท Page 16 of 1

kind glacier
#

I haven't got a clue

#

Now back to the example Thramoun wrote

long raft
#

seems like it should not

#

i think you must have an await happening outside of this

#

so the task is yielded back, then awaited, then it parses it

#

so its basically not async

kind glacier
#

pretty much

long raft
#

its all still happening in 1 thread

kind glacier
#

A coroutine is like a function that has the ability to pause execution and return control to Unity but then to continue where it left off on the following frame.

long raft
#

oooh thats right unity and its coroutines

#

oooooh ok

#

so complicated tho

kind glacier
#

Now I gotta get that api string out of the coroutine

long raft
#

what does your loop outside of that look like? where the await happens?

#

i woudl think you could just check the return type, if (x is Task<JSONNode>) ...

kind glacier
#

that's pretty much the whole thing

long raft
#
var results = ((Task<JSONNode>)StartCoroutine(Getstatic(BaseURL, Mapname)).Where(x=> x is Task<JSONNode>).First()).Result;
#

So the StartCoroutine is actually a function returning the same list of tasks

#

one of those tasks that gets sent back is a Task<JSONNode>

#

so you find the first one that matches that, then you cast it as a Task<JSONNode> and you query it's result

#

Not sure your familiarity with LINQ in that way (the .Where().First() stuff)

#

you could do it with a for loop, too...

kind glacier
#

coroutine doesn't do Where

long raft
#

ah it should if you include System.Linq;

kind glacier
#

I have

long raft
#

it contains extension functions that will give more functions to IEnumerable

#

oh.

kind glacier
long raft
#

yah ...

#

so do a for loop then on it

#

.GetIterator()

#

then loop through the iterator until you find a Task<JSONNode> and get it's value

kind glacier
#

I need to get StaticInfo out of the coroutine so that I may use it in Thramoun's example

long raft
#

once you have the JSONNode you can convert it into your StaticInfo class, right?

#

or did it have to be a string?

kind glacier
#

the StaticInfo is the JSONNode

long raft
#
JSONNode result = null;
var e = StartCoroutine(...);
while(e.MoveNext())
  if(e.Current is Task<JSONNode>)
    result = ((Task<JSONNode>)e.Current).Result;
kind glacier
#

I'll give that a try

long raft
#

the break may be unnecessary

#

maybe try without it

kind glacier
#

can't do a foreach

long raft
#

its an ienumerable tho ๐Ÿ˜ฎ

#

god their documentation sucks

kind glacier
long raft
#

ok I changed my example - will it work with an enumerator loop?

kind glacier
#

doesn't have a MoveNext or Current

long raft
#

am i crazy? IEnumerator should definitely have MoveNext

kind glacier
#

Coroutine doesn't

long raft
#

but it's an ienumerator. they have to. thats the interface

#

maybe it doesnt return that

kind glacier
#

Yeah, I saw that and promptly kept searching

long raft
#

I think he's basically doing the same thing, filtering the results and saving one

kind glacier
#

I think I might just have to do all of it inside the IEnumerator

#

Considering I'll have to do each and every static hex and dynamic hex seperately that's going to be difficult

#

So Thramoun's example returns null

#

fixed it

#

Now I gotta get it to read mapTextItems

#

all 41 of them

#

But I'll leave that for tomorrow

pure sierra
#

lol if he ends up making a better game than foxhole itself..... julianlol

neat fossil
#

s

kind glacier
#

seems like it doesn't want to get mapTextItems

#

hm, ArrayList works

#

"Hey, this is an ArrayList"
Yes I know, now return to me what is in the ArrayList thanks

kind glacier
kind glacier
kind glacier
#

I can't seem to figure out how to single out any of the indexes

#

like "text" and the xy coordinates

kind glacier
#

Do you guys know where the origin is for these coordinates?

kind glacier
stone void
#

Now go send them shirts

kind glacier
#

lol

kind glacier
#

tfw it suddenly throws up 45 errors about wrong brackets and cutting and pasting back in fixes it

kind glacier
#

as you can see I've played so little on Deadlands in recent memory I didn't realize I had it flipped around

#

@stone void You were right about dictionaries

#

it worked

barren quarry
#

Congrats

stone void
#

Congrats, I thought I was a detriment

kind glacier
#

So uhh

#

how do you know which iconType belongs to which icon

long raft
kind glacier
#

Aight, so I gotta find a way to either rename all the icons or add a list where it can look up the name

#

probably better to just rename them

#

lol

#

map icon is called "Civic Center" but no civic centers in the list

long raft
#

are civic centers even a thing anymore? didnt think so

#

civic center was t4 town hall

kind glacier
#

guess I'll skip that one

#

still got a few that don't quite fit

#

I suppose the hammer is refinery instead of manufacturing plant

#

still missing safe house, scorched town, seaport, and townhall

#

townhall I assume isn't used anymore, and neither is seaport

pure sierra
#

boo

#

@kind glacier

kind glacier
#

Oh, it'll probably come back to bite me in the ass, sure

pure sierra
#

with those indexes i can just use the icon name the way they are

#

if you need a batch format changer, i use a plugin for gimp that works well

kind glacier
#

I can probably write a list for it to look through

#

right now though I'm trying to get images to work

#

grr

pure sierra
#

it might be a format thing, what extension are you using them as ?

#

I convert to PNG

kind glacier
#

TGA

pure sierra
#

do you know that tga works ? that might be the problem

#

try as jpg first, its more compatible then step up to a format with transparency

kind glacier
#

the labels are bit fucked again though

pure sierra
#

you will have to do some offset work

kind glacier
#

ye

pure sierra
#

as the point of origin that the coords use might be different to your engine

kind glacier
#

Nah, looks like they're in the right places

#

Lots of trial and error to get them there

pure sierra
#

you said the labels are off

kind glacier
#

Like I said, I haven't played Deadlands in a long time

#

I just double checked the wiki

#

they're in the right places

#

...again

pure sierra
#

no they not

kind glacier
pure sierra
#

looks so

#

you can always compare in game

kind glacier
#

all I did was move them down on top of the map image and make them smaller

#

but the point is that they should be readable from a distance

pure sierra
#

arent they fixed te the same level as the map

kind glacier
#

I'll probably figure out how to make them scale in size depending on distance from the camera

pure sierra
#

if they at the same height as the map there should not be a parrallax? effect depending on angle

#

put them at same level as map

kind glacier
#

I can't seem to figure out why they like to disappear at certain camera angles

kind glacier
#

the map still makes them disappear

#

"I changed something and that fixed it"

  • Software Development
#

but yes it no longer disappears

kind glacier
#

@pure sierra this sprite issue took me 3-4 hours to fix but I'm going to bed finally

pure sierra
#

cool

long raft
#

"trial and error" shouldnt be applicable here

#

your icons should pop up, obv, but that looks incredibly cool

#

i feel like im on the final fantasy 3 world map

#

god please matt find it in your heart to give us the height maps!

kind glacier
#

"trial and error" shouldnt be applicable here
Well, no one told me how a certain function worked. I was trying to access the images from a folder, but then I finally found out it has to be in a folder called "Resources" and only about half an hour after that did I find out that the path to the images folder starts in Resources

#

As for the trial the and error with the label placements, that's mostly because no one would tell me what the origin of the api coordinates are

#

By now I'm thinking the origin of the original coordinates is actually one of the corners

pure sierra
#

its something like that

#

not the center like you might think

#

thats why i mentioned the origin issue earier

long raft
#

to make a global point from a region-local one

#

slightly confusing if you arent familiar with like c# 7 but ... you can kind of figure it out

kind glacier
#

that's the offset for the hexes?

long raft
#

big pain in the ass to type all those in and verify the sign is right and shit.

#

yes

kind glacier
#

ah, thanks

long raft
#

o.Item1 = x
o.Item2 = y

barren quarry
#

Ah I'd recognize that code anywhere

#

Because for some reason I named region height "k"

kind glacier
#

Haven't managed the icon sprites yet

#

Apparently I'm lacking a few icons

#

suppose I'll just have to color them instead

#

color doesn't seem to match

#

much too dark

#

fixed it

#

@long raft What's "template"?

#

100 errors nice ๐Ÿ‘Œ

long raft
#

template i think is a single region map size

kind glacier
#

I'm getting

internal server error

#

Am I querying the server too often?

pure sierra
#

doubt it, how frequently ?

#

you likely need some throttling on it

kind glacier
#

3 times in like 6 seconds?

#

I get the list of maps and then use those map names to access the list of static items and the list of dynamic items

pure sierra
#

I think kastow was doing every 3 seconds, i only do once a minute, but im not sure if theres a limit

kind glacier
#

I think I can throw in a wait of 3 seconds see if that works

pure sierra
#

so 3 different url in 6 sec or the same url

kind glacier
#

1 time the map list

#

then the static and dynamic list for each map

#

sooo

#

a lot?

pure sierra
#

well that should be fine, i think we all just rapid fire all the different map name requests one after the other with no delay

kind glacier
#

then what is causing the server to return the internal server error

#

๐Ÿค”

pure sierra
#

have u successfully done those map names before ? are you just getting them from the maplist url?

kind glacier
#

I get them from there

#

I think I gotta do it more linearly

#

ooh boy, he does not like that

#

I froze it ๐Ÿ‘Œ

#

need to toss in some async

#

oof for a sec there I thought I lost my work

pure sierra
#

you need version control, set up git

kind glacier
#

I think the problem is that the get request is supposed to be async, but the code keeps on going while it waits for the request to catch up

#

but it needs the return from the request in order to do the rest

#

the way I'm trying to get it to work is
get list of maps -> make map 1 -> get static for map 1 -> make static -> get dynamic for map 2 -> make dynamic -> make map 2 -> repeat

#

instead it makes all the maps and only then tries to get static

kind glacier
#

trying to trim the double quotes off a string, but it just refuses to remove the one at the start of the string

#

hmm

#

doing string.remove(0) removes the entire string

kind glacier
#

fixed it

#

I've now got all maps on top of each other

#

now I need the names and icons

long raft
#

i know youre rubber ducking your way through this code but nobody can help if they cant see the source causing problems

kind glacier
#

I know

#

I'm really just cluttering this channel, aren't I?

pure sierra
#

not really

#

its not used for much else

long raft
#

nobody gets mad at us here

#

this is safe place for programmers

#

but non-programmers better watch their backs squint

pure sierra
#

its our little sanctuary away from the madness of fod

barren quarry
#

i can afford to request the data every 3 seconds because i dont pull all of the data every time

#

i compare etags

#

which means most of the requests get aborted because i check that its the same data

sacred rivet
#

Any collies want to test out a Foxhole Management System soon?

#

Privately message me if you would like access.

void marlin
#

Any Wardens interrested in the same shit message me.

So sad that globalHQ is now split in the camps... @sacred rivet

sacred rivet
#

Indeed. Tbh this should be a based game instead of the stupid social score.

void marlin
#

so why do you do it?

sacred rivet
#

We need a software to run.

void marlin
#

I thought you guys have one running for weeks?

sacred rivet
#

globalHQ is no longer worked on i have no idea why so we developed our own verison excel sheet now doing a progrmam

long raft
#

because it was shut down

pure sierra
#

F

kind glacier
pure sierra
#

what map is that

kind glacier
#

Weathered Expanse

pure sierra
#

yeah same for me, it must be a mistake their end , ill make a ticket for it

kind glacier
#

Westgate has it too

kind glacier
#

Dunno where they're supposed to go either

#

Reaching Trail too btw

long raft
#

is bannerwatch back?!

#

funny i dont see any error on logiwaze

#

๐Ÿค” not sure why its been so durable

kind glacier
#

I seem to be having this unique issue where I've got one of the images showing the map behind another map image yet still being rendered on top

long raft
#

just have to scale them by 1/256

#

all the coords are already globalized i guess

#

but bannerwatch shouldnt even be a town anymore hbeyes

#

isnt that old AF?

kind glacier
#

by all accounts endless shore should be obscuring drowned vale

#

but it's the other way around

long raft
#

i think ....your math ... might be the culprit

kind glacier
#

?

long raft
#

the maps dont overlay

barren quarry
#

this is the wrong layout

kind glacier
#

?

#

wrong layout?

barren quarry
#

your endless shore is on top of drowned vale

kind glacier
#

I know, I haven't gotten to that part yet

barren quarry
#

it should be to the top right

long raft
#

i am legit curious how bannerwatch got back in there

barren quarry
kind glacier
#

aaah, so that's how it works

barren quarry
#

yeah thats definitely out of bounds

long raft
#

maybe i just ignored minor marker types

kind glacier
#

if I put endless at the bottom it renders on top of everyone else, but if I put it at the top everyone else renders over endless

long raft
#

it shouldnt matter the rendering order - because none of them will be overlapping

kind glacier
#

TIL

barren quarry
#

Derp is right, they shouldn't overlay

#

as long as you correctly cut the regions into hexagons

long raft
#

frankly i'm surprised youre using the individual region maps

barren quarry
#

and put them next to each other

kind glacier
#

No, you're right but this does explain why the icons keep obscuring the map labels

long raft
barren quarry
#

@long raft if you put them all together its like 32 MB or something

kind glacier
#

because I do the icons last and they thus render over the labels when they shouldn't

long raft
#

shut up baby i know it APPLAUSE

#

Quite a consideration really... load a huge texture and hope the user doesnt run out of vram?

#

32mb aint that much

kind glacier
#

need to figure out how to rearrange the hierarchy so that the labels are last

barren quarry
#

32 MB is CBT for a website user

long raft
#

use webp, its like 8mb

#

i mean rescaling that image in a browser is CBT

#

thats why everybody uses leaflet

barren quarry
#

What exactly is webp?

long raft
#

is an image format (supported by all major browsers) that uses the video codec vp8 to encode the image

#

it supports an alpha channel and a lossless encoding format

barren quarry
#

how much space does it save compared to png

long raft
#

so all the benefit of png but about 1/3 the size - downsides might be rendering support

#

or rendering speed, i dont think its as fast as png

#

but its what i used on logiwaze for the leaflet map

#

its definitely less than half the size of a 32 bit png

#

i mean youre seeing it. that map went from 14.8mb to 8.5 (i realize thats not less than half)

#

anyway i would think you could save yourself a lot of effort by loading the whole world map as a single image, timberwolf

barren quarry
#

@long raft on first load of logiwaze all types of tiles render on top of each other

long raft
#

weird - no idea how thats possible. i use the full image

barren quarry
#

do you see how satmap renders first

long raft
#

oh i see the different layers

#

yah i feel like the downside to webp is that the browsers open it - sure, but like regular image editors dont, you have to convert to png to work with it and then back

#

but it has good browser support

barren quarry
#

interesting

long raft
#

it also supports animated images, like a gif basically, but thats not great support

#

probably better to use webm in that case

barren quarry
#

i see no use of animated images for us map nerds

long raft
#

agreed, but i would opt for a webp animated image instead of gif on a web page - its smaller, and you wont have to sacrifice colors or alpha bit depth

royal glade
#

What i really want is for the game to have a local api from which we can get the players location

kind glacier
#

damn, it took me a while to get the icons to draw only once per map

#

went from 5800 icons to 790

long raft
#

can you stand them up like billboards?

kind glacier
long raft
#

Haha

#

No the icons

#

Smartass

kind glacier
#

I can, but it ain't pretty. One sec.

long raft
#

It should look awesome

kind glacier
long raft
#

yep! except they have aspect ratio issues

#

also billboards should always face the camera perpendicularly

#

it might help to draw a line from them to the map to show where they place, but i personally think it looks good

#

im imagining it with only town halls, and i think its great

kind glacier
#

right now though the next step is moving each map to its respective location

long raft
#

why not just load 1 big map

#

where they are already combined?

kind glacier
#

to my knowledge the coordinate system and icon list is per hex

long raft
#

yah you will have to move the icons, sure. but not the map

kind glacier
#

also I've got no combined version of all the hexes

long raft
#

i am just imagining loading all those images separately, its a lot of wasted memory space (eveywhere their squares would overlap)

#

i just pasted it, scroll up

#

well i pasted skaj's map and the satellite map

kind glacier
#

only see the satellite map

long raft
#

boy that doesnt seem like the right size

#

its not

#

here's the clapfoot version of the map, all combined

#

That's from August 3rd

kind glacier
#

then I'd have to figure out how to convert each hex's local coordinates to mapwide coordinates

long raft
#

yea i shared offsets with you already

#

that dictionary has the offset coordinates for each region

#

just adjust the x/y by the matching value in that little table

#

kastow figured out all those offsets

barren quarry
#

๐Ÿ™‚

long raft
#

and now i use them to stitch the map together ๐Ÿ™‚

barren quarry
#

Its the holy grail of war api

kind glacier
#

did they make changes since they uploaded the hex images?

long raft
#

my eyes roll back into my head when i start googling hex geometry

#

i think the images they upload to the war api are only half the resolution i provided

barren quarry
#

1024x888

long raft
#

hmm maybe not

barren quarry
#

Sat maps are twice as big

long raft
#

so, the satellite images are raw images stored in the assets. they are 4x the resolution as the API ones

#

and skaj processed them and made his version of the map which is also 4x the detail

#

i just call it the skajmap

kind glacier
#

hm

long raft
#

he read up on their map processing technique and duplicated it with his own color variations to make it easier to see

#

and the satellite map has weird orange roads all over it now

#

the real holy grail would be the height maps, kastow ๐Ÿ˜ฆ

barren quarry
#

Yes

kind glacier
#

right now it does each Hex seperately. I could probably get it all to draw on the same map image

long raft
#

its going to take longer to download and load for users in separate maps

#

it will be 23x as many triangles to render

#

and you may see seams between them

#

floating point rounding errors...

kind glacier
#

your big map has jagged edges

long raft
#

eh?

kind glacier
#

actually, that might be the image app

#

lol

long raft
#

its large... image apps dont handle it well, imagine the 4x larger one

#

but games often use large textures like that, so i think it should work

#

what's the hot texture image format people use now? is it still dds? ahhh

#

you are going to want to at least use mipmapping on this, if not anisotrophic

#

which means you need to generate the mip-map texture

#

i feel like unity can do that automatically

kind glacier
#

now you've lost me

long raft
#

oh really? this is like 1990s rendering tech

#

if you sample a very large image in certain circumstances, like youre zoomed out, or at a nearly 90 degree angle it will ruin a texture

kind glacier
#

I've heard of it, don't remember what it does and certainly don't know how to use it

long raft
#

so you generate that same texture as a lower resolution using high quality resampling

#

all the way until you have n layers and its down to 1x1 pixel

#

this is what leaflet is doing for the web-based version for us

#

In computer graphics, mipmaps (also MIP maps) or pyramids are pre-calculated, optimized sequences of images, each of which is a progressively lower resolution representation of the previous. The height and width of each image, or level, in the mipmap is a power of two smaller ...

#

so unity can do this for you, and then it will be using so called tri-linear filtering, and it will look good

#

if you plan to look at the map very near to the table, almost a parallel angle, you would need to use anisotropic texture filtering to have it look good

#

mip mapping will do what you need tho - and its very easy, but it will use more texture memory

kind glacier
long raft
#

yes!

#

But also you would need to pick a max size equal or greater to the image i think

#

or maybe settle on like 4096 or something

#

i mean it's large, and its rectangular...

#

and of course dxt5 compression will be very helpful

#

seems like it would be worth matching a power of 4 to get that

#

so the texture, and it's resampled layers all get stored in a texture file together, and compressed

kind glacier
#

set it to 4096 and the warning is gone

long raft
#

oh jeez its 11264x9756 holy crap

#

i find the map looks blurry when zoomed WAY in even at that resolution - i doubled it with an AI image enhancer at some point

#

I think this might be that version, im not sure

#

it's freakin huge

kind glacier
long raft
#

i would probably consider resizing to uhh ... 12288x8192, god thats huge

kind glacier
long raft
#

ah it cuts off part, so it would have to be scaled at least a little bit

#

oh man thats just like ... what their map looks like

#

i suspect the reason for that is because their height map only has 255 intervals

kind glacier
long raft
#

and the difference between above water and under water is 1/255

#

oh.

#

well damn. maybe its the AI enhanced version

#

lemme see if i can dig up... or re-stitch it

#

i dunno, skaj's map kind of jagged too

#

i mean if you upscale something with bilinear filtering youre gonna get blurry and smooth, seems plausible

#

I guess it was that first one i posted that i deleted doh

#

i should have learned my lessons about ai enhance on grom8k

barren quarry
#

not webp

long raft
#

do you want it in webp?

barren quarry
#

No

long raft
#

half size in webp

barren quarry
#

the colors are far less rich in webp

long raft
#

not true

#

wut?

#

i used lossless encoding

barren quarry
#

there is a difference

long raft
#

hmm there is kind of

#

maybe it's discord

barren quarry
#

its like it lost even more color

long raft
#

lol

#

are you sure its not just in our head?

barren quarry
#

or am i going insane

long raft
#

guess ill have to open the both in paint.net and difference them

#

i see ... differences on the seams, i wonder if those are alpha channels

#

i suspect its just discord rendering webp differently than png but im not sure

kind glacier
#

I just noticed that the upscaled map is noticably different from this one

long raft
#

hm weird the source maps are marked 8/1/2020

#

im pretty sure its the same

kind glacier
long raft
#

holy c rap

#

you are right thats way different i should make sure i have the newest github ones

kind glacier
long raft
#

i think the upscaled one was old

#

its slightly larger...

kind glacier
#

aight, thanks

long raft
#

That's actually pretty nice looking, I wonder what changed, it's like they rendered stuff more clearly

kind glacier
#

now I gotta get them to their respective places

#

they're currently still placed as though the image they're on is their respective Hex

long raft
#

yah i mean you have to divide them by the individual region size, which i think its 1/5.5 of the total map width

#

and then you have to offset them by the size in that lookup table

#

it would be great if the api were more unified, but i have seen the evolution of it so i understand why it is how it is

#

happy to at least have an api

kind glacier
#

It'll likely all be in unity's measurements

long raft
#

i remember it being a time consuming process

kind glacier
long raft
#

i wonder how much it would cost to get those icons 3d modeled

#

and it would be like monopoly pieces

kind glacier
#

Didn't the devs make an art piece similar to that?

#

where is it...

#

it's out there somewhere

pure sierra
#

i got to show you this spam fake hack email logic

pure sierra
#

"Hey, today I got some bad news for you.

Check the sender of this email, it's your email, that means I sent it from your email account."

#

...

#

"Showing this mail to someone else wont help you, my RAT is no longer on you computer and this email was sent from some random generated account."

kind glacier
#

@umbral mulch I just found it

#

grrr

#

But yes

#

it would be cool if it could look like that

#

had one of those several months back

#

@pure sierra I spent like an hour trying to find the real location it was sent from

#

I don't remember where, might have been south east asia

long raft
#

its like when you see a call coming from your own phone number, hayden ๐Ÿฆ‡

long raft
#

hmm

kind glacier
#

Now we gotta ask Julian for the one without the logo

#

Derp, could you tell me what the item1 and item2 mean?

#

o.Item2 is a mystery to me

#

I think I got it

kind glacier
#

so far the dictionary is not working

long raft
#

my guess is k is not right

#

or the template size or something

kind glacier
#

I'll see what I can do. right now I'm going to bed

#

I've been at it for 6 straight hours now

royal glade
#

The devs might be interested in giving you 3d assets for the markers/icons. Would be hella cool.

long raft
#

item2 is ... either X or Y im not sure which

#

its possible X and Y are reversed, but what you are seeing is an anonymous struct, and if I dont name the properties they just default to Item1 and Item2

#

it should have been (x: k + ...., y: k + ...) and then it would be obvious they are .x and .y properties

#

all you need is a map that says map name -> (x, y)

#

i dunno if those new tuples exist in c# 6

pure sierra
long raft
#

see? it's ugly for all of us

barren quarry
#

The only variable you need to set here is the map width

#

And the coordinates of the center

kind glacier
#

Anyone know how many icons there are in total?

#

I'm getting a few errors drawing them and want to check if I dropped those or whether it fixed itself

#

my total is 784

#

across all currently accessible maps in the api

kind glacier
coral sundial
#

Convert it to a globe

frozen oriole
#

But muh flat earth

#

It would be hard to navigate if it was in globe shape, and the maps would be distorded

coral sundial
#

Less if yoh place it on the equator and make it fairly big

frozen oriole
#

Most of the globe would be empty then

coral sundial
#

As is, because that's all we know about the world of foxhole

frozen oriole
#

Oh wait, timberwolf could slap the extended map behind if he wants

#

The lore one

kind glacier
#

Why a globe tho

coral sundial
#

because of the novelty

#

we have 2d flat maps with stat

#

but no moving globes

kind glacier
coral sundial
#

thats true

#

unfortunatelly

kind glacier
#

Oh wait, timberwolf could slap the extended map behind if he wants
I suppose that's the idea, to make it look bigger

coral sundial
#

Unless its life sized with gravity n all

kind glacier
#

if you scroll up you can see the Foxhole version of that picture

royal glade
#

There's ways around that, you could just have small magnetic piece or pins that you stick into the globe.

#

The only requirement is that the size of the pieces is small conpared to the curvature of the globe.

#

You could get away with larger but wont look nice.

#

Not that you're looking to make a globe, but just replying to the above points.

kind glacier
long raft
#

but you dont really want a model with thousands of polygons

#

also those are old models, the vehicles in game have all changed

stone void
#

You couldn't take a picture, stretch it over a sphere, and distort it over the gaps?

long raft
#

you ever stretched a square to fit a sphere?

#

its not pretty

coral sundial
#

It stretches out near the poles

#

But thats just part of the projection

long raft
#

the opposite actually

kind glacier
#

true

coral sundial
#

You could also do a rimworld

#

Hexagon a planet with one wierdagon somewhere in it

#

Or cut it off somewhere

long raft
#

you really want a globe huh

coral sundial
#

No i am just throwing out ideas

pure sierra
#

@long raft so derp if you can think of good way to integrate world map like your logiwaze i might do it, i want to keep the current front end, but when you click the map for zoom in leaflet it has say your whole world logiwayz instead.

long raft
#

huh?

pure sierra
#

well currently you click on my overview map, and get a one server leaflet. but id be happy for that to be whole world

long raft
#

so like ... normal leaflet, but you cant zoom on it until you click

#

so clicking it enables/disables zoom

#

it would be the same thing, then, right?

#

you're already using leaflet for the main display, right? so just make it so if you click the map anywhere it enables zoom

#

and you could uhh alpha channel the overlay maybe a little lighter

pure sierra
#

leaflet in a lightbox

long raft
#

well the hex overlay and the control colors overlay can both just be leaflet layers

#

might be worth adding the labels and icons in leaflet

#

oh and something im really happy about with logiwaze - the icons scale with zoom, but logarithmically

pure sierra
#

but i dont want to load the full world leaflet initially

#

mostly not needed

long raft
#

so when you zoom out the town halls dont cover everything

#

theres no ... disadvantage to loading the leaflet map

pure sierra
#

its just loaded on click

#

yes speed

#

load time

long raft
#

how so?

#

the javascript?

pure sierra
#

anyway its not needed, the current way i have it is good and works

#

i just want world on click rather that one map

long raft
#

I dunno use the full world map then

pure sierra
#

this way im not changing the whole site, it can be loaded say from your server where you maintain it

long raft
#

Do you need the tiles?

pure sierra
#

well one would. but im saying youve made it already and have it working, i just need to put it in a iframe lightbox

long raft
#

hmm there would definitely have to be some redesign for that

pure sierra
#

and make it so it focus on the sector they click on, i can pass you the click area

long raft
#

mainly the API is called from the javascript, and your website wouldnt need those extra queries on the client side

#

you already have the map status

#

and the route calculation can take a couple seconds on loading, too

#

actually im not sure the timing, i know on my phone it does. lol

pure sierra
#

but the route calc would only kick in if someone used it, otherwise its just a sethfire map

long raft
#

i mean if you want the sethfire map its just the leaflet with base image and icons, right?

pure sierra
#

yes

long raft
#

so the only difference you need is the global map instead of a single region, right?

pure sierra
#

yes, but im happy for it to have the logiwaze function as well

long raft
#

oh man, its ... so integrated

#

but i had to sloppily put a bunch of javascript into the index.html

#

i just havent refactored it all out, i suppose if it was then it could just be a nodejs thing thats compiled to a simple js file, but its a lot of work

#

and i really hate javascript. my work in js is so slow

#

๐Ÿค” im putting WASM leaflet on my list of things to program if i get bored

#

remake it in web assembly... itd be nice

#

oh someone already did it

pure sierra
#

you only have towns too, no other icons

#

maybe its not the best fit

long raft
#

yah but the roads ... the roads are like 80% of this

pure sierra
#

yeah i know, you can toggle them off

long raft
#

i suppose i could actually

#

and all of the leaflet code would be in the index.html

#

perhaps i could just extract the minimal code to load a leaflet map for foxhole, i dunno

pure sierra
#

just make the js so it is functions that are not run at load, but on request. you can add stuff to the map after load

#

if needed

long raft
#

hmm the routing can be somewhat complicated, running in javascript, can feel like it lags

#

it's O(nยฒ) and theres a few thousand points

#

dunno how easy it would be to turn on and off on the fly, not sure

pure sierra
#

isnt everything js?

long raft
#

yah

pure sierra
#

so thats fine

long raft
#

Yah, just don't know how easy any of it is, I don't have a lot of free time for code lately and I got pretty sloppy on that project

pure sierra
#

its fine, lets sit on it

#

i have to go outside for a bit

#

(just turn off xss protection) ๐Ÿ˜‰

long raft
#

oh

#

that'd be easy

pure sierra
#

and cors

long raft
#

i think?

#

actually i have no idea... how to do that

pure sierra
#

you likely dont have any as its all client side

long raft
#

im just using github pages to host it

pure sierra
#

ill try something , 2 sec

long raft
#

i bet xss is enabled, just a guess

pure sierra
#

all you code belong to me

kind glacier
#

also

#

I found a typo

#

in Stonecradle

#

At least, I think it's a typo

#

it's even on the wiki

languid harness
#

I like the idea its supposed to be that way

#

@neon jungle a bit like recuit

void marlin
#

why cant i write my text..

#

the "Dyno" Bot is blocking my text... <@&374193809174822912>
it is a bit of text... but no spam.

fluid trench
#

DM me the text

kind glacier
#

It does remind me of the Aegean Sea

fluid trench
#

@void marlin posted this:

I try to reimplement the globalHQ Server... Some more strange things:

Iteam "26" from the DeadLandsHex api has this data:
[ "teamId" => "COLONIALS" "iconType" => 7 "x" => 0.42195216 "y" => 0.4821111 "flags" => 41 ]

the flags of 41 are : 00101001
how do they map:
IsVictoryBase (0x01) IsHomeBase (0x02) // Removed in v0.29 IsBuildSite (0x04) IsScorched (0x10) v0.22 IsTownClaimed (0x20) v0.26

whats with 0x08 ?

this would be a VictoryTown,????,ClaimedTown

Other thing:
The number of digits for the MapItems and MapTextItems seems to be differing between the objects. is there some know limit of digits?

void marlin
#

@fluid trench thank you!
@pure sierra this should have been my resonse of you linking my github ticket.

pure sierra
#

@fluid trench 0x08 is secret flag, we dont speak of that flag

#

to get out the flag you want you use the id as a mask

#

so 00101001 & 0x10 = if scorched or not

#

0x10 = 10000 (binary) so 5th digit is the one of significance

#

00101001 = is victory, secret, and claimed

fluid trench
#

@void marlin ^

pure sierra
#

when i say secret, its not really now but was kinda, back when we had forts and they had an optional watch tower upgrade, this indicated that, it was never meant to be in api due to intel leak, but like most new features they wind up in their inadvertantly regardless

#

such it was never documented

#

thats if i recall correctly

kind glacier
#

Is there a complete map other than the one included in the api files?

pure sierra
#

there is what the guys have made by tiling

kind glacier
#

No, I mean bigger

pure sierra
#

no

barren quarry
kind glacier
#

yes, like that

#

thanks

long raft
#

it's a huge pain to line up. i feel like it cannot be lined up perfectly

pure sierra
#

it was never meant to

barren quarry
#

it can be i think

long raft
#

not without skewing/stretching it

barren quarry
#

Yeah a lot of stretching

long raft
#

logiwaze has my best attempt

pure sierra
kind glacier
#

Once saw a big power bank getting assembled and I swear it was entirely made out of AA batteries

pure sierra
#

the magic of tesla

kind glacier
#

Can't have major battery failure if it doesn't contain any major batteries

pure sierra
#

this was near me last summer

barren quarry
#

The only thing missing is gates of oblivion

pure sierra
#

thats exactly the feeling i got

neon jungle
#

@languid harness Recuit

barren quarry
#

@pure sierra first of all, what do people mean by summer in Australia

pure sierra
#

dec, january

barren quarry
#

Ok I see

long raft
#

Act IV: Pandemonium

kind glacier
#

I recorded it in free aspect mode, so the resolution is a bit scuffed

pure sierra
#

this is cool

#

what would be good if you had whole world overview, olways visible on the wall and zoomable map on desk

kind glacier
#

ran into a spot of bother as I can't add a shader to the map

#

I did add one on the map on the far wall, but that was by making the image a material and putting it on a 3d panel object

long raft
#

i like the old map there, thats cool

pure sierra
#

it is

long raft
#

not trying to get my derp stink all over your hard work, but i have this sense that a big static world map, and rather a camera that moves and zooms in might be cooler than a magic map that pans

stone void
#

Itโ€™s a touch screen map, tells you where your uber is and automatically rates them four stars

barren quarry
#

this is awesome

#

its been a looooong while since i've seen something really new in community development

#

its really a breath of fresh air

kind glacier
#

@long raft tbh that might just be easier with any multiplayer in mind

long raft
#

all i want for christmas is the foxhole height maps

pastel igloo
#

I need some coooder help

#

which know how to html and css

vague otter
#

I know the basics

#

What is it you need?

void marlin
#

It is my job... haw may i help? ๐Ÿ˜„

pastel igloo
#

I totally forgot I typed anything in here

#

and I'd like to extend "Ships" tab

#

to put every ship description separately

#

or 3 tabs for small, medium, and large ships that would extend and show ships of specific size

#

so it won't take whole lenght of site

#

btw I'm rookie, it's my first time doing html and css

kind glacier
#

(random web site)
yAnimeList.

suuuure

pastel igloo
#

shut

#

I opened first site I had saved

languid harness
#

That does not help your case

long raft
#

what is your starting point? it's just a css menu bar, isnt it? i'm sure there are examples on w3c

barren quarry
#

its time for

#

bรถรถtstrรคp

kind glacier
#

o no

pure sierra
#

no not evel bootstrap

summer bobcat
#

kastow HBjoy

pastel igloo
#

aight, thanks Derp

kind glacier
#

I tried getting the ceiling lights to cast light and dark on it, but that just screws over a lot more than it adds so I abandoned that attempt.

long raft
#

oooh thats nice

#

looks like it pans smooth

kind glacier
#

It's decent, it depends on what you want. I can image several players interacting with the map simultaneously that way

long raft
#

ceiling lights ... maybe too broad, like ambient lighting

#

what about little spotlights around the rim?

#

like people do with those small lights on their back yards

#

or a bankers lamp

#

the panning looks good tho

kind glacier
#

tbh lighting and props would be last on the list

long raft
#

the map perspective seems odd... is it square?

kind glacier
#

?

long raft
#

might just be FOV

kind glacier
#

it's about 70 in the video, tho I might've scrolled out further

#

It's not square on, if that's what you mean

long raft
#

no i mean the map looks ... stretched

kind glacier
long raft
#

hm ok, so its the FOV tricking me then

kind glacier
#

would need to find a balance between fov, angle, and altitude

long raft
#

pretty cool tho

#

can you spin around the table?

#

to see it from a different angle?

kind glacier
#

I slapped it together in about an hour, so I'm afraid not

long raft
#

well i think it came out well

kind glacier
#

I tried head-on, but that would defeat the appeal of any 3d elements I might want on the map

long raft
#

oooh

kind glacier
#

I remembered I had those from a free asset pack

long raft
#

i bet you can get the icons for these things modeled on fiver

#

the icons are pretty simple

#

i look at them and think meh i could model that

kind glacier
#

I've seen a little 3d modelling talent in the community so they could probably slap together a primitive if they tried

#

something that vaguely looks like a hatchet and all that

#

apparently they were still floating a little, so now they should be flush with the map

#

Now I'm off ta bed

wraith dune
#

@kind glacier I can see a RTS game coming out of this lol and you could see the opponent wearing uniform across the room
Itโ€™s beautiful whatโ€™s your have done and itโ€™s amazing

kind glacier
long raft
#

oh wow you are ambitious with this project

kind glacier
#

I should probably take a step back and see about periodically updating the info on the map

#

but I know nothing of these Etags

kind glacier
languid harness
#

Oeh, that looks very fancy

timber onyx
#

i see that the map shows even the names of locations

kind glacier
#

they're slightly off still

#

I can't seem to get the math right

long raft
#

i like the lighting, it feels like a movie theatre, the darkness cuts off the map tho, easy fix im sure

#

cool to be able to walk around the room, in my opinion

languid harness
#

I wonder, does the spawn of the building lower when you zoom in?

#

Or will you have to grasp the top of the screen?

kind glacier
#

It doesn't show (purposefully), but it's kinda scuffed atm. It should spawn at the mouse position and immediately be draggable, but it isn't. So yes, instead it spawns at a fixed height rn.

languid harness
#

Ight

#

Well, it looks neat

royal glade
#

Its great to see the progress you're making Timberwolf! Keep it up man!

tranquil kindle
barren wedge
#

godspeed timber

young pilot
#

a 3d war map? looks great ๐Ÿ‘

kind glacier
kind glacier
pure sierra
#

i think you want grid and coords system that matches the game

kind glacier
#

I need to figure out what that looks like

#

and I can't have it be different for each hex either

pure sierra
#

why would it be different ?

kind glacier
#

depends on where it starts

#

I don't think I can do the regions tho

pure sierra
#

ah i see now

#

i checked in game, there isnt really a world grid system

#

they never worked that out

#

just kept it per region

coral sundial
#

Arent they identical per region?

pure sierra
#

they are identical, but it starts left edge, and by right edge its about half a grid

#

so you cant align them

kind glacier
#

and I bet the map on the right side doesn't start with half a grid

pure sierra
#

no

#

it wont

kind glacier
#

I can make mine smaller tho to roughly coincide

pure sierra
#

you could generate a grid per map

kind glacier
#

gotta check ingame, but preallocating the update takes forever

#

Not really, it's one big map

pure sierra
#

and just crop it to each

kind glacier
#

you'd have mismatched grids all over

pure sierra
#

you could generate it it as a layer with the region boundaries and grid like

kind glacier
#

again, mismatched grids

pure sierra
#

no, the grid can be per map

kind glacier
#

?

coral sundial
#

Mismatched grids ist terrible

#

You could makenit look like several individual maps "tied together "

kind glacier
#

in queue for deadlands ๐Ÿ‘Œ

coral sundial
#

No i mean, individual maps laying on the table. Roughly connecting together

#

With a military aesthetic

kind glacier
#

that would mean going back to the individual hexes and I wouldn't have a background map to make it look like a square

coral sundial
#

You could have a zoom out global overly

#

Or a war room with a big map on the wall.

#

And instead of pieces on the table. Its pins on a wall

#

Get dyno'd son

pure sierra
#

for nuttin

coral sundial
pure sierra
#

an overlay like this

kind glacier
#

That was the original plan, but then that got shelved for what I've got now

pure sierra
#

but you can overlay that

#

and have the grids as well

kind glacier
#

I'd need to rewrite my map drawing thing again

#

and I'd still have mismatched grids

coral sundial
#

Ree

#

You need to do some design work before continuing

kind glacier
#

I can't have it all

#

Sure, I could do that and have the grid per hex, but it would still look ugly as sin

pure sierra
#

not if its cropped to each hex

#

then put the legend along the center lines

#

but for now its not really a priority

kind glacier
#

for deadlands, anyway

kind glacier
#

I'll admit I'm getting a little burnt out now that the cool features are mostly working to some degree

kind glacier
#

have to take it slower

long raft
#

Yeah... That's the hard part of coding, staying motivated

#

And keeping the project clean...

kind glacier
#

I'm past cleanliness

#

and coding isn't what has me down

#

design is

potent panther
#

Pleb here, long time reader, first time caller. How hard would it be to make a 3x3 row x column slot machine

#

Let's say 5 symbols, do collie logi truck, collie luv, collie lt, collie bt, and a train emoji as the free spin, 5% chance to get 5 free spins.
I'm calling it "off the rails" as a tribute to Leks obsession with foxhole trains to feed his ego even more than they are doing in anvil chat

#

Instead of tokens or coins, you bet with bmats

pure sierra
#

on what platform? waybe just web ?@potent panther

potent panther
#

Yeah web

#

I'm programming tarded but I'm asking if it's a ton of work. A foxhole slot machine would be funny tho

pure sierra
#

some project there

coral sundial
#

not that hard. its a simple project in C if you ask me.

#

but then you need to know how to write C ๐Ÿ˜‚

#

anyway. you could have double array[3][3] and seed it randomly.

#

if the array lines up horizontally in the middle you win

#

ding ding ding

long raft
#

youre gonna write a web page in C huh?

#

i guess we found allan's alt julianlol

coral sundial
#

webasm or something ๐Ÿ˜›

long raft
#

major overkill lol

coral sundial
#

cant you compile C for web anyway?

long raft
#

yes sort of

#

it can be clunky and sometimes you have to modify the C to make it work

potent panther
#

I mean it would be a cool thing to make a foxhole slot machine. Gives logi something to do while they hold LMB lol

stone void
#

I think itโ€™d be simple if you used something like Bootstrap and JavaScript

royal glade
#

Should make the Tech UI have the slot machine.

#

Not too far from the truth of prototypes.

potent panther
#

so whos going to make the foxhole slot machine

frigid rock
#

why does this topic exist in the foxhole discord?

#

just general code talk or is there a foxhole API?

#

(im new to game)

lunar cobalt
#

This channel is just in general for code discussion, as there's a fair amount of programmers in the community.

frigid rock
#

was just looking at that, the endpoint links there seem to be down? ๐Ÿค”

lunar cobalt
#

They should be working, you'd have to ask Derp or some of the others exactly how to call them though.

frigid rock
#

Oh I think I got it ๐Ÿ‘

#

Are there any specific foxhole-related projects been worked on or collaborated on here?

#

looks like @kind glacier is working on something

kind glacier
#

Ye, though I've been taking a break for a bit now

frigid rock
#

What are you working towards making with that 3D map?

kind glacier
#

have you seen my most recent video?

#

that's a long message, firehole89

#

I can't type today HBjoy

fervent spear
#

We have several web updated maps, work of Hayden and sethfire.
https://foxholestats.com haydens
There was a massive project with a tool for coordinating, planning, and several other utilities, organized by kastow wich he stoped mantaining recently (foxhole gobal)
Derp has a router
http://www.logiwaze.com
Someone made a artillery calucator overlay, it's in #community-resources somewhere
and other projects, tough not necessarily on this chat

frigid rock
#

is it normal for wardens to have higher casualty rate

#

lol

pure sierra
#

@frigid rock it varies

floral spruce
#

How can I match dynamic icon data to static location names? Right now im matching off whatever X/Y is closest, that isn't perfect though as the icon and the name are at different X/Y values.

Just wondering if there is a better way then "if they are close together thats probably a match."

barren quarry
#

@floral spruce Yeah thats pretty much how everything operates

#

no other way exists

#

Well, you can also filter out minor labels at the start because if its a base its a major label

#

but with these array sizes it doesnt make much of a difference to a modern cpu

floral spruce
#

Ya thats what i do, just.. one name that a little too far left and it can mess everything up -_-

barren quarry
#

As long as you're using only major labels you should be fine

#

because the game applies exactly the same algorithm

floral spruce
#

Ya its not a computing concern its a margin of error concern. Especially if i want to add in minor icons.

#

Well, it will work i guess.

void marlin
#

I am working on a Backend wrapper to bind names and Icons to a "object Model" and add History about a war to it.

If it is live, I will post a link here. Maybe somebody wants to use it :)

frigid rock
#

backend wrapper gud

kind glacier
#

๐Ÿ‘€

pure sierra
#

doesnt matter if major or minol

#

"if they are close together thats probably a match." - yup

royal glade
#

They should just give the icons on the map additional X,Y vars that describe their label's location...

#

Would be so much easier.

#

Then the non-icon labels could have their own separate list.

#

Don't see how not doing that saves them any data/time since its the same amount of info either way...

#

I think that is actually worth raising as an issue.

#

It's been a long time since I looked at the data format for this stuff, can anyone post a snippet here?

pure sierra
#

that the api returns ?

royal glade
#

woops, its right above I see it. Yea

pure sierra
#

dont think about it all too logically, thats not how it was done

royal glade
#

Fair enough, but it is a worth while change to nest the label x,y with the icon itself.

pure sierra
#

but how do you link the icon to the label ?

#

by seeing which label has the same coords as referenced in the icon ?

#

see i think the reason it is the way it is is that in the game the icons and labels are 2 different data/object types and they arent even connected in anyway in the game itself either.....

royal glade
#

{
"teamID": None
"iconType":23,
"x": 0.3123
"y": 231123
"flags": 0
"xlabel": 0.3123
"ylabel": 0.451
"labeltext": "TownA"
}

#

And it's all linked.

#

and straight forward. Now if there was a reason to not do that, I'd be happy to learn

#

No guess work and no need to approx/match x,y in the first place.

pure sierra
#

its a ineffecient way to do it

#

ud be better off just using unique ids

royal glade
#

That'd work too

#

Just nest corresponding ID in the label data.

pure sierra
#

or just merge them both, there is no reason to not just have one big list of labels and icons,

royal glade
#

I'm guessing only reason they're separate is because the icon type / faction flag updates but names never change

#

so they're saving on that.

pure sierra
#

yeah, that is true

#

thats why its called static and dynamic endpoints

royal glade
#

Yea, I get that, but splitting them like this makes it so weird ๐Ÿ˜ฆ

#

Didn't know it made that big a difference for networking. Then again I'm no network engineer/dev

pure sierra
#

well it does make sense to minimise data transferred especially if it doesnt change

royal glade
#

could just request only the IDs that have changed and update only those ids maybe

lunar cobalt
#

You still have to check if the ID has changed

#

So the separations means they're checking less things

royal glade
#

Then the static list with the labels should just have a ID entries that correspond to the IDs on the dynamic icons.

#

That way # ids checked never changes on their end. And since the IDs are in static they won't add to update overhead

lunar cobalt
#

Then that'd be doing the same thing as checking a separate list

royal glade
#

don't follow. Isn't it an improvement in that there is no longer any ambiguity with X,Y when labels are close to each other?

coral sundial
#
{
    if (bit_is_clear(PINC, s1))
        {
            number++;

        }
    if (bit_is_clear(PINC, s2))
        {
            number++;
        }
}


void init_timer0()
{
    TCCR0A = 0; //timer value to zero, overflows at 255?
    TCCR0B |= ~(1<<CS02) | ~(1<<CS01) | (1<<CS00); //prescaler
    TIMSK0 |= (1<<TOIE0);  //enable interrupt
}

void init_interrupt()
{
    PCICR |= (1<<PCIE1);
    PCMSK1 |= (1<<PCINT9);
    PCMSK1 |= (1<<PCINT10);
}


void init (void)
{
    //knopjus
     DDRC |= ~(1<<s1);
     DDRC |= ~(1<<s2);

}```
#

this code should work right? I see no indication why it wouldnt

#

then again, interrupt entirely stops existing when I enable S2

#

sei(); is enabled

#

I dont see why the interrupt routine would not be called by simply enabling a second input on the same register

coral sundial
#

DDRC |= ~(1<<s1);
DDRC |= ~(1<<s2);

fuck me. should be AND not OR

languid harness
#

@coral sundial """""knopjus"""""

coral sundial
#

๐Ÿ˜„

neat fossil
#

<p>

pure sierra
#

<p /> julianlol

pure sierra
kind glacier
#

Yeah, that got posted days after I graduated, but I'm nowhere near qualified nor do I live anywhere near Canada

pure sierra
#

perfect, you've got the job

pure sierra
#

@zealous sonnet git update coming ?

zealous sonnet
#

ya i'll do one for this update

lunar cobalt
barren quarry
#

I'm too dumb to understand what map layers are

#

Even though there have been several explanations

lunar cobalt
#

Think of them as presets

#

They're a bunch of different layouts for the maps (where production facilities are mostly), that the devs can just click down

pure sierra
#

so no git update @zealous sonnet

zealous sonnet
#

@pure sierra It's up now

kind glacier
#

@steep surge hbeyes

pure sierra
#

thanks

steep surge
#

@kind glacier ?watchingw

kind glacier
steep surge
#

The Grid or no Grid Question?
@kind glacier

I would say both if possible.

kind glacier
#

No, just the picture with chess pieces

steep surge
#

@kind glacier

I like it.

royal glade
#

Yea kastow adding to what icanari says: think of it as photoshop layers which you can toggle on/off at any time. Except they're doing this with their structure placement for each map.

void marlin
#

Maybe not Photoshop layers.

I think of it as Presets. For a given Location X you have several arrangements. An arrangement consists of Building's and potentially Roads/Trees/Rocks/(Bridges?) That can be activated with a single klick.

Think of the map as a WoW Character. Every Town/Base/(general part of the map) is a Slot in the loadout.
Changing the Layers is like equiping something different in the equipment slots.

To have something to equip, they still have to build the Layers. But now they have a inventory, and don't have to throw away the equipment they had.

void marlin
#

Am i assuming right that the boarder bases are regarded not public buildings? cant get them from the API as it seems.

barren quarry
#

The api only shows what both teams can see

kind glacier
#

which makes using the API for any kind of strategy rather limited

barren quarry
#

Only useful thing it shows is blueprint state

void marlin
#

currently, there is no mapItem with bitmask 20, but several clamied towns. is 20 not used anymore?

pure sierra
#

@void marlin i believe i went over this recently

void marlin
#

huh?

pure sierra
#

i was just trying to find it in history

void marlin
#

ahh okay. basicly it is not needed... i will skip the implementation then. thanks

pure sierra
#

de you mean 0x20 or ? is town claimed ?

void marlin
#

yes

pure sierra
#

so i dont believe it currently has any relevance, i think it was if a town had been upgraded to victory condition, but i dont think that is a thing currently

void marlin
#

I see 4,8,41(32+8+1)

void marlin
#

I had a strange bug. when updating the dynamic API one Item was always created... instead of updated... there was one scrapField with 11 digits after the dot instead of 10...
my DB only saved 10 digits ๐Ÿ˜„

kind glacier
#

lol

#

the new war map completely fucked my labels

#

Ye, the maps previously not in use aren't mentioned in the code, so it just defaults to 0,0

pure sierra
#

what do you mean "the maps prev not in use" ? @kind glacier

stone void
#

You can probably set the object default in the definition of the class, though at best thatโ€™ll let you hide the ones not in use.

kind glacier
#

@pure sierra the 4 most south maps aren't in yet

#

added them, and now the labels are in roughly the right spots and all the icons are back

pure sierra
#

game so broken right now, cant be played for lack of balance

frozen oriole
#

Can't play foxhole if you can't run it anymore markfootapproves

kind glacier
#

Make your own Foxhole, with blackjack and hookers

lunar cobalt
#

haha

kind glacier
#

Wouldn't want to stack 10 little tanks on top of each other

summer bobcat
#

That's exactly what R.U.S.E. (2012) did julianlol

barren quarry
#

I always wanted ruse