Hello There, Guest! Register

Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
First thread
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


Messages In This Thread
First thread - by GwynMil - 10-16-2017, 11:34 PM
RE: First thread - by Riverspell - 10-17-2017, 03:02 AM
RE: First thread - by GwynMil - 10-18-2017, 01:10 AM
RE: First thread - by GwynMil - 10-19-2017, 04:23 PM
RE: First thread - by GwynMil - 10-19-2017, 05:54 PM
RE: First thread - by GwynMil - 10-19-2017, 08:06 PM
RE: First thread - by GwynMil - 10-22-2017, 12:46 PM
RE: First thread - by GwynMil - 10-23-2017, 03:13 PM
RE: First thread - by Riverspell - 10-24-2017, 07:32 PM
RE: First thread - by GwynMil - 10-24-2017, 08:30 PM
RE: First thread - by Riverspell - 10-25-2017, 05:16 PM
RE: First thread - by GwynMil - 10-25-2017, 05:50 PM
RE: First thread - by Riverspell - 10-25-2017, 06:04 PM
RE: First thread - by GwynMil - 10-26-2017, 04:26 PM
RE: First thread - by GwynMil - 10-31-2017, 09:11 PM
RE: First thread - by GwynMil - 11-03-2017, 10:37 PM
RE: First thread - by Riverspell - 11-04-2017, 01:02 AM
RE: First thread - by GwynMil - 11-04-2017, 11:19 PM
RE: First thread - by Riverspell - 11-05-2017, 02:06 AM
RE: First thread - by Riverspell - 11-05-2017, 02:13 AM
RE: First thread - by Riverspell - 11-05-2017, 02:25 AM
RE: First thread - by GwynMil - 11-05-2017, 01:39 PM
RE: First thread - by GwynMil - 11-05-2017, 04:25 PM
RE: First thread - by GwynMil - 11-13-2017, 02:29 PM
RE: First thread - by GwynMil - 11-13-2017, 02:50 PM
RE: First thread - by Riverspell - 11-15-2017, 12:23 AM
RE: First thread - by GwynMil - 11-15-2017, 04:16 PM
RE: First thread - by GwynMil - 11-16-2017, 05:23 PM
RE: First thread - by GwynMil - 11-20-2017, 06:51 PM
RE: First thread - by GwynMil - 11-22-2017, 01:49 AM
RE: First thread - by GwynMil - 11-28-2017, 10:14 PM
RE: First thread - by GwynMil - 12-01-2017, 09:19 PM
RE: First thread - by GwynMil - 12-02-2017, 10:11 PM
RE: First thread - by GwynMil - 12-03-2017, 02:06 AM
RE: First thread - by GwynMil - 12-04-2017, 12:53 AM
RE: First thread - by Riverspell - 12-04-2017, 05:00 AM
RE: First thread - by GwynMil - 12-04-2017, 03:49 PM
RE: First thread - by Riverspell - 12-06-2017, 03:03 AM
RE: First thread - by GwynMil - 12-06-2017, 11:31 PM
RE: First thread - by GwynMil - 12-12-2017, 05:37 PM
RE: First thread - by GwynMil - 12-17-2017, 05:01 PM
RE: First thread - by GwynMil - 12-24-2017, 06:27 PM
RE: First thread - by GwynMil - 01-09-2018, 05:19 PM
RE: First thread - by GwynMil - 01-15-2018, 06:30 PM
RE: First thread - by GwynMil - 01-22-2018, 08:19 PM
RE: First thread - by GwynMil - 01-28-2018, 05:32 PM
RE: First thread - by GwynMil - 02-12-2018, 03:55 AM
RE: First thread - by GwynMil - 02-17-2018, 02:11 AM
RE: First thread - by GwynMil - 02-22-2018, 11:45 PM
RE: First thread - by GwynMil - 02-28-2018, 03:19 PM
RE: First thread - by GwynMil - 03-01-2018, 04:04 PM
RE: First thread - by GwynMil - 03-04-2018, 04:14 PM
RE: First thread - by GwynMil - 03-07-2018, 04:53 PM
RE: First thread - by GwynMil - 03-11-2018, 05:36 PM
RE: First thread - by GwynMil - 03-18-2018, 05:11 PM
RE: First thread - by GwynMil - 03-24-2018, 04:37 PM
RE: First thread - by GwynMil - 03-25-2018, 12:19 AM
RE: First thread - by GwynMil - 04-09-2018, 02:54 PM
RE: First thread - by GwynMil - 04-17-2018, 10:31 PM
RE: First thread - by GwynMil - 04-17-2018, 10:31 PM
RE: First thread - by GwynMil - 04-17-2018, 10:31 PM
RE: First thread - by GwynMil - 04-22-2018, 02:19 PM
RE: First thread - by GwynMil - 05-03-2018, 07:09 PM
RE: First thread - by GwynMil - 05-06-2018, 01:50 AM
RE: First thread - by GwynMil - 05-12-2018, 12:30 AM
RE: First thread - by GwynMil - 05-17-2018, 03:08 PM
RE: First thread - by GwynMil - 05-20-2018, 02:24 PM
RE: First thread - by GwynMil - 05-21-2018, 07:16 PM
RE: First thread - by GwynMil - 05-22-2018, 07:07 PM
RE: First thread - by GwynMil - 05-26-2018, 04:38 PM
RE: First thread - by GwynMil - 05-28-2018, 06:59 PM
RE: First thread - by GwynMil - 05-30-2018, 04:27 PM
RE: First thread - by GwynMil - 06-03-2018, 11:27 PM
RE: First thread - by GwynMil - 06-10-2018, 07:51 PM
RE: First thread - by GwynMil - 06-13-2018, 11:57 PM
RE: First thread - by GwynMil - 06-16-2018, 03:45 PM
RE: First thread - by GwynMil - 06-17-2018, 10:51 PM
RE: First thread - by GwynMil - 06-18-2018, 02:06 PM
RE: First thread - by GwynMil - 06-19-2018, 02:35 PM
RE: First thread - by GwynMil - 06-23-2018, 04:14 PM
RE: First thread - by GwynMil - 06-23-2018, 04:14 PM
RE: First thread - by GwynMil - 06-24-2018, 05:51 PM
RE: First thread - by GwynMil - 06-25-2018, 03:26 PM
RE: First thread - by GwynMil - 06-28-2018, 04:58 PM
RE: First thread - by GwynMil - 06-30-2018, 07:37 PM
RE: First thread - by GwynMil - 07-02-2018, 05:17 PM
RE: First thread - by GwynMil - 07-06-2018, 02:07 AM
RE: First thread - by GwynMil - 07-08-2018, 05:27 PM
RE: First thread - by GwynMil - 07-11-2018, 12:47 AM
RE: First thread - by GwynMil - 07-14-2018, 08:07 PM
RE: First thread - by GwynMil - 07-15-2018, 04:18 PM
RE: Dev thread - by GwynMil - 07-20-2018, 01:54 AM
RE: First thread - by GwynMil - 07-24-2018, 06:09 PM
RE: First thread - by GwynMil - 07-29-2018, 11:30 PM
RE: First thread - by GwynMil - 07-31-2018, 06:32 PM
RE: First thread - by GwynMil - 08-02-2018, 05:31 PM
RE: First thread - by GwynMil - 08-08-2018, 02:35 PM
RE: First thread - by GwynMil - 08-12-2018, 06:05 PM
RE: First thread - by GwynMil - 08-14-2018, 02:31 PM
RE: First thread - by GwynMil - 08-17-2018, 06:09 PM
RE: First thread - by GwynMil - 08-20-2018, 04:47 PM
RE: First thread - by GwynMil - 08-22-2018, 03:03 PM
RE: First thread - by GwynMil - 08-26-2018, 08:14 PM
RE: First thread - by GwynMil - 09-08-2018, 12:57 AM
RE: First thread - by GwynMil - 09-10-2018, 04:48 PM
RE: First thread - by GwynMil - 09-15-2018, 04:44 PM
RE: First thread - by GwynMil - 09-23-2018, 07:20 PM
RE: First thread - by GwynMil - 09-27-2018, 11:05 PM
RE: First thread - by GwynMil - 10-03-2018, 03:21 PM
RE: First thread - by GwynMil - 10-11-2018, 05:06 PM
RE: First thread - by GwynMil - 10-11-2018, 05:06 PM
RE: First thread - by GwynMil - 10-16-2018, 08:11 PM
RE: First thread - by GwynMil - 10-19-2018, 05:03 PM
RE: First thread - by GwynMil - 10-23-2018, 04:08 PM
RE: First thread - by GwynMil - 10-28-2018, 04:41 PM
RE: First thread - by GwynMil - 10-31-2018, 07:33 PM
RE: First thread - by GwynMil - 11-06-2018, 11:48 PM
RE: First thread - by GwynMil - 11-13-2018, 07:53 PM
RE: First thread - by GwynMil - 11-18-2018, 04:54 PM
RE: First thread - by GwynMil - 11-23-2018, 03:35 PM
RE: First thread - by GwynMil - 11-27-2018, 08:51 PM
RE: First thread - by GwynMil - 12-01-2018, 10:54 PM
RE: First thread - by GwynMil - 12-13-2018, 04:33 PM