Uci Numbers

Got a question about APE that isn't answered in the tutorials? Ask it here! APE - the Animal Project Editor - designed for the original version of Zoo Tycoon.
Post Reply
User avatar
fern
african elephant keeper
Posts: 9692
Joined: Thu Feb 26, 2004 3:29 am

Post by fern »

I have seen a request as to how APE choose the numbers it generates? Does anyone know?
User avatar
Jay
african elephant keeper
Posts: 11552
Joined: Thu Jan 15, 2004 9:23 pm
Location: Orlando, FL (M:66)

Post by Jay »

I don't believe anyone outside of Blue Fang knows for sure and I never experimented. I suspect there are 3 parts, at least that is how I would do it. One part appears to be related to the type of ingame thing that was used as a model. Another part should be based on the number of seconds since ZT was made, since this gets very close to guaranteeing uniqueness because it is very difficult for 2 people to start a new project at exactly the same second. But, just in case, I would have part of it being a randomly generated part. So even if 2 people do start a new project in exactly the same second, that would make it very unlikely to get the same id. However, as I said, I don't know the actual algorithm used.
ztdoctor
zoo docent
Posts: 297
Joined: Tue Sep 27, 2005 2:01 pm

Post by ztdoctor »

Thanks Jay :) - I was the original source of the query!

Dr Rick (aka ztdoctor)
Post Reply