22 May
Added AJAX search to the flock page and redid the tooltips in CSS, as the JS wasn't working for some reason. Got rid of the vanishing griffs during pause; now the current results stay while it searches, and new griffs suddenly appear. Extra search options are tucked away in collapsible box. Much neater!
Also cleaned up flock and group/tag page.
23 May
Added same search to group and tag pages. Now what? ... might have a go at the breeding page, fetching selected parents' info in boxes.
edit: Yes! Woo! Working like a charm. Also tidied up this page, and added studbook search.
Still haven't updated the script with newest genes, so can't actually breed. Must get these traits written asap.
24 May
Figured out how to approach some annoying issues... haven't actually tried these yet, but guessing *how* to do them is important first!
- in breeding validation script, check if male griff has same owner as female. If not, it's a stud breeding, so instead of checking user's money for the default cost, look up his stud fee and check against that instead.
- should also (while there) check that the male is still up for stud. This will prevent anyone leaving his tab open and getting breedings, after his owner has withdrawn him.
- could use AJAX for updating names, bios, studfees etc on the perch pages. Much nicer than PHP post-ing and reloading the page over and over.
- could also use AJAX to instantly 'refresh' images, in the gene lab (when users are designing griff coats). Again much nicer than reloading for every gene change.
- when adding the sea slug dragons, hermaphrodism might work by changing breeding dropdowns/validation to check for "female or other" and "male or other".
This, uhh... might make it possible to breed a dragon with itself? As their 'sex' won't be flagged up as a problem anywhere. o.O
Well, some real animals do that... and offspring will quickly become severely inbred, so users will be deterred. But it could be allowed. Genes can still vary a lot, so you wouldn't get clones, unless the dragon was homozygous in every way.
Note for later, must prevent those dragon eggs from using any sex-influencing items.
Also need to add private stud option. Owners can specify a breeding group whose members their males be available too. For example, Griffin Bob can be used by members of group 19. Have an extra column called 'privstud' or sth, to hold that number. If Bob is 'yes' for stud and his 'privstud' number is 0, he's public and will be searchable. If 'yes' for stud but 'privstud' contains a number, he's for a group and will only be listed on a page accessible by group members.
... something like that, anyway. Will need to plan 'breeding groups' in general. If decide against them, studs could at least be made available for specific users, like with trades and coats.
Added AJAX search to the flock page and redid the tooltips in CSS, as the JS wasn't working for some reason. Got rid of the vanishing griffs during pause; now the current results stay while it searches, and new griffs suddenly appear. Extra search options are tucked away in collapsible box. Much neater!
Also cleaned up flock and group/tag page.
23 May
Added same search to group and tag pages. Now what? ... might have a go at the breeding page, fetching selected parents' info in boxes.
edit: Yes! Woo! Working like a charm. Also tidied up this page, and added studbook search.
Still haven't updated the script with newest genes, so can't actually breed. Must get these traits written asap.
24 May
Figured out how to approach some annoying issues... haven't actually tried these yet, but guessing *how* to do them is important first!
- in breeding validation script, check if male griff has same owner as female. If not, it's a stud breeding, so instead of checking user's money for the default cost, look up his stud fee and check against that instead.
- should also (while there) check that the male is still up for stud. This will prevent anyone leaving his tab open and getting breedings, after his owner has withdrawn him.
- could use AJAX for updating names, bios, studfees etc on the perch pages. Much nicer than PHP post-ing and reloading the page over and over.
- could also use AJAX to instantly 'refresh' images, in the gene lab (when users are designing griff coats). Again much nicer than reloading for every gene change.
- when adding the sea slug dragons, hermaphrodism might work by changing breeding dropdowns/validation to check for "female or other" and "male or other".
This, uhh... might make it possible to breed a dragon with itself? As their 'sex' won't be flagged up as a problem anywhere. o.O
Well, some real animals do that... and offspring will quickly become severely inbred, so users will be deterred. But it could be allowed. Genes can still vary a lot, so you wouldn't get clones, unless the dragon was homozygous in every way.
Note for later, must prevent those dragon eggs from using any sex-influencing items.
Also need to add private stud option. Owners can specify a breeding group whose members their males be available too. For example, Griffin Bob can be used by members of group 19. Have an extra column called 'privstud' or sth, to hold that number. If Bob is 'yes' for stud and his 'privstud' number is 0, he's public and will be searchable. If 'yes' for stud but 'privstud' contains a number, he's for a group and will only be listed on a page accessible by group members.
... something like that, anyway. Will need to plan 'breeding groups' in general. If decide against them, studs could at least be made available for specific users, like with trades and coats.

