[BUG] AOT

NodeCanvas Forums Support [BUG] AOT

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #14568
    Driiade
    Participant

    Hello,

    I have a very frustrating bug with double template like this :

    using NodeCanvas.Framework;
    using ParadoxNotion.Design;
    using System;

    [Category(“Utility”)]
    public class IndicateCurrentState<T> : ActionTask<StateProvider> where T : Enum {

    protected override string info => $”Indicate {state} state”;

    public T state;

    protected override void OnExecute()
    {
    agent.SetCurrentState<T>(state);
    EndAction();
    }

    The problem seems that AOT generator doesn’t generate IndicateCurrentState<T>. (Tested on TVOS)

    I have similar problem with for example : Task<T> : ActionTask<Component<T>>

    And in the blackboard, it’s impossible to put a Component<T>. The work around is just defining dummy class implementation, but.. meh.. now I have to define dummy class each time I work with a different enum :'(

    #14569
    Driiade
    Participant

    For nuancing my sentences. It’s interface<T> which not work on blackboard ^^ … But don’t know if it’s possible, maybe its too much generic.

    #14572
    Gavalakis
    Keymaster

    Hey,

    To be honest it is  already hard to support a single generic type with GUI, serialization and AOT 🙂 and double templates like this are definetely a lot harder. With that said, I am currently looking for a way to be able to add a GenericTypeDefinition into the Preferred Types List and by doing that, allow “open” generic type variables in the blackboard and in the menu of the “Add Variable” blackboard, to select a closed definition (based on constraints of the generic type definition) similar to how it is done for Lists<T> for example currently.

    It is somewhat complex, but I hope to manage it soon. Will that work for you?

    Let me know.

    Thanks 🙂

    Join us on Discord: https://discord.gg/97q2Rjh

    #14574
    Driiade
    Participant

    Yes I was aware that it will be complex. So no problem. For the moment a work around exist 🙂
    And I added you a lot of some wish, and for me it’s the last one :p

    We deliver the game in, 4-5 month now ^^. It’s not a massive AAA, but it will be a polished one, with a good IP =)

    #14581
    Gavalakis
    Keymaster

    Hey,

    Thanks for understanding! I am glad to hear you are about to finish the game! Please let me know once you have something public, or willing to share! 🙂

    Join us on Discord: https://discord.gg/97q2Rjh

Viewing 5 posts - 1 through 5 (of 5 total)
  • You must be logged in to reply to this topic.