Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   Gani Construction (https://forums.graalonline.com/forums/forumdisplay.php?f=50)
-   -   How do you Combine Ganis? (https://forums.graalonline.com/forums/showthread.php?t=73679)

UnknownMasterMind 04-26-2007 07:12 PM

How do you Combine Sprites?
 
I got a question, How do you combine Sprites? And I mean make several Sprites turn into one Big Sprite.
_________________
Thanks, To whoever replies, and helps me.

Puzzled,
Desear


Screenshot to Describe what I am saying:

Clockwork 04-27-2007 01:03 AM

After the sprite are loaded... You click and drag them together to look like that o.O

UnknownMasterMind 04-27-2007 01:18 AM

Quote:

Originally Posted by Clockwork (Post 1303424)
After the sprite are loaded... You click and drag them together to look like that o.O

No... Not like that, I mean how do you make them one whole gani? So I can just add the combined sprites to the sprite list itself?

Thanks anyway, Aeko.

Sincerely,
Desear

This is what I mean:(This is a already made Gani, I just opened it to try and learn how, And no luck.)

Sulukra 04-27-2007 01:34 AM

Quote:

Originally Posted by UnknownMasterMind (Post 1303436)
No... Not like that, I mean how do you make them one whole gani? So I can just add the combined sprites to the sprite list itself?

Thanks anyway, Aeko.

Sincerely,
Desear

This is what I mean:(This is a already made Gani, I just opened it to try and learn how, And no luck.)

Those sprites were already pre-made like that. Thats all.

UnknownMasterMind 04-27-2007 02:02 AM

Quote:

Originally Posted by Sulukra (Post 1303439)
Those sprites were already pre-made like that. Thats all.

So their is no way to combine them and make them into one Sprite?

Sincerely,
Desear

DustyPorViva 04-27-2007 04:48 AM

Can you upload the gani?

UnknownMasterMind 04-27-2007 01:46 PM

Quote:

Originally Posted by DustyPorViva (Post 1303518)
Can you upload the gani?

Yes, Here is is, It's a Gani for Zone, Vulcan/Stefan didn't have time to make a custom one for zone, and just used the GK Gani.

Sincerely,
Desear

xXziroXx 04-27-2007 02:14 PM

Ever tried opening a .gani in a text editor? Add this line for example

PHP Code:

ATTACHSPRITE  100  170   -4   -

That attaches sprite 100 with sprite 170, with a -4 / -8 offset.

UnknownMasterMind 04-27-2007 02:36 PM

Quote:

Originally Posted by xXziroXx (Post 1303581)
Ever tried opening a .gani in a text editor? Add this line for example

PHP Code:

ATTACHSPRITE  100  170   -4   -

That attaches sprite 100 with sprite 170, with a -4 / -8 offset.

Thank you, I will try that, as soon as I can. And get back to you. One question, how do you calaculate the offset values calculated how?

Edit: I did, and nothing showed up, I opened it up on a word document, and pasted the line with the others.

Sincerely,
Desear

Chompy 04-27-2007 10:02 PM

Quote:

Originally Posted by UnknownMasterMind (Post 1303585)
Thank you, I will try that, as soon as I can. And get back to you. One question, how do you calaculate the offset values calculated how?

Edit: I did, and nothing showed up, I opened it up on a word document, and pasted the line with the others.

Sincerely,
Desear

did you try the gani online or reopened graal shop?

UnknownMasterMind 04-27-2007 10:30 PM

Quote:

Originally Posted by Chompy (Post 1303650)
did you try the gani online or reopened graal shop?

I opened the Gani in a word document, and then after saving it, I tried the Gani in the Gani Editor, And nothing new showed up.

Sincerely,
Desear

elite_master 04-28-2007 03:14 AM

What they do is put their sprites together, screenshot it, or already DO it in their image editor, it is already put on, transed, and put in as a gani sprite.

I know where your getting at, and yeah, you take the sprites, go into an image editor, and put them together in there, save it as a picture, and then open it and sprite it in your gani editor

UnknownMasterMind 04-28-2007 04:02 AM

Quote:

Originally Posted by elite_master (Post 1303725)
What they do is put their sprites together, screenshot it, or already DO it in their image editor, it is already put on, transed, and put in as a gani sprite.

I know where your getting at, and yeah, you take the sprites, go into an image editor, and put them together in there, save it as a picture, and then open it and sprite it in your gani editor

Ok, Thanks. :)

Sincerely,
Desear

DustyPorViva 04-28-2007 04:36 AM

It's not precombined.
If you open the gani up and drag them around, there are multiple boundry boxes enclosing each seperate sprite. So ya... they're actually combined, and not added precombined(also if they did that, the legs would seize to be loaded from the players attributes).

xXziroXx 04-28-2007 05:40 AM

Quote:

Originally Posted by UnknownMasterMind (Post 1303585)
Thank you, I will try that, as soon as I can. And get back to you. One question, how do you calaculate the offset values calculated how?

Edit: I did, and nothing showed up, I opened it up on a word document, and pasted the line with the others.

Sincerely,
Desear

Really? Can you post how your gani looks in the text document? (use [ php][ /php] tags)


Quote:

Originally Posted by elite_master (Post 1303725)
What they do is put their sprites together, screenshot it, or already DO it in their image editor, it is already put on, transed, and put in as a gani sprite.

I know where your getting at, and yeah, you take the sprites, go into an image editor, and put them together in there, save it as a picture, and then open it and sprite it in your gani editor

That's not how "we" do it, so stop giving bad advice -.-

elite_master 04-28-2007 01:14 PM

Bull ;( That's how other crappier servers have done it

xXziroXx 04-28-2007 01:19 PM

Quote:

Originally Posted by elite_master (Post 1303810)
Bull ;( That's how other crappier servers have done it

You said it yourself.

elite_master 04-28-2007 01:22 PM

I was offering a little crappy- but semi helpful if your trying to start out a server advice, geez.

UnknownMasterMind 04-28-2007 06:18 PM

Quote:

Originally Posted by elite_master (Post 1303815)
I was offering a little crappy- but semi helpful if your trying to start out a server advice, geez.

Thats not going to be good advice if itsw for a Crappy Server, I am going to try to help with some Ganis on a Gold Server, So yeah...

Ok, Is this what you want me to post?
PHP Code:

GANI0001
SPRITE    0         SPRITES    0    0   24   12 shadow
SPRITE    1 zone_weapon_carrot
.png   51  131   19   20 Sword Left
SPRITE    3            BODY   40    0   40   25 body sword 2 left
SPRITE   21 zone_weapon_carrot
.png    0   80   30   25 dagger 1
SPRITE   22 zone_weapon_carrot
.png   25  155   25   30 dagger 2
SPRITE   23 zone_weapon_carrot
.png   45   80   30   25 dagger 3
SPRITE   25 zone_weapon_carrot
.png    0   30   25   25 dagger 5
SPRITE   30 zone_weapon_carrot
.png   50    0   25   30 dagger 10
SPRITE   31 zone_weapon_carrot
.png   50   30   25   25 dagger 11
SPRITE   33 zone_weapon_carrot
.png   45  105   30   25 dagger 13
SPRITE  100            HEAD    0    0   30   30 head up
SPRITE  101            HEAD   30    0   30   30 head left
SPRITE  102            HEAD   60    0   30   30 head down
SPRITE  103            HEAD   90    0   30   30 head right
SPRITE  150           ATTR1    0    0   40   40 hairs up
SPRITE  151           ATTR1   40    0   40   40 hairs left
SPRITE  152           ATTR1   80    0   40   40 hairs down
SPRITE  153           ATTR1  120    0   40   40 hairs right
SPRITE  228            BODY    0    0   40   25 body sword 1 up
SPRITE  229            BODY   40    0   40   25 body sword 1 left
SPRITE  230            BODY   80    0   40   25 body sword 1 down
SPRITE  231            BODY  120    0   40   25 body sword 1 right
SPRITE  232            BODY    0    0   40   25 body sword 2 up
SPRITE  233            BODY   40    0   40   25 body sword 2 left
SPRITE  234            BODY   80    0   40   25 body sword 2 down
SPRITE  235            BODY  120    0   40   25 body sword 2 right
SPRITE  236            BODY    0    0   40   25 body sword 3 up
SPRITE  237            BODY   40    0   40   25 body sword 3 left
SPRITE  238            BODY   80    0   40   25 body sword 3 down
SPRITE  239            BODY  120    0   40   25 body sword 3 right
SPRITE  450            BODY    0  125   40   15 shoulder up
SPRITE  451            BODY   40  125   40   15 shoulder left
SPRITE  452            BODY   80  125   40   15 shoulder down
SPRITE  453            BODY  120  125   40   15 shoulder right
SPRITE  528           ATTR5    0  140   30   20 legs 
(07)
SPRITE  529           ATTR5   30  140   30   20 legs (17)
SPRITE  530           ATTR5   60  140   30   20 legs (27)
SPRITE  531           ATTR5   90  140   30   20 legs (37)
SPRITE  532           ATTR5    0  160   30   20 legs (08)
SPRITE  533           ATTR5   30  160   30   20 legs (18)
SPRITE  534           ATTR5   60  160   30   20 legs (28)
SPRITE  535           ATTR5   90  160   30   20 legs (38)
SPRITE  536           ATTR5    0  180   30   20 legs (09)
SPRITE  537           ATTR5   30  180   30   20 legs (19)
SPRITE  538           ATTR5   60  180   30   20 legs (29)
SPRITE  539           ATTR5   90  180   30   20 legs (39)
SPRITE  628           ATTR6    0  175   40   25 arms (07)
SPRITE  629           ATTR6   40  175   40   25 arms (17)
SPRITE  630           ATTR6   80  175   40   25 arms (27)
SPRITE  631           ATTR6  120  175   40   25 arms (37)
SPRITE  632           ATTR6    0  200   40   25 arms (08)
SPRITE  633           ATTR6   40  200   40   25 arms (18)
SPRITE  634           ATTR6   80  200   40   25 arms (28)
SPRITE  635           ATTR6  120  200   40   25 arms (38)
SPRITE  636           ATTR6    0  225   40   25 arms (09)
SPRITE  637           ATTR6   40  225   40   25 arms (19)
SPRITE  638           ATTR6   80  225   40   25 arms (29)
SPRITE  639           ATTR6  120  225   40   25 arms (39)
ATTACHSPRITE  100  150   -4   -8
ATTACHSPRITE  101  151   
-6   -8
ATTACHSPRITE  102  152   
-5   -8
ATTACHSPRITE  103  153   
-4   -8
ATTACHSPRITE  228  528    6   14
ATTACHSPRITE  228  628   
-1    1
ATTACHSPRITE  228  450    0    0
ATTACHSPRITE  229  529    5   16
ATTACHSPRITE  229  629   
-5    2
ATTACHSPRITE  229  451    0    0
ATTACHSPRITE  230  530    5   14
ATTACHSPRITE  230  630    1   
-6
ATTACHSPRITE  230  452    0    0
ATTACHSPRITE  231  531    5   15
ATTACHSPRITE  231  631    2    0
ATTACHSPRITE  231  453    0    0
ATTACHSPRITE  232  532    6   15
ATTACHSPRITE  232  632   
-2   -2
ATTACHSPRITE  232  450    0    0
ATTACHSPRITE  233  533    3   15
ATTACHSPRITE  233  633   
-3    0
ATTACHSPRITE  233  451    0    0
ATTACHSPRITE  234  534    5   15
ATTACHSPRITE  234  634    5    1
ATTACHSPRITE  234  452    0    0
ATTACHSPRITE  235  535    6   15
ATTACHSPRITE  235  635    2    4
ATTACHSPRITE  235  453    0    0
ATTACHSPRITE  236  536    6   15
ATTACHSPRITE  236  636    0    1
ATTACHSPRITE  236  450    0    0
ATTACHSPRITE  237  537    4   16
ATTACHSPRITE  237  637    0    0
ATTACHSPRITE  237  451    0    0
ATTACHSPRITE  238  538    5   15
ATTACHSPRITE  238  638   
-1    1
ATTACHSPRITE  238  452    0    0
ATTACHSPRITE  239  539    7   14
ATTACHSPRITE  239  639    2   
-1
ATTACHSPRITE  239  453    0    0

CONTINUOUS
SETBACKTO zone2_idle_carrot
DEFAULTATTR1 khairs0
.png
DEFAULTATTR5 klegs0
.png
DEFAULTATTR6 kmarms100
.png
DEFAULTHEAD khead0
.png
DEFAULTBODY kmbody100
.png

ANI
   0  12  34
,  236   4  11,  100   9  -6,   33  38  14
   0  12  34
,  237   4  10,  101   8  -8,   25 -12  -6
   0  12  34
,  238   4  11,  102   9  -6,   21 -21   7
   0  12  34
,  239   2  10,  103   7  -8,   25   0  11,  639   4  10
WAIT 1

  30  29 
-16,    0  12  34,  232   4  10,  100   9  -7
   0  12  34
,  233   5  10,  101  10  -8,   21 -20   7
   0  12  34
,  234   4  11,  102   9  -5,   22   0  27
   0  12  34
,  235   2  10,  103   6  -8,   22  27  17,  635   4  14
PLAYSOUND weapon_dagger
.wav -1.25 -0.375
WAIT 1

   0  12  34
,  228   4  11,  100   9  -6,   21 -20   5
   0  12  34
,  229   5  10,  101   9  -8,   22   1  23
   0  12  34
,  230   4  11,  102   9  -7,   33  20  17
   0  12  34
,  103   6  -8,  231   2  10,    1  29   8,  631   4  10
WAIT 4
ANIEND 

Actually, The reason it probably didn't show up is because it was already in it by default, Sorry. Can you make up one for this Gani that I can test?

Sincerely,
Desear

xXziroXx 04-28-2007 06:23 PM

Ok, let me show you an example.

parts of human2_idle.gani
PHP Code:

SPRITE  100            HEAD    0    0   30   30 head up
SPRITE  150           ATTR1    0    0   40   40 hairs up
SPRITE  170          ATTR13    0    0   40   40 mask up
ATTACHSPRITE  100  170   
-4   -8
ATTACHSPRITE  100  150   
-4   -

Sprite #100 is the head, right? The two ATTACHSPRITE will attach sprite #170 and #150 to the head image, with an offset of -4x and -8y.

Makes any sense now?

DustyPorViva 04-28-2007 06:36 PM

I wonder why it's never been documented.

UnknownMasterMind 04-28-2007 06:37 PM

Quote:

Originally Posted by xXziroXx (Post 1303898)
Ok, let me show you an example.

parts of human2_idle.gani
PHP Code:

SPRITE  100            HEAD    0    0   30   30 head up
SPRITE  150           ATTR1    0    0   40   40 hairs up
SPRITE  170          ATTR13    0    0   40   40 mask up
ATTACHSPRITE  100  170   
-4   -8
ATTACHSPRITE  100  150   
-4   -

Sprite #100 is the head, right? The two ATTACHSPRITE will attach sprite #170 and #150 to the head image, with an offset of -4x and -8y.

Makes any sense now?

Yes, This helps alot. Thank you, I am sorry for taking a while to figure it out, I am dense when it comes to some things. Thank you agian, So much.

Gratefully,
Desear

xXziroXx 04-28-2007 06:50 PM

Quote:

Originally Posted by UnknownMasterMind (Post 1303905)
Yes, This helps alot. Thank you, I am sorry for taking a while to figure it out, I am dense when it comes to some things. Thank you agian, So much.

Gratefully,
Desear

You're welcome!

*hopes that someone will remember that there is a reputation function on the forum and actually give me some good rep for once!*

zokemon 04-30-2007 02:37 PM

Quote:

Originally Posted by xXziroXx (Post 1303909)
You're welcome!

*hopes that someone will remember that there is a reputation function on the forum and actually give me some good rep for once!*

*some good rep for once!*

:) Good job Ziro!


All times are GMT +2. The time now is 06:29 PM.

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.