Trouble using C# event of type Action

NodeCanvas Forums Support Trouble using C# event of type Action

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #13203
    timv
    Participant

    Hi, I’m trying out C# events using this test:

    Then in a behavior tree, I’m using Check CSharp Event Value (Integer).
    It works fine in the editor, however, thhe WebGL build crashes.
    I have already built the AOTClasses.cs and link.xml files. I did not change any of the preferred types. System.Integer is already in the list, so I think it should work. Apparently it doesn’t.

    This is part of the error for a developer build:
    An error occurred running the Unity content on this page. See your browser JavaScript console for more info. The error was:
    uncaught exception: abort(241) at jsStackTrace (WebGL_Developer.asm.framework.unityweb:1154:12)
    stackTrace (WebGL_Developer.asm.framework.unityweb:1168:11)
    abort (WebGL_Developer.asm.framework.unityweb:21955:43)
    nullFunc_iiii (WebGL_Developer.asm.framework.unityweb:16112:2)
    b241 (WebGL_Developer.asm.code.unityweb:3118350:1)
    _EventInfo_CreateAddEventDelegate_m1446482289 (WebGL_Developer.asm.code.unityweb:1229117:1)
    _EventInfo_AddEventHandler_m1121664596 (WebGL_Developer.asm.code.unityweb:1878620:1)
    _CheckCSharpEventValue_1_OnInit_m3596319355_gshared (WebGL_Developer.asm.code.unityweb:2077955:1)
    _Task_Initialize_m3619201912 (WebGL_Developer.asm.code.unityweb:1700383:1)
    _Task_Set_m1259982997 (WebGL_Developer.asm.code.unityweb:1918786:1)
    _ConditionTask_CheckCondition_m4251061198 (WebGL_Developer.asm.code.unityweb:2615670:1)
    (etc…)

    Any ideas what might be wrong? What am I missing? I tested using version 2.8.0.

    #13209
    Gavalakis
    Keymaster

    Hey,

    I just wanted to let you know that I am still looking into this problem and will report back to you as soon as I find the cause and fix.
    Thank you for your patience!

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

    #13219
    timv
    Participant

    Thanks! I was using Unity v2017.3.0f3 by the way.

    #13255
    timv
    Participant

    Hi Gavalakis, do you have any news on this? Should I go looking for a workaround?

    #13261
    Gavalakis
    Keymaster

    Hey,

    I am really sorry, but unfortunately it seems that I am facing problems with building to WebGL right now unrelated to this error.
    Can you please try the attached “patch” and let me know if that resolves the problem you are facing?

    Thank you!

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

    Attachments:
    You must be logged in to view attached files.
    #13273
    timv
    Participant

    Hi Gavalakis, I have tried the package. Unfortunately without success. Below I have pasted the relevant text from the Web Console of Firefox. The error is very similar to the previous one.

    #13284
    Gavalakis
    Keymaster

    Hello again and sorry for the late reply.

    Unfortunately I am still not able to fix this, due to the issues I am facing in building to WebGL in the first place.
    I am really sorry about this!

    As an alternative solution until this is fixed, I would suggest to please create a custom condition that subscribes to the event directly.
    If you need exact code for making such a custom condition, please let me know and I gladly do so.

    Once again, I am really sorry for the issue and the lack of fix until now.

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

    #13289
    timv
    Participant

    Thanks for your response. I will create a custom condition as a workaround.

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