Hello There, Guest! Register

Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
First thread
#81
23 June

Grr. Still slightly annoyed about the lost linearts. Buuut I've been hurriedly scribbling a bunch of new creatures as a consolation, and some are very satisfying.
The concepts of 'peafowl' and 'butterfly' are merged (the one griff breed is a mix of both - Peacock Butterfly!) and all of its hybrids with other breeds are very pretty. Long flowing feathers, fancy horns etc.

Gonna have to seriously rethink the breed layout (like a table, what crosses with what to make what) so that fancy griff can somehow pass its pea-fly genes to the deer and dragon hybrids... maybe still have 3 'species' or races, in separate tables, but some genus are the same?? uhh

Also had some neat ideas for making coats much more interesting/varied - even before adding any markings on top!
This will require only a handful of new genes (yay, easy), zero changes to colours (thank fuck), and could even make markings undesirable on some griffs.

Basically, instead of the body part 'colour areas' being fixed... like, Additional Colour is usually just fading in from the top, over Base Colour... and Inner1/Inner2 wing parts are always either separate feather sections (coverts, flights) or fading smoothly into each other (if that griff only has one long set of feathers)...
Now there could be different shapes/markings, in the 'transitions' between these body part colours.
So the Additional might show up as dapples, or tigery stripes, or patches, instead of boringly just fading in.
Wings could similarly be patterned between the two feather colours.

[Image: addidemo_by_bronzehalo-dcf7o77.jpg]

.. aww hell yeah! Why didn't I ever think of this before?? It makes a lot of extra markings redundant.
Basic things like Roan, Points, Underbelly etc are no longer needed, if you can do it with the Base and Additional. Same with wing stripes, different gradients.

(But of course another layer or two of markings will be available later - for those who want super complex coats, or those whose griffs have subtle body colours and need more oomph on top)

I also wondered for a long time: how to achieve glowing markings?
It would of course have to be on the highest image layer, above the lineart even (but not wearables ofc).
Only the Element layer is up there... and it's usually empty, except a few magical breeds which have coloured orbs etc according to their element.
So - duh!! - why not use this for markings too?
No extra colour genes needed; there are already 8 normal elements, plus 1 super rare Universal element; that one can have rainbow colouring.
Simply add a couple of alleles for the marking shape, and off we go. Well, I have to draw the markings first, obv, but code-wise it'll be easy as pie. Smile
Reply
#82
24 June

Filling in some body parts, in flat colour areas. Here are a couple of breeds.
[Image: peablue_by_bronzehalo-dcfb5ff.jpg]

Slightly puzzled by how to colour the pegasus etc. They have an extra body part - mane, tail - that griffins don't have.
The obvious answer is to use the Additional colour for that.
But that would mean the Base body is always one flat colour... and simple body-markings like dapples, points, roan etc are common for equines. Those will not be showing up in extra marking layers later; they must come from Additional.
This also would be a problem for Qilins and other equines with scaly/feathered and non-scaly/feathered body areas, needing Additional colour.

Hmm. Beak/Leg colour could be used for mane? Hooves are covered by Horn texture.
Hippogriffs and hippalectryons, errr... DO have beaks or scaly legs, so... mane and tail would just have to match those bits?
But the B/L colours are limited compared to the huge array of normal body colours. What if someone wants a horsey with a green mane, to match body? There is no green option!

... maaaybe I could extend B/L so there are more colours available? I just don't really want ugly green and purple beaks showing up on griffins, that's why the palette is limited to gold/pink/blue/grey already. >.<
The new genes could be made equine-exclusive. Wild eggs only generate those genes if the breed is an equine breed. So you can seek them out or avoid them for your griffs.

Also just messed around with Javascript and made little breed and eye colour calculators. Will style and add them to game tomorrow.
[Image: lilcalc_by_bronzehalo-dcfcc39.png]
[Image: lilcalc2_by_bronzehalo-dcfcgxr.png]
Reply
#83
25 June

Oops, just realised that percentage was wrong. Hey, I made that calculator at 2am, things get sloppy. x)
Added the calculators. Need nice style and little images to represent breeds and eye colours, later.

Gah! Gathering page is mysteriously broken. Haven't touched it for 10 days, and I'm sure it was all working then.
I hate it when this happens lol. Time to comment out big chunks of code and find the problem...
Oookay, apparently splitting up sections of HTML/JS and inserting other bits gets messy with brackets ( and { not aligning properly. Fine, I wasn't planning to send thread edits by AJAX anyway. Let's do it by POST-ing, the old fashioned way. Mods and ordinary thread-creators can see and send different options.

Other thing left to do: fake pagination of threads. Gotta design divs that look the same as the current table cells.

26 June

It would be really nice if my computer stopped crashing and freezing every half hour or less. Well, this happens most evenings, but still... gah.
Also ARGH IT'S SO HOT. The UK is basically a giant frying pan lately. It's gonna continue all week? Noooo.

Anyway. Finally finished the forum (codewise, obviously the design is ugly lol).
- needed to use DATETIME and Y-m-d H:i:s to order thread dates properly. Also moved date under author's name; no need for separate column.
- due to oversight, admins/mods couldn't edit user posts due to different username. D'oh. Sorted.
- added another postbit style and symbol, to mark banned users.
- redid 'table' with divs (actually looks better now, with border style) and added pagination.
- mods can lock, sticky, move threads. Simple HTML is allowed in thread titles, btw.

Whew, all done! What should I move onto next? New crafting system, probably... (and ofc keep scribbling nextbreeds as fast as possible!)
Reply
#84
28 June

... having XX chromosomes absolutely sucks. Gah. (but at least I'm not American, feeling very relieved about that today. Sorry, sisters over there)

Trying to draw, still. And planning a different sort of battle system, for group battles.
Decided that the RPG standard "here is your party, now choose attacks" is a bit dull. Would like to create something more visual; a battlefield with spaces to move creatures around, and spells/moves having 'areas of effect' and such. Ideally there'd be walls and stuff that give cover, and flying/swimming creatures could move to certain points for better vantage/evasion or whatever.
So if you're "defending a fortress" you actually are in the fortress, sending your creatures running around the buildings and grounds and strategically fighting off the invaders as they move in.

Must think about it a lot. It's mostly a question of code planning; how would all the parts be visually arranged on the pages, in HTML/CSS/JS, and which actions (movements, calculating directions, checking range, carrying out moves) would be handled by JS vs PHP...
I know for sure that updated stats like HP, MP, EXP and latest positions must be recorded in DB, via AJAX. But the moves that lead up to those results could be done in JS or PHP. Hmm.

.. ookay, plugging in some of the new scribbles (the breeds aren't created yet, but the image bits are uploaded, so existing griffs can have their breed name changed, and images can be previewed). As expected - it depends on colours and marks really - some deer are OK, others are BEYOND ugly. Holy crap. The thin lines don't help.
Must keep rushing through more and more bases, and then will stop and do some mass previewin'.

29 June

Firstly, yay! Wrangled with the image script a bit, and redid the horn layers. Previously the 2 shapes were loaded on body, in default blue colour, and then textures were on layers above, and cut out in those shapes; often you'd still see the blue around the edges or underneath, if it was semi-transparent. Now only the shapes are loaded, and are 'changed into' (COMPOSITE_IN) the texture images further down the script. So no more ugly, unneeded blue areas. Some creatures look much tidier now (minoans mainly, and these deer).

Playing around with CSS and layout ideas (in JSFiddle; of course I won't inflict this mess on the site yet!).
Basically I've always liked medieval manuscripts - especially 'illuminated' ones with gold decorations - and have fallen in love with the idea of "a manuscript coming to life" as a site design. Never seen anyone make a game with this style before. So, lotsa borders and papery textures, and we can still have pretty painted background landscapes and realistic-ish creature art; plenty of manuscripts had awkward thick-lined art, but plenty also had lovely mini paintings.
Users could choose different themes to browse in, or to display on their user/griff profiles; flowery border vs starry border vs other patterns... eee!

Also, dunno why this didn't occur to me before: ought to handle the daily commands with AJAX.
- instant results and illustrations in a box
- could instantly update energy, health, trust bars too (if I can get these damn JSON arrays working)
- no risk of user refreshing page and the action being repeated
- user doesn't have to keep loading the perch page a heap of times. With hundreds of queries and stuff-to-load there, it's good to avoid that

Also! Been thinking about the personality traits. Maybe instead of single statements in categories, split it into 'the five big traits' and score each from 1 to 10.
Then NPCs etc would request griffs who score certain amounts in certain areas, and these could influence battle much more than just a few preset categories.
Higher conscentiousness means higher accuracy, lower agreeableness means more vicious in attacking, etc.
These scores would also be a hell of a lot easier to change, by training the young griff.

Issue 1: changing one griff to a deer (nonexistent breed) caused flock page to break. Need to remember that when testing...
Issue 2: added some word filters to forum and new griff names/bios. For the latter, you don't get a message about it, and JS will automatically update all instances of griff's name to the new one, even if it's filthy... because it's using what you typed in the box on the page, rather than a new name that AJAX returned. But really, the new name has been filtered. Reload the page and it'll be correct. So the humour doesn't last long x)
Issue 3: why is tag not updating, on perch page? Everything else works.
Also need to update the relationship info etc etc... zzz fine, let's do that now.
Reply
#85
30 June

It's STILL so hot here! Gah. But anyway...
Last night, fixed the tag* and relation stuff. Then my computer crashed and I cba to carry on. So, tonight, must ajaxify the rest.

* if griff starts with no tag, the tag does change to a new one, but it just doesn't update on page. If griff already has a tag and you choose a new one, page does update. I'm baffled why it's different.

- ended up redoing the companion and treasure sections. Now instead of going to inventory and giving things to griffs there, you can pick them from here. **
This will also mean that ANY item*** can be held by griffs, even if it does have a proper usage function. Yay, this makes more sense than current system. x)

** haven't actually added user's own items etc. Just set up companion table, will work on those tomorrow.
*** except special NPC quest items later, and other items not meant to be transferable between users. Trading griffs holding those items would count, so.

- should do the same with wearable options. Choose backgrounds and each body part's wearable from dropdown lists, instead of faffing around in inventory.

- should add a button to instantly summon griff home. They need to be at the port city in order to be available in arena. But... can breed from anywhere? Should that be changed too? Uhh. This location stuff is awkward.

- need to think about private stud options. You could enter either a single username, or preferably the ID number (via dropdown) of a breeding group you're a member of, and then all members of that group could access your stud. But I haven't set up those groups yet...

- also, must start new companion system soon! Will begin with simple chickens, of course. Smile They will be name-able, trade-able or release-able on their own pages. On griff pages, all you'll do is choose an available one from a list. Critters that are assigned a griff master will be 'busy' and apart from renaming, you can't do stuff with them until free again.

1st July

Found a funny oversight: keep refreshing the page (sending command) after Evening, and it still happens. Then there's no time of day, the servant is speechless, and you can keep going forever. Ah, POST-ing is such a fail sometimes. But it's fixed now, and can't happen again, because...
Updated the progress bars (which my browser couldn't style anyway) to divs - all 3 stats will have to be %, guess it's cleaner this way - and I've already got the JS functions to animate/update them after commands. SO. Time to scrap all the post stuff and send these by AJAX instead, yay.

There's gonna be a loooooong list of command stuff here. Basically the script checks by location, time, and action type. So "IF location is Mountains, time is Dawn, and action is Hunt"... then there'll be a list of possible scenarios. One is randomly chosen, and the griff's skills and personality are checked against it, to determine the outcome.
For example, they might find easy prey and bring it home, or a monster and fight it; a strong-brave griff defeats it, a weak-brave griff gets injured, a wussy griff runs away in fear and ends up very distressed.

Also hastily scribbling a few simple companion bases. Got their palettes ready (48 colours) and some test-critters in DB. Must set up the menagerie to display them... and then plug them into griff and user tables. Each griff can have one companion, a user can have 3 of their own as well. They can have up to 2 spells (that will become available to the griff/user in battle) and give a stat boost of several points. Later when MP stuff is added, critters can increase mages' total pools, or make them recover more MP daily.

Each breed needs a certain kind of environment (field, forest, pond, jungle, rocks, snow, desert etc) and users will have to build more spaces to hold more critters, just like users build more perch spaces for big creatures. Er, in the near future.

edit: WHOOO oh man this was a long, tiring evening. ._. Ended up doing a huge clean-up behind the scenes of manage page.

- Updated griff table. Now they are all the same 'type' (Aquila) but breednames are in new column. This is so that all breeds can share the same type's levelling formula, etc. Else I'd have to manually enter 100 sets of needed-EXP numbers, for every new breed. Naaah. Gonna be lazy and make them all follow same formula.
The 3 fail-breeds later will be in a second type, with lower max levels, higher EXP needed etc.
However, now I'll need to manually update EVERY script in the game that checks for 'type' and replace that with 'breed'. Whew. Do that tomorrow...

- Also created separate 'sex' and 'expression' columns. The latter is now used by the image scripts, and will be checked for skills later.
Basically in most breeds, the 2 sexes have fixed looks; female Rampant is winged and scaled, male is wingless and spiked. But some breeds can be freer; males or females can be winged or wingless, and that 'shape' can be passed down. So you could specifically breed a line of Minoans with wings, regardless of sex.
And in very rare cases, 'fixed' breeds can have exceptions; it's a 1 in 500 chance that you'll get a female Rampant with a male shape, or vice versa. She'll still function as a normal female, just with unusual appearance, and won't be able to fly etc.
This is now possible, yay. But again... a LOT of game scripts check only the old single column, and now I'll need to update them to look for the correct one. Like on the flock page, some Minoans are listed as the wrong sex, as it's still based on old value. >.<

- After lotsa fiddling, managed to get the AJAX commands basically working; JS is used to update the time of day, both visually and for the next time a command is chosen. However the time of day is shifted regardless, upon hearing something back, even if it's an error message or sth. Hnnng. If I could get flippin' arrays working, these could be separate..!
- Companion stuff is haaard. Ugh. SQL hell. Think it's working now though!
Reply
#86
2nd July

This heatwave will apparently continue for another 2 weeks. NOOO!
Let's do some easy stuff tonight. Still a lot of work, but easy.

- Track down every single line, in every script, where game fetches griffs by breed or sex, and update. No, I can't just do a flat find/replace because the context is important. Ahhh.

- Time to finish the female Cervana (pea-deer) and the Minavo/Rampavo (such awful names, must be changed later) bases seen above, and plug them in for coat testing. Oh and the Pegasus, and Thracian...

edit: OK, flock page and search, genelab, breeding, and nest are updated. Other places (trades etc) will still refer to incorrect sexes and breeds. Will get to them tomorrow.
Also just made a little Javascript tool to instantly preview paint markings, as the fancy Imagick tool takes a while to generate full coats.
You can choose the 4 layers, breed, stage and body shape. But marks are only in their default white versions... as colouring/texturing them would require Imagick (slow).
Still, nice for quickly browsing different combos.
URL: /design/preview

3rd July

Added random event system, on some pages. Only 10 kinds for now; can't really do much without a proper world of places/NPCs and more item variety.

Went on unexpected detour and remade the bank system (now called Vault). Works more smoothly - but not using AJAX because I'm lazy right now and don't need a headache from SQL + lots of numbers. One day. Argh. Anyway, now you can store the premium currency too.

Oh! It might be a good idea to add the 'give money to another user' function here, too. Maybe a limit of 10k per day, to anyone, to avoid abuse.

4th July

Zzz, still hot, and tired. Made another calculator, this time a bit more ambitious; 64 results. It's for coat colours! Minus the shade alleles, as that would get crazy.
Also drew a lil griff base for it, showing each colour. First time doing any shading for months... that's sad. Anyway, it's perfectly serviceable.
Page: /guide/calc
Reply
#87
5th July

Finally figured out the json problem; it was just that this webhost didn't have it enabled by default, doh. Had to go into PHP settings and find it.
So now I've spent the afternoon building very simple SRPG demo; an 8x8 grid of divs, each with co-ords, with three griffs dotted around. You can select a co-ord in a 5x5 grid around the griffin, to move to. This array of 25 co-ords is freshly generated, based on the selected griff's own co-ords.
Impassable co-ords are stored in an array, and when hovering over those 'tiles' you get red box and message, else green box. Other griffs totally cover their 'tiles' so you can't move on top of them.

Tomorrow, will need to...
- allow switching between the 3 griffs. They must be given starting co-ords, in their div data. When clicking on one of them (need griff class) get those data attributes and update griffx, griffy to them (the universal co-ords). The 5x5 movement grid should shift around that griff.
- must allow griffs to move. Just buttons like "move this griff 1 n/s/e/w" should do for now. Update their data and variables.
- must allow selection of griffs for that, and normal tiles. Highlight by overlaying a border or sth.

7th July

Got so much done yesterday, forgot to write an update...
Well, added random events to most pages. Updated all (I think!) the last remaining incorrect breed/sex checks.
Started building new-new-new battle system. So far, just the griff-selecting and opponent-searching stuff, right up until actually creating new battle in table, inserting those griffs in it, and automatically redirecting user to that battle's page... will now set that up tonight.

- Also removed all the old Menagerie stuff, now rebuilding from scratch.
Reply
#88
8th July

WHY IS IT STILL SO HOT. AUGH. END, HEATWAVE.

Anyway. Can't seem to focus on one thing, as usual. Drew a base for the first critter: male and female adults, and a neutral chick.
Started tinkering with the explorable maps too. Really, really eager to start rolling these out!
Many maps can be grouped together to form towns, dungeons, valleys etc, and they visually overlap at the sides/edges. So you reach the northwest corner of one - it's an archway leading to a courtyard or sth - and in that map, the same archway is at the southeast corner. I hope this will prevent players getting 'lost'.

- The JS has been cleaned up a lot; now all impassable co-ordinates are stored in one huge array, and every attempted movement, the griff's 'predicted co-ordinate' is generated and checked against that array, so it can be blocked or not.
- Next, I need to make smaller arrays for co-ordinates inside buildings. When a griff enters a doorway, the roof (image in overlaid div) should fade in opacity, OR switch to a partially-erased version of image. Not sure which will look best.
- Changed distances so griff moves up/down half as far as to the sides. Which means... isometric-angled movement! To match the maps.
- Added idle directions, so no longer will griffs be standing looking south.
- CSS classes are now used for switching the sprite directions, too. So all directions can be uploaded on a single GIF sprite sheet. Other map parts like NPC animations, fire, items etc could all be on the same sheet. Non-animated things should be separate.

9th July

Roofs are fading in and out, correct location names are being displayed...
[Image: roofstuff_by_bronzehalo-dcgqr0r.gif]

That was just a test. Page is /towntest
Actual maps should be a bit larger. I'm thinking walls should probably be included with roofs, so when inside a building, griff will see the whole floorspace and I won't have to worry about walls appearing before/behind the griff at the wrong times.
Reply
#89
10th July

Got some more breeds started: Valravn, Pea-unicorn, Griff-dragon, Bismuth-feathered pegasus.
The latter would be great for testing the idea of "gather materials and grow/craft/enchant a new creature"...

Also, note to self! Must add Pearly coat effect. It should go on a high image layer, and have some effect like Overlay or Add. Must look into Imagick options more.
This genetic effect is automatically added to any griff born with Obsidian base colour (GGRrBb) and will cover the whole body.
After that, it can be passed down to offspring, regardless of their colour.
(this effect is always needed on Obsidians, otherwise they'll look identical to Irons. Obs are meant to be "shiny, oily black" in comparison to "normal black/grey" Irons.)

Mainly working on new battle stuff. Arena is finished; choosing griffs and opponents, thoroughly checking their statuses at every turn, and starting battles. Unfinished battles time-out after 15 mins. Now battling is going well so far; nice smooth HP bars, a big array of updated stats sent back, etc. I'm learning! Woo!

13th July

Again, forgot to update for the last couple of days. x)
'Finished' the new battles - they need more moves to choose from, more interesting messages, add evasion and status effects, take energy afterwards...
But all working from start to finish.
Then yesterday I wrote a genetics guide page, explaining geno/phenotypes, dom/rec, homo/heterozygosity, etc. Needs prettying up, later.

What to tackle tonight? ... I'll continue with the group battles, their SRPG-like grid movement etc.
edit: holy shit this is a puzzle! D:
But slowly getting there. Now you can click on each griff to select them. Click a tile around them, if it's walkable it will become selected, and clicking Move button will move the griff. Their individual co-ords will be updated, and the array of walkable tiles will be generated around their new position.
Whew! We have the basic stage of a game.
Next, err... there need to be enemies dotted around.
They should all be in own functions, and whenever a griff does an action (move, whatever), script should look through each enemy's function and check if this griff is currently inside their range array. If so, that enemy will launch an attack at them.
If that griff is close to 4 enemies clustered together, they may get attacked 4 times. That ballsy griff better have good evasion!

edit: bah, got sidetracked. Reset all griffs to lvl1 and 0 EXP. Redid all the EXP-needed numbers for the 100 levels, and added EXP gains/level-ups to the arena.
That was a headache; kept making tiny mistakes in the syntax. It's 2am so yeah. >.<
Glad that's done though. Now I can easily reuse this chunk o' code for all other EXP-giving activities. Daily commands, trials, exploring...
Reply
#90
14 July

- Added a few more random events: different items, giving money, giving EXP/levels to griffs.
- Finished the 'donate money to others' feature in the Vault.

Had a new idea: an EXP pool. After you get a griff to lvl100, any time they gain further EXP, a few points will be added to the pool.
You could also get points by buying them, trading in items for them, winning them, doing other things.
These could then be spent on any <100 griff you like. So you don't have to personally train up every griffin.

Also been thinking more about the newer personality system; which traits/scales etc. Writing down now...
Oh, and possibly a new magic spell system. Using symbols/runes to compose spells out of different effects/modifiers. That's much more interesting than just reading a scroll and bam, griff knows X spell!
But this needs a lot more planning, both in terms of design and how it'd work (would spells be created and tracked in DB, or all of them pre-made and just hidden til user finds that combo...).
Reply