JS3 Sprite (Full Version)

All Forums >> [New Releases from Matrix Games] >> Armored Brigade >> MODS and Scenarios



Message


Jorm -> JS3 Sprite (12/13/2018 7:33:45 AM)

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




Issue8 -> RE: JS3 Sprite (12/13/2018 10:05:36 AM)

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.




Jorm -> RE: JS3 Sprite (12/14/2018 3:47:06 AM)

sprite attached.
Its probably too big , is it possible to scale it ingame ?
It also seems a little opaque ?




Issue8 -> RE: JS3 Sprite (12/14/2018 4:09:06 AM)

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.




Issue8 -> RE: JS3 Sprite (12/14/2018 4:11:26 AM)

Why can't I add attachments?




Issue8 -> RE: JS3 Sprite (12/14/2018 4:13:20 AM)

Hold on--I will post a dropbox link




Issue8 -> RE: JS3 Sprite (12/14/2018 4:17:37 AM)

https://www.dropbox.com/s/chcprwdnhg389yu/JS3_adjusted.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.
[img]https://i.imgur.com/W55Tqvb.jpg[/img]

Hope that helps!




Issue8 -> RE: JS3 Sprite (12/14/2018 4:20:39 AM)

[img]https://i.imgur.com/Iymijq0.jpg[/img]

The center of the turret must be the center of the sprite.




Jorm -> RE: JS3 Sprite (12/14/2018 4:21:02 AM)

Brilliant
I *think* i get it
Either way if i get more sprites done they can be fixed like you have done ?

cheers




Issue8 -> RE: JS3 Sprite (12/14/2018 4:38:48 AM)

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


[image]local://upfiles/47125/7189BBFF9A6A41B087886A17C3797273.jpg[/image]




Jorm -> RE: JS3 Sprite (12/14/2018 4:46:08 AM)

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





wodin -> RE: JS3 Sprite (12/17/2018 11:43:34 AM)

WW2!!




Page: [1]

Valid CSS!




Forum Software © ASPPlayground.NET Advanced Edition 2.4.5 ANSI
0.0234375