JS3 Sprite

Post Reply
User avatar
Jorm
Posts: 546
Joined: Tue Jun 25, 2002 5:40 am
Location: Melbourne

JS3 Sprite

Post 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
User avatar
Issue8
Posts: 123
Joined: Sun Dec 15, 2013 10:44 am

RE: JS3 Sprite

Post 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.
User avatar
Jorm
Posts: 546
Joined: Tue Jun 25, 2002 5:40 am
Location: Melbourne

RE: JS3 Sprite

Post by Jorm »

sprite attached.
Its probably too big , is it possible to scale it ingame ?
It also seems a little opaque ?
Attachments
js3.zip
(43.26 KiB) Downloaded 37 times
User avatar
Issue8
Posts: 123
Joined: Sun Dec 15, 2013 10:44 am

RE: JS3 Sprite

Post 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.
User avatar
Issue8
Posts: 123
Joined: Sun Dec 15, 2013 10:44 am

RE: JS3 Sprite

Post by Issue8 »

Why can't I add attachments?
User avatar
Issue8
Posts: 123
Joined: Sun Dec 15, 2013 10:44 am

RE: JS3 Sprite

Post by Issue8 »

Hold on--I will post a dropbox link
User avatar
Issue8
Posts: 123
Joined: Sun Dec 15, 2013 10:44 am

RE: JS3 Sprite

Post 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.
Image

Hope that helps!
User avatar
Issue8
Posts: 123
Joined: Sun Dec 15, 2013 10:44 am

RE: JS3 Sprite

Post by Issue8 »

Image

The center of the turret must be the center of the sprite.
User avatar
Jorm
Posts: 546
Joined: Tue Jun 25, 2002 5:40 am
Location: Melbourne

RE: JS3 Sprite

Post 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
User avatar
Issue8
Posts: 123
Joined: Sun Dec 15, 2013 10:44 am

RE: JS3 Sprite

Post by Issue8 »

Of course!
By the way, you have a very talented nephew! You could repaint his work also!


Image
Attachments
a45.jpg
a45.jpg (82.06 KiB) Viewed 459 times
User avatar
Jorm
Posts: 546
Joined: Tue Jun 25, 2002 5:40 am
Location: Melbourne

RE: JS3 Sprite

Post 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

User avatar
wodin
Posts: 10709
Joined: Sun Apr 20, 2003 3:13 am
Location: England
Contact:

RE: JS3 Sprite

Post by wodin »

WW2!!
Post Reply

Return to “MODS and Scenarios”