Posts: 172
Threads: 14
Joined: Oct 2017
10-11-2018, 05:06 PM
(This post was last modified: 10-14-2018, 04:09 PM by GwynMil.)
11th October
A couple of days of pure hell, thank you very much endo. >.>
Back to work. Had some small ideas.
- should allow viewing of other users' nests (already possible on individual nest pages, but I mean a list of all the user's nests) from a link on their profile. Or maybe load them ON the profile, using AJAX. Alternatively, forget nests and just list all of a user's eggs/chicks (many nests might only have a single one anyway).
- must change 'candling' to 'complete gene test' which will let you bring up a box with all of an egg/chick's genes. It would either be a pricey spell (hundreds of genes for up to 3 eggs!), or require an item as payment. Other users should be able to pay it for each other.
- still can't decide about the pop-up roost idea D: It would be smoother, mean no more clicking through roost pages. Got the design ready. But I dunno.
- err OH SHIT another totally new idea. Halp O_O
How about instead of heaps of nests for various eggs, users have a preset list of nests, and can choose which ones to place eggs in.
Like... one Waterfall nest, one Beach nest, one Rocky nest, etc. Each location has a certain effect, like a chance of changing genes, element or personality/physical traits.
New eggs would go in a General nest, with no special effects, and then you could move an egg or chick to another one, or between them, at any time.
This could... make charms easier to deal with? And add some strategy.
- one nest could have powerful magic which means charms are guaranteed to work within one day, and on ALL eggs/chicks, not just a single one. Very convenient for changing some genes. But this is damaging to egg/chick health, so you'd have to move them back out afterwards. Too much meddling could kill them.
- one nest lacks the powerful magic, so charms have normal success rate - but they do affect all eggs/chicks.
- one nest has nothing special about charms, but is a 'nice' nest that makes the eggs/chicks very healthy and they'll have 100% trust etc, right after leaving nest.
If an egg isn't developing very well (low health) or your chick is approaching juvenile stage and you wanna start training them perfectly, move them here.
- one nest doesn't allow charms, but makes eggs/chicks develop twice as fast. Move them here if you're impatient, or satisfied with their genes.
- one nest has very slow development, meaning more opportunities for charms to take effect? If you don't wanna risk using the super-magic nest to rush things.
- one nest has wacky magic which randomly changes some genes every day, for all eggs! If you don't have any charms, or just have some ugly eggs to mess with...
- one nest is 'Warrior Nest' which will steadily move the egg/chick personality and physicality traits towards the aggressive, wandering, powerful side.
- and the General nest is totally ordinary.
Hmm. Need to do some thinking about this.
13th October
Yup, ended up making this new nest system. You can create/edit/delete nests - 10 free ones, after that you can buy more elsewhere - and there's a separate tab which lists all babies so you can move them between nests. You can cast a 7-day enchantment on any nest, or turn it back to a Basic one for free. You'll always have a Starter Nest for babies that haven't been moved anywhere yet - like those just adopted or sent to you by others.
There probably should be a limit to how many babs can be in each nest (otherwise you could create a single Powerful Magic nest with a bunch of charms, and easily edit hundreds of babies over a week). Maybe 9.
Well, currently working on it.
- also had tiny idea to get rid of the annoying 'click a griff to give them EXP' mechanic/page, and use an AJAX button on their profiles instead.
There you'll get a little pop-up saying 'thanks for encouraging this griff today' and your reward, if you're logged in. Much nicer than having to load separate pages.
14th October
Redid the whole 'Encouragement' thing. Griffs will get 1-3 EXP. If you're logged in you'll either get some money, an item or 1-3 MP boost. You can encourage the same griff once per day, and 10 in total per day, and each griff can be encouraged 10 times. Guests can encourage too; IP address is stored as they won't have user IDs. I also added counts for griffs (all encs they've ever received) and for users (total received or given). That could be a cool ranking, and useful for checking for cheating.
- hm, this would be easy to modify into players greeting each others' profiles, like Howrse's Congratulations feature. Not sure what benefit could be provided though, apart from boasting rights. "So-and-so has been saluted 5782475 times by other Masters" ... yay?
Will later finish the 'Send Aid' option. You'll be able to choose a helpful item, like food/medicine/energy boost, to send to anyone's griff, for the same 5 MP cost as if it were your own. The same options will be added to roost pages, for your own griffs, but I haven't got round to planning yet.
Also last night, did some more pruning of old code no longer used. Did some reading about PHP, MVC, different ways of laying out pages without Smarty templates, etc.
Getting more hopeful about abandoning this current framework and making a custom one, with only the features I need.
... OK, what was today's plan. Redoing the whole Friend system to use AJAX. I haaate loading extra pages anywhere it can be avoided xD
Might also redo the News system - the posting of comments is screaming out for ajaxification, and some other stuff needs updating there anyway.
edit: oh shit yes, this is some really old messy stuff. Looks like a complete remake is needed. Here we go.
Posts: 172
Threads: 14
Joined: Oct 2017
10-16-2018, 08:11 PM
(This post was last modified: 10-18-2018, 04:43 PM by GwynMil.)
16th October
Yesterday, went through the whole To-do List topic and updated it.
It's terrifying how much stuff needs doing... but also amazing to realise how much has been done!
Groundwork laid for so many features, and other mechanics (news, messages, forums, crafting, breeding, explore, shops...) pretty much finished. Just needing more content and/or pretty graphics.
Today, redoing the whole friend (Alliance?) system. Copying Howrse slightly, again; you can add comments about friends, for example if they're a trading partner or roleplayer or whatever. But I think the layout here is nicer 
AJAX pagination will prob be needed eventually, if users get hundreds of friends, but it's too early to bother yet lol.
17th October
Working on the Garden more. Designed a nice layout for the plot info, options etc.
Later I'll probably need to use an image map for the whole garden map, as having hoverable isometric graphics in rectangular divs will get messy, as they overlap.
Also finally (!) decided to set up a DB table for all the breeds. Stores their IDs, names, base stats, list of edible items, locations found in wild, locations where they'll find ample/little/no food (to determine how much hunger will increase per day), whether or not they can fly/dive...
Prob should add lists of natural colours for body parts, and which mutations they can have in the wild.
Oh, and lists of moves/spells they can learn... maybe at which levels...
And their typical lifespans, and ages needed for each growth stage, and min/max number of eggs typically laid... all sorts of details x)
This will make it much easier to look up their info.
18th October
Was going to continue with the Garden, but Dinocanid wants some help developing a battle system more, so I'll switch to that. Been meaning to work on this for ages, and now the breed table is there with all the stats and learnable move lists... I really need to think up lotsa moves and their formulae >.<
Stuff to add:
- evasion chances. Compare agility?
- critical hit chances. Could depend on each move; some are weaker but higher crit chance, etc.
- custom messages about each move (normal, critical, evaded), so it's not just "X used Y move" over and over.
- wider selection of moves, spells with formulae.
- elemental effectiveness. Not yet sure which of the 8 elements should be strong/weak against each other, hmm. Universal element should be resistant to all others.
- check if griffs have companion critters, and add a bonus spell to griff's list. Comps can all 'come with' one spell, depending on their breed.
At the moment there's only one breed though >.> so uh, I'll have to make up a few more.
- generating monsters within griff's level range. Well, that's the feature the others would like. I think I'd rather not give monsters levels though. They'll already have individually shifted base stats, like griff breeds do. Hmm.
Arena sparring and wild battles should be totally different.
In the arena, no HP or energy is being used, and spells/moves are all cheaper and weaker. It's a training fight, where the griffs are just 'acting' and trying out moves. The bouts will all start with 1000 points each (Pretence points? Dignity points?) and eventually, after enough fake attacks, instructors and audience will say "OK Bob, if that stab was real you'd be dead now, so Opponent wins!". Thus griffs can get a bit tired and pleased/annoyed from sparring, but never hurt.
Wild battles are real and dangerous. Spells and moves use the full costs and stat numbers, and getting to 0 HP means death for the griff (in game lore, the mage will die and take their flock with them, but we can't have that).
It's messy, but I like the idea of not using griffs' own HP, instead making them share the life of the mage (like the lore says should happen).
So mage HP will need to be increased a lot, from the current 100 starting point.
- perhaps as a precaution, NPCs simply won't allow you to send griffs exploring past certain borders, if your HP isn't high enough. They don't want you falling to tougher monsters out there. Practice in safer areas with weaker monsters. Maybe some 'boss' NPCs will challenge you before opening gates, to see if you and your current griff are worthy.
The idea is that you, as a responsible and tough mage, should be able to help your griffs (whatever their stats, skills) through a lot of fights without ever falling to 0.
Monsters could be WAY stronger and with higher HP, but you have tactics and equipment!
- ooh, just remembered idea of making each monster an actual entity (with own row in 'roaming monsters' table) so they can have generated names, different coats etc.
If you're losing and run away from a fight, that monster will still be there, with less HP... so others can encounter them, see a "this monster is injured" note, and decide to finish them off. And you can mention certain monsters to other users, like warning that it's tough or knows a rare spell.
Posts: 172
Threads: 14
Joined: Oct 2017
10-19-2018, 05:03 PM
(This post was last modified: 10-23-2018, 01:12 AM by GwynMil.)
19th October
Blimey, that arena script was pretty old. Separated it into 'setting up battles' and 'actually battling' scripts, and cleaned up both.
Rearranged the battle stuff, now working on adding a big list of moves. Just physical for now, will move onto spells later.
Biggest thing so far: finally did the calculations/formulae for personality/physical traits and health affecting breed stats. That was SUCH a painful mind-bender, for me who's terrible at maths. D: So there's now a nice function that gets a griff ID and returns an array with their 6 individual stats, to use anywhere (battles, trials, NPCs...).
- speaking of Trials, eeek that stuff was done early in the year. Totally ancient, outdated now.
I must look at the whole system again, probably redo from scratch. Yay! ... but not right now lol.
- got a sudden temptation to clean up the Exchanges (get rid of the overly-complicated options like griff-for-item, and gifts being a separate thing).
Griffs can now be put up for sale for tokens, nothing else. And you should be able to propose a swap offer, if another Master is open to swaps.
Items can be put up for sale, or traded for qty of another item.
Hmm... maybe offers can be laid out so you don't need to view a separate page to accept an offer. List them in a table, with "Buy/Trade" button, and use AJAX to accept right there. Yeah!
20th October
Ended up veering wildly off course, and basically remaking 90% of the trade system. >.>
Worth it though. Totally AJAX-based, bringing up lists of offer types when/if you click those tabs, instead of loading them all when the page is visited.
Searching could be on the same page, too... but I'm not sure if multiple sets of pagination buttons would work on one page. :/ So for that reason, I'll keep it separate.
21st October
Blah. Feeling really ill today.
Worked a bit more on the trade backend, haven't 'hooked it up' to the page yet (the most annoying part - so many button and div names, ids, classes, variables sent either way)...
And started redoing Account page(s). Lots of old code there.
First, adding trade/message/battle-offer user preferences, to update with AJAX. Might put the email, password, profile editing stuff all on the same page too. Later though. *goes to sleep*
22nd October
The account preference updating is done. It should load the page with the current selected options highlighted.
- I'm sure I had a list of timezones nicely written out, too, and was gonna add it... but can't find it in my files, hmm.
Felt arty and lazy so started drawing another breed, the Brythonic dragon. Basically the Welsh one. Also got all the layers for Solvine? (sun deer) and Pegavo? (pea-peg) done. Need to save into folders and upload them all.
Posts: 172
Threads: 14
Joined: Oct 2017
10-23-2018, 04:08 PM
(This post was last modified: 10-27-2018, 06:18 PM by GwynMil.)
23rd October
Enjoying colouring bits of Brythonic dragons, and wondering what their backstory/abilities should be. Early British history woo!
King Arthur can probably be squeezed in there too - it wouldn't even be inaccurate. This shape of dragon was likely used in banners and such, around his time.
I also had an exciting idea about the breeding system: how to reduce 'waste' by people blindly breeding and getting hideous results. With the complexity of coats here, there'll be a LOT of those. So many genes, breeding is almost random - impossible to predict or plan much.
Basically add another option, alongside the 'Blind Breeding' button. This would be called Wise Breeding.
It's like scrying - a bunch of mages and astrologers will inspect the parents and skies, and generate one potential offspring.
You could choose "That looks good!" and go ahead and receive it as an egg. Or if you're not keen, click "Look again..." and they'll generate another possibility.
So you could keep browsing and re-rolling, for maybe 2 MP each time? until you finally decide to breed them and get that nice-looking baby. No unwanted uglies, total control. If a baby is not super but 'decent enough' then that's what incubation is for - a chance to change a few genes.
Finally, we can actually do careful 'selective breeding' again! And make flock spaces more limited and valuable - quality over quantity.
It should only take a handful of breedings, at most, to get all the things you want from certain parents (maybe a range of nice coats keep coming up, so you grab them too...) and then that cross is done, you can move on to the next desired feature/pairing, with zero waste.
It would use AJAX of course, for smooth pop-up with results, and the latest temporary genes could be stored in the same table the gene lab uses (there's one row for every user).
... yeeeah, I like this idea. Might start it tonight. As if there aren't already a hundred things to finish off xD ahhh so much work.
24th October
Added the Brythonic breed. Woo. Trying to find the motivation to save another 100... no, 200 image bits, for Solvines and Pegavos. It's a very dull task.
... OK nope, detour, started building the Pack system instead. Why do I have such a short attention span?!
Basically, a typical griff can pick up 4 items at a time, when exploring/winning battles/doing various other tasks.
At a workshop somewhere, you can fit custom Packs (like harnesses? backpacks?) for individual griffs, letting them carry 8, 12, 16 or 20 items at a time.
Perhaps Packs will degrade (they'd probably get worn out, over 7-30 days depending on materials) so you'll have to keep fitting new ones.
There'll be cheap Packs that last 7 days and add a few slots, or awesome amazing ones with 20 slots that last a month.
Will need to think of the recipes for these. Not too keen on using leather etc, though it'd certainly be available from monsters/prey...
You can manage a griff's Pack from their roost page. Discard items, or teleport them home one by one (a few MP; if griff is in a location close to home, no charge).
- set up pack DB table, added columns in griff table.
- made AJAX function to let griff pick up an item, if they have space.
- added counts, pack info, item list to roost page.
- added JS/AJAX for taking and dropping items there. Whew, rather complex pile of MP and item ID checking... works smoothly though.
25th October
Trying to clean up the last bits of garden function-ing. Nice instant updating of plot names, points, illustrations etc.
It's quite a mess though, lots of options, AJAX going all over the place. D:
... OK, done. Don't think any more code is needed now. Yaaaay! Finished a feature, for once.
It's just a matter of adding graphics, actual descriptions instead of gibberish, etc. I'll think about the different layouts, and adding visual decorations etc, later.
27th October
Yesterday (forgot to write here...) designed a layout for the breed info pages. It was sorely needed. Now just need to come up with lots more writing and illustrations.
Also learned how to scale-up pixelated images with CSS. Lately I've been leaning towards "use pixel style for game" position.
The pros:
- tiny file size means faster to load, and cheaper (the cost of server/bandwidth is my biggest worry D: )
- using GIFs means lots of animation is possible! Items, wearables, NPC portraits, even div borders/dialogue boxes, all sorts of stuff.
- easier to edit, and for other artists to edit, compared to paintings where their style/brushes may not match mine.
- some parts of the game already rely on pixel GIFs (griff sprites, battlefields, explore maps...) so they won't stick out any more.
- adds to the 'retro RPG' look. Some users may love the style, others may not :/ but I do think it can be made very stylish. Must try hard.
Griff images (and all their wearables etc) can be reduced to 400 x 250px, and upscaled 2x for profiles. Sprites can be 200 x 125.
Not sure about item and portrait sizes, and overall site style/theme yet.
Note to self: learn more about CSS sprite sheets and try to cram ALL small game icons/button images/etc into a sheet or few. Ultimate efficiency!
Tonight, have just got 'scrying' working! Woo. It's very nice generating theoretical offspring. Most are ugly but there are a few gems.
- next, to actually create the chosen ones...
- and should set up a separate page where you can search/input any two griffs* and see possibilities there. So what if they're not yours, or are the same sex? Magic is magic.
Posts: 172
Threads: 14
Joined: Oct 2017
10-28-2018, 04:41 PM
(This post was last modified: 10-31-2018, 01:23 AM by GwynMil.)
28th October
Had some small ideas:
- on flock/group/tag/overall griff searches, add a row of icons (25x25px, can fit 7) under the name. Up for stud/trade/sparring, in battle/on battlefield, warning of low health/energy/trust, hunger...
- status effects could persist after battle; being poisoned, for example, makes a griff very unhappy and lose 30% or more health per day. You'd need to find/brew an antidote potion.
- think about how to 'delete' dead/released creatures as much as possible. Maybe split the data more, so instead of all genes and personality and everything being in one mahoosive table now, have them separately.
When a creature is 'gone' only delete their rows in all those 'detail' tables, as their genes etc will never need looking up again. Just keep their record in the 'main' table, with the few little bits of info (name, breed, sex, birthday, mother, father, last Master, last age, status - what happened to them) so profiles can still look them up and say "oh Bob died" and stop there. If the status column is 1 (normal) then carry on and look in the detail tables.
Hmm, let's see...
- status 0 = egg, hasn't joined flock yet. It will have an entry in the genes table. If/when leaving nest and being moved to a flock, it'll get rows in other tables.
(useful to save space in case an egg dies during incubation - they do have health)
- status 1 = alive, normal.
- status 3 = died for whatever reason.
- status 4 = was released, given to NPC in an event, or sth.
New table structure:
- main = contains ALL creatures that ever existed, and their parents' IDs (so family trees will still work), never delete anything from this.
- heritable = genes, inbred %, personality traits. Everything the breeding and incubation scripts need.
- non heritable = griff's location, level, EXP, energy, hunger, if they have a Pack or other boost effects equipped, skills, biography, battle wins/losses, etc.
Wild-generated adult griffs can have entries in main and heritable tables, and only get added to non-h when they get caught (many players may fight them but not be able to catch them - they won't be killed when defeated).
They may start with some skills already? You might wanna catch a wild Pandion that's already good at flight and hunting, instead of training one up. Each breed will have min/max range to pick from, for each skill.
Yeah. Won't make these changes just yet, it'll be huge splitting all that data up... eek, might need to truncate/clear all griffs and start again! 
Let me finish the new trade and incubation systems first. Maybe add the skills too, and of course get battles all updated...
- just wondered about how wild griffs can be caught. Maybe a bit like Pokemon; there's a move or spell your griff can use while fighting them, called "Make Peace" or "Connect Mind" or something. If the roll is lucky, they'll stop fighting and calm down, magically understand your words, and join your flock.
Some breeds will be very receptive, others extremely hostile with minimal chance. Be careful not to get your griffin killed, repeatedly wasting turns negotiating!
Oh, and it could be influenced by your griff maybe? If they have a "charming" personality, or a high "negotiation" skill, it makes them better at catching wild ones?
It should be quite easy to code in the battle move functions... gotta finish all these normal moves first!
29th October
Scrying and creation is finished! It costs 3 MP per preview. Of course everything needs nicer design, CSS styling, but sod doing that yet...
Now uh, the new incubation page's JS has mysteriously broken, which is a bit shit, so guess I better hurry and finish that whole feature. >.>
Also cleaned up a few pages and classes, getting rid of old unused code. Did some more PHP reading, I understand more about OOP now. Still not quite ready to remake/remove the core framework, but I'll keep tinkering and inching further in x)
It's getting concerning, the huge number of 'AJAX scripts' that are outside the framework/templating engine. They're like a parallel game at this point, handling at least 60% of the gameplay, with their own plain-SQL functions etc.
It would be much neater to use the same classes everywhere... but first, I must learn exactly how the core and template stuff is linked.
10pm update: finished drawing a sheet of 20 pixel icons and have added them on flock page. Only 6 slots are being used right now; I can't think of any conditions left to cover, but am sure more stuff will fill the 7th slot later. Next, need to add them on searched griffs - the searches use those separate AJAX scripts mentioned above, so I have to recode all the griff checks in their different 'SQL style'. Sigh.
30th October
Finished the new Friends system completely. Lots of lovely AJAX to send/accept/delete requests, auto-refresh friend/request lists and whatnot. Yay!
For some reason my wild popup battles have stopped working, must fix that. And then start testing all these new moves/spells in the arena script.
Oh, no, suddenly they ARE working again? ... but at the end "Couldn't remove your griffin from fight". It did manage to end the fight though.
Fixed last few outdated arena queries and checks, and battle-starting works again. Now to carry on with the backend!
... whooo yeah this is complex.
... ooookay! All working. Much better than before. All re-structured neatly, includes critical hits/evasion, status effects kicking in at end of turns, and very flexible move formulae. I'll add more move options tomorrow, and think of the formulae.
Also: find out why the flock page pagination for Ungrouped griffs is suddenly returning 'no griffs found' after page 1. Sigh. Some wrong JS variable being sent...
Posts: 172
Threads: 14
Joined: Oct 2017
10-31-2018, 07:33 PM
(This post was last modified: 11-06-2018, 01:44 AM by GwynMil.)
31st October
Drew some nice pixel buttons for battle moves... and learned some fancy new CSS to scale them up from tiny sheet! This will come in extremely useful for other stuff everywhere.
Gold border means physical, silver border means magic is involved.
Magenta colour is for non-elemental offensive things, green is for defensive/neutral things.
Then there are 8 colours for the elements (I got carried away... pixel gradients are just too pretty not to play with!)
Fire is orange, Water is blue, Ice is silver, Wind is teal, Electric is yellow, Earth is brown, Light is pink, Darkness is purple.
Added more status effects to battles, and a bunch more physical moves.
1st November
Started with a nice easy task: an Overview page for your flock. A big sort-able table that lists all creatures: name, sex, breed, health, energy, trust, and a few icons about other things. Some players might prefer this to using the main flock search, with all its griff sprites and having to flick through pages.
Then worked on the new nests a bit... ... buuut somehow have ended up drawing peregrine griffs?? Just can't resist!
To make them more distinct from the Aquila/Pandion etc, they have 4 bird legs. Cat legs wouldn't help them to catch or grab onto things, after all.
They'll be a nice addition to castles and ruins and such.
Also re-sketched the Hippalectryons from scratch. Much nicer pose and design than the earlier version.
2nd November
Cleaning up the Guide pages. It's really just one page with dozens of sub-pages branching off it - and sometimes pages branching off them - all in one file.
Much nicer structure now, with every sub-page's HTML/PHP off in a separate file, to be included.
There's a separate folder just for holding all these info pages, and it includes the breed pages. They all have own HTML layouts, and the CSS could be customised for each one too, if I wanted to style any differently. Maybe more interesting than using the same template over and over.
- note to self: when world map is done, with heaps of little provinces etc, try making big CSS/JS map on each breed's page, with the 'wild inhabited' divs appearing, and when you hover over them it shows you their name etc. That would be cooler than manually-made map images... and could be automated using array of locations in the breed's DB entry. Opinici are found in places 6,18,22,24... so only the little divs in the shape of those provinces would be generated.
(same graphics/code could be used for player's own travel log, highlighting areas they've been and leaving rest of world map dark and empty)
Really need to write more guide contents... breeding, incubation, arena, exploring, uh... but first need to actually finish more features lol.
4th November
Who are all these bloody idiots setting off fireworks, all day and night, for the last week? Do they not know the bloody date? FFS
Anyway, yesterday, did 2 more sets of breed writing, about Pandion griffs and Brythonic draggies. Got King Arthur and Merlin both shoehorned in, woo!
Tonight, am making a wild monster creating/editing/test-fighting page.
They're becoming extremely complex, all having own descriptions when appearing/fleeing/winning/losing etc, and 6 different movesets to choose from, depending on their current status (like being poisoned vs frenzied vs terrified vs dizzy), and 4 sets of droppable items (common, rare, ultra-rare, seasonal)...
5th November
Monster breed editing and test-battling all good. Now time to switch to using individual monsters.
First setting up a list of all battle moves for reference. /guide/moves
... and getting helplessly bogged down in writing funny descriptions and drawing sprites for them all...
Note to self: should make use of all the options. What moves can be physical and elemental, involving no magic? ... dragon breaths maybe?
Posts: 172
Threads: 14
Joined: Oct 2017
11-06-2018, 11:48 PM
(This post was last modified: 11-11-2018, 09:19 PM by GwynMil.)
6th November
Hoooly shit that was a slog. But finally got all the new moves working, in arena. *faints* Sooo many descriptions, 15 status effects, possible results...
Only physical moves though! Still haven't thought of new spells yet. That'll be a special kind of hell...
7th November
Now added some test spells. A couple of elements, fast/slow, poison, life drain, cure, healing, provocation, terror, disorientate...
Just need...
- proper damage/power formulae for all moves. 60 in all (so far), eek.
- proper names and descriptions for the spells.
- add an MP-check loop when griff or enemy choose a random move from the list they know. And also check the spell is needed (no point in them trying to heal if they're not wounded). If not, pick another... until conditions are met.
- while doing that, could give opponents some simple AI so they choose effective element spells against you.
Also thinking of shakin' it up by presenting a random bunch of moves to pick from, every round. Like shuffling a deck of cards and giving you a fresh handful.
In a real fight, there'd be different positions and opportunities all the time. And spamming your most powerful attacks over and over is dull!
So, hm... you'll be offered 2 of each kind (phys/mag, offensive/defensive). Must think about it.
9th November
endooo why
Um, had some ideas to make the magic system more user-friendly.
- let players use MP to charge up disposable 'spell stones' which actually cast spells, like teleporting griffs/items around, making griffs immortal, etc.
So you can find these stone items while exploring, or craft and trade them with other players, or hoard loads of them, to use your favourite spells whenever. You don't need to have MP available at all times to cast spells - instead you just need one of the stones in inventory.
This will make griff death much easier to handle, for one example. Now there'll be a single item called Rescue Stone or sth. If you have one in inventory when any griff reaches 0 HP or health, they'll be automatically teleported home to the infirmary. If you don't have one, they die. At no point does your MP have to be checked any more.
You will still get 50 free MP per day, to either make stones with, or let your griffs use for their own spells. The upper limit of 50 is just for newbies; you'll raise the cap later. Some amazing stones (like making griffs immortal) will cost like 200 MP at once - they need a powerful charge! - so you'll have to save up and decide what to spend this currency on.
Must update the lore: "when you became a Creature Master, you gained immense magic, but lost the ability to use it in any way. You have to cast spells via your host-creatures, or offer NPCs your MP so they can charge spell stones for you."
Also, painted 2 new backgrounds - day and night. Still rough, but nicer than the earlier ones.
Have half-designed an overall layout, with nice gold panels and borders. Gonna be a while til it's ready. Must think of button styles, font colours etc.
10th November
Been discussing hosting with someone on DA. Before the scary task of moving entire DB/framework over there, I think I should make a coat generator demo first.
It'll be good to make a couple of 'normal' PHP scripts/pages without this framework.
Thankfully it's possible to get around the templating engine - got a basic page set up - and I should be able to get Imagick generating things based on URL params, rather than having it look up genes from DB (this will be a public demo). Hmm, gonna have to use the same colour table though, as have no more DB slots.
11th November
Woo! That was thoroughly successful. Updates image on demand, without even using AJAX.
Added Random and Natural options for most fields, for those who'd like to avoid hideous rainbows and stick to browns/golds/reds/greys.
That might be good to add on the game too. Have a single 'exotic' gene that allows an egg to develop the full range of colours. If the gene is not present, colour genes will be changed during creation, so green turns to gold, purple turns to red, blue turns brown or black, etc. Like natural-ising them. You'd have to introduce more colours during incubation.
Each parent could have the gene or not, so easy to plan around. Both parents have it = guaranteed. Neither have it = nope. One has it = half chance.
It could be given or removed from an adult griff using a magic item, without affecting their current coat. It only affects new eggs.
Posts: 172
Threads: 14
Joined: Oct 2017
11-13-2018, 07:53 PM
(This post was last modified: 11-17-2018, 07:48 PM by GwynMil.)
13th November
Can't remember what I did yesterday. Except drawing lineart for a commission on DA.
Tonight, erm. Poking around all the framework's classes and REALLY trying to figure out exactly how the bits fit together, pages go from request -> final rendering. Need to draw a diagram, haha.
If I can't manage to make some files 'exempt' from being attemptedly rendered as pages (by having an array of valid page names to check in?) then... hm. Hmmm.
Also updating wild battles against monsters, to use all their shiny new horribly-complex attributes. Aah.
14th November
Aaaaaaaahhhhhh that was a headache. Extremely finicky, lots of tiny issues to identify and fix. It turns out that 'porting' arena script wasn't so straightforward - the two sides look up stats from very different places now. But the monster battles seem to be working! Whew.
Any number of users/griffs can fight the same individual monster at once! You can't see their messages etc, but you might notice monster's HP or status changing between your moves. If someone else just got the kill, your next move won't go ahead; the battle ends and you get some EXP and rewards. This will be nice for bosses.
But, hmm... I must prevent this being abused. Lots of griffs could be 'parked' in battles, ignored for a while, then user can come back to them, choose a move and get the 'you joined in' rewards. Perhaps battles should automatically end after X minutes, like in the arena.
15th November
Working on new nests more. Added AJAX pagination and moving babies between nests. (could add search options too, cba now)
Slight change planned: instead of having to move juveniles to main flock, they should move there automatically upon reaching stage 2. This will simplify things a lot! So users don't really have a 'starter nest', it just counts all griffs under stage 2 and with nest = 0.
16th November
Helping another dev with something. Needed to look at my critter system again (Menagerie) and code some features to share with the other dev.
Decided to scrap the whole Habitat thing... it was needlessly complex. Just have overall number of spaces, and list all critters on one page (with AJAX pagination, and search, obv!).
Also the genes were outdated. Instead of 7 sets of colour/shade (for fixed body parts) I should imitate the griffs and have 4. One is the solid base colour, and the next 3 all come in shapes/markings. That should be plenty enough variety!
So, things to do...
- index page that lists all of user's critters (done, needs pagination/search)
- profile pages for individual critters (done, needs prettying)
- AJAX form to create new critters, for testing
- profile options for renaming, releasing, putting up for sale, assigning critter to a griff
- page that lists critters for sale and lets you buy
- maybe? teaching critters spells, using scrolls. The same scrolls that can be used to teach griffs spells. The idea is that you can attach critters with different spells to what the griff knows. Critters don't have elements, so can learn any spell (or be bred to know a spell automatically); you can choose ones that aesthetically match the griff.
17th November
Done all the 'backend' AJAX for critter stuff, haven't added the JS on pages yet.
Dinocanid just asked about forum scripts. I went to tidy/update them and... holy shiiiit there's actually a lot of mess and outdated stuff here. D:
So um. Hurriedly rewriting most of it. Oh well, it needed doing, and I kept putting it off til now...
note to self: add forum search! And stop bloody forgetting SIGNATURES! hnng
Posts: 172
Threads: 14
Joined: Oct 2017
11-18-2018, 04:54 PM
(This post was last modified: 11-20-2018, 12:55 AM by GwynMil.)
18th November
Last night was one heck of a code marathon! Now the last few things to do...
- thread list, replies pagination (done)
- limit reports to 1 per thread or post, to stop report spam (done)
- deleting posts, threads (nah)
- button to instantly ban a naughty user from forums, if mod needs to act fast (nah)
- search (done)
- automatically delete non-sticky threads after X days since last reply. This could go anywhere really, it's the same as with old messages
- SIGNATURES argh. Add options in user account, to see sigs or not, and write own sig. (done)
Gah, difficult jQuery/AJAX stuff. Managed to figure out 'event delegation' so chunks of JS don't have to be repeated when new content is loaded. It seems data attributes still work, even though it's now a parent element being clicked. Whew.
Deleting posts... was working. Suddenly it doesn't any more. o.O
Can't get silencing users to begin to work at all.
Mmmmaybe I shouldn't try to have these silence/delete buttons on posts at all? All these buttons are getting crowded.
Have a separate area where admins can load certain threads/posts and edit/delete/do stuff there. Reported threads/posts should be listed there too.
19th November
Bleh. Looks like I do need to make that Mod Area. Really don't wanna bother right now, but.
- made table for holding game reports of all kinds, and page that displays them.
- must change forum and message report functions to generate reports here, instead of as topics in mod forum.
- setting up mod AJAX script to fetch details of any user/griff/thread etc and send edits... ... yeah let's leave this for later.
So uh, my current to-do list is getting crowded (as ever!)
- finish forum for Dinocanid to borrow
- keep adding more mod options, including forum stuff
- finish critter system for Ittermat to borrow
- add critter spells to arena and wild battle systems, for Ittermat
Posts: 172
Threads: 14
Joined: Oct 2017
11-23-2018, 03:35 PM
(This post was last modified: 11-26-2018, 11:25 PM by GwynMil.)
23rd November
Ugh, illness.
Been fiddling with the layout slightly - still leaning towards pixel art style for whole game. I'll miss painting... but hopefully this style can be good too, just different. Looking forward to having animations everywhere. Gleaming gemstones, fluttering animals, maybe have blinking eyes and elemental effects overlaid onto griffs...
I was pleasantly surprised to visit the Menagerie after updating image script, and all 25 or so of my critters loaded! Wow. Either a fluke, or because I simplified their images to only use 4 layers. Dunno. But that is a LOT compared to 6 griff sprites on a page, maximum. Perhaps griffs will load better when their image sizes are halved...
All the variety, eee! And that's with fixed body parts, no marking/shape variations. And just one breed of critter.
Some are related to each other; you can see the resemblances in their family trees.
26th November
Where on earth did those 3 days just go?! Anyway, been melting my brain in the toaster of PHP reading. More MVC, PDO stuff.
Just managed a tiny breakthrough! Making a simplified 'copy' of part of the framework, in AJAX folders, that fetches the DB and allows statements in the same style. It doesn't include the registry, paths, template rendering or any of that stuff. Just the nice juicy DB part.
So no more shitty unprepared Mysqli, whew!  I have a lot of AJAX scripts to update...
Still can't use the same classes as the 'main' site. For now I can copy some of them here, just change the DB to FeatherDB and everything else in them can be identical.
I'd still like to somehow get user login status, sessions, that sorta stuff... most things from the original registry, except the paths, lang vars and template bits. Hmm.
|