Float Division error on Export

If you feel like you're up to the challenge of building your own Ages in Blender or 3ds Max, this is the place for you!
ekimmai
Posts: 79
Joined: Mon Apr 14, 2008 5:04 am
MOULa KI#: 0
Location: Winchester, UK

Float Division error on Export

Post 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 4612 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
D'Lanor
Posts: 1980
Joined: Sat Sep 29, 2007 4:24 am

Re: Float Division error on Export

Post 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?
"It is in self-limitation that a master first shows himself." - Goethe
ekimmai
Posts: 79
Joined: Mon Apr 14, 2008 5:04 am
MOULa KI#: 0
Location: Winchester, UK

Re: Float Division error on Export

Post 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? :?
Kato
Posts: 315
Joined: Fri Sep 28, 2007 8:02 pm
MOULa KI#: 336436
Location: South USA
Contact:

Re: Float Division error on Export

Post by Kato »

Holy crap, it divided by zero. :P

-Kato
Image
(explorer card designed and created by me)
ekimmai
Posts: 79
Joined: Mon Apr 14, 2008 5:04 am
MOULa KI#: 0
Location: Winchester, UK

Re: Float Division error on Export

Post 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
Nadnerb
Posts: 1057
Joined: Fri Sep 28, 2007 8:01 pm
MOULa KI#: 23247
Location: US (Eastern Time)
Contact:

Re: Float Division error on Export

Post 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.)
Image
Live KI: 34914 MOULa KI: 23247 Gehn KI: 11588 Available Ages: TunnelDemo3, BoxAge, Odema
Jojon
Posts: 1116
Joined: Sun Sep 30, 2007 5:49 am

Re: Float Division error on Export

Post 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...
Ar´thalion
Posts: 12
Joined: Mon Apr 06, 2009 11:57 pm

Re: Float Division error on Export

Post 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 4393 times


Error2.jpg
Error2.jpg (95.29 KiB) Viewed 4393 times
Jojon
Posts: 1116
Joined: Sun Sep 30, 2007 5:49 am

Re: Float Division error on Export

Post 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.
D'Lanor
Posts: 1980
Joined: Sat Sep 29, 2007 4:24 am

Re: Float Division error on Export

Post by D'Lanor »

It is a layer animation so you should look for a Material IPO.
"It is in self-limitation that a master first shows himself." - Goethe
Post Reply

Return to “Building”