[RELEASED] Photon Blox (plyGame Multiplayer)

Hey guys I just wanted to show you the extension I’ve been working for plyGame which its basically an integration with Photon Unity Network + extras.

Here is a list of some of the features included:

  • PhotonPlayer and PhotonNPC component:

  • Position

  • Rotation

  • Skills

  • Attributes

  • Actor states (Dead, Alive)

  • Factions

  • All Photon Events

  • Crowd Manager System (Handle hundreds of actors with few network messages)

  • Lot of Photon Actions and Values:

  • RPC / Blox RPCs

  • Raise Events

  • Player Properties

  • Room Properties

  • And much more…

  • Many custom blox:

  • Character Jump, Land, Footstep and more

  • Custom blox for assets:

  • Text Mesh Pro

  • Pool Manager

  • Audio Toolkit

  • EZ Replay Manager

All you have to do with your current player or npc is just attach the correct component, these components keeps track of almost everything on the actor/character and keep it synch for current players and even send updates to new players all automatically, you can also choose to synch selected blox variables. These components are optimized to send as less messages as possible in order to save bandwith.

Right now there 3 ways to send messages with photon:

  • Raise Event which requires you listen to an event and check the event id
  • RPC which needs to be defined on a script with the attribute [PunRPC]
  • And RPC Blox which makes your life easier and all you have to do is define and event called [RPC]YourRPCName
    This one is the easiest one to use but right now limited to 4 parameters, I will make this to work with a list instead.


This extension also comes with few extras like:

  • Custom PlayerThirdPersonController with the ablity to jump as many times as you want
  • Add HUD blox wich will automatically adds a character HUD with a predefined prefab and settings
    This take care automatically of update character hp bar, name and level.
  • A very simple footstep system with a On Character Foostep blox event. Only works with mecanim.

  • On Landed and On Jump events for characters, this is useful for things like adding particles or sound effects.

Roadmap / In Progress
This is just a list of what I’m currently working or plan to work:

Trello Project

After finish with this Photon Blox project I have planned to work on a UNET version.

Here is a demo I’m still working and its a bit far from perfect but here is how its looking:

WebGL Demo

Documentation

If you have any suggestion just let me know.

3 Likes

look super cool, I think you need to publish too this in the photon forum, because is super interesting.
Estimate price?

Thank you! and yes you are right Im gonna post this on the photon forum.
The price is $45 it has already been submitted to the Asset Store.

look cool! When will you release this on the AssetStore?
Does it has the sample in it? or just blox?

I has already been submitted so hopefully this or next week.
Yes it does include the example you can see on the video.

sounds great! Will you plan to integrate Photon TurnBase in the next version?

As far as I know you can use the same PUN code for Photon Turn Base, so it should work fine as it is right now.

Very good price

Its now available for purchase on
Sellfy: https://sellfy.com/p/p4Uz/
and here: http://www.ninjutsugames.com/product/photon-blox/

Its still being reviewed on the Asset Store so hopefully should be available there next week.

Photon Blox has been finally released on the Asset Store!!

You can get it from here: Unity Asset Store - The Best Assets for Game Making

I also have some news about a custom LoadSave provider, I’m currently working on a LoadSave provider using Brain Cloud Unity Asset Store - The Best Assets for Game Making I already have a complete and integrated login system with plyGame and Photon Blox, load and save features are almost done so this is coming on the next update.


1.0.5

  • Added new PhotonObject component which will handle the network identity of non actor objects like Items
  • Modified PhotonCrowdManager to work with PhotonObjects
  • Fixed some issues with PhotonCharacter
  • PhotonSpawnPoint now takes in count player distance
  • Added new Photon Drop Loot and Create item blox. These blox’s should be used instead of the default plyGame blox’s.
  • Equipment scene now demostrates how to create items in the scene, use drop loot, synch equipment
  • Added new Bag and CharacterSheet UI
  • Items are now being synchronized

1.0.4

  • New equipment synch. Note that Items are still being worked on so they are not synch with photon yet.
  • Added equipment scene example
  • Added auto attack block
  • Fixed issues with Unity 5.3

Got news from the asset store hopefully will be available next week. What do you guys think of a christmas sale?

New demo: WebGL

I bought it from Sellfy. Can I get a voucher on Asset Store?

Yes you can, PM or email me your invoice number so I can verify it then Ill send you a voucher :slight_smile:

hello,

vendo, crafting and trading in between players are in todo list ?

+++

Hi, there are other plugins for crafting already everything that works with plyGame works with Photon Blox. About vendor you can always make yours thats something that can be easily done but I guess would be nice that I add an example since Im adding Brain Cloud support and I could use their Market Place feature for that.

Hey guys just a quick “small” update:

1.1.0

  • Added brand new Brain Cloud package which tightly integrates Brain Cloud with plyGame.

  • Brain Cloud can be used as a Load Save provider to save everything as also use other Brain Cloud features as Achievements, Quests, Levels, Milestones, etc.

  • Updated full demo with login and lobby screens

  • New BrainCloud login demo

  • Added new basic GameMenu script

  • Added new blocks for BrainCloud (IsInitialized, sAuthenticated, AuthenticateUniversal, AuthenticateWithEmail… more coming soon)

  • Photon Character should disable all possible persistance on remote characters now

  • Added OnPlayerSessionExpired, OnReadAllPlayerStats, OnExperienceChange, OnReward, OnPlayerState, OnXPLevelMetaData, OnReceiveAchivements events

  • Added new blocks for BrainCloud (IsInitialized, sAuthenticated, AuthenticateUniversal, AuthenticateWithEmail, UpdatedPlayerName, ResetEmailPassword, Logout, GetStat, GetLevelTitle, GetLevel, IncrementXP,
    IncrementStats, ReadAchievement, ReadAllPlayerStats, ReadPlayerState, ReadXPLevelsMetaData, ResetPlayerStats, GetExp, ReadAllPlayerStats blocks)

  • Added new block to Select UI selectable objects

  • Added new block to Activate UI InputFields

  • Added blocks for Dictionary (Add, Get Value, Create, Count, Remove, Contains Key)

  • Made some fixes to UGUISetInputValue, UGUIGetInputValue, UGUIGetText

  • Screen will avoid children Canvas if the parent has one

  • Added LoopWithAchievements container

  • Added Achievements UI which shows how to setup a list of achievements

  • Added ResetLeaderboardScore block

  • Added block to get json values coming from BrainCloud events

  • Added respawn notification

  • Added stats tracking (death by monsters, death by players) more soon

  • Added new Inside Lobby condition block

  • Added Set Player Name block

  • Fixed the issue where characters won’t persist their position

  • Tweaked Screens prefab

  • Brain Cloud Changes:

  • Added HasEntityType method to the User class

  • When an entity does not exists and create a new one now the system will load and add new ones to the current user to avoid duplicates

  • Added new Player Level Title block

  • NJG Blox Changes:

  • Screens now be created manually by assigning the Screen component to an object and just click on Create and Save

  • Fixed a small issue with CharacterHUD component

  • Screens are no being properly removed from history when they get destroyed for when changing scenes

  • Added Is NPC block

WebGL Demo

This update has already been submitted to the asset store.

Looks promising.

I really enjoy the item dropping and picking up feature. This can allow some basic trading between players which is a feature lacking in many other Unity multiplayer packages. However, I did encounter a duping bug. A player would sometimes drop an item, another player would pick it up and that item would disappear but the original owner could still see it and pick it up. Seemed like it was only happening on the room owner’s client, but I didn’t test it out with 3+ players to confirm. You may want to do more testing there.

What’s next?

Well next I have to fix that issue :smile:… I have planned to expand that demo a bit more by adding vendor, quests, pet system, chests and other stuff… I will keep adding stuff as I update the asset as also fixing bugs so keep them coming.

Hey guys the new version is available at the asset store:

Also the price is now $35 for a limited time!

Hello hjupter!
I would like buy your “Kit”, but I have some ask to do:
Do you have planning to continue suport and expand this kit?
Do you have planning to expand and add more features on your demo project ?

I played your demo and I liked this, but I miss a very important feature on this, that are a Simple Select / Create Character Scene. I Really Would Need a Simple Example of This. There are any chance to add it in your demo or an good tutorial?

Hi, I’m actively supporting and updating this package, I’ve doing a lot of improvements, I’m currently working on a game which use this so I’m adding new stuff and fixing things as I keep going.

There is a Character selection system right now but I have not made any test scene for it yet but this is how it works right now:

https://www.youtube.com/watch?v=M8p0W5wH-2g

I will add a demo scene for the character selection on the next update