Category: Uncategorized

Patch 2015-06-19 for the Dialogue System for Unity is available on the customer download site. Contact us with your Unity Asset Store invoice number if you’d like access.

This patch for Dialogue System 1.5.2 contains:

  • Added: Display Settings > Input Settings > Include Invalid Entries checkbox; UnityDialogueUI and UnityUIDialogueUI show invalid responses as disabled buttons.
  • Fixed: Conflict that prevented Windows Store & WP8 builds.
  • Fixed: Fixed CSV Converter bug caused by exporting from applications that fill out extra fields on all lines.
  • articy:draft: Updated Converter to handle articy:draft 2.4.
  • Realistic FPS Prefab: Added PersistentSmoothMouseLook component to save player rotation.
Category: Uncategorized
The Dialogue System v1.5.2 is now available on the Pixel Crushers customer download site (contact us with your Asset Store invoice number if you’d like access) and should be available on the Unity Asset Store in a few days!

Version 1.5.2

Core:
  • Added: Extra Databases component to load/unload extra dialogue databases.
  • Added: Additional trigger events OnTriggerExit, OnDisable, OnDestroy.
  • Improved: Bark Trigger & Conversation Trigger inspectors now highlight if not using Dialogue Manager’s Initial Database.
  • Improved: TextInput() sequencer command now accepts variables for labels, ‘clear’ keyword.
  • Improved: More error handling and info messages in NPC Setup Wizard.
  • Improved: Condition Observer can now also run a sequence when triggered.
  • Improved: SetPortrait() now handles “pic=varName”.
  • Improved: Legacy and Unity UI QuestTrackers now have option to show description instead of name and completed entry text.
  • Changed: Camera() sequencer command now uses Lerp instead of Slerp to move.
  • Unity UI:
    • Added Computer & Wheel2 dialogue UI prefabs.
    • Added UnityUIColorText component.
    • Added On Accept & On Cancel events to Text Field UI; Unity UI Text Field now auto-focuses.
    • Added input loop example.
Third Party Support:
  • Adventure Creator: Updated for AC 1.46; fixed bridge sync bug when inventory had empty slots that still had id numbers.
  • articy:draft: Properties & features on dialogues are now converted.
  • HUD Waypoint: Added persistent data component; added ability to load waypoint textures from asset bundles.
Category: Uncategorized

Love/Hate v1.3 is now available on the Asset Store! The major additions are a multiplayer guide and TradeSys support.

Version 1.3

  • Added: Multiplayer example & guide.
  • Added: Wolf/rabbit/farmer simulation example.
  • Added: FactionDatabase: CreateNewFaction()
  • Added: FactionMember: SwitchFaction(), IRememberDeedEventHandler, IForgetDeedEventHandler, IModifyPADEventHandler, FactionMemberEvents component.
  • Changed: Serialized FactionMember data now includes faction ID (since members can switch factions).
  • Improved: Exposed FactionMember.DefaultEvaluateRumor().
  • TradeSys: Added support. This is a work in progress and will develop further based on developers’ needs.
Category: Uncategorized

sceneStreamer

Scene Streamer is a simple, scripting-free system to stream scenes in and out of memory, allowing you to create large environments and continuous worlds.

Since hundreds of Unity users have downloaded version 1.0 (formerly called Scene Loader) on the Pixel Crushers website, I thought I’d make the latest version available on the Asset Store. I hope you find it useful!

Category: Uncategorized

The Pixel Crushers office will be closed June 6-7, 2015. If you post questions on the forum, use the contact form, or email tony (at) pixelcrushers.com, we’ll get back to you first thing Monday morning. Have a great weekend!

Category: Uncategorized

If you’ve worked with custom editor windows in Unity, you may have noticed that references to objects, such as GameObjects and ScriptableObjects, are lost when you hit the Play button. This is because Unity serializes your objects before entering playmode, creates new objects, and deserializes them. (See Unity’s blog post, Serialization in Unity, for more details.)

Public fields, or private fields marked as serializable, will retain their values in playmode:

public class MyEditorWindow : EditorWindow
{

    [SerializeField]
    private int myInt;

    [SerializeField]
    private MyScriptableObjectType myAsset;
...

Primitive values such as the myInt will be fine. But myAsset will be a reference to the pre-playmode asset, not the newly created and deserialized playmode version of the asset.

To retain a reference, record its instance ID using Object.GetInstanceID():

    [SerializeField]
    private int myAssetInstanceID;

    // Record the instance ID at some point, such as when you assign the reference:
    myAsset = foo;
    myAssetInstanceID = myAsset.GetInstanceID();

When you enter playmode, use EditorUtility.InstanceIDToObject():

myAsset = EditorUtility.InstanceIDToObject(myAssetInstanceID) as MyScriptableObjectType;

You can detect playmode by registering a method with EditorApplication.playModeStateChanged:

void OnEnable()
{
    EditorApplication.playmodeStateChanged += OnPlaymodeStateChanged;
}

void OnDisable()
{
    EditorApplication.playmodeStateChanged -= OnPlaymodeStateChanged;
}

void OnPlaymodeStateChanged() 
{
    if (EditorApplication.isPlaying) 
    {
        myAsset = EditorUtility.InstanceIDToObject(myAssetInstanceID) as MyScriptableObjectType;
    }
}

 

Category: Uncategorized

The Pixel Crushers forum will be down for a few days while we convert from bbPress to phpBB. In the meantime, please feel free to post on the Unity forum threads for the Dialogue System or Love/Hate, or use the contact form!

Category: Uncategorized

Love/Hate v1.1 is now available on the Asset Store!

Release Notes

  • Added: Colored scene view gizmos for faction members and traits.
  • Added: Aura triggers.
  • Added: FactionManager and FactionMember string serialization methods for easy saving/loading.
  • Improved: Improved rumor evalation. Added deed.aggression to better affect dominance.
  • Improved: Faction manager now distributes witness evaluation of deeds across frames.
  • Improved: Better handling of uninitialized fields.
  • Improved: Added cache to interaction triggers to reduce component lookups.
  • Improved: Replaced foreach loops to eliminate garbage collection caused by Mono boxing.
  • Fixed: Deed template library editor bug when adding/removing templates.
  • ORK Framework: Added support.
  • PlayMaker: Added string serialization actions, OnAura and OnEnterAura events.
Category: Uncategorized

The Dialogue System for Unity 1.4.9.2 is now available on the Pixel Crushers customer download site. Contact us with your Unity Asset Store invoice number for access. It should be on the Asset Store in a few days!

Version 1.4.9.2

Core

  • Fixed: Bug in Dialogue Editor’s Copy Conversation function caused link origin conversation ID to be set incorrectly.

Third Party Support

  • Adventure Creator:
    • Breaking Change: Dialogue System actions were moved from “Custom” to “Third Party”. You may have to set up your Dialogue System actions again.
    • Added: Sequencer Message action, option to save to global variable in Lua action.
    • Fixed: Camera control bug when camera control was set differently from player control.
Category: Uncategorized

Dialogue System 1.4.9.1 Released!

Version 1.4.9.1 is now available on the Pixel Crushers customer download site. (Contact us with your Asset Store invoice number for access.) It should be on the Unity Asset Store in a few days!

This update contains some minor improvements and bug fixes.

Version 1.4.9.1

Core

  • Improved: Override Actor Name now has a button to assign a unique internal name for persistent data components.
  • Improved: Added Copy Conversation menu item.
  • Improved: Dialogue Editor now shows Description field in dialogue entry’s main edit section.
  • Fixed: Localization field was using a dropdown instead of a text field.
  • (Unity GUI) Improved: QuestTracker has a new checkbox to show successful and failed quests.

Third Party Support

  • Action-RPG Starter Kit: Fixed bug in RemoveItem() that left icon in inventory slot when count reached zero.
  • NGUI: QuestTracker can show title or description.
  • PlayMaker: Added FSMEvent(eventName,all) to send event to all FSMs in scene. Added LoadLevel, LoadGame, SaveGame actions.