Tools 2d

You are here:
← All Topics
Version: 2019.200 Requirements:uMMORPG3dScript Define: _IMMOTOOLS
Core Changes:YesTutorial Video:Yes

Description

This utility AddOn is required by all other UCE AddOns, as it contains several shared functions and UI elements. Most notably are the universal “CastBarUI”, “InfoBoxUI” and a universal “PopupUI”. Those UI elements also come with options that can be edited via the Inspector. Besides that, this AddOn adds a lot of new functions to the core asset, those functions are required in order for the UCE AddOns to work as expected.


Core Changes

  1. [Required] Open the following script EquipmentItem.cs. See Changes...

    Locate this line:
    public class EquipmentItem : UsableItem

    Modify to match:

    public partial class EquipmentItem : UsableItem
  2. [Required] Open the following script BonusSkill.cs. See Changes...

    Locate this line:
    public abstract class BonusSkill : ScriptableSkill

    Modify to match:

    public abstract partial class BonusSkill : ScriptableSkill
  3. [Required] Open the following script UsableItem.cs. See Changes...

    Locate this line:
    public abstract class UsableItem : ScriptableItem

    Modify to match:

    public abstract partial class UsableItem : ScriptableItem
  4. [Required] Open the following script DamageSkill.cs. See Changes...

    Locate this line:
    public abstract class DamageSkill : ScriptableSkill

    Modify to match:

    public abstract partial class DamageSkill : ScriptableSkill
  5. [Required] Open the following script WeaponItem.cs. See Changes...

    Locate this line:
    public class WeaponItem : EquipmentItem

    Modify to match:

    public partial class WeaponItem : EquipmentItem
  6. [Required] Open the following script BuffSkill.cs. See Changes...

    Locate this line:
    public abstract class BuffSkill : BonusSkill

    Modify to match:

    public abstract partial class BuffSkill : BonusSkill
  7. [Required] Open the following script Player.cs. See Changes...

    Locate this line:
    void OnEquipmentChanged(SyncListItemSlot.Operation op, int index)
    {
    	// update the model
    	RefreshLocation(index);
    }

    Modify to match:

    void OnEquipmentChanged(SyncListItemSlot.Operation op, int index, ItemSlot slot)
    {
    	// update the model
    	RefreshLocation(index);
    	
    	Utils.InvokeMany(typeof(Player), this, "OnEquipmentChanged_");
    }

Installation

  1. [Required] Apply all required core changes.
  2. [Recommended] Remove the AddOn Example.cs script from your Addons folder.
  3. [Recommended] Import our UCE Attributes addon and follow its installation process.
  4. [Required]* Find your NetworkManager in your scene hierarchy examine it in the inspector.  Find the Database Type and toggle it to MySQL then back to SQLite.
    *Note: Even if you don’t plan to use MySql/Sqlite you need to do this process.
  5. [Required]* Add all prefabs from the Required UI folder to your Canvas via drag-n-drop.
    *Note: Don’t place them in another UI element.
  6. [Optional] Edit the properties of UCE_UI_Popup and UCE_UI_InfoBox in the your inspector.
  7. [Required] Add all scripts from the Required Scripts folder to each player prefab you have, using the inspector.
  8. [Optional]* Edit the properties of the UCE_Popup on your player prefab.
    *Note: You can have up to 255 icons and sounds.
  9. [Optional] Add any prefab from the Optional Prefabs folder to your scene hieracrchy via drag-n-drop.
  10. [Optional]* Speed buffs and passive skills are now possible, make sure you set each of your players max speed.
    *Note: If you don’t set a max speed these buffs and passives won’t work. It will cap it at 1.5 times.

Screenshots


Video

Support the IndieMMO Team Today!

Leave a reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.