Page 1 of 1

No of GG Parents and to find - Query or Plugin?

Posted: 05 Jan 2017 09:17
by Valkrider
Following on from a blog post that I read recently I wonder if anyone has a query / plugin to produce the same?

The same what? Please see below
ancestors.jpg
ancestors.jpg (74.16 KiB) Viewed 5164 times
I would think that this just needs a count by generation of Ahnentafel numbers. Any other suggestions on how to achieve this other than by counting manually?

Re: No of GG Parents and to find - Query or Plugin?

Posted: 05 Jan 2017 09:39
by DavidNewton
Strangely enough, just under one year ago this topic was mentioned.

http://www.fhug.org.uk/forum/viewtopic. ... unt#p58182

David

Re: No of GG Parents and to find - Query or Plugin?

Posted: 05 Jan 2017 10:26
by Valkrider
David

Thanks for the reminder. It was me that asked before :oops: but I couldn't find the query that Jane wrote or the thread on the forum (much egg on face).

Re: No of GG Parents and to find - Query or Plugin?

Posted: 05 Jan 2017 11:17
by Jane
A slightly updated version of the plugin is in the store

http://www.family-historian.co.uk/plugi ... try?id=716

Re: No of GG Parents and to find - Query or Plugin?

Posted: 05 Jan 2017 11:26
by Valkrider
Thanks for the updated version Jane, I was looking in my FH install for a query not a plugin :oops: so found it now.

Re: No of GG Parents and to find - Query or Plugin?

Posted: 08 Jan 2017 15:28
by Gowermick
Jane,
I just ran the plugin, and it showed a minor glitch. If one has more that 30ish generations, it hits a limit when showing no of possibles.
Looking at the source code, you use integers to hold these values, which obviously have hit the maximum possible value in my case. Any idea how to increase the limit, e.g. by using large integers? I thought LUA was type independent!

Re: No of GG Parents and to find - Query or Plugin?

Posted: 08 Jan 2017 16:43
by tatewise
It seems that Lua v5.1 may only support 32-bit integers, and since FH is complied as a 32-bit program that may also restrict the maximum integers to 2^31 which explains the limit of 31 generations before the numbers go awry.

Lua may be typeless but is not 'infinite' and bounded by usual computer limits, which are governed by compiler options, i.e. 32-bit or 64-bit numbers.

Re: No of GG Parents and to find - Query or Plugin?

Posted: 08 Jan 2017 17:40
by Gowermick
Thanks Mike,
That also explans why FH stops producing Ahnetafel numbers at 31 generations!
I did report this as a bug, but perhaps nothing will change unless Simon recompiles in a 64Bit compiler - I shan't be expecting this resolved anytime soon :D