Hello There, Guest! Register

Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
First thread
20 Aug

Decided to bite the bullet and get the big Login/Display Name and only-ever-use-ID-instead changes all done today. Before I work on any more features.
Ooookay... nearly every DB table and script in the game will need changing. Fun.

- flock and search updated. 'manage' pages are finally renamed to 'roost'. Note for later: there should be a range of different backgrounds there, as many breeds will prefer different accomodation.
- gene lab, group, member and tag searches updated... except the tag search refuses to look up owner name. The query is very simple, and exactly the same as in other searches. It's just this one script that doesn't like it. Ugh.
- user profiles updated. Also cleaned up some sections.
- breeding, wild nest, incubation pages updated. Had to forcibly change all eggs/chicks to juveniles and kick 'em outta nests, to reset the nest table.

Nests are now simplified; instead of reusing same nests for same parents, just create new nest for every breeding. So there'll only ever be 3 eggs/chicks max, and I can display them in the nest image as tiny sprites. And old nests can be deleted, saving space.

.. oookay, the breeding system has broken. It won't recognise the parent IDs. Hmm.
Well, I guess it's time to redo a bunch of it then! Lots of old, no-longer-used code and validation stuff. Will take a while to set up the relevant bits on a new page.

edit: wow, this is going quite smoothly actually. Slimmed down the code massively. And now I can add much more stuff!
Added:
- mothers can breed once per day. Not a strict 24h wait time, but 'any time on different days'. So it's more flexible. Males have no waiting time.
- males have higher capacity, 40 breedings compared to females' 20.
- females need 40 health and 20 energy to breed. Fails take 5 energy (at the moment) and success takes 20% energy and 5% health (laying eggs is tiring).
Meanwhile, males need 20 health and 5 energy. Any attempt takes 3 energy.
- checking both parents' inbred % and reducing fertility accordingly. It's combined, so 0% inbred and 100% inbred have around 50% chance still.
- fertility also falls if creatures are mortal and oldish (70+ years). Does not apply if immortal, ofc.
- users can have 20 nests active at once. More than that, and the romantic moment will be interrupted by servants whining about lack of space.

To add soon:
- mother's breed determines egg number; some usually produce one egg, others usually 2, or 3. Even 4 eggs, in certain breeds and rare cases!
- user could require certain items or authority, to persuade certain 'hard/unlikely to cross' breeds to mix. Maybe a hypnotic or romantic magic spell, lol.

And an idea I had for a while, can now plan it:
- enchantments on the user's island (stable block?) that last a few days, and affect breeding process in various ways.
Some could raise the chance of mutations, or that body part colours will match each other, or raise fertility chances regardless of parents' age/inbreeding, etc.
- alternatively, griffs' companions or held treasures could influence their breedings.

Whole process not re-completed yet though (tomorrow's task).

21 Aug

It's mostly done. Eggs are created and placed in new nest (so the loop is working), and notifications are created for all, but only one egg ID is added to mother's offspring list (???) and then I get blank screen error after that.
Guess that parent-updating bit should be outside the loop; must collect all the egg IDs from it, and add all the new stuff in a single query afterwards.
edit: done. All working.

Also, finally figured out a plan for The Food System.
Instead of all griffs needing food daily, each one has a meter that decreases slightly. So you'll have to top it up occasionally, by offering them food (carcass, plants, fish etc).

Adult creatures are meant to be self-sufficient and hunt/forage for selves, but not all breeds will be good at that.
Aquilas, Pandions etc will easily hunt prey, and Minoans can find all sorts of fruit etc. So they only lose 2-5% daily.
Artificial and silly breeds like Frizzles and Silky/Persian fluffballs are less suited to hunting, and the mutant breeds will totally fail. They might lose up to 50% daily.

Food is mainly gathered from the daily commands, sending adults to Hunt or Gather Food. The more successful flock members will thus be providing for the lesser ones.
Note to self: "Hunt" is looking for creatures to fight and kill/capture. Your griffs may bring back rare monster corpses to butcher for fangs/hides, or they may catch rare wildlife and bring it back alive (for your Menagerie). Or nothing is brought back, but they satisfy their bloodlust and gain skills/EXP. x)
Meanwhile "Gather Food" is, well, yeah. Griffs will look for any nearby small prey like rabbits, fish etc, or gather fruit or other plants. Whatever's available. It's not necessarily what they'd eat themselves; they understand the whole flock needs feeding.
The stuff that's found depends entirely on the griff's current location, and their skill is checked against each item (if find plants, better plant-picking skill means more is gathered. If find rabbits, hunting skill is checked. And so on).
For best results, you'd send your trained foragers to lush valleys/forests, good fishers to lakes/coatlines, and leave deserts/mountains for prey hunters.

If a creature ends up hungry and you don't give them anything, their Health/Energy/Trust will decrease rapidly each day, making them less useful.
I also have a vague idea about unhappy creatures running away (still belong to you, but you'll have to keep coaxing them back to flock) which'll be annoying.

... more Food System thoughts.
There should be a separate area, called Pantry or sth, where all food items are listed. Feeding can be done from there?
Plus having meat juices leaking over inventory stuff would be icky x)

Not sure what to do about griffs who are not at home (in other words, out exploring). Imagine having bits of fish teleported out to them; "here's your dinner" xD
Umm. And how can they send food/items home, anyway?

I guess each explorer could have some slots for picking stuff up, and the stuff is taken home when they actually arrive home.
At first, griffs can carry 4 items, but equipping them with a... pack? Harness? would let them pick up 8 things.
After you're satisfied with the stuff they've found, call them home and the items will join your inventory/pantry. Yes.
Reply
22 Aug

Started the Menagerie! Only one breed so far, but all going smoothly.
The images are much faster and seem more reliable to load than the griff images... I guess since they're so much smaller and have only 7 layers right now, not dozens x)

- added the gaily growth. After 3 days they become adults.
There's no egg stage, only young and adult. I just can't be arsed with more eggs lol. Adults will produce young ones.
Maybe they do hatch from eggs etc, but your servants take care of all that, and you only see the critters afterwards. Unlike with griff eggs, there's nothing you can do with critter eggs, so why present them to you?

- their coat genes are very much simplified (5 body part colours+shades, eye colour+shade, 1 marking colour+shade) but still not skimping out on some details.
Critters have breeder, date of birth, last-bred date, breeding points, parentage and offspring tracked, so their pedigree etc can be shown, just like griffs.
This whole feature is basically a mini-version of main flocks.

- setting up the breeding system... ... ... fiiiinally done. Well, there are no 'genes' here but only numbers, like a colour wheel. And all the test critters have same starting numbers, so offspring are clones. Woo.
Tomorrow I must tweak the colour choosing so it's actually a 'circle'; right now, if one is 2 and other is 13, offspring will get a number between 2 and 13.
But there are 15 colours, so it should be either 13, 14, 15, 1 or 2. I fail at maths so haven't figured out what calculation to use here.

- also improved the griff breeding slightly: when getting info about selected parents, a div with each body part's hex colour appears. Easier to compare (and see the effects of mutations) than just reading genotypes and colour names.

- expanded the new monster battles so the pop-ups can occur randomly, on any page. It chooses a random griff who's currently out in the wilderness (anywhere not at home) and you can jump to command them in the battle, then return to wherever you were before.
Monsters aren't in certain locations yet; later a griff who's in desert will be accosted by a desert thing, etc.
Perhaps there should be a level or stat check on the monster too, so you get a quick note like "This monster doesn't look very strong" or "It looks powerful, Griffname should be careful!" to help you decide about fighting or fleeing.

23 Aug

Still got a headache today. Tried and failed to do the 'colour wheel' calculation... idk what was wrong with my idea, but it doesn't work. >.<
If the difference between the numbers is larger than 7, add them together, for something larger than 15...
Generate new number between those... and if it's bigger than 15, subtract 15, so the resulting number is 1 or 3 or sth.
But no, it just kept generating silly things like 2 and 15... 7. 1 and 9... 3. ARGH I HATE MATHS.

Need to do the move-critters-from-stable-to-a-habitat thing... and renaming, releasing, sending them to another master (can't be arsed to set up a trade or stud system for critters - keep them much simpler than griffs).
But not feeling like it today. :/

24 Aug

- Added first bunch of stone items. Haven't set up the workshop yet.
- Added two more breeds, the Altero and Rampavo. Only the Altero has Elder stage though. The Rampavos will be stuck as Adult max, for a while.
- Now got Minavo and Scythians almost ready to go... tomorrow!

Notes to self: could make the Horn Extra body part come in shapes too? So it's not always in fixed place (or invisible on some breeds).
With this layer, creatures could have metallic/opal markings like stripes or lacing. Oooh.
And the inner2, outer2 parts could also vary. Ahhh, endless possibilities.

Also, should be easy to add some account settings for the random monster threats.
User might find them annoying, so "command all griffs to stay focused on task, avoid monsters" (turn it off) or "command griffs to be on lookout for monsters" (raise the chance).
It could even depend on each individual griff, too?
Either personality traits (bloodthirsty/aggressive vs fearful/peaceful) or you can give each one an order. So only your good hunter/warrior griffs will bring you battle offers.
Reply
26 Aug

Added Scythian breed yesterday. And now the Pegasus today! And Minavo tomorrow! Whew.
Also did a bunch of updating here and there - gah, wish I'd used user IDs from the start. Now heaps of scripts and tables still need changing, to get rid of any mention of usernames.

28 Aug

Working on new (final!) griff and item trade system. AJAX will be used to instantly create new offers. Searching, viewing needs improving too.
The old item giving/taking functions seem to have broken, plus inventory is old, needs cleaner item display...
So I'm gonna scrap the entire lot, all those classes, and do everything from scratch. Shops can have pretty individual pages, AJAX used for all purchases/use/selling, etc. All the inventory page will really do is just list item images and names. Much lighter!

30 Aug

Redone inventory (560 lines to 150!), updated inv DB table to save space by only using numbers for category/itemid/uid, and made new functions for quickly giving/taking items, including in AJAX too. Very handy.

Also changed griff profiles a bit; it made no sense that you needed an active griff to go and meet them, to bring gifts or claim them for your flock. What if your active griff was on other side of the continent??
So, giving a gift ignores that, and just takes 1 MP from your mage, to teleport the item to the lucky griff.
And it's no longer possible to adopt a feral griff from their profile. You'll only have that option on a certain page while exploring. For example, go to a deserted temple where all the feral Minoans hang out... they'll be listed there and you can choose one to adopt. If you can't get to that temple then you ain't getting a Mino. x) This will help to keep some breeds rare.

Also updated the 'Magic' page to freely give/take items from any user, and edit griffs, with AJAX. So nice. Will of course have to be limited to admins/mods later...

1st September

Yesterday, got the new Exchange listing, offer-creating and searches all working.
Now moving all the offer-accepting stuff over to AJAX... and it'd be very nice to have the offer-deleting done there too, then use jQuery to fade out the deleted offer from your list, like with deleted messages.

Also just had idea... to scrap the whole 'active griff' concept.
It just seems utterly pointless now, lots of checks when they aren't needed.
The lore is that you're linked to all your creatures, all the time - that's why being a Master is such a rare profession, it's hard on the body and mind.
Already you can breed, edit, do quick tasks, or command any griff in battle, no matter where it is, if you're their master. You can just switch your eyes/mind to look anywhere. Why ever need extra click to 'link with' a griff?
- I should change the Trials and Explore pages so you can freely pick any griff to go and do things (with).
- Relationships could be handled entirely from your griff's roost page. Instead of having the right active griff, going to another griff's profile and clicking Befriend, you could simply enter the ID number on one of the 9 boxes on roost page, to instantly set that griff as the acquaintance.

Must make Mastering more serious by actually linking all creatures to you, all the time. If any of them get hurt out there, or you tell any of them to use magic, it takes from your own HP or MP pool. If you get down to 10 HP or sth minimal, you'll no longer be able to explore or battle (0 HP would mean you, and all your flock, die - can't have that happening in-game lol), and if you fall to 0 MP, none of your griffs will be able to cast spells, breed, cross some barriers, etc.

... yeah, gonna remove all references to active griffs now, everywhere, and instead add mage's HP and MP to the top bar.

- soooo how can exploring work? I guess have the desired griff id at the end of URL. Page can check if that griff is really here.
If so, carry on, else you'll be offered a list of other griffs you have, who are here. So you can switch to one of them.
If you have no griffs here, you'll be sent back to Explore index, to choose another griff somewhere else.

- alternatively (???) don't have pages for locations, just have a single exploring page where you add your griff ID, and it finds their location and loads the correct map, maaaybe changes the page CSS (background, border) etc for atmosphere.
Hell, could even be done with AJAX, so you pick griffs from dropdown and switch between their maps! Just like a wizard glancing around.
Oooh. This would be very interesting to try... but also tricky, and require all the explore 'pages' to be written and stored away in other scripts.
In some ways, it'll be much nicer to organise - could have them in folders or such, away from the usual PHP files.

2nd September

Woo! That was surprisingly straightforward. The map-holder div is large (going outside the usual page width) and I had worried about getting it always positioned right, as the new stuff is being loaded inside another, smaller div. But it all appears identical to a normal map page.
For now, there's only one test-map copied into 4 different 'area' files, but they load immediately (it's only a bunch of HTML, CSS and JS really), and the selected griff's name is used when running around looking at things. Would be easy to include their stats in checks, etc.

5th September

Exchange... well, I thought it was mostly finished and working, but today arete suddenly reports a blank page. I'm not getting any issues though.
Ah, these random mysteries that pop up!

Also felt silly so created /brushy page. It loads a bathing scene where you drag cursor to cover griff in bubbles, then rinse them off and the griff gets small health/energy/trust boost. Found and modified a JS scratchcard script.
Later, should limit to 1 bath per day per griff (or maybe one a week; too much washing can damage animal fur/feathers).
And make custom bubble graphics for each breed, so the shape fits, instead of one big lump that looks silly.

6th September

Exchanges working well now, but... I'm having second thoughts about some of the options. Just seems unnecessary.
- griff for griff (swap, you offer yours and others show theirs, you choose one)
- griff for item
- griff sale
- item for item
- item sale
And then gifts. It's a shame to scrap a bunch of code that works, and I worked hard on, but griff swaps and griff-for-item just seem OTT.
The former could get extreeeemely annoying... if a user starts a swap and then never comes back to choose a griff to take, or just deletes the swap without warning. Other players would get tired of waiting for deals.
The latter... well, the actual game currency should be used for something xD And there's still the premium currency if normal one isn't enough, for some valuable griffs.

I still want a way for 2 players to swap griffs though, simultaneously, to eliminate any risks of informal trades going wrong ("waaah, moderators, I gave my half but they didn't send theirs!"). So I guess... direct swap offers, where you must choose a target and then pick one of their griffs from a list, and if they accept, do the swaps together.
That'll be muuuch easier than this weird idea of mine, where anyone can offer any griff for you to pick from. x)
Maybe less fun (you must find exactly what you want, and there's no guarantee they'll want to swap) but more direct.

- hmm, but I don't want the same problem of your griff being 'stuck' waiting for swap, if the other user never responds, or takes ages to decide.
Both griffs should stay normal, until the moment a swap happens. Have to think about how these offers will be handled unlike the others.

Also, gifts probably shouldn't have special status (messages, handling) like they have now. Just include them as part of sales, where price happens to be 0. Why do I have such inefficient ideas...
Reply
7th September

Made a demo of 'other' kind of explore minigame. Very satisfied!
It's the same as the Daily Commands mechanically - you tell the griff to Hunt, Seek Food, Seek Resources or Observe - but without the divs popping up each time with results. Much smoother, has animated health/energy bars, and can have images appear with each event. So I'll plop this on the perch pages... later.

(yes, it seems a bit weird having two very different systems. This one is meant to be simpler and lazier - just click commands and the griff randomly finds things, or gets hurt, etc. They only have a limited number of 'steps' due to energy depletion, so you can breeze through each griff in a minute or so.
By contrast, the 'running around map' exploration is a bit more involved. Even though you can instantly jump to different grifffs, you might not be bothered to actually do stuff on the map, nor want the griff to go anywhere else. Just by having them in a certain region, you can find all sorts of food/treasure/gems/other local things, with the Daily Commands.
Note that both systems take griff's energy etc. So if you use it all up on the DC, or get them badly injured, then they'll be in poor condition over on map.)
...
(About Time of Day system... I might remove that here - there'll be enough regions and events already! - and keep it a Serious Map-only feature.
It, and weather/season, should be fixed according to game time, so all maps will show night versions, etc. No more "this griff is in morning and that one is at dusk" nonsense.)

Had an idea about scrapping perch pages, even! It's so horribly slow to open all these pages to check on griffs daily.
Would be very convenient to use AJAX. User could click on a griff thumbnail in flock, and a div pops up, with the usual perch page contents. It'd still have each section in tabs.
And you could just click the previous/next arrows (I'm trying to figure out how to do these right now lol) or another griff, to visit them instead.

Also learned what image maps are - well, I just never saw the benefits of them before - and managed some cool stuff in JSFiddle, hovering over regions of a continent map to make highlighted provinces 'glow' and bring up their names. This will be perfect for the World Map, Garden and maybe other places.

8th September

That was tricky, but I figured out how to get the next/previous keys in an array, and use them for navigation buttons on griff perches.
... and now after opening a bunch of those pages, I'm veeeery tempted to start the remake of them lol. *doodling layout in MS Paint*

... oh man this is gonna be a handful lol. Also I'm torn between always using items for feeding/healing/boosting energy, or letting mage cast spells to do those things.
I mean, healing spells... endurance-boosting spells in battle... they kinda should be included in this game. But then it'd make items redundant!
Also, letting users change griff's armour etc while they're far away. That def must be allowed? Forcing them to return Home for any change would get annoying.

Hmm. For now I'll stick with "for 1 MP you can teleport a food/healing/energy/wearable item out to remote griff, or they can receive the item for free if already Home".
Yeah, will think about other spells later.
Maybe you could cast your spells from a dedicated page, by choosing griff(s) from visual list. This would let you affect multiple at once, or even the whole flock.

9th September

Aaaah... headache, after a long evening of CSS and code-wrestling, but I managed to get pop-up battles working! Juuuust about.
Would like to use them wherever possible, but of course the actual battle page must stay as a 'backup'.
If you somehow manage to close the battle div (like by leaving the page) then your griff will still be in that battle, and the next time you try to do anything with them, you'll be directed to the battle page to finish it.

At the moment the pop-up battles are only on the 'wandering' demo page, but even that is just a test-feature, too...
I need to edit the "hey your griff is threatened, fight or run?" pop-up notices to create these.
And on the 'overworld' explore maps, monsters should be fightable like this.
Aaaand maybe the Arena too...

Yeah. I should use just one battle system script, to handle all the moves.
(or maybe 2 - Arena is harmless and has softer messages about griffs 'pretending to' do stuff to each other, and gives points. Spells might be priced differently.)
Reply
10th September

Streamlining some more functions (like giving exp/levels, updating health, teleporting griffs home) so I don't have to keep repeating chunks of SQL anywhere.

Need to seriously plan some stuff: when a griff reaches 0 health, send to infirmary or kill them?
This my plan right now:
- if they're already in any capital city location (close to Home) they'll be taken straight to infirmary, no cost.
- if they're somewhere further away, they'll need to be teleported back.
Teleporting home normally costs 5 MP, so let's add another 5 magic to keep the dying griff alive (another complex spell).
(note: might change the cost of teleporting depending on distance. Magic-depleted regions may also be more expensive to cast spells in, in general; takes more effort)

If Master can't afford the teleport, but does have 5 MP, the griff will just be stranded with 0 HP in that location. They won't be able to move or do anything, until Master can bring home. Perhaps they can be rescued, if another griff visits that location (the dying one will be visible on the map, you'll get a prompt if approach them) and that other Master decides to pay for the teleport.

If Master can't afford to even keep the griff alive, then they'll die. So always keep 5 MP on hand, if you're sending them out into risky places.

Maybe later, a rare charm could be equipped to a griff so upon death, it'll break and keep the griff alive, meaning they'll just be teleported back for 5 MP. Or the charm could even do the teleporting too! We'll see lol.

11th September

Fixed a few small things here and there. The garden page has suddenly broken, dunno why. Oh well, it's due for a total remake soon anyway!

[Image: gardsk_by_bronzehalo-dcmmi0f.png]

On your own Garden page, you'll just be able to select plots and do stuff in them (plant seeds/sapling/eggs, spread poo/feed, harvest).
If visiting someone else's garden, your mage-self can flutter around the paths and while passing by a plot, can see what's in there and if finished, harvest a bit of stuff.

I have an idea for fun: every finished plot can be harvested once per day, and every user can harvest up to 10 things a day.
But it doesn't have to be from their own garden! If you're looking for apples but aren't growing any right now, go and take some from another apple-filled garden.
This could be a nice communal thing... sharing, advertising etc.
Or it could descend into total war, hehe. If you keep finding that you can't harvest stuff from your own garden because someone else has (anonymously) raided it first, then you'll have to go looking for alternative sources.

There will be no way to block others from visiting your garden. But as a small relief, plot 1 in the corner won't be accessible by visitors (there's no path to it) so only you will be able to harvest from it.

Also, if I can figure out a plan, you'll be able to decorate garden visually too. Not just seeing the plants growing in the plots, but also choose what the paths and raised beds are made of, place statues or arches or extra flowerbeds around... put stuff in the pond... and so on, just like the fortress interior.

12th September

- Thought it'd be easier on the server if individual griff profile tabs were only filled with content when clicked, instead of always loaded by default.
(doing hundreds of queries and loading dozens more dynamic sprites for genetic/family/friends tabs is not to be taken lightly!)
So far, so good. I love AJAX so much.

- Working on new 'portable' roost design. Instead of having to go to a certain page to manage a griff from, you should be able to pop-up a box anywhere which has all their info, options. Flock Check is just a precursor to it! Should be super convenient.
And just like the profiles, 'heavy' tabs will only be populated with info if clicked on. So a user who doesn't care about genes/ancestors/personality/friends and just wants to whizz through their griffs' Daily Commands every day, will be easier on server. Hopefully...

- Also thinking of how to make genes in DB more efficient. Wearables and horn parts are currently stored as words ("Copper Gold Metal" argh!!) and everything should be numbers instead. Horn textures need redesigning anyway...
- Must remove 'bloodline' columns, only used in breeding, they're always based on breed anyway. And breed itself should be a number, not word.

14th September

fuck endoooo, last few days have been horrid

Anyway, getting bogged down in changes again x_x
- First, realised I was storing the hundreds of griff genes in a horribly inefficient way, and am converting griffs to use a handful of tiny numbers instead (like 16 - 4 to mean "Rose" and "Shaded", for one body part).
Those numbers will be much easier to search with, and generate wild griffs with natural colours for every breed (say the Rampant male can be gold, scarlet, tan, silver or iron, and the female is usually scarlet but occasionally chocolate. Can pick from arrays of "10,4,8,24,23" and "4,4,4,5" for that breed. Shades are also numbers from 1 to 6. No need to use genes at all!).
The numbers will be converted back into genes (like gold - 10 - becomes GGrrbb) in the breeding and profile scripts.
So griffs still have a genetic system, it's just shrunk down to fit in the DB more easily. Smile

- Remaking and renaming the horn/claw/hoof/paint textures. Some of them look like total arse, and too many are the same. So I have some nice new palettes and will get round to properly texturing and uploading them... at some point.

- Among lots of other DB clean-ups, I should stop storing 8 hex colours for each griff. Ideally, images will be generated only occasionally (call a function, whenever a griff grows a stage or is changed) and otherwise, saved images will be used.
So step 1 is to get imagick to save some griffs...
Step 2 is to get that automated (put it in a class or sth, to call it anywhere), so I never have to do it manually...
And then step 3, later-ish, will be to automatically upload the images to Amazon S3 bucket, and hopefully take the strain off this server. But that is way beyond me right now.
Reply
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.)
Reply
23rd September

Woo! Thanks to Dinocanid I now know about the existence of the DataTables plugin, and it makes the searches amazing.
(just took the opportunity to update them all to the newest genes etc.
This is only the main member/item/griff search - sadly it won't work with the flock/stud/group/trade searches as they use divs rather than a table.)

It's still all JS on the client side, so not real pagination... if you search something vague and there are 500 griff results, it'll take several seconds to get them all, and be hard on the server, boo... would love to copy Howrse and grab a bunch at a time, but idk how yet.
[Image: datatablewoo_by_bronzehalo-dcnliku.png]

Also continuing the mineral items... zzz... cleaned up the item table of old columns no longer used, and added a few dozen more gems plus images. Still barely started. Ahhh

24th September

WOOOOOO FUCK YES. I managed the proper pagination. Big Grin
Really smooth, plus tells user the number of griffs currently shown, like "page 6, showing 26-30 out of 57 total griffs". Heck yeah, details.
Now trying to add it to non-AJAX-generated lists, like the default bunches of griffs that are loaded on Flock pages...
... and done. Very satisfied.
Now I just have the horrible task of repeating this complicated bunch o' code snippets all over the site, when any things are listed.

... ohhh man, 12+ of these inventory tabs... aaargh. Maybe I just won't bother there. They can have 'fake pagination' where everything's loaded and JS just gives the impression of cycling between bunches of them.
Reply
27th September

Someone mentioned that using 6 different pages for creating/editing/deleting groups and tabs was a chore.
Indeed, so remade it with AJAX. Partially, so far. My browser/computer have crashed about a dozen times the last couple of nights, so it's slow to work on. >.<

Also just decided to try having shops in pop-up div instead of on a page. This would be way smoother; your griff runs past a market stall on the map, and you can browse/buy right there! ... so, testing now...

Oh, and quick tasks page is broken due to the new gene changes. It tries to look up your griffs for some gene columns and types no longer in DB (like still using names of breeds, where they're numbers now). Will update it all tomorrow.

29th September

Yesterday, made the pop-up shops... works fine for me, but there's a problem when users have a screen too small to fit the div in. :/
Guess it could be resized using CSS but idk how to do that exactly, making the middle scrolling bit flexible while keeping the top/bottom panels the same size.
Boo, why do some users have tiny screens (smaller than 770 or 670 px)? The div is already small enough that you can only see two rows of items at once...

Updated the horn guide page with the new textures - the Opal material now has 8 opals, 4 light veined marbles and 4 black veined marbles.
(finally made custom thumbnail images for them all, too. Nicer to load and each texture looks different)
It bothers me that horns (and paint marks which use same textures) aren't affected by mutations. Albino creature with black horns/splatters? Noooo!!

But it would be utterly bonkers to make uh... 10? different versions of all these, uh... 48? textures. Fook that.
So let's say the Metallic and Opal materials aren't affected, visually, because the surface of the horns is covered in crystal or glittery ridges. The keratin inside may be mutated but we just don't see it outwardly.
That leaves 16 plain 'colour' textures to make versions of. ... ... Later. Can't be arsed with it right now.

... also, while updating gene lab, I wonder if I should just allow paint marks to have all 48 horn textures, instead of just white/black/16 metals.
There's already basically 'white' and 'black' included in the Plain material...
And when the mutation versions are uploaded, this'll mean I can get rid of the hex colour changing in the image script. Right now there's a big pile of "if paint 1 colour is white, and the mutation is Erythrism, set hex colour to (pale red)" and repeat for like 80 possibilities.
Later it could just be "determine the mutation, as a number from 1-10, and add that number to end of texture URL". So 131 becomes 131-8 or something.

Update: whoooo OK that ended up a long task. Saw a bunch more ways to simplify genes, and have redone most of the gene lab.
Generating previews now works again. It won't let you transform an existing griff though, as I haven't applied the column changes to the normal griff table.

30th September

Updated breeding and wild nest, and the gene lab seems to be fully working.
Now the 4 paint layers all have genes as complex as the horns! Mix and match the colour/shade/material, instead of the previous "copy either mother's or father's" thing.
Yeah, I don't expect anyone to be able to follow the system and purposely plan to breed a dream griff, hah. It's more like total random surprises at this point.
(still might create a scrying sort of feature, just for fun... there are like 627858932575+ possibilities for offspring, even before I've added any markings... players might like to see some results without having to breed a billion times lol)

Now need to tidy up the griff profiles' and the breeding page's dropdowns, to fetch and display genes in the new way.
Reply
3rd October

In last couple of days, finally got around to setting up the first workshop, and the crafting system. This is the 3rd one now, lol. But very satisfied with it, and hopefully the same backend can be used for every workshop (even if there may be some tweaks, like different messages and CSS for cooking vs smelting vs clothes-making).
Adding new recipes and required skills is pretty straightforward too - just add rows in the DB, no need to touch anything on the front end any more. Yay!

Guess finishing the mineral workshop will be 'easy'. Just need to draw/colour another hundred or so stones, that's a chore >.>
And then...
- can start thinking about further items, like bracelets or pendants, to be made with all these beads and cut gems.
- can set up a Mine test map, where griff runs around caves and you use AJAX to check certain spots and dig for gems.
- can also think about the Nest Charm items, that you place in nests and they may influence egg genes.
I've done a bit of research about enamelling, and have a good idea of how the charms will be crafted. There's just gonna be a loooot of them, lol... and I need to plan exactly which stones cause which effects.

Also came up with new list of 8 personality traits. Dunno when I'll get around to writing all the descriptions again.

5th October

Zzzzz. Those stones are an utter chore. Still slowly getting through them...
- Updated griff profiles to use the new gene system. So... now I can finally delete unused genes from DB?! Big Grin Must check if there are any other scripts still using them...
- Gah no, the breeding dropdowns were old. Redone.
- Group and tag searching was also old. Now they have the shiny new AJAX pagination.
- I thiiink horn searches are buggered up, whoops. Now the 3 numbers are together in 1 column, and searching for %2% seems to bring up any of them that contain 2. Specifying first and last ones seem to work, but idk really. Might have to write out a huge number of possible combos to search for... >.>

6th October

Endoooo. Ugh.
Managed to get a little bit of code done - restarting the garden entirely. Uses AJAX to fetch the info about what's growing in each plot, and will generate the appropriate options: plant a seed or sapling you have in inventory, add fertiliser, harvest something, sell the plant. You'll get money depending on how much it has grown so far?
Anyway, still haven't created many planty items for testing, nor added poo. Tomorrow's job, if I'm feeling well.
(which poo should be best? Griff, dragon or pegasus?)
- oh, before I forget. Some plots should have faster growth rates, due to better soil. Maybe you could cast a spell on a plot to increase its growth rate for a few days.
- also must not forget the Aviary and Pond plots (they have own list of things to raise).
- aaaand I'd like to offer users a choice of garden layouts. Maybe 10 different ones, just for variety (they'll be explorable so mustn't get boring to keep running round).
It would only be a matter of CSS to position the plot divs, and background graphics. Mountain valley, plains, tropical, desert, watery...

8th October

Endoooo. Still ugh.
Also had one hell of a headache putting the garden backend together. It's working now, but still... feels very shoddy.
Needs tidying up, with proper CSS and layout for the plant/feed/harvest/sell options, and distinct buttons.
(They were using same class but separate bits of JS, so when one was clicked, it repeated the AJAX call with the actions of the other one or two visible. >.< So silly of me)

Visually a total mess - no images or descriptions for any of the items yet, nor the projects, or any garden layouts. Dunno when I can be arsed with all that lol.

But the basic structure is satisfying. The projects are very flexible:
- one or two items can be used to start (like Pear Seeds or Pear Tree Sapling). The more 'advanced' item will start the project with 60% points already.
- unique to the Aviary, you'll be prompted to choose a shelter for the animals in there. Poultry need a coop, birds need birdhouse, bees need hive, hummingbirds or butterflies need a nectar feeder, etc. These have no effect on the project's workings, but they'll appear visually. So you can choose different styles.
- each project is in a category, like Plant, Carnivorous Plant, Poultry, Animal, Insect, Fish. They have their own lists of fertiliser/feed items, so you can't feed frogspawn to chickens or birdseed to axolotls, and poo is only for plants. It brings up the correct list of items you have.
- lists of harvesting rewards, and their quantities, are written out exactly, such as 5,5,5,5,5,5,6,6,7 and 1,1,2,2,2,2,3 - meaning you're very likely to get item 5, and probably 2 of them. On a super lucky day, you might get 3 of item 7! I can add any other item IDs in there.
So a Hummingbird project will usually give hummingbird-related things... but the nectar feeder might sometimes attract orioles, or other insects.
The basic Axolotl project will usually give normal axie embryos or adults, but once in a while you might pluck an albino/leu/other mutated one outta there.
Reply
this page is getting long...
Reply