相关文章推荐

Verse

Summary

I get no error in “Build Verse Code”, but in “Launch Session” I get an error and cannot start the session.
The error message is “Script error 3542: Missing return type for function”.
However, the line in Verse is not a function, but a Constructor definition, and Constructors should not need a return type.
Also, the path shown in the error message is /sys/published/… which seems to indicate that the error is for a published file, not a file that is local to the server. The same error occurs when I delete a function or file from a local file.

Steps to Reproduce

  • start UEFN
  • Open the project
  • Run Launch Session
  • Expected Result

    Expect the session to start without any errors.

    Observed Result

    “Unable to Play, Validation failed” dialog appears and the “Verse Build” entry in the “Message Log” window displays the following error.

    …/Plugins/ProjectName/sys/published/Content/filename.verse(290,23, 290,55) : Script error 3542: Missing return type for function.

    Platform(s)

    windows

    Island Code

    8865-1915-0180

    I did the following steps and now Launch Session is available.

    Change “Constructor” to “function” → No change
    Delete the file and copy the contents to an alias file → No change
    Check in RevisionControl for backup.
    Sync from RevisionControl to the previous Snapshot → No change
    Revert to the latest Snapshot → Verse file that was supposed to be deleted is still there. Error because the contents are duplicated.
    Right-click on the file from Verse Explorer>Revert → It works!

    But this time, when publishing the island on the Creator Portal, the same error message appeared and I could not press the publish button.
    I need Epic’s support. Please help.


    There seemed to be an error in the Verse Persistence Data compatibility check, so I reverted the active version back to before save support and republished it, and was able to publish without the error.
    However, I believe that the root cause is a problem with the Verse compiler, which generates incorrect errors for Constructor, so please investigate and correct the problem to prevent the same problem from occurring in the future.

     
    推荐文章