Released Combu 2.0.2

Combu 2.0.2 has been just released on our Store and will be uploaded to Asset Store in the next few days (meanwhile it’s currently under Unity review process the release of version 2.0.1).

Here is the complete release notes:

  • Unity: Fixed account creation: password is now sent encrypted in User.Update (v2.0.1)
  • Unity: Fixed account update: Id of user is now correctly sent in User.Update (v2.0.2)

The third-party integration samples in the official page have been updated and ported to 2.x.

Remember that if you purchased Combu on Asset Store, you can redeem your invoice to gain access to our Store download at no extra charge.

Released Combu 2.0

Combu 2.0 has been released on our Store and is currently under the review process on Asset Store!

If you’re planning to upgrade your current project, don’t forget to make a backup of your current PHP scripts, MySQL database and Unity project.

To upgrade an existing project, proceed as follows:

  • rename the 1.x folder in “combu_old” in Unity
  • import the 2.x package
  • delete all 1.x web files and unpack the new combu_web.zip
  • edit the web file /lib/config.php with your MySQL connection string (server IP/hostname, database name, mysql credentials)
  • execute the file combu_db_upgrade_from_1_5_3.sql on your phpMyAdmin
  • make changes to your scripts and replace the calls to CBManager methods with the new ones from CombuManager and the new classes
  • add the prefab CombuManager from Combu/Prefabs in your scene and adjust the settings in the inspector; delete the old CBManager prefab from your scene

You will find the full new documentation online at https://www.skaredcreations.com/api/combu

Released Combu 1.5.4

Combu 1.5.4 has been released on Asset Store, though it isn’t a regular update since no files were modified but it has been released only to share the Release Candidate version of the new incoming Combu 2.0 so you can start playing with its new great features and way of programming. You will find here more informations about the differences from 1.x system and learn the new improvements, more will be released with the final release of Combu 2.

Redeem Asset Store invoices

If you purchased on Unity Asset Store one of our products that are also available on our Store, then you can now redeem the invoice of your Asset Store purchase and receive free access to the download on this website too at no cost.

The benefits will be: quick update cycle (no wait for Asset Store review process) and access to beta versions.

Combu 2 Beta access

Combu 2 is almost ready for the public release, and we’re all excited with the improvements and with the new tiny code styling and direct integration with Unity Social!

To familiarize with the new system, that has been refactored, we have created a page where you can request the password to download Combu 2.0 Beta (available only to current customers, no external testers are allowed).

If you want to participate in this beta, please fill the form on this page and wait for our response, after we will check your account (and Invoice No./Bill To, if you purchased from Asset Store) you will receive the password to download the beta version for free.

Meanwhile you may want to take a look at our new API documentation, it’s referred to the current beta so you can preview the changes to port your project to the incoming version.

Combu 2.0 Preview

Combu 2.0 is in Release Candidate stage and currently under our testing review process. The 2nd generation of Combu features a complete refactoring of the Unity classes and management, making it much easier to learn for both newbies and expert programmers thanks to the fact that it’s built on top of the Unity ISocialPlatform interface, so most of the current features will work the same or similar way of Unity Social.

First of all we organized all the core classes in our own namespace Combu, mainly for compatibility reasons (we found that some libraries also used “CBManager” class name in their assemblies, for example ChartBoost package).

You will find a new property Dont Destroy On Load of the component CombuManager (formerly known as CBManager) by default set to true, usually you will need only one instance of CombuManager along your app lifetime.

Under CombuManager you will find platform (CombuPlatform inherits from ISocialPlatform and also adds custom methods) and localUser (that is a shortcut to CombuManager.platform.localUser, our new User class inherits from Profile that implements IUserProfile).

Basically most of the documentation is the same/similar to the standard ISocialPlatform, except few custom features and methods overload. Let’s see few examples of the incoming changes.

Login example

Here is the new v2.x code to authenticate a user:

CombuManager.platform.Authenticate ( "username", "password",
(bool success, string error) => {

      if (success)
      {
         Debug.Log(CombuManager.localUser.id);
      }
      else
      {
         Debug.LogError("Login failed: " + error);
      }
});

Send score to leaderboard

Here is the new v2.x code to send a score to a leaderboard:

CombuManager.platform.ReportScore(100, leaderboardId,
(bool success) => {

      if (success)
      {
         Debug.Log("Score registered");
      }
      else
      {
         Debug.LogError("Score failed to register");
      }
});

Get online state of a user

With the new API you can now retrieve the UserState of a User by accessing the property state. You know that we’re working in an asynchronous system, so the user state (as all other data) is not automatically refreshed and you may want to check the state inside a callback to Load is you know the data were loaded too much time ago.

CombuManager has two new properties: onlineSeconds (compared to the last action time registered from the user) and playingSeconds (compared to understand if he’s playing, if you want to manage yourself the playing state then you can set this value to zero).

Get server version and time

We created a web service for convenience, it returns some generic data of the server like the Combu version installed, current date/time etc:

CombuManager.instance.GetServerInfo( (bool success, CombuServerInfo info) => {
   if (success)
   {
      Debug.Log("VERSION: " + info.version + " | TIME: " + info.time.ToShortDateString() + " " + info.time.ToShortTimeString());
   }
   else
   {
      Debug.LogError("Score failed to register");
   }
});

Conclusions

Lesser code easier to read and understand, isn’t it? 🙂

Of course, you can still pass void functions to the methods instead of the inline delegate syntax, it’s up to your coding style.

Other new features will be released when Combu 2.0 will be officially released, but we will talk later in the release notes!

For now you can take a look at the new documentation.

Combu 1.5.3

Combu 1.5.3 has been released and it’s already available both on this website and on Unity Asset Store. It features the following bug-fixes and implementations.

Server

  • Fixed SQL statement filters in CB_UserFilesActivity::Load, CB_Mail::Load, CB_Mail::LoadUnread, CB_UserGroupAccount::Load
  • Logged users cannot send more than one Like to a UserFile
  • Web admin console: you can now see and change Email in Player Info

Unity

  • Fixed date/time conversion of CBNews.date from JSON

Database

  • Added the field Views (INT, NOT NULL) into the table CB_UserFilesActivity

Execute the following SQL statement to add the field in your installation:

ALTER TABLE `CB_UserFilesActivityADD COLUMN `ViewsINT NOT NULL;

 

Released Combu 1.5.2

Combu 1.5.2 has been released in February implementing new features. We missed to send a newsletter for the announcement of the new version, so you will find here the list of features implemented.

 

VERSION 1.5.2

Updated Combu web files, latest was missing the webservice handler for mail count.

 

VERSION 1.5.1

Server:

  • Fixed define SECURITY_ENABLED in api.php to re-enable the security
  • New web service “users/search” to make a search in the user accounts table
  • New web service “mail/count” to get the number of read and unread messages
  • Web service “mail/read” now accept parameter Id to be -1 so that it can mark as read all messages received by the logged user

Unity:

  • Added new method CBManager/LoadUsers to search users
  • Added new method CBManager/CountMail to get the numbers of read and unread messages received by the logged user
  • Added new class CBMailCount to handle the results from CBManager/CountMail
  • Added overload CBManager/ReadMail without any parameters to mark as read all messages received by the logged user

 

Released Combu 1.5

Version 1.5 is already out for our website clients in your My Downloads page, the update has already been sent to Unity Asset Store and it’s under their reviewing process right now.

The content of this update is pretty huge and can open a bunch of new features in the future. The first new feature is the support for User Groups: your users can now build their own lists of friends, family, coworkers etc just like you do on Facebook. Another great addition is the support for multiple recipients in-game messages: you can now send an in-game message to more users or to user groups.

Few other additions are more for developer’s pleasure: you can now call LoadUser by passing username, UpdateUser now sends also Username to be changed.

The support for the C++ client code has been discontinued by the current release since it seems there isn’t much interest on that by any client, anyway we are thinking to some other extra implementations so may be it will pop up again later in another form.