Page 1 of 1
JS3 Sprite
Posted: Thu Dec 13, 2018 5:33 am
by Jorm
Hi Team
I had a talented nephew create a new JS3 sprite for me and now ive tried to add it using Issue8's really good " new sprite guide' . I seem to have followed every thing hes listed but i cant get the formation of JS3's to appear when i generate a new battle
any thoughts at all ?
- ive added a JS3 UNIT and assigned the su_js3_hs and su_js3_ts sprite names to it.
- ive created a formation 'JS3 tank platoon' an added the unit to it.
- i note when i check the formation 'used by", its says none, do i have to assign it to a faction ? if so i cant see how ?
btw the sprite looks pretty good and hes offered to make a few more so perhaps i'll get him to do some WWII or 1973 arab-israeli.
OK got it , i had to manually edit the factions.xml
now ,how to get the turret in the right place ?
cheers
RE: JS3 Sprite
Posted: Thu Dec 13, 2018 8:05 am
by Issue8
for example, these lines in units.xml determine turret and commander positions:
<string name="turretSpriteX" value="0.0" />
<string name="turretSpriteY" value="-9.0" />
<string name="commSpriteX" value="11.0" />
<string name="commSpriteY" value="22.0" />
<string name="commIgnoreTurret" value="FALSE" />
the 0,0 position is the center of the sprite. the turretSprite x and y are where (on the hull) the turret is positioned. the commSprite x and y are where (on the turret) the commander is positioned. if commIgnoreTurret is true, then the unbuttoned commander is on the hull instead of the turret.
you need to figure out where the center of the sprite is in pixels, and all values are in pixels. the database editor can set these values and is easier than using a text editor.
RE: JS3 Sprite
Posted: Fri Dec 14, 2018 1:47 am
by Jorm
sprite attached.
Its probably too big , is it possible to scale it ingame ?
It also seems a little opaque ?
RE: JS3 Sprite
Posted: Fri Dec 14, 2018 2:09 am
by Issue8
You need to make the turret sprite like this: where the center of the turret is the middle of the sprite. That means empty space on the bottom.
RE: JS3 Sprite
Posted: Fri Dec 14, 2018 2:11 am
by Issue8
Why can't I add attachments?
RE: JS3 Sprite
Posted: Fri Dec 14, 2018 2:13 am
by Issue8
Hold on--I will post a dropbox link
RE: JS3 Sprite
Posted: Fri Dec 14, 2018 2:17 am
by Issue8
https://www.dropbox.com/s/chcprwdnhg389 ... d.zip?dl=0
Here's the sprite. To get the size correct, the line in the xml is spriteScale=
It is a pixels per meter setting. looking at you JS3 sprite, it is around 30.
All of these setting can be done in the editor.
Hope that helps!
RE: JS3 Sprite
Posted: Fri Dec 14, 2018 2:20 am
by Issue8
The center of the turret must be the center of the sprite.
RE: JS3 Sprite
Posted: Fri Dec 14, 2018 2:21 am
by Jorm
Brilliant
I *think* i get it
Either way if i get more sprites done they can be fixed like you have done ?
cheers
RE: JS3 Sprite
Posted: Fri Dec 14, 2018 2:38 am
by Issue8
Of course!
By the way, you have a very talented nephew! You could repaint his work also!

RE: JS3 Sprite
Posted: Fri Dec 14, 2018 2:46 am
by Jorm
hey thanks,
Hes offered to do some more for me,
What next Arab - Israeli war
Su-100
AMX-13
Sherman M50 and M51 ?
or WWII
Tiger I
Panther
PZ IV-H
Stug-III
Hetzer
Pak 75
IS-2
T34/85
Su-76
Su-152
KV-85s
what ever the russian 76.2mm gun is
I'd actually personally prefer France1940 but i doubt many are interested in that
RE: JS3 Sprite
Posted: Mon Dec 17, 2018 9:43 am
by wodin
WW2!!