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