Matrix Games Forums

Forums  Register  Login  Photo Gallery  Member List  Search  Calendars  FAQ 

My Profile  Inbox  Address Book  My Subscription  My Forums  Log Out

JS3 Sprite

 
View related threads: (in this forum | in all forums)

Logged in as: Guest
Users viewing this topic: none
  Printable Version
All Forums >> [New Releases from Matrix Games] >> Armored Brigade >> MODS and Scenarios >> JS3 Sprite Page: [1]
Login
Message << Older Topic   Newer Topic >>
JS3 Sprite - 12/13/2018 7:33:45 AM   
Jorm


Posts: 545
Joined: 6/25/2002
From: Melbourne
Status: offline
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


< Message edited by Jorm -- 12/13/2018 8:39:36 AM >
Post #: 1
RE: JS3 Sprite - 12/13/2018 10:05:36 AM   
Issue8


Posts: 129
Joined: 12/15/2013
Status: offline
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.

(in reply to Jorm)
Post #: 2
RE: JS3 Sprite - 12/14/2018 3:47:06 AM   
Jorm


Posts: 545
Joined: 6/25/2002
From: Melbourne
Status: offline
sprite attached.
Its probably too big , is it possible to scale it ingame ?
It also seems a little opaque ?


Attachment (1)

< Message edited by Jorm -- 12/14/2018 3:53:12 AM >

(in reply to Jorm)
Post #: 3
RE: JS3 Sprite - 12/14/2018 4:09:06 AM   
Issue8


Posts: 129
Joined: 12/15/2013
Status: offline
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.

(in reply to Jorm)
Post #: 4
RE: JS3 Sprite - 12/14/2018 4:11:26 AM   
Issue8


Posts: 129
Joined: 12/15/2013
Status: offline
Why can't I add attachments?

(in reply to Issue8)
Post #: 5
RE: JS3 Sprite - 12/14/2018 4:13:20 AM   
Issue8


Posts: 129
Joined: 12/15/2013
Status: offline
Hold on--I will post a dropbox link

(in reply to Issue8)
Post #: 6
RE: JS3 Sprite - 12/14/2018 4:17:37 AM   
Issue8


Posts: 129
Joined: 12/15/2013
Status: offline
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.


Hope that helps!

(in reply to Issue8)
Post #: 7
RE: JS3 Sprite - 12/14/2018 4:20:39 AM   
Issue8


Posts: 129
Joined: 12/15/2013
Status: offline


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

(in reply to Issue8)
Post #: 8
RE: JS3 Sprite - 12/14/2018 4:21:02 AM   
Jorm


Posts: 545
Joined: 6/25/2002
From: Melbourne
Status: offline
Brilliant
I *think* i get it
Either way if i get more sprites done they can be fixed like you have done ?

cheers

(in reply to Issue8)
Post #: 9
RE: JS3 Sprite - 12/14/2018 4:38:48 AM   
Issue8


Posts: 129
Joined: 12/15/2013
Status: offline
Of course!
By the way, you have a very talented nephew! You could repaint his work also!





Attachment (1)

(in reply to Jorm)
Post #: 10
RE: JS3 Sprite - 12/14/2018 4:46:08 AM   
Jorm


Posts: 545
Joined: 6/25/2002
From: Melbourne
Status: offline
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



< Message edited by Jorm -- 12/14/2018 4:53:00 AM >

(in reply to Issue8)
Post #: 11
RE: JS3 Sprite - 12/17/2018 11:43:34 AM   
wodin


Posts: 10762
Joined: 4/20/2003
From: England
Status: offline
WW2!!

_____________________________


(in reply to Jorm)
Post #: 12
Page:   [1]
All Forums >> [New Releases from Matrix Games] >> Armored Brigade >> MODS and Scenarios >> JS3 Sprite Page: [1]
Jump to:





New Messages No New Messages
Hot Topic w/ New Messages Hot Topic w/o New Messages
Locked w/ New Messages Locked w/o New Messages
 Post New Thread
 Reply to Message
 Post New Poll
 Submit Vote
 Delete My Own Post
 Delete My Own Thread
 Rate Posts


Forum Software © ASPPlayground.NET Advanced Edition 2.4.5 ANSI

0.719