Windows Plug-in error

I was making a simple ship plugin. When I attempted to run it, it said:
Resource ID: Error loading sp*n resource from PICT
Code: 128
PICT too small

Nova will now quit. The failure occured file: Spirte.c, line 838.

The PICT is a 155 by 155 sprite grid. Can someone help me with this>

------------------

Quote

Originally posted by ChauSara:
**
PICT too small

The PICT is a 155 by 155 sprite grid. Can someone help me with this>

**

Thats why. 155/6=25.83333333333333333333

------------------
{ (url="http://"http://thecheatslair.cjb.net")The Cheats Lair(/url) }{ (url="http://"http://homepage.mac.com/travisjames/")TCL network(/url) }{ (url="http://"http://homepage.mac.com/travisjames/GraphicsPortfolio/index.html")Graphics Portfolio(/url)
( (url="http://"http://www.eternallightstudios.com")Eternal Light Studios(/url) )( (url="http://"http://eternallightstudios.com/ELSForums/index.php?http://www.eternallightstudios.com/")Forums(/url) )( (url="http://"http://www.apple.com")apple computer(/url) )( (url="http://"http://www.freewebs.com/solarsystemplug/solarsystemchat.htm")Solar System Chatroom(/url)

Well, is there anyway to bypass it? A viper looks about 25 by 25 pixels. I just don't get it -_-.

------------------

I think the point that The Cheat is trying to get at is that each individual segment of a sprite needs to be a round number of pixels - who ever heard of 0.83 of a pixel? So the total image size needs to be a multiple of six (or however many frames you have)

The viper, incidentally, is 32 pixels square, meaning a total RleD and Rle8 size of 192x192. The shuttle and cargo drone are both 24, meaning a total size of 144x144.

Your sprite's pic must be an even multiple of its frame dimensions. For example, ships often are a 6x6 frame grid, so the image's dimensions must be evenly divisible by six.

Assuming the Viper's sprite is 25x25 pixels (I don't know what it really is), then its sprite grid, if it didn't have banking sets, would be an image 150x150 pixels.

Extra sets (for example, for banking) are just different versions of the base set size, added onto the image. So, with banking, the Viper's sprite grid image would be 3 times as tall, making it 150x450 pixels.

In a shän resource (used for ship graphics), all you have to specify is the size of each frame, how many frames form a set, and how many sets there are. For a spďn resource (used for non-ship graphics), you have to specify the size of each frame, and how many frames across and down are in the image. There's nothing inherently wrong with having your sprite grid pic be 155x155 if, for example, each frame is 31x31 pixels and there are 5 frames across and down, for a total of 25 frames.

(BTW, I just looked; the Viper is 32x32 and arranged in a 6x6/set (36 frames/set) 3 set arrangement, for a 192x576 pixel sprite grid. However, its engine glow has a 64x64 base frame size, and the same arrangement of frames.)

------------------
(url="http://"http://evula.org/aftermath/")Aftermath(/url). You know you want it.

(This message has been edited by Weepul 884 (edited 06-28-2004).)

Heh, well, before you posted that, I moved my frames together. For some reason, I though that the orignal EV had a 1 pixel seperation grid. I thought that it would apply to EVN as well. Thanks anyways. But now, I have yet ANOTHER PICT is too small error after fixing a cannot find error myself. It just doesn't like me. It is now 150 by 150, 36 frames arranged in 6 by 6 order, with each being 25 pixels. I put in all the info, and it still says "too small". Grr...

(This message has been edited by ChauSara (edited 06-28-2004).)

While Nova allows a lot more combinations of pixel size versus grid size, I recommend using the binary powers as your base frame size: 1, 2, 4, 8, 16, 32, 64, etc.

Failing that, use a multiple of 2, 4 or 8.

So, in your case, try 24 × 24

best always,

Dave @ ATMOS

Hm, Nova can handle any sprite sizes, but you should go by the size of single frames, not the entire frame set.

(This message has been edited by Arion (edited 06-29-2004).)

I fixed the problem myself. Short story, I didn't put in the right info in a certain place. Anyways, I now have a question. For the graphics part of a weapon, it says that the only ID's for weapon spins are 200-263. I made my spin ID 263, and then assigned it. Now, when I play, it shoots out random bullets. What the heck is going on?

------------------
I do not have a signature, and I never did have a signature. You cannot prove it!!