Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   Gani Construction (https://forums.graalonline.com/forums/forumdisplay.php?f=50)
-   -   Gani FAQ. (https://forums.graalonline.com/forums/showthread.php?t=44950)

Dude6252000 05-18-2003 12:51 AM

Gani FAQ.
 
This will answer everyone that doesn't know what a gani is. With nearly any question they have. Just throw this link in their face.

Q: What's a gani?
A: A text file that is edited by notepad or Graalshop, used to make animations in Graal. More simply, an animation. G-ANI. Graal animation.

Q: How can I put sprites in the gani?
A: Click the add sprite definition button in Graalshop. In the file field, it will give you a scroll list of things to pick from, including PARAMs, ATTRs, HEAD, BODY, etc. If you want to insert a graphic directly and make it a sprite, type the file's name in the field. (NOTE: The graphic has to be in the same location as the gani file, or it will not show up. That, or you have to have the gani saved in your gani folder, and the graphic in webgifs.) Put a name for the sprite in the box under it. (I think it's Sprite Description.) On the last box on the left, put a sprite number that is UNUSED by any other sprite, or it will replace the sprite with that number.
Now, the hard part. Try to find an approximate width and height for the picture, by typing it in on the corresponding fields for them. That's basically how big the sprite will be (Or the piece of the image you want as a sprite, and not the full graphic.). Use the X and Y to determine the starting point of where the width and height box is drawn. For example, if you have a sprite with the width and height of both 32, and there's another sprite under that with the same dimensions, you put 32 in the X to make the spot it clips out from the graphic down 32 pixels. It may take you a while to find the exact X, Y, width and height, so be patient. When you're done typing in approx. values, hit the OK button, or whatever isn't cancel on that window. Look for your sprite in the list. If it's good, leave it. If you want to redo the values, right click it and hit Edit. (TIP: Edit can be used to copy and make new sprites, by changing the sprite number. It leaves the sprite you opened alone, unless you update that sprite number.) Retype the 4 values, and repeat the same process until it's perfect. And if you want the sprite gone forever, right click it and hit delete.

Q: What's a param or an attr?
A: Parameters and attributes are used to be a changable graphic, which are changed from NPC scripts. Add a sprite using an unused PARAM or ATTR. Now, fill in a default graphic for that PARAM or ATTR you used. You'll see what I'm talking about. It can change through NPC script, and the default in Graalshop is just used to display one thing. For example, open human_idle or idle. Hopefully, it'll have a hat. In ATTR1 (I think thats what hat uses. PARAM or ATTR. Someone correct me.), change the hat number from like, hat0.png to hat90.png. It'll show an example of changing the graphic, except in Graalshop. I'm not exactly completely sure on the command in scripting for changing them, I forget. Someone add on to me? ^_^;

I'll add more to this FAQ later, to make it more accurate, add pictures, etc. If anyone has a gani-related question, ask.

SingleChance 05-18-2003 05:57 AM

hmm nice FAQ...
where can i get graalshop? ...i'm thinking of trying to do some gani's

Kaimetsu 05-18-2003 06:00 AM

setplayerprop changes gani attributes.

Milkdude99 05-18-2003 03:09 PM

Quote:

Originally posted by SingleChance
hmm nice FAQ...
where can i get graalshop? ...i'm thinking of trying to do some gani's

Here with a few other Graal tools.


http://www.graal-npulse.com/pafiledb...action=viewall

Dude6252000 05-18-2003 09:00 PM

Kai, tell people how to use setplayerprop. I haven't scripted for a while, I know how that command works, but I forget the variable it uses for params and attrs. :o

Q: Where is Graalshop?
A: On fansites, posted on this forum, or in the Graal installer. If you want it from the Graal installer, go in it, and when it asks you what you want to install, make it install all of the developer kits.

Milkdude99 05-18-2003 09:33 PM

Quote:

Originally posted by Dude6252000
Kai, tell people how to use setplayerprop. I haven't scripted for a while, I know how that command works, but I forget the variable it uses for params and attrs. :o

Q: Where is Graalshop?
A: On fansites, posted on this forum, or in the Graal installer. If you want it from the Graal installer, go in it, and when it asks you what you want to install, make it install all of the developer kits.

I heard that is not working on the Graal installer and why I put it on this download page.

--Chris-- 05-18-2003 09:49 PM

Karsh, maybe sometimes we could make a walk-through with pictures to show how everything works. Would have to be when I'm unoccupied (busy with O levels now) x.x

Dude6252000 05-18-2003 11:48 PM

Quote:

Originally posted by --Chris--
Karsh, maybe sometimes we could make a walk-through with pictures to show how everything works. Would have to be when I'm unoccupied (busy with O levels now) x.x
Quote:

Originally posted by Dude6252000
I'll add more to this FAQ later, to make it more accurate, add pictures, etc.
Heh. I would, but lately my computer has been screwing up. It's hard to open a lot of programs. I'm trying to get it fixed.

Dude6252000 08-09-2003 09:10 PM

I'm going to keep this thread up until my Graalshop is fixed, so people stop bugging me with questions on how to use Graalshop. ;-; Ask a question and I'll answer it.

Myomoto 08-09-2003 09:53 PM

About your computer messing up with a lot of program open, try this, i have no idea how or if this will work :O

http://www.tweakxp.com/display.aspx?id=545

Dude6252000 08-09-2003 10:06 PM

Quote:

Originally posted by Myomoto
About your computer messing up with a lot of program open, try this, i have no idea how or if this will work :O

http://www.tweakxp.com/display.aspx?id=545

If you're directing that at me, that's for XP. I used 98. ;-;

Myomoto 08-09-2003 10:38 PM

oh, i though you used XP ._. Maybe that's the problem with your graal shop?

Dude6252000 08-10-2003 12:18 AM

Quote:

Originally posted by Myomoto
oh, i though you used XP ._. Maybe that's the problem with your graal shop?
My OS wouldn't make the program screw up. It never used to. This newest version does.

Myomoto 08-10-2003 12:24 AM

bleh, can't you just use the old one? ._. Or isn't good enough?

Dude6252000 08-10-2003 01:35 AM

Quote:

Originally posted by Myomoto
bleh, can't you just use the old one? ._. Or isn't good enough?
I need the newest one, otherwise I can't make the new bodies for 2k1.

CheeToS2 08-10-2003 03:34 AM

attributes: setplayerprop #P(attr#),value;
parameters: setani ganiname,param1,param2,...;


All times are GMT +2. The time now is 01:42 AM.

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