Verse Error: Persistent 3101 Error: "Markup content from string is not yet supported"

I am encountering a persistent 3101 error in a Verse script while working on a Fortnite UEFN project. The error appears specifically in the AttemptGetFarmSpot function, which is designed to retrieve a vector3 value from an array of farming spots. Despite multiple attempts to refine the function, the error consistently occurs when accessing array elements or returning wrapped optional values.


Steps to Reproduce

  1. Create a Verse script with the provided code.
  2. Attempt to use the AttemptGetFarmSpot function within the project.
  3. Observe that the 3101 error is triggered on specific lines.

Expected Behavior

The AttemptGetFarmSpot function should:

  • Safely retrieve the first vector3 element from the FarmingSpots array.
  • Return it wrapped in an option{} when available or none otherwise.

This behavior is expected to execute without errors.


Actual Behavior

The function fails with the following error message:

csharp

Copy code

3101: Markup content from string is not yet supported.

Code Sample Triggering the Error

verse

Copy code

AttemptGetFarmSpot() : ?vector3 =
    if (FarmingSpots.Length > 0):
        var X: float = FarmingSpots.Get(0).X
        var Y: float = FarmingSpots.Get(0).Y
        var Z: float = FarmingSpots.Get(0).Z
        var Spot: vector3 = vector3{X := X, Y := Y, Z := Z}
        return option{Spot}
    return none

Relevant Logs

Here’s the specific log entry when the error occurs:

css

Copy code

[  {    "resource": "/C:/Users/MyProject/Plugins/MyPlugin/Content/MyScript.verse",    "owner": "_generated_diagnostic_collection_name_#0",    "code": "3101",    "severity": 8,    "message": "Markup content from string is not yet supported.",    "startLineNumber": 31,    "startColumn": 76,    "endLineNumber": 36,    "endColumn": 33  }]

Environment Information

  • UEFN Version: [Insert your UEFN version here]
  • Verse Version: [Insert Verse version if available]
  • Platform: [Insert your OS (e.g., Windows 11, macOS)]
  • Project Type: Creative Mode (UEFN)

Attachments

  • Full Verse script.
  • Screenshots of the error.
  • Any relevant logs exported from UEFN.

Request

Please investigate why this specific implementation triggers the 3101 error. If it’s a bug, I’d appreciate guidance on a workaround or timeline for resolution.

Thank you for your support!

Which line is line 31 there ?