plyGame 2.4.x (DiaQ and plyBlox)

(Leslie Young) #1

plyGame 2.4.0

  • Fixed the Layers fix for Unity 5. For some reason this update never reached the Asset Store
  • Added On After Load and On After Save Events (they are triggered by the LoadSave System)
  • Updated to plyRPG 1.2.3 and DiaQ 1.3.7

plyRPG 1.2.3

  • Updated RPG Sample script. There was a difference between the code in the unity 4 and 5 versions

DiaQ 2.1.4

  • Fixed: Problem with Reward Handler in DiaQ was fixed. See this post DiaQ, reward is not rewarded
  • Fixed: Data Provider’s Set/ Get did not function correctly under certain conditions

[Resolved] Bag Full
(Leslie Young) #2



  • Fixed: Action slots where not restoring slotted Items correctly. You need to clear LoadSave Data after this update.

(Leslie Young) #3



  • Changed: SpawnPoint will not spawn while game is paused
  • Changed: The player character will select the new closest target when the interact button (default: E) is used
  • Added: Block to check if Item Bag is full

(Leslie Young) #4


plyGame core

  • Updated: the Persist Object component with an offset option. Use this to add a small offset when something like an NPCs position is restored to prevent it from potentially falling through the terrain. A value like (0, 0.1, 0) should work fine.
  • Fixed: The ID refresh was not saving the changes made to IDs of scene objects (only prefabs)

(Leslie Young) #5



  • Fixed: The “On Effect” Event of Skills where triggering too soon with projectile type Skills.

(Leslie Young) #7



Fixed: Events in states other than the 1st state might not always trigger.

Error Code on Import & Fresh Project
(Leslie Young) #8



  • Added: “Restore Actor” Block and “On Actor Restored” Event to make it easier to restore the player character to a playable state after it was killed. You will normally call Restore Actor after having moved the player to the spawn point.


  • Forgot to include latest source changes in previous update.

Feature request - Icon texture format
[Request] Expose Actor.inDeathLoop property or Create a Resurrect method [DONE]
(Leslie Young) #9



  • Changed the Interact Button (E) to only select a target if one is in range and is Interactable. The Select Key (Tab) still works in the old way in that it can be used to select either hostile, or interact objects.

(Leslie Young) #10


  • Updated: RaiuLyn’s OnClickTriggerBloxEvent component
  • Fixed: Item Block was caching even when the option was off
  • Added: Sprites (in addition to Images) support in Common Definition of Items, Actors, Skills, etc.
  • Added: Object > plyGame > Get Object Sprite Block
  • Added: New Sample UI that makes use of SPrites in the Action bar, Equip Slots, and Bag. See \Assets\plyoung\plyRPG\Documentation\sample_ui_using_sprites.unitypackage

(Leslie Young) #11


  • Reverted change to definition of CommonDefinitionDataDrawer.Draw()
  • Updated top-down controller to make the character stop when it reached the mouse pointer. This is for when a static camera is used.


Hotfix Unity 4 version to include the Object > plyGame > Get Object Sprite Block

Error Code on Import & Fresh Project
(Suphavanh) #12

Hi Leslie… will the new UI with sprite overwrite the old one? Or it has its own UI scene? Thanks.

(Leslie Young) #13

Yes, it is exactly the same file structure as the other sample package. If you made changes to your scene then maybe just install the script and prefabs (yo ucan select what to import in the window that comes up).

In the scene you want to change from Raw Image to Image component. The Action bar is the only place in the scene that needs this change. The prefabs (for bag and equip slots) also need the change if you do not override them.

(Gunhi) #14

Error from 2.4.9b when import into Unity 5.0.2p2

System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. —> Mono.Cecil.AssemblyResolutionException: Failed to resolve assembly: 'plyBlox, Version=, Culture=neutral, PublicKeyToken=null’
at Mono.Cecil.BaseAssemblyResolver.Resolve (Mono.Cecil.AssemblyNameReference name, Mono.Cecil.ReaderParameters parameters) [0x00000] in :0
at Mono.Cecil.BaseAssemblyResolver.Resolve (Mono.Cecil.AssemblyNameReference name) [0x00000] in :0

(Leslie Young) #15

I get no such error when I import into clean project from the Asset Store. Tested with Unity 5.0.1f1 but should not make much difference.

Have a look at this post to see if it helps, When Reporting Errors