Palisades doesn't line up correctly PEND

Put here any ideas, suggestions about redesigning unit/building graphics.
Post Reply
User avatar
Badnorth
Posts: 4121
Joined: Mon Apr 20, 2020 2:22 pm

Palisades doesn't line up correctly PEND

Post by Badnorth »

Palisades doesn't line up correctly. They look wierd when bending.
For newcomers, click here for discord links. Hopefully they aren't expired.
Stratego (dev)
Site Admin
Posts: 15741
Joined: Fri Apr 25, 2014 9:28 pm

Re: Palisades doesn't line up correctly

Post by Stratego (dev) »

please help us with images
User avatar
Badnorth
Posts: 4121
Joined: Mon Apr 20, 2020 2:22 pm

Re: Palisades doesn't line up correctly

Post by Badnorth »

Idk how to do it because of connecting and stuff. I've never really done those.
For newcomers, click here for discord links. Hopefully they aren't expired.
User avatar
Endru1241
Posts: 2717
Joined: Fri Sep 11, 2015 8:43 am
Location: Poland

Re: Palisades doesn't line up correctly

Post 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.
Attachments
unit_palisade.png
unit_palisade.png (1.69 KiB) Viewed 1393 times
unit_palisade_set.png
unit_palisade_set.png (8.17 KiB) Viewed 1393 times
Age of Strategy design leader
Stratego (dev)
Site Admin
Posts: 15741
Joined: Fri Apr 25, 2014 9:28 pm

Re: Palisades doesn't line up correctly

Post 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.
User avatar
Badnorth
Posts: 4121
Joined: Mon Apr 20, 2020 2:22 pm

Re: Palisades doesn't line up correctly

Post 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.
For newcomers, click here for discord links. Hopefully they aren't expired.
User avatar
Badnorth
Posts: 4121
Joined: Mon Apr 20, 2020 2:22 pm

Re: Palisades doesn't line up correctly

Post 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.
For newcomers, click here for discord links. Hopefully they aren't expired.
User avatar
Badnorth
Posts: 4121
Joined: Mon Apr 20, 2020 2:22 pm

Re: Palisades doesn't line up correctly

Post by Badnorth »

Take a look at the walls.
Image
Same positions as the palisades img below.
For newcomers, click here for discord links. Hopefully they aren't expired.
User avatar
Endru1241
Posts: 2717
Joined: Fri Sep 11, 2015 8:43 am
Location: Poland

Re: Palisades doesn't line up correctly

Post 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.
Age of Strategy design leader
User avatar
DreJaDe
Posts: 2383
Joined: Sun May 12, 2019 10:19 pm

Re: Palisades doesn't line up correctly

Post 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?
Post Reply

Return to “Graphics”