# Unusable Verse modules

**URL:** <https://forums.unrealengine.com/t/unusable-verse-modules/1367579>\
**Category:** Issues and Bug Reporting\
**Tags:** unreal-editor-for-fortnite, fortnite-creative, fortnite\
**Created:** [November 6, 2023, 6:42am UTC](https://forums.unrealengine.com/t/unusable-verse-modules/1367579 "2023-11-06T06:42:27Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![Daigoro](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Daigoro](https://forums.unrealengine.com/u/Daigoro)\
**Post date:** [November 6, 2023, 6:42am UTC](https://forums.unrealengine.com/t/unusable-verse-modules/1367579/1 "2023-11-06T06:42:27Z")

</div>

### Please select what you are reporting on:

Verse

### What Type of Bug are you experiencing?

Verse

### Summary

Seems like the previous report didn’t work, so i try it again:

> [@Parametric classes not usable outside of own file](https://forums.unrealengine.com/t/parametric-classes-not-usable-outside-of-own-file/1285253):
>
> Please select what you are reporting on: Verse What Type of Bug are you experiencing? Verse Summary Parametric classes not usable outside of own file Steps to Reproduce Make a parametric class, reference it outside the file Expected Result No errors, the class should be called outside the file (it’s not in a module, and even when inside a module, the same error occurs) Observed Result Can’t access a function from a preceding type. (3502) Error only raises once we make a reference to that c…

Parametric classes not usable outside of own file

### Steps to Reproduce

Make a parametric class, reference it outside the file.  
If you rename the file with the parametric class, the code will break.  
If you rename the file with that references the parametric class, it will work again.  
If you rename the file with the parametric class, the code will break again.  
If you rename the file with that references the parametric class, it will work again.  
Seems like the order in which the files were created/renamed causes this issue.

Edt.: It becomes even worse. Even if UEFN might succeed with compiling verse, the actual preview server might fail.

> VerseBuild: Error: C:/build/FortniteGame/Plugins/GameFeatures/c7fab05b-42f5-3207-b282-c58a1a7342da/Content/Daigoro.verse(475,18, 475,42) : Script error 3502: Can’t access a function from a preceding type.  
> VerseBuild: Error: C:/build/FortniteGame/Plugins/GameFeatures/c7fab05b-42f5-3207-b282-c58a1a7342da/Content/Daigoro.verse(475,18, 475,42): Script error 3502: Can’t access a function from a preceding type.  
> LogSolarisIde: Error: C:/build/FortniteGame/Plugins/GameFeatures/c7fab05b-42f5-3207-b282-c58a1a7342da/Content/Daigoro.verse(475,18, 475,42): Script Error 3.502: Can’t access a function from a preceding type.  
> JOB\_ID=a96f69d2-5227-46a6-b67e-16104dfbf6ff)., CookJobId:a96f69d2-5227-46a6-b67e-16104dfbf6ff  
> We encountered an error preparing your project. Error: errors.com.epicgames.content-service.cook-failure, An error occurred while communicating with the game servers (Content (re)cook error errors.com.epicgames.cookplugin.versebuildscripterror.  
> Too many warnings / errors, aborted processing of errors / warnings

### Expected Result

No errors, the class should be called outside the file (it’s not in a module, and even when inside a module, the same error occurs)

### Observed Result

Can’t access a function from a preceding type. (3502)  
Error only raises once we make a reference to that class.

### Platform(s)

All

---

<div class="post-metadata">

**Author:** ![Bug-Reporter](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/bug-reporter/32/1223650_2.png) [@Bug-Reporter](https://forums.unrealengine.com/u/Bug-Reporter)\
**Post date:** [November 12, 2023, 6:23am UTC](https://forums.unrealengine.com/t/unusable-verse-modules/1367579/2 "2023-11-12T06:23:00Z")

</div>

The status of UCB-1061 incident has been moved from ‘Awaiting Validation’ to ‘Closed’.

---

<div class="post-metadata">

**Author:** ![Daigoro](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Daigoro](https://forums.unrealengine.com/u/Daigoro)\
**Post date:** [November 12, 2023, 10:29am UTC](https://forums.unrealengine.com/t/unusable-verse-modules/1367579/3 "2023-11-12T10:29:59Z")

</div>

Updated the report to mention, that even if compiling in UEFN works, the actual preview server might fail. Added some logs.

---

<div class="post-metadata">

**Author:** ![Rujiyo](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/rujiyo/32/775125_2.png) [@Rujiyo](https://forums.unrealengine.com/u/Rujiyo)\
**Post date:** [December 16, 2023, 3:05am UTC](https://forums.unrealengine.com/t/unusable-verse-modules/1367579/4 "2023-12-16T03:05:56Z")

</div>

This is still an issue in the current version of UEFN. The only workaround I’ve found is to write my own packager that combines all .verse files into a single .verse file for UEFN to compile.

---

<div class="post-metadata">

**Author:** ![Daigoro](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Daigoro](https://forums.unrealengine.com/u/Daigoro)\
**Post date:** [December 16, 2023, 5:45pm UTC](https://forums.unrealengine.com/t/unusable-verse-modules/1367579/5 "2023-12-16T17:45:41Z")

</div>

I gave up on reporting this one. It was reported thrice already and closed all three times. Seems like there is an internal ticket for this already, so all ours get closed. Not sure if it will actually be fixed at some point or if it’s just “noticed”, but there is nothing to do about it other than hoping it works at some point.

I also switched to writing private programs to work with Verse due to all those issues and I think we aren’t the only ones.

---

<div class="post-metadata">

**Author:** ![UCONNGabe](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@UCONNGabe](https://forums.unrealengine.com/u/UCONNGabe)\
**Post date:** [January 12, 2024, 6:42am UTC](https://forums.unrealengine.com/t/unusable-verse-modules/1367579/6 "2024-01-12T06:42:45Z")

</div>

What do you mean by writing private programs?

---

<div class="post-metadata">

**Author:** ![Daigoro](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Daigoro](https://forums.unrealengine.com/u/Daigoro)\
**Post date:** [January 12, 2024, 6:32pm UTC](https://forums.unrealengine.com/t/unusable-verse-modules/1367579/7 "2024-01-12T18:32:37Z")

</div>

Personal tools

---

<div class="post-metadata">

**Author:** ![PMo75](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@PMo75](https://forums.unrealengine.com/u/PMo75)\
**Post date:** [February 7, 2024, 8:58pm UTC](https://forums.unrealengine.com/t/unusable-verse-modules/1367579/8 "2024-02-07T20:58:02Z")

</div>

I’m encountering Can’t access a function from a preceding type.(3502) when I create a new verse file (called queue) and implement the list version of queues according to the EPIC documentation. The queue.verse code won’t compile due to this error.

Is this the same issue as posted on this thread or different? And, is there a workaround?

---

<div class="post-metadata">

**Author:** ![Daigoro](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Daigoro](https://forums.unrealengine.com/u/Daigoro)\
**Post date:** [February 7, 2024, 11:33pm UTC](https://forums.unrealengine.com/t/unusable-verse-modules/1367579/9 "2024-02-07T23:33:39Z")

</div>

It is the exact same issue. The only “workaround” is to not use generic classes across files - until Epic allows us to create own plugins or external modules.

---

<div class="post-metadata">

**Author:** ![Daigoro](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Daigoro](https://forums.unrealengine.com/u/Daigoro)\
**Post date:** [February 12, 2024, 7:35am UTC](https://forums.unrealengine.com/t/unusable-verse-modules/1367579/10 "2024-02-12T07:35:59Z")

</div>

Wait, why was this ticket just closed?..

---

<div class="post-metadata">

**Author:** ![t.tutiya](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/t.tutiya/32/924637_2.png) [@t.tutiya](https://forums.unrealengine.com/u/t.tutiya)\
**Post date:** [April 17, 2024, 7:21am UTC](https://forums.unrealengine.com/t/unusable-verse-modules/1367579/11 "2024-04-17T07:21:01Z")

</div>

More info. From: Ask Epic : Verse

> [@Ask Epic: Verse - March 28 @ 10:00 AM ET](https://forums.unrealengine.com/t/ask-epic-verse-march-28-10-00-am-et/1765393/98):
>
> Due to the way the compiler is currently implemented, processing of types is very dependent on the order the types occur, most obvious with parametric types. This can be resolved in the same file by reordering definitions, but ordering between files is not specified. MaxVerse will alleviate this issue via pervasive leniency.

> Due to the way the compiler is currently implemented, processing of types is very dependent on the order the types occur, most obvious with parametric types. This can be resolved in the same file by reordering definitions, but ordering between files is not specified. MaxVerse will alleviate this issue via pervasive leniency.
