Friday, 7 March 2014

Android Unity Facebook Deployed Login Now Working! :)

Intro

No doubt some of you will be trying to integrate the Unity Facebook SDK into your unity projects that you wish to deploy to Android devices.

If you followed the facebook docs guides, you probably have it working in the Unity3D editor.  You can Login, and make API calls etc..

Problem
This post covers the problem when you deploy to Android, and the Login doesn't appear to work.  You may have received the following error:  "Invalid android_key parameter, The key 'hjd7hf...' does not match any allowed key . Configure your app key hashes at..."

The reason for this error is that your APK is signed with the debug hash key in unity.

Solution

NB. This post assumes you have installed the JDK, and ADT required to build android apps, and therefore, android games for unity.

disclaimer: I tried this a few times to figure it out so the steps below may not be optimal

Follow the below steps and you will be able to Login to Facebook within your Android deployed Unity game:

1) In Unity, go to File -> Build Settings... -> Player Settings.

2) Click on Publisher Settings,  Under Keystore, with 'Use Existing keystore' checked, click on 'Browse Keystore'.

3) Browse to C:\Users\[YOUR USER ACCOUNT]\.android\debug.keystore

4) Now, under the heading 'Key', click on the Alias drop down, and click 'Create a new key', and fill in all the fields you need. The password should be 'android'

5) Under build settings click 'Build'

6) Now, under publishing settings, click on 'Create New Keystore'

7) Now build your project again. The build should now be signed with the correct hash key.

8) In order to view your hash key, start a command prompt and run the following (replacing YOUR USER ACCOUNT):

keytool -exportcert -alias androiddebugkey -keystore "C:\Users\[YOUR USER ACCOUNT]\.android\debug.keystore" | openssl sha1 -binary | openssl base64

the password will again be 'android'

9) Now copy this to your Facebook dev settings

10) If you deploy to an android device, this should now work :)

Please let me know if you encounter any further problems, or if my instructions are incorrect at any step

Regards,

Lee Allan
JLabsGameStudios.com









Tuesday, 14 January 2014

Life of an Indie Game developer

For indie game devs starting out, there is a lot to do.  Particularly if you have no budget and no colleagues.  If, like me, you are creating your first game in your spare time in between going to work full time, and the busyness of family life, time and money aren't readily at your disposal.

This brings about 2 realities that you have to accept:
1) You are responsible for every aspect of development:
2) You will not create an angry birds, or clash of clans on your first attempt, and expect to see a release this side of the year 3000! ;)

1 - Master (or attempter)  of all trades

This includes design, creating art work whether 2D or 3D, If 3D, this will involve modelling, texturing, animating; programming, marketing and the list goes on.

If like me you love each stage of the process, then chances are you will persevere and see the result of your labour.  It may get tiresome with all there is to do but the end result will be worth it if you don't let your standards slip.

2 - Time ain't on your side

In view of the realistic amount of time you have to devote to your first project, choosing a simple game will enable you to produce something within realistic time frames.  A simple game can be fun and addictive, and grow your name as a developer.

My aim is to produce a few smaller games, watch as the revenue comes in, and create larger games as the funds and opportunity affords.

The first game: Save The Mouse

The first idea for this game was simple, yet the ideas grew and grew so it became more difficult to produce quickly.  I simplified the gameplay, and created a slightly different game, with the aim of it being simple and quick to produce, whilst still being fun and engaging.  the new idea is still growing so there are already numerous updates planned after the initial release.

This will probably be a series of games, with our hero, the mouse, getting into all kinds of scrapes he needs to be saved from.

The first game will be Episode 1.  the original game idea will be Episode 4, as I already have ideas for Episode 2 and 3 ( these will be very similar to Episode 1 so should be easy to produce once the first game is made)

Well, time to get back to my coding!

Cheers for reading,

Lee.
www.j-labs.net



Saturday, 4 January 2014

Dev update 2

The first game, save the mouse, is becoming a little larger than I intended as I keep getting more and more ideas ( lots of small features that all add up!)

So, I will now be utilising some of the design already finished, and creating a really simple game (at this point it's really simple, that could change!)  that I can knock together relatively quickly so I can get something out there and develop more of a following.

More details will follow soon so stay tuned... :)

Saturday, 28 December 2013

Dev Update 1

Well I have been working for a while now on my first game, 'Save The Mouse', a simple game with a cartoon look and feel.  I have a few images to show you that will be making their way into the game in some form.

Software

I use blender as my 3D modelling, animation and rendering application,  gimp for texture editing, and unity3d (free verison) for putting the game together for multiple formats.  I like open source software as I am not a fan of piracy.

Characters
The game will consist of 2 characters, a crocodile and a mouse. ( You can guess where this is going ;) ) The theme for the character design fits with the cartoon style of the game, and are toy-like cartoon characters. The crocodile has been built in blender and here is a basic render using cycles render:



Game Screen

The game screen is still in the design phase but my first idea was a marble backdrop upon which the game will take place:


The buttons on the left will be replaced be coloured lights or some relevant image.  This looks kind of cool, but I'm not yet sure if it's right for the game.

Game Scene

I wanted the game to take place in a cartoon riverbank scene, as this is where the crocodile lives.  Here is a render of the basic scene ( I will add more detail as I feel appropriate).  This may replace, or be combined with the marble backdrop:



The design is taking a while but I want it to look as good as possible as the gameplay will be very simple for my first outing.

Any comments or questions please get in touch at j-labs.net and follow me for further updates.  If you like what you see, please tell your friends :)

Thanks for reading :)

Lee

28/12/2013

Monday, 9 December 2013

j-labs begins

I have started a new game development studio called j-labs game studios.

I will be making simple yet fun games for Android and eventually iOS.  The first game is under development and I will be posing artwork and more information as and when it is available!

Happy gaming!

http://www.j-labs.net