15th September
Woo! Managed to get imagick to save full- and sprite-coats to appropriate folders. But at the moment I'm only doing it with sprites (they're pretty small GIFs, 8-20 kb) as the full coats are terrifyingly huge (300-400kb PNGs) and I'm not sure how to compress them yet.
Currently the function is done manually with AJAX (choose one griff at a time to generate/save their sprite) and I need to figure out how to make it a class next.
Wild nest was updated to generate eggs again. Soooo much shorter than using scores of genes lol.
Generating wild griffs to fight, mate with or capture should be pretty easy later.
Must update breeding script next, oh and re-add the studbook and stud breeding page...
Had new idea for the 'horn extra' layer: change the simple yes/no visibility into a number 0-10?
So it could be hidden, minimal, normal, or extensive coverage. Or appear stripey, or in other shapes.
(basically same idea as the body part layers - use them as markings over each other! Don't always cover the same areas of body.)
Midnight update: whew. Changed image script to use the new horn textures, and only look up griffs' numbers, then fetch hex colours.
I haven't made all the new opal (material 3) textures yet, so some griffs are still broken. Some others that looked hideous and garish earlier are now quite pretty.
19th September
Ugh endo. Hope that's it for a while. Anyway...
- updated wild nest, breeding, searches to use new 'genes' (or lack of them). Quite a lot of stuff to edit.
- updated Flock Check to new standards (eee tiny status bars!). It costs 5 MP to teleport a griff home, and updates your counter on the page.
(note to self: turn HP/MP into bars too? Might look better than numbers, and be more RPG-ish. Bars can be animated as you cast/refill on pages.)
20th September
- fancified the top bar slightly, with HP/MP bars and the day/month/time. At night, the background changes to starry sky. Could change other CSS too.
It's currently on server time, but later should ask users their timezone when registering. It would be weird to play a night-looking game when it's midday for you...
This will later affect exploration and NPCs too. Day/night maps, different events. Oh, I should think about adding a weather system maybe...
- redid vault page in ajax, very smooth.
- re-added stud search and breeding. Currently the fee is only paid at the end, if you end up with fertile eggs.
Probably should be done earlier so you pay regardless? Or... keep it like this, so males' Masters have an incentive to keep them healthy (the more inbred or elderly a griff is, the lower their fertility)
21st September
- piddled around with layout, tidying up old CSS and making widths consistent.
Really need to draw a nice background with panels of engraved griffs or whatever, rather than the current flat white divs. >.<
And when that 'theme' is done, I'll be able to design the standard buttons, inner-divs etc that will be used across pages. It's the Wild West out there currently.
- finally got off my arse and made new item shops.
All handled on one page; the merchant's name, image, greeting, background, shop CSS and of course range of stock are fetched. These things can all change according to conditions, so...
- one who likes you a lot (maybe you finished a quest for them?) will offer a different range of items, perhaps at a discount too.
- some offer different stock (or disappear entirely!) on different days of the week.
- ah, too many possible changes to think about now x)
Buying is nice and smooth. So, onto inventory next... got the selling function waiting.
- or not. Randomly had urge to keep working on the battlefields! It's like a mini SRPG, you command 4 griffs on a tiled map against a pack of enemies.
OK sooo... created the 2 DB tables to store battles in progress, and details about each map (name of the dungeon/place, what sorts of monsters spawn in it...).
Got a test-battle set up, with the 4 griffs' names and sprites. They can each move around the map 1-2 tiles at a time, except onto the tiles with obstacles. Their co-ords are tracked, and these numbers can later be turned into descriptions, like "Coffee is at the river's edge" or "Beaky is on the open plain".
Next, uh, need to...
- (done) store griffs' co-ords in DB, and (not done) calculate the right pixel position to load them in, when battle page loads.
- make option on main /battlefield page so you can create a new battle. Choose 4 of your griffs, their starting positions, and then go to the new battle.
- (done) attach AJAX so griffs don't move til other script re-checks their co-ords vs the impassable tile array, updates them in DB and sends back 'yes, move' or not.
- add some enemies, their starting positions will have to be randomised.
- (done) add a div for battle reports/rounds, and every move (later every action) a griff or enemy makes, should be added there, 'reported' from AJAX script.
- (done) track HP for all entities.
22nd September
- cleaned up the roost pages' code a bit. When a griff dies of old age, you get gifts etc. If they've run away, yeah. If they're at 0 health (and somehow not at infirmary yet) they'll automatically be sent there if you have the MP, else you'll get message about them being stranded somewhere.
If these events happen the griff's location is changed to 2, 3, 4 or 5 (meaning runaway, infirmary, "hurt but not at infirmary yet" or "dead and awaiting send-off") so there'll be nothing you can do with them, or to change them back to normal. It'll be easy to check when breeding, using items, doing anything.
Also added the Daily Commands box but for some reason this JS doesn't like being on roost page. Battles and after-actions don't work, only main options. Wonder what's up.
- added full counts on flock page, for griffs who are in nest/here/hurt/runaway. As mentioned, the 2/3/4/5 location numbers are now used for tracking Other Things. I need to re-randomise all griffs to higher numbers. Don't worry testers, most of your griffs have not suddenly died.
- cleaned up Memorial and Wanderlist pages too; well, the pagination. Should add it to flock, but still dunno how to add pagination to AJAX-generated results... that's the biggest thing. Would be amazing in inventory tabs, Business log... ah, need to learn this!
- did some planning/thinking about how the infirmary will work. Quite a lot like the nests, in terms of display/visiting and healing progress.
Basically, it's NOT a 'clinical' sort of hospital building, like for people.
It's a huge stone ruin of an old castle or coliseum. Some parts of the ground floor are furnished, and very busy, but the rest is left wild; patients do as they will.
Many creatures prefer to perch or hide themselves up on rafters or higher floors, alone or with others; they won't be disturbed except when needed. If it makes them more comfortable, sure.
There's a river winding through, covered by cellar tunnels, and 'underground' (cavern/hall ceiling) lakes/pools, plus flooded chambers, for the aquatic creatures to lurk.
(Even some shape-shifting citizens prefer to shun the comfy people-clinics and instead transform into griffs etc, and come here when ill. It's a different place, wilder.)
As for the healing... magic cannot do this.
Magic could help speed it up slightly, by changing temperatures or whatever, but still a creature can only recover up to 30% health per day.
(later in group battles or on map, griffs casting 'healing spells' on each other can only add 5% HP per turn, maybe 10 or 15 with super elite spells.)
Visitors to the 'infirmary' can bring the 3 random items requested, and contribute 3 times a day (10% each time).
Like... the creatures are getting treated every morning, afternoon and night, or sth. Apart from those visits, they're resting, or chilling out with fellow creatures.
The visitors who offer the items will obv need to be rewarded in some way, and since this place is a big wild maze, you have to choose one of your griffs to go and physically reach the patient. That griff/dragon/whatever will gain some healing skill points and general EXP.
When health is back to 100% the creature can be 'picked up' by Master and rejoin the flock. Whether they'll be fond of Master is another story...
(I plan to tank a griff's Trust if they nearly die, but remain stranded in wilderness as Master didn't have MP to teleport them home to safety. "Ugh Master, you let me get in that state but couldn't organise your MP to rescue me!" So they either got sent home by a kind stranger who found them on map, or Master had to wait an extra day and regain MP.)
Woo! Managed to get imagick to save full- and sprite-coats to appropriate folders. But at the moment I'm only doing it with sprites (they're pretty small GIFs, 8-20 kb) as the full coats are terrifyingly huge (300-400kb PNGs) and I'm not sure how to compress them yet.
Currently the function is done manually with AJAX (choose one griff at a time to generate/save their sprite) and I need to figure out how to make it a class next.
Wild nest was updated to generate eggs again. Soooo much shorter than using scores of genes lol.
Generating wild griffs to fight, mate with or capture should be pretty easy later.
Must update breeding script next, oh and re-add the studbook and stud breeding page...
Had new idea for the 'horn extra' layer: change the simple yes/no visibility into a number 0-10?
So it could be hidden, minimal, normal, or extensive coverage. Or appear stripey, or in other shapes.
(basically same idea as the body part layers - use them as markings over each other! Don't always cover the same areas of body.)
Midnight update: whew. Changed image script to use the new horn textures, and only look up griffs' numbers, then fetch hex colours.
I haven't made all the new opal (material 3) textures yet, so some griffs are still broken. Some others that looked hideous and garish earlier are now quite pretty.
19th September
Ugh endo. Hope that's it for a while. Anyway...
- updated wild nest, breeding, searches to use new 'genes' (or lack of them). Quite a lot of stuff to edit.
- updated Flock Check to new standards (eee tiny status bars!). It costs 5 MP to teleport a griff home, and updates your counter on the page.
(note to self: turn HP/MP into bars too? Might look better than numbers, and be more RPG-ish. Bars can be animated as you cast/refill on pages.)
20th September
- fancified the top bar slightly, with HP/MP bars and the day/month/time. At night, the background changes to starry sky. Could change other CSS too.
It's currently on server time, but later should ask users their timezone when registering. It would be weird to play a night-looking game when it's midday for you...
This will later affect exploration and NPCs too. Day/night maps, different events. Oh, I should think about adding a weather system maybe...
- redid vault page in ajax, very smooth.
- re-added stud search and breeding. Currently the fee is only paid at the end, if you end up with fertile eggs.
Probably should be done earlier so you pay regardless? Or... keep it like this, so males' Masters have an incentive to keep them healthy (the more inbred or elderly a griff is, the lower their fertility)
21st September
- piddled around with layout, tidying up old CSS and making widths consistent.
Really need to draw a nice background with panels of engraved griffs or whatever, rather than the current flat white divs. >.<
And when that 'theme' is done, I'll be able to design the standard buttons, inner-divs etc that will be used across pages. It's the Wild West out there currently.
- finally got off my arse and made new item shops.
All handled on one page; the merchant's name, image, greeting, background, shop CSS and of course range of stock are fetched. These things can all change according to conditions, so...
- one who likes you a lot (maybe you finished a quest for them?) will offer a different range of items, perhaps at a discount too.
- some offer different stock (or disappear entirely!) on different days of the week.
- ah, too many possible changes to think about now x)
Buying is nice and smooth. So, onto inventory next... got the selling function waiting.
- or not. Randomly had urge to keep working on the battlefields! It's like a mini SRPG, you command 4 griffs on a tiled map against a pack of enemies.
OK sooo... created the 2 DB tables to store battles in progress, and details about each map (name of the dungeon/place, what sorts of monsters spawn in it...).
Got a test-battle set up, with the 4 griffs' names and sprites. They can each move around the map 1-2 tiles at a time, except onto the tiles with obstacles. Their co-ords are tracked, and these numbers can later be turned into descriptions, like "Coffee is at the river's edge" or "Beaky is on the open plain".
Next, uh, need to...
- (done) store griffs' co-ords in DB, and (not done) calculate the right pixel position to load them in, when battle page loads.
- make option on main /battlefield page so you can create a new battle. Choose 4 of your griffs, their starting positions, and then go to the new battle.
- (done) attach AJAX so griffs don't move til other script re-checks their co-ords vs the impassable tile array, updates them in DB and sends back 'yes, move' or not.
- add some enemies, their starting positions will have to be randomised.
- (done) add a div for battle reports/rounds, and every move (later every action) a griff or enemy makes, should be added there, 'reported' from AJAX script.
- (done) track HP for all entities.
22nd September
- cleaned up the roost pages' code a bit. When a griff dies of old age, you get gifts etc. If they've run away, yeah. If they're at 0 health (and somehow not at infirmary yet) they'll automatically be sent there if you have the MP, else you'll get message about them being stranded somewhere.
If these events happen the griff's location is changed to 2, 3, 4 or 5 (meaning runaway, infirmary, "hurt but not at infirmary yet" or "dead and awaiting send-off") so there'll be nothing you can do with them, or to change them back to normal. It'll be easy to check when breeding, using items, doing anything.
Also added the Daily Commands box but for some reason this JS doesn't like being on roost page. Battles and after-actions don't work, only main options. Wonder what's up.
- added full counts on flock page, for griffs who are in nest/here/hurt/runaway. As mentioned, the 2/3/4/5 location numbers are now used for tracking Other Things. I need to re-randomise all griffs to higher numbers. Don't worry testers, most of your griffs have not suddenly died.
- cleaned up Memorial and Wanderlist pages too; well, the pagination. Should add it to flock, but still dunno how to add pagination to AJAX-generated results... that's the biggest thing. Would be amazing in inventory tabs, Business log... ah, need to learn this!
- did some planning/thinking about how the infirmary will work. Quite a lot like the nests, in terms of display/visiting and healing progress.
Basically, it's NOT a 'clinical' sort of hospital building, like for people.
It's a huge stone ruin of an old castle or coliseum. Some parts of the ground floor are furnished, and very busy, but the rest is left wild; patients do as they will.
Many creatures prefer to perch or hide themselves up on rafters or higher floors, alone or with others; they won't be disturbed except when needed. If it makes them more comfortable, sure.
There's a river winding through, covered by cellar tunnels, and 'underground' (cavern/hall ceiling) lakes/pools, plus flooded chambers, for the aquatic creatures to lurk.
(Even some shape-shifting citizens prefer to shun the comfy people-clinics and instead transform into griffs etc, and come here when ill. It's a different place, wilder.)
As for the healing... magic cannot do this.
Magic could help speed it up slightly, by changing temperatures or whatever, but still a creature can only recover up to 30% health per day.
(later in group battles or on map, griffs casting 'healing spells' on each other can only add 5% HP per turn, maybe 10 or 15 with super elite spells.)
Visitors to the 'infirmary' can bring the 3 random items requested, and contribute 3 times a day (10% each time).
Like... the creatures are getting treated every morning, afternoon and night, or sth. Apart from those visits, they're resting, or chilling out with fellow creatures.
The visitors who offer the items will obv need to be rewarded in some way, and since this place is a big wild maze, you have to choose one of your griffs to go and physically reach the patient. That griff/dragon/whatever will gain some healing skill points and general EXP.
When health is back to 100% the creature can be 'picked up' by Master and rejoin the flock. Whether they'll be fond of Master is another story...
(I plan to tank a griff's Trust if they nearly die, but remain stranded in wilderness as Master didn't have MP to teleport them home to safety. "Ugh Master, you let me get in that state but couldn't organise your MP to rescue me!" So they either got sent home by a kind stranger who found them on map, or Master had to wait an extra day and regain MP.)

