Page 1 of 2

Float Division error on Export

PostPosted: Wed Jul 23, 2008 4:01 pm
by ekimmai
I keep getting an error when attempting to export an age which includes animation, clickable region etc. Log looks like this:

Screenshot.jpg
Screenshot.jpg (126.19 KiB) Viewed 4500 times


Log suggests the problem is that frm.vec[1][0] = frm.vec[0][0] and hence division by zero - causing the crash. But I have no idea what the frm.vec is about.
Any clues??

I'm using Blender 2.46, and PYPRP v1.5. Some other ages (including the DoorAnimation age) export fine.

Thanks
Ekimmai

Re: Float Division error on Export

PostPosted: Wed Jul 23, 2008 4:16 pm
by D'Lanor
I believe I saw that error when I wrote an animation Alcscript for an object that did not have any IPO data yet. Are you referencing the right object in your Alcscript?

Re: Float Division error on Export

PostPosted: Thu Jul 24, 2008 4:39 am
by ekimmai
Yeh I'm pretty sure I've referenced everything correctly - having used the Door Animation program as a guide. I'll check again later though.

The log refers to "Exporting IPO WallOpen1", the latter being the name I gave to animation in the Alcscript relating to a dropping wall. Do I need to rename the IPO curve at all or will it just automatically look for the object connected to the animation and then find the IPO relating to the object? :?

Re: Float Division error on Export

PostPosted: Thu Jul 24, 2008 11:24 am
by Kato
Holy crap, it divided by zero. :P

-Kato

Re: Float Division error on Export

PostPosted: Thu Jul 24, 2008 1:05 pm
by ekimmai
:lol: @ kato

Fixed the problem!

I stripped out all the unnecessary IPO curves for my animations, e.g. energy curve for a light, rotational curves for an object which changes location only, and lo and behold everything worked perfectly first time. Cheers D'Lanor for pointing me in the right direction (IPO data).

Big thanks to the writer of the AnimatedDoor age - without which I would still be scratching my head.....

Ekimmai

Re: Float Division error on Export

PostPosted: Thu Jul 24, 2008 1:10 pm
by Nadnerb
This would happen if the "in" beizer handle in a keyframe is completely vertical, or has "infinite slope", which I don't think is actually valid for any ipo curve.. I may have to have another look at what happens when there are unused curves. (it should ignore them and not create an animation)

Anyway, thanks, good to hear it helped you. :) (I wrote the AnimatedDoor age, it was the test age for animations.)

Re: Float Division error on Export

PostPosted: Fri Jul 25, 2008 8:56 am
by Jojon
Well, it is possible to place points between frames, so if it is the case that the frame numbers are rounded before the division in question and we have one point at frame one and one at frame 1.42...

(Holding down ctrl while moving points snaps them to the grid [in this case; frame number], in the IPO editor, just as in views -- good to keep in mind.. :7)

EDIT: ...or rather "moves the points grid-size distances", not actual snapping...

Re: Float Division error on Export

PostPosted: Fri May 01, 2009 3:40 am
by Ar“thalion
Hello,

I ran into the same error, but i dont have any animations in my age. I searched through the ipo editor but there are no ipo curves i could delete. The Age is not developed far by now. It only contains a Landscape Mesh and a Waveset Mesh, of course a sun...thats all. Might there be a other reason for this error to occure?

Error1.jpg
Error1.jpg (198.25 KiB) Viewed 4281 times


Error2.jpg
Error2.jpg (95.29 KiB) Viewed 4281 times

Re: Float Division error on Export

PostPosted: Fri May 01, 2009 3:55 am
by Jojon
You DO have an IPO curve somewhere, it seems. :) Accidently pressing the "I" key at any time, would add a key to a curve, that would automagically be created, if not already present.

There are IPOs for many different targets, though (selector in the toolbar; Object, World, Material, Pose, etc...) and an editor window will only display one of these at the time, so you may not have flicked through all of these, when checking.

Try looking in the outliner - an IPO block attached to any other block, will appear as a small pictogram of a squiggly arrow, which can be selected and deleted.

Re: Float Division error on Export

PostPosted: Fri May 01, 2009 4:00 am
by D'Lanor
It is a layer animation so you should look for a Material IPO.