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!

Float Division error on Export

Postby ekimmai » Wed Jul 23, 2008 4:01 pm

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 4507 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
ekimmai
 
Posts: 79
Joined: Mon Apr 14, 2008 5:04 am
Location: Winchester, UK

Re: Float Division error on Export

Postby D'Lanor » Wed Jul 23, 2008 4:16 pm

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

Re: Float Division error on Export

Postby ekimmai » Thu Jul 24, 2008 4:39 am

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? :?
ekimmai
 
Posts: 79
Joined: Mon Apr 14, 2008 5:04 am
Location: Winchester, UK

Re: Float Division error on Export

Postby Kato » Thu Jul 24, 2008 11:24 am

Holy crap, it divided by zero. :P

-Kato
Image
(explorer card designed and created by me)
User avatar
Kato
 
Posts: 315
Joined: Fri Sep 28, 2007 8:02 pm
Location: South USA

Re: Float Division error on Export

Postby ekimmai » Thu Jul 24, 2008 1:05 pm

: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
ekimmai
 
Posts: 79
Joined: Mon Apr 14, 2008 5:04 am
Location: Winchester, UK

Re: Float Division error on Export

Postby Nadnerb » Thu Jul 24, 2008 1:10 pm

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

Re: Float Division error on Export

Postby Jojon » Fri Jul 25, 2008 8:56 am

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...
Jojon
 
Posts: 1116
Joined: Sun Sep 30, 2007 5:49 am

Re: Float Division error on Export

Postby Ar´thalion » Fri May 01, 2009 3:40 am

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 4288 times


Error2.jpg
Error2.jpg (95.29 KiB) Viewed 4288 times
Ar´thalion
 
Posts: 12
Joined: Mon Apr 06, 2009 11:57 pm

Re: Float Division error on Export

Postby Jojon » Fri May 01, 2009 3:55 am

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.
Jojon
 
Posts: 1116
Joined: Sun Sep 30, 2007 5:49 am

Re: Float Division error on Export

Postby D'Lanor » Fri May 01, 2009 4:00 am

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

Next

Return to Building

Who is online

Users browsing this forum: No registered users and 10 guests

cron