Monday, August 1, 2016

ShowEquipScreen event step

Hola,

small post

I've added ShowEquipScreen event step.
It's a pretty simple event step with no parameter.

It's use is to show the equip interface and it's meant only for that.
In fact items that are not equippable are not shown.

This is useful if you need to change equipment mid-event
For example the slave might be unconfortable in her current dress and ask to be dressed differently before going out.


Remember the previous post about outlaw public nudity?
In that event if a guard stop you will ask to redress the slave before giving you a fine.
He gives you 3 warning if at the third the slave is still nude you will be forced to jail.

Bye bye!

Sunday, July 17, 2016

Activity features

Hello,

I added a new information to week activities.

Just to refresh your memory. What's a week activity?
A week activity is what youre gonna do during the week and that you can select during week planning.

The activities are defined inside an xml file.
And now when you define an activity you can declare a new information called Feature.

So, what's an activity feature?

An activity feature is just a piece of text that describe the activity. This description can be retrieved while the activity is running. This will be mostly useful for generic events and checks that might happen in the game.

But let's take an example,

in the Xmaker world, nudity is not allowed in public.
So, do I have to check in every activity if the slave is nude and if yes react?
Well, yes, if you have some custom event.
But in general you just want a default event to fire.
By default a guard will stop you and give you a fine / send you to jail.


I could easily add this event in the activity start hook, right?
Well, yes and no.

It's correct for this to be executed at the start of an activity, but not all activities are done in public or where guard are available...

Enter the features

The solution can be found by using activity features.
By giving an activity the following features: Public place and Presided by guards (I hope it's correct english because I'm not really sure :/ )

Now in the activity start event we could check if the activity has both these features and in case give a fine or jail the player.


Okay, that it, bye people. Hope this will be useful for other things than the nudity check in the future.



Thursday, July 7, 2016

Finally the weekend arrive

Hi folks,

finally I added hooks for the events.
The hook are fired when a week start or end and when an activity start or end.

What's the idea behind this?

Well, mostly it's needed to do some common checks on the state of the game for example, during the week end (which was actually the only hook already implemented) I check for game over conditions.
The next step will be to add a way to check the current activity data, this will open a world of new opportunity (just exaggerating).
For example, once you know that an activity is done in a public place, before the activity start, I could check whether the slave is nude (public display is against the law in the game) and if so a random event might trigger, were the guard give you a fine or take you to the prison (and you know what will happen in prison to your slave right?)


Anyway that's it for now.

Saturday, May 21, 2016

Stackable items

Hi, it's been a really long time since the last post.

I'm not even sure someone still look at this, but who cares.
Anyway, you probably wondering what happened to me.


Well,
nothing really...

It just that I just didn't felt (is this the correct conjugation?) like working on the project.

Then why are you writing, you might ask.
Okay, let me explain.
I work like this:


  1. I start a project.
  2. I work on it hard until I burn out or find another (more appealing) project.
  3. I stop working on the project.
  4. Time passes.
  5. ...
  6. ...
  7. ...
  8. ...
  9. ...
  10. I look on the old project and feel like I could continue.
  11. I work on it hard (but less than when I started) I burn out or find another (more appealing) project.
  12. I stop working on the project.
  13. And so on...

So, I felt like working a little more on this.
And in these days I added.

**roll of drums**



























Nothing new...

















Just kidding, I added stackable items.
I know it's probably exactly like nothing new for your perspective.
But hey, it's progress!

Items marked as stackable are grouped inside the inventory and in shop you might buy and sell them in bulk.





Saturday, February 27, 2016

Parse R.I.P.

ACHTUNG! Technical post ahead

I really like Parse and it is the backend used for XMaker and RPGAutoCAT (For feedback)
It is ultra simple to use, the sdk is very well written and very explorable.

It is free for small amount of requests ( my case ).

It looked like it was going very well for the parse team.

And then:


An Important Announcement.

Parse's hosted services will be fully retired on January 28, 2017. We're proud that we've been able to help so many of you build great mobile apps. Read more on this announcement and what this means for your app here. Thank you for using Parse.

This is what is shown on parse site as of 28 january.

:(

When I received the email saying they were shutdown I was like:
What?

It was really unexpected.

(
For whoever is still reading and don't know what's Parse.
Parse is a Baas (Backend as a service). To make it really simple it's a database in the internet.
History in a nutshell:
Parse started as a startup, it was then bought by facebook in 2013, it continued good for a couple of years and now it's dying.
)



Anyway, now I need to explore other Baas, there are a lot and at the moment they look all bad compared to Parse (SDK wise).

I'll already experimented a bit with app42 cloud it seems, uhm decent, but there are already problem that make me think about the stability of the system.
In fact, making a request make the app crash if there's no internet connection...
This is only an issue with asyncronous request, with syncronous I can catch the exception and continue normally.

Anyway, after having these horrible experience (I'm still shaking for Parse departure), I decided to abstract the Baas out. Baas and XMaker now reside in different assemblies and interact through another assemblies which is just an interface over the Baas.

This should make switching baas pretty easy in case of other surprises...






Wednesday, February 17, 2016

New facial expression: Sleeping

Continuation to the this and this previous post.
For the moment I need no other expressions.

Here's the result for the three type of eyes in the game.




Wednesday, February 10, 2016

New facial expression: embarassed

Just a continuation of the previous post.
I added the embarassed expression, here 3 examples.