Page 1 of 1

Palisades doesn't line up correctly PEND

Posted: Wed Sep 09, 2020 11:37 am
by Badnorth
Palisades doesn't line up correctly. They look wierd when bending.

Re: Palisades doesn't line up correctly

Posted: Wed Sep 09, 2020 11:46 am
by Stratego (dev)
please help us with images

Re: Palisades doesn't line up correctly

Posted: Wed Sep 09, 2020 12:37 pm
by Badnorth
Idk how to do it because of connecting and stuff. I've never really done those.

Re: Palisades doesn't line up correctly

Posted: Wed Sep 09, 2020 1:45 pm
by Endru1241
"similarAtJoin":["UNIT_PALISADE_GATE"],
"visuals":[
{
"imgName":"units/unit_palisade.png",
"type":"DEFAULT",
"shiftIndicatorsDown":20,
"typeExtra":0,
"imgColumns":1,
"imageDefShort":"OVERLAP_1x2"
},
{
"imgName":"units/unit_palisade_set.png",
"type":"JOINX",
"types":[
{
"type":"JOINX",
"typeExtraString":"UL,DR"
},
{
"type":"JOINX",
"typeExtraString":"UL"
},
{
"type":"JOINX",
"typeExtraString":"UL,DN"
},
{
"type":"JOINX",
"typeExtraString":"UL,DN,DL"
},
{
"type":"JOINX",
"typeExtraString":"DN,UL,DR,DL"
},
{
"type":"JOINX",
"typeExtraString":"DN,UL,DR"
},
{
"type":"JOINX",
"typeExtraString":"DR"
},
{
"type":"JOINX",
"typeExtraString":"RT,UL"
},
{
"type":"JOINX",
"typeExtraString":"UR,UL,DR,RT"
},
{
"type":"JOINX",
"typeExtraString":"UR,UL,RT"
},
{
"type":"JOINX",
"typeExtraString":"UL,RT,DN"
},
{
"type":"JOINX",
"typeExtraString":"UR,UL,RT,DN"
},
{
"type":"JOINX",
"typeExtraString":"UL,DR,RT,DN"
},
{
"type":"JOINX",
"typeExtraString":"UL,DL,RT,DN"
},
{
"type":"JOINX",
"typeExtraString":"UR,UL,DL,RT,DN"
},
{
"type":"JOINX",
"typeExtraString":"UR,UL,DR,RT,DN"
},
{
"type":"JOINX",
"typeExtraString":"UL,DR,DL,RT,DN"
},
{
"type":"JOINX",
"typeExtraString":"UR,UL,DR,DL,RT,DN"
}
],
"shiftIndicatorsDown":20,
"typeExtra":0,
"imgColumns":1,
"autoSpriteShift":32,
"imageDefShort":"OVERLAP_1x2"
},
{
"imgName":"units/unit_palisade_set.png",
"type":"JOINX",
"types":[
{
"type":"JOINX",
"typeExtraString":"UR,DL"
},
{
"type":"JOINX",
"typeExtraString":"UR"
},
{
"type":"JOINX",
"typeExtraString":"UR,DN"
},
{
"type":"JOINX",
"typeExtraString":"UR,DN,DR"
},
{
"type":"JOINX",
"typeExtraString":"DN,UR,DR,DL"
},
{
"type":"JOINX",
"typeExtraString":"DN,UR,DL"
},
{
"type":"JOINX",
"typeExtraString":"DL"
},
{
"type":"JOINX",
"typeExtraString":"LT,UR"
},
{
"type":"JOINX",
"typeExtraString":"UR,UL,DL,LT"
},
{
"type":"JOINX",
"typeExtraString":"UR,UL,LT"
},
{
"type":"JOINX",
"typeExtraString":"LT,UR,DL"
}
],
"shiftIndicatorsDown":20,
"typeExtra":0.1,
"imgColumns":1
},
{
"imgName":"units/unit_palisade_set.png",
"type":"JOINX",
"types":[
{
"type":"JOINX",
"typeExtraString":"UR,UL"
},
{
"type":"JOINX",
"typeExtraString":"UR,UL,DN"
},
{
"type":"JOINX",
"typeExtraString":"UR,UL,DR,DL,DN"
},
{
"type":"JOINX",
"typeExtraString":"UR,UL,DL,DN"
},
{
"type":"JOINX",
"typeExtraString":"UR,UL,DR,DN"
},
{
"type":"JOINX",
"typeExtraString":"UR,DR"
},
{
"type":"JOINX",
"typeExtraString":"DR,DL"
},
{
"type":"JOINX",
"typeExtraString":"UL,DL"
},
{
"type":"JOINX",
"typeExtraString":"UL,UR,DL"
},
{
"type":"JOINX",
"typeExtraString":"UR,DR,DL"
},
{
"type":"JOINX",
"typeExtraString":"UL,UR,DR"
},
{
"type":"JOINX",
"typeExtraString":"UL,DR,DL"
},
{
"type":"JOINX",
"typeExtraString":"UR,UL,DL,DR"
},
{
"type":"JOINX",
"typeExtraString":"LT,UR,DR"
},
{
"type":"JOINX",
"typeExtraString":"LT,UR,DR,UL,DL"
},
{
"type":"JOINX",
"typeExtraString":"UR,UL,DR,LT"
},
{
"type":"JOINX",
"typeExtraString":"UR,DN,LT"
},
{
"type":"JOINX",
"typeExtraString":"UR,UL,DN,LT"
},
{
"type":"JOINX",
"typeExtraString":"UR,DR,DN,LT"
},
{
"type":"JOINX",
"typeExtraString":"UR,DL,DN,LT"
},
{
"type":"JOINX",
"typeExtraString":"UR,UL,DL,DN,LT"
},
{
"type":"JOINX",
"typeExtraString":"UR,UL,DR,DN,LT"
},
{
"type":"JOINX",
"typeExtraString":"UR,DR,DL,DN,LT"
},
{
"type":"JOINX",
"typeExtraString":"UR,UL,DR,DL,DN,LT"
},
{
"type":"JOINX",
"typeExtraString":"RT,UL,DL"
},
{
"type":"JOINX",
"typeExtraString":"RT,UR,DR,UL,DL"
},
{
"type":"JOINX",
"typeExtraString":"UR,UL,DL,RT"
},
{
"type":"JOINX",
"typeExtraString":"RT,UL,DR,DL"
}
],
"shiftIndicatorsDown":20,
"typeExtra":0.1,
"imgColumns":1
},
{
"imgName":"units/unit_palisade_set.png",
"type":"JOIN",
"types":[
{
"type":"JOIN",
"typeExtraString":"UP"
},
{
"type":"JOIN",
"typeExtraString":"UP,DN"
}
],
"shiftIndicatorsDown":20,
"typeExtra":0.1,
"imgColumns":1
},
{
"imgName":"units/unit_palisade_set.png",
"type":"JOINX",
"types":[
{
"type":"JOIN",
"typeExtraString":"UP,LT,RT"
},
{
"type":"JOIN",
"typeExtraString":"UP,RT,LT,DN"
},
{
"type":"JOIN",
"typeExtraString":"UP,LT"
},
{
"type":"JOIN",
"typeExtraString":"UP,LT,DN"
},
{
"type":"JOIN",
"typeExtraString":"UP,RT"
},
{
"type":"JOIN",
"typeExtraString":"UP,RT,DN"
},
{
"type":"JOIN",
"typeExtraString":"RT,DN"
},
{
"type":"JOIN",
"typeExtraString":"DN"
},
{
"type":"JOIN",
"typeExtraString":"RT,LT,DN"
},
{
"type":"JOINX",
"typeExtraString":"DR,LT,UP"
},
{
"type":"JOINX",
"typeExtraString":"DR,DL,LT,UP"
},
{
"type":"JOINX",
"typeExtraString":"UR,DR,LT,UP"
},
{
"type":"JOINX",
"typeExtraString":"UL,DR,LT,UP"
},
{
"type":"JOINX",
"typeExtraString":"UR,UL,DR,LT,UP"
},
{
"type":"JOINX",
"typeExtraString":"UL,DR,DL,LT,UP"
},
{
"type":"JOINX",
"typeExtraString":"UR,DR,DL,LT,UP"
},
{
"type":"JOINX",
"typeExtraString":"UR,UL,DR,DL,LT,UP"
},
{
"type":"JOINX",
"typeExtraString":"RT,UP,DL"
},
{
"type":"JOINX",
"typeExtraString":"RT,UP,DR,DL"
},
{
"type":"JOINX",
"typeExtraString":"RT,UP,UL,DL"
},
{
"type":"JOINX",
"typeExtraString":"RT,UP,UR,DL"
},
{
"type":"JOINX",
"typeExtraString":"RT,UP,UL,DL,UR"
},
{
"type":"JOINX",
"typeExtraString":"RT,UP,UR,DR,DL"
},
{
"type":"JOINX",
"typeExtraString":"RT,UP,UL,DR,DL"
},
{
"type":"JOINX",
"typeExtraString":"RT,UP,UR,UL,DR,DL"
},
{
"type":"JOINX",
"typeExtraString":"UP,DL"
},
{
"type":"JOINX",
"typeExtraString":"UR,UL,DL,UP"
},
{
"type":"JOINX",
"typeExtraString":"UL,DL,UP"
},
{
"type":"JOINX",
"typeExtraString":"UP,UR,DL"
},
{
"type":"JOINX",
"typeExtraString":"UP,DR"
},
{
"type":"JOINX",
"typeExtraString":"UR,UL,DR,UP"
},
{
"type":"JOINX",
"typeExtraString":"UR,DR,UP"
},
{
"type":"JOINX",
"typeExtraString":"UP,UL,DR"
},
{
"type":"JOINX",
"typeExtraString":"UP,DR,DL"
},
{
"type":"JOINX",
"typeExtraString":"UR,UL,DR,DL,UP"
},
{
"type":"JOINX",
"typeExtraString":"UP,UL,DR,DL"
},
{
"type":"JOINX",
"typeExtraString":"UP,UR,DR,DL"
}
],
"shiftIndicatorsDown":20,
"typeExtra":0.1,
"imgColumns":1
},
{
"imgName":"units/unit_palisade_set.png",
"type":"JOINX",
"types":[
{
"type":"JOIN",
"typeExtraString":"LT,RT"
},
{
"type":"JOIN",
"typeExtraString":"RT"
},
{
"type":"JOIN",
"typeExtraString":"LT"
},
{
"type":"JOIN",
"typeExtraString":"LT,DN"
},
{
"type":"JOINX",
"typeExtraString":"RT,DL"
},
{
"type":"JOINX",
"typeExtraString":"DR,DL,RT"
},
{
"type":"JOINX",
"typeExtraString":"RT,UR,DR,DL"
},
{
"type":"JOINX",
"typeExtraString":"RT,UL,DR"
},
{
"type":"JOINX",
"typeExtraString":"RT,UR,DL"
},
{
"type":"JOINX",
"typeExtraString":"LT,DR"
},
{
"type":"JOINX",
"typeExtraString":"DR,DL,LT"
},
{
"type":"JOINX",
"typeExtraString":"LT,UL,DR"
},
{
"type":"JOINX",
"typeExtraString":"LT,UL,DR,DL"
}
],
"shiftIndicatorsDown":20,
"typeExtra":0.1,
"imgColumns":1
}
]
Look at this.
The visual definition has 7 parts. First calls different file and it's basic unit_palisade.png image.
The rest 6 are each for one part of unit_palisade_set.png (as autoSpriteShift is set as 32 - there are 32px wide parts).
Each part defines it's own JOINX, listing possible combinations of adjacent/diagonal pallisades, when this part is used (when none of the part joinx fits - basic image is shown).
It has to be noted that before visual definition there is similarAtJoin, so those combinations also include when palisade gate is adjacent/diagonal .
In typeExtraString there are codes for adjacent: UP, DN, LT, RT - up, down, left, right
and diagonal: UL, UR, DL, DR - up left, up right, down left , down right
JOINX combinations is basically like listing which close tiles contains the same unit (or any listed in similarAtJoin).
Examples:
LT,UL,DR - it means that this exact image will be shown when there are palisades/gates on left, upper left and down left:
x . .
x x .
. . x
RT,UR,DL:
. . x
. x x
x . .
UR,UL,DR,DL,UP:
x x x
. x .
x . x

As there is 8 positions - each containing possible 0 or 1 - there are 256 theoritical combinations, but on some we don't really care what is on one or two fields, so real number of combinations is 47. Walls use 35 or 36 different images.

Re: Palisades doesn't line up correctly

Posted: Wed Sep 09, 2020 2:33 pm
by Stratego (dev)
QuadrupoleStrat wrote: Wed Sep 09, 2020 12:37 pm Idk how to do it because of connecting and stuff. I've never really done those.
you misunderstand- i mean screenshots of not good conneting tiles.

Re: Palisades doesn't line up correctly

Posted: Wed Sep 09, 2020 9:53 pm
by Badnorth
Stratego (dev) wrote: Wed Sep 09, 2020 2:33 pm
QuadrupoleStrat wrote: Wed Sep 09, 2020 12:37 pm Idk how to do it because of connecting and stuff. I've never really done those.
you misunderstand- i mean screenshots of not good conneting tiles.
Ok.

Re: Palisades doesn't line up correctly

Posted: Wed Sep 09, 2020 10:39 pm
by Badnorth
Image
The palisade img isn't properly aligned leaving spaces or things.
They aren't the same as the walls which is properly aligned.

Re: Palisades doesn't line up correctly

Posted: Wed Sep 09, 2020 11:38 pm
by Badnorth
Take a look at the walls.
Image
Same positions as the palisades img below.

Re: Palisades doesn't line up correctly

Posted: Thu Sep 10, 2020 9:31 pm
by Endru1241
And why it's happening is explained in my post.
In short - we just lack images of palisade different allignments.
If I had the same set of images as for wall - implementation would be super easy.

Re: Palisades doesn't line up correctly

Posted: Thu Sep 10, 2020 10:29 pm
by DreJaDe
Endru1241 wrote: Thu Sep 10, 2020 9:31 pm And why it's happening is explained in my post.
In short - we just lack images of palisade different allignments.
If I had the same set of images as for wall - implementation would be super easy.
Wouldnt palisade work if it has a set like the walls in AOW?