Skip to content

BPVerse Script error 3504: missing VerseReflectionTypes/VerseReflectionTypes

Section titled “BPVerse Script error 3504: missing VerseReflectionTypes/VerseReflectionTypes”
  • Status: workaround, not an engine fix.
  • Engine: ue6-main 61e2877e, Linux x86_64, Epic clang 23.1.5 (v27 SDK).
  • Context: Standalone UE6. Project Content using BPVerse UObject reflection.
  • Prerequisites: A project with Solaris and Verse enabled, verse.UObjectBinding=1 under [ConsoleVariables], and an editor built from this revision. The reproduction uses PythonScriptPlugin to end the headless session.
The VerseReflectionTypes plugin is not enabled; reflected declarations that use `ue_reflection` types will not compile.
Script error 3504: Package `Script/ACLPlugin` specifies dependency `VerseReflectionTypes/VerseReflectionTypes` which does not exist.

The package named before the missing dependency can vary. The same failure named several Script/* packages in the Step 01 log.

In the standalone project, leave the compatibility plugin absent and put only these imports in Content/reflection_seed.verse. This was the import-only test in Coop Zero, where the native CoopZero runtime module was already built.

using { /Script/CoopZero }
using { /Script/Engine }

With UE set to the engine root and P to the project root, run the editor against an empty Python script to trigger the startup Verse compile. Use the build wrapper if the checkout is shared.

Terminal window
mkdir -p "$P/Saved"
touch "$P/Saved/reflection_exit.py"
timeout 180s "$UE/Engine/Binaries/Linux/UnrealEditor-Cmd" "$P/CoopZero.uproject" \
-run=PythonScript -Script="$P/Saved/reflection_exit.py" \
-nullrhi -unattended -nosplash -nosound -stdout \
'-ddc=(ProjectPak,EnginePak,Local)' -LocalDataCachePath="$P/DerivedDataCache" \
-ExecCmds="verse.reflection.Dump=Engine+CoopZero" \
-dpcvars=verse.reflection.Dump=Engine+CoopZero -abslog="$P/Saved/reflection.log"

Check for the engine package first. Both the local ue6-main and the locally available origin/ue6-main pointed to 61e2877e. A case-insensitive search of both git ls-tree -r --name-only lists for VerseReflectionTypes and ue_reflection found no matching path. A case-insensitive filename search under the on-disk Engine/Plugins also found no matching entry. git grep for both terms at HEAD under Engine/Plugins and the engine’s UnrealBuildTool path found only Solaris reflection references and its warning, with no provider. This search covered the available checkout and refs.

Create Plugins/VerseReflectionTypes/VerseReflectionTypes.uplugin with CanContainVerse: true and a VerseReflectionTypes module of type Runtime loaded at Default. Declare Solaris as a plugin dependency and enable VerseReflectionTypes in the project descriptor. Under Source/VerseReflectionTypes in that plugin:

  1. In the module’s .Build.cs constructor, use PCHUsage = PCHUsageMode.NoPCHs for this small module and add private dependencies Core, CoreUObject and VerseNative. Call SetupVerse("/UnrealEngine.com/Reflection", VerseScope.PublicAPI, VerseVNI.Disabled).
  2. Add a C++ source file that includes Modules/ModuleManager.h and registers IMPLEMENT_MODULE(FDefaultModuleImpl, VerseReflectionTypes).
  3. Put these aliases in Verse/refinements.native.verse.

This snippet is our own code, not engine source.

ue_reflection<public> := module:
int32_t<public> := type{N:int where -2147483648 <= N, N <= 2147483647}
int8_t<public> := type{N:int where -128 <= N, N <= 127}
byte_t<public> := type{N:int where 0 <= N, N <= 255}
float32_t<public> := type{N:float where -3.4028234663852886e38 <= N, N <= 3.4028234663852886e38}

Rebuild the editor target, then repeat the import-only launch with a new log path.

Solaris builds dependencies for reflected /Script modules using the exact VNI package name VerseReflectionTypes/VerseReflectionTypes. The plugin and module names supply that package identity, and the public Verse path lets Solaris resolve the four names it requests beneath ue_reflection. VerseNative supplies VerseInteropMacros.h to the generated module initialization code.

The source still belongs to a VNI-capable package with VerseVNI.Disabled. A file named refinements.verse raised Verse compiler error V3012.

therefore should have the `.native.verse` file extension.

The same source passed the VNI step after renaming it to refinements.native.verse. Keep normal project BPVerse files in Content as .verse.

  • Evidence level: runs in packaged build. The Linux cook included the compatibility package, and the packaged Development game ran the BPVerse override (VERSE_INTERACT_OK once, no Verse or Script errors; lane step01c, re-run by the independent check).
  • How: The import-only editor launch before the shim exited 1 with Script error 3504. Build.sh CoopZeroEditor Linux Development -Project="$P/CoopZero.uproject" -MaxParallelActions=8 -NoEngineChanges with the shim logged Result: Succeeded. The repeated import-only launch logged Global Verse compile (incremental, 2 packages compiled in 427.0 ms) finished: SUCCESS. and dumped both reflected modules. The bridge recipe records the runtime check.
  • Date / by: 2026-11-24, Coop Zero Step 01 and 01b.

The four aliases cover the reflection lookup exercised on this revision. The bridge used an object pointer and a string, so it gives no runtime evidence about numeric conversion, overflow, infinities or NaNs. The float refinement supplies a finite range. IEEE rounding and precision semantics would require separate testing. Use the engine-supplied package if your checkout provides it.

Collision risk. The shim is a project plugin that provides the package name Solaris asks for, VerseReflectionTypes/VerseReflectionTypes. Before moving to a new engine commit, search that commit for VerseReflectionTypes as described under Solution. If Epic later ships the package, remove the shim: delete the plugin directory, remove the VerseReflectionTypes plugin from the project descriptor, and build and package again. What happens when the shim and an engine package are both present was not tested (INFERRED: two providers of the same package name meet in one build).

Reported to Epic: not yet.