Mythruna

Development => Blog => Topic started by: pspeed on November 04, 2013, 12:52:14 AM



Title: Peeling back the onion...
Post by: pspeed on November 04, 2013, 12:52:14 AM
In the interesting of trying to post one update a week I thought I would describe some of my latest development activity.

I got back to inventory management last week and had to do some more design work with respect to object definitions and so on.  I wanted to make sure I could handle things that will come up later so as to avoid some future hackery.  As soon as you start peeling back these layers and biting into actual meat, things have a way of snowballing a bit.

In order for objects to be sized and positioned properly in their containers (like the backpack) they needed to exist again... thus I started porting over the old object and model loading system from the old engine.  To this I started to add the size information necessary to scale the objects properly and so on.

I'd been doing my best to push the scripted action stuff until later because the old one was built on top of a system that was built on top of another system... in a case where the bottom layer system later wasn't even used anymore, really.  So I wanted some time to really think about the new implementation and at the same time deal with some things that made me uncomfortable.

However, when I started actually getting to the "moving things around in the inventory" part, it became pretty clear that this is a job for object actions.  Since the container itself is an object, it can have (presuming a certain amount of flexibility) actions assigned to it for manipulating the objects in it.  This makes sense for a few reasons.  Namely, those client->server paths will already exist so that's an easy win... but more importantly, it's quite common for a container to want to be notified about the stuff entering, exiting, and moving inside of it.  If these actions are already runtime-attached to the container then that's pretty straight forward.

So now we're deep into redesigning one of the more core features of the engine... and so far it kind of feels good.

Peeling back the onion a little further, the new design also helped inform the approach to how the player will interact with the objects they are holding in their hands.  This was kind of stubbed in for the "build wand" that is in the donator-only test releases (and videos) so I'm slowly migrating this over to the "new way".  It's a little exciting because I think I've managed to solve a couple nagging problems with all of my previous designs.  It's still early, I could end up hating it again in a week. ;)

Ultimately, this cuts across the blueprint editor and the dialog stuff, too.  A bunch of things will be cleaner once ported.

Anyway, the nice thing is that when the inventory stuff is working that most (all?) of the object action framework, etc. will be fully implemented with a (hopefully) nice new retrospectively-considerate design.  Some other things might get sucked over as well.

I'm keeping my fingers crossed that I don't have any more design surprises.



Title: Re: Peeling back the onion...
Post by: Michael on November 04, 2013, 05:58:10 AM
Paul, thank you for the weekly updates!

I have to say, the updates are lovely and it makes it feel more lively when there is a pause of people posting other content, makes the forum seem dead. These updates keep the forum, and the thought of the game, alive. Thank you for that.

I would also like to say that these kind of give me inspiration, don't ask me how because I'm not 100% sure. ;)


Title: Re: Peeling back the onion...
Post by: ebag51 on November 04, 2013, 08:34:43 PM
yay inventory progress  ;D

also i agree that the forum seems kinda dead every other day  :)


Title: Re: Peeling back the onion...
Post by: Moonkey on November 04, 2013, 08:52:45 PM
Not much dead. I always linger it at least every week.


Title: Re: Peeling back the onion...
Post by: Rex on November 05, 2013, 08:10:33 AM
Dead? Nah, I think most people just don't post so much, like me. I only post rarely, but I search news on the forum almost everyday.

I like the way Paul works on the game's features, he gets very deep in every particular, keep up the good work!
And thanks for giving us these updates, it's really nice to know what you were working on these days :D


Title: Re: Peeling back the onion...
Post by: pspeed on November 05, 2013, 09:12:31 PM
Thanks, guys.  I'll try to post some kind of update every Sunday/Monday.  It helps keep me motivated a little.


Title: Re: Peeling back the onion...
Post by: Moonkey on November 07, 2013, 07:34:27 PM
Thanks, guys.  I'll try to post some kind of update every Sunday/Monday.  It helps keep me motivated a little.
It keeps me excited. I like hearing about your day-to-day stuff.