# Verse - New to Persistable Data and getting errors

**URL:** <https://forums.unrealengine.com/t/verse-new-to-persistable-data-and-getting-errors/2689914>\
**Category:** Verse\
**Tags:** unreal-editor-for-fortnite, fortnite-creative, question, fortnite\
**Created:** [January 6, 2026, 9:24am UTC](https://forums.unrealengine.com/t/verse-new-to-persistable-data-and-getting-errors/2689914 "2026-01-06T09:24:52Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![DogOnAKeyboard13](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@DogOnAKeyboard13](https://forums.unrealengine.com/u/DogOnAKeyboard13)\
**Post date:** [January 6, 2026, 9:24am UTC](https://forums.unrealengine.com/t/verse-new-to-persistable-data-and-getting-errors/2689914/1 "2026-01-06T09:24:52Z")

</div>

Hi, I’m trying to work persistable data into my map for the first time and I’m running into an error soon after typing up some code I saw in a tutorial or two. Can anyone point me to a right direction here, or if there’s posts about this already? I tried to search but haven’t found the same issue so far.

> Definition (/dogonakeyboard@fortnite.com/iceGrapple/customVerse:)playerDataMap is accessible from subpaths of /dogonakeyboard@fortnite.com/iceGrapple, but depends on (/dogonakeyboard@fortnite.com/iceGrapple/customVerse:)Player\_Data\_Persistable, which is only accessible from subpaths of /dogonakeyboard@fortnite.com/iceGrapple/customVerse. The definition should be no more accessible than its dependencies.(3593)

My code for this is here so far in a file called Player\_Data\_Persistable.verse

```verse
using { /Verse.org/Simulation }
using { /UnrealEngine.com/Temporary/Diagnostics }

# do not move / rename this file after publishing with it
var playerDataMap <public>: weak_map(player, Player_Data_Persistable) = map{}

Player_Data_Persistable := class<final><persistable>:
    # DO NOT RENAME VARIABLES ONCE PUBLISHED
    # DO NOT REMOVE VARIABLES ONCE PUBLISHED

    # Saved profile data for each player
    version : int = 0
    currency : int = 0
    totalWins : int = 0
    totalLosses : int = 0

    # Rank : int = 0

MakePlayerData <public><constructor>(Src:Player_Data_Persistable)<transacts> := Player_Data_Persistable:
    # fill in player's data when they load in
    version := Src.version
    currency := Src.currency
    totalWins := Src.totalWins
    totalLosses := Src.totalLosses

```

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/8/6/3/8631a9e0f9c35e41cc51caab60f521ce5ffd5349.png)

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/a/2/7/a279c6288bd8002954c500ab5df2bcc5950643cc.png)

---

<div class="post-metadata">

**Author:** ![Soy\_Ema\_31](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Soy\_Ema\_31](https://forums.unrealengine.com/u/Soy_Ema_31)\
**Post date:** [January 6, 2026, 5:13pm UTC](https://forums.unrealengine.com/t/verse-new-to-persistable-data-and-getting-errors/2689914/2 "2026-01-06T17:13:47Z")

</div>

The issue you’re running into is related to **Modules and Paths** in Verse (here is the official documentation: [https://dev.epicgames.com/documentation/en-us/fortnite/modules-and-paths-in-verse](https://dev.epicgames.com/documentation/en-us/fortnite/modules-and-paths-in-verse)

In Verse, **every folder you create automatically becomes a module** , and any `.verse` files inside that folder belong to that module. The **module name is the same as the folder name**.

I’ve personally had some issues when defining an `enum` inside a folder/module and trying to use it outside of that module. Even when I marked the enum with the `<public>` specifier, I still ran into errors. As far as I remember, this happens because **the module itself also needs to be public** , but since modules are defined by folders, I haven’t found a clear or reliable way to explicitly mark a folder/module as `<public>`.

Because of this behavior, my recommendation is:  
If you have **data types that need to be shared across multiple modules or submodules** (such as `classes`, `enums`, structs, etc.), **define them in the root of the project** , not inside a subfolder. This avoids visibility and import issues between modules.

So in short:

- Folder = module

- `.verse` files belong to that module

- Making a type `<public>` is sometimes not enough if the module itself isn’t accessible

- Shared types are safest when placed at the project root

Hopefully this helps clarify the issue 👍

---

<div class="post-metadata">

**Author:** ![DogOnAKeyboard13](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@DogOnAKeyboard13](https://forums.unrealengine.com/u/DogOnAKeyboard13)\
**Post date:** [January 9, 2026, 7:37am UTC](https://forums.unrealengine.com/t/verse-new-to-persistable-data-and-getting-errors/2689914/3 "2026-01-09T07:37:28Z")

</div>

Hmm ok I think I follow. I started this way because I was watching a tutorial, I think this video [here](https://youtu.be/gjJJBKTduBs?si=-OxsD0M2GZ1vdc2Q&t=79) at about 1:19, and he had his persistent data put into a sub folder in his project if I’m seeing that correctly.

I will have to try your suggestion to move the verse file with persistable data. I just didn’t know if there were more special quirks or requirements to this because it’s persistent.

---

<div class="post-metadata">

**Author:** ![DogOnAKeyboard13](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@DogOnAKeyboard13](https://forums.unrealengine.com/u/DogOnAKeyboard13)\
**Post date:** [January 9, 2026, 8:30am UTC](https://forums.unrealengine.com/t/verse-new-to-persistable-data-and-getting-errors/2689914/4 "2026-01-09T08:30:39Z")

</div>

![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/a/6/f/a6f11bc71cf80dc357428fb1b05fabde7b27b092.png)

I’m not sure I’m doing this right. I tried deleting the old file and adding a new verse file to the project in UEFN without it being in any subdirectories and it gives me a similar error. I copied and pasted the code but changed the name of the class a little bit.

---

<div class="post-metadata">

**Author:** ![DogOnAKeyboard13](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@DogOnAKeyboard13](https://forums.unrealengine.com/u/DogOnAKeyboard13)\
**Post date:** [January 9, 2026, 8:47am UTC](https://forums.unrealengine.com/t/verse-new-to-persistable-data-and-getting-errors/2689914/5 "2026-01-09T08:47:21Z")

</div>

Hey sorry for all these posts if it’s spamming but I think I found out something. For some reason declaring `<public>` on the functions and the map was the thing causing this error. I removed those and now they are compiling without error in the verse file that was moved to the root folder!

I think I can even move this folder back to the customVerse sub folder I have too now and it doesn’t seem to be throwing any errors yet. I have yet to use this data in other devices but I think I’m on my way now, thanks again for the help!

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/e/7/2/e72adc27ee27d80eb18fcf4e3ce38b20bea8bd08.png)

---

<div class="post-metadata">

**Author:** ![KK\_KillStr3aK](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/kk_killstr3ak/32/875695_2.png) [@KK\_KillStr3aK](https://forums.unrealengine.com/u/KK_KillStr3aK)\
**Post date:** [February 27, 2026, 10:58am UTC](https://forums.unrealengine.com/t/verse-new-to-persistable-data-and-getting-errors/2689914/6 "2026-02-27T10:58:22Z")

</div>

I’ve been working with a bunch of modules in the past years with verse, you can easily do it like this:

(assume MyProject is the root folder)

-MyProject/

-–MyCustomDevices/ (sub directory in MyProject folder, empty for now)

-MyCustomDevices.verse (inside MyProject folder, has to match module folder name) →

```auto
MyCustomDevices<public> := module # this makes the "MyCustomDevices" module public

{
# it can be empty but you could define things here as well
}

```

whatever file you add to the “MyCustomDevices” folder will become part of the “MyCustomDevices” module, and it goes on, I have alot of nested modules, with more than 259+ files

for e.g.:

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/d/f/1/df11d3bf446d6a5ca1644ededc7c6c28e76bb8a9.png)

Items.verse, Attributes.verse, ItemTypes.verse has the same boilerplate code I’ve sent above as they just declare the module, u could also just do a single .verse file in the folder that declares every module, it depends on you

---

<div class="post-metadata">

**Author:** ![DogOnAKeyboard13](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@DogOnAKeyboard13](https://forums.unrealengine.com/u/DogOnAKeyboard13)\
**Post date:** [March 3, 2026, 9:00am UTC](https://forums.unrealengine.com/t/verse-new-to-persistable-data-and-getting-errors/2689914/7 "2026-03-03T09:00:57Z")

</div>

Thanks for the tip! I’m not sure I completely understand (I’m just getting back into looking into my project after some time away), but I will study this at some point. Always excited to make my code more organized and modular 😃
