# How to write my own modules?

**URL:** <https://forums.unrealengine.com/t/how-to-write-my-own-modules/1288121>\
**Category:** Programming & Scripting\
**Tags:** fortnite-creative, unreal-editor-for-fortnite, question, fortnite\
**Created:** [September 8, 2023, 4:29pm UTC](https://forums.unrealengine.com/t/how-to-write-my-own-modules/1288121 "2023-09-08T16:29:27Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![vK\_3\_1\_RON](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@vK\_3\_1\_RON](https://forums.unrealengine.com/u/vK_3_1_RON)\
**Post date:** [September 8, 2023, 4:29pm UTC](https://forums.unrealengine.com/t/how-to-write-my-own-modules/1288121/1 "2023-09-08T16:29:27Z")

</div>

\*When you create a subfolder in a Verse project, a module is automatically created for that folder. \*

Does this mean that if this was my project

```auto
/ Verse
/ UnrealEngine
/ Fortnite
/ MyProject
   / DomainName
      / HordeSystem
         - SpawnPoint.verse
         - Horde.verse
         - Etc.

```

In the rest of MyProject, I can access any classes/methods/etc of the HordeSystem by writing  
`using {/DomainName/HordeSystem}`

Thanks 😄

---

<div class="post-metadata">

**Author:** ![im\_a\_lama](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/im_a_lama/32/995063_2.png) [@im\_a\_lama](https://forums.unrealengine.com/u/im_a_lama)\
**Post date:** [September 8, 2023, 5:01pm UTC](https://forums.unrealengine.com/t/how-to-write-my-own-modules/1288121/2 "2023-09-08T17:01:18Z")

</div>

Go ahead and try it, I think I tried once but it didn’t work so I don’t do modules right now. But you can try.

Also I think that the path should be `{ DomainName/HordeSystem }` with the / character since it’s a relative path. The absolute path must be `/localhost/MyProject/DomainName/HordeSystem` or something like this

---

<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:** [September 11, 2023, 1:58am UTC](https://forums.unrealengine.com/t/how-to-write-my-own-modules/1288121/3 "2023-09-11T01:58:39Z")

</div>

Hi. Not a solution to the problem, but if this helps.

> [@How to use a nested folder's module in Verse?](https://forums.unrealengine.com/t/how-to-use-a-nested-folders-module-in-verse/1172220/1):
>
> Hi. How to access a nested folder’s module in Verse? For example, if I want to access a module in Sub3.verse placed in the Sub1/Sub2 folder, how should I write the using clause? Unfortunately, the code below did not work. using { /Fortnite.com/Devices } using { /Verse.org/Simulation } using { /UnrealEngine.com/Temporary/Diagnostics } using { Sub1} using { Sub2} #Invalid access of internal module `(/localhost/MyProject230520/Sub1:)Sub2` using { Sub1.Sub2} #Invalid access of in…

---

<div class="post-metadata">

**Author:** ![vK\_3\_1\_RON](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@vK\_3\_1\_RON](https://forums.unrealengine.com/u/vK_3_1_RON)\
**Post date:** [September 11, 2023, 9:07am UTC](https://forums.unrealengine.com/t/how-to-write-my-own-modules/1288121/4 "2023-09-11T09:07:14Z")

</div>

Thanks, I got it the other day from the uefn discord but this is definitely a good read for any future people who find this post and need a solution 🙂

---

<div class="post-metadata">

**Author:** ![system](https://d3kjluh73b9h9o.cloudfront.net/original/4X/7/1/3/713c9d3f58553f0de89543d76a8a3a2779dc9fa4.png) [@system](https://forums.unrealengine.com/u/system)\
**Post date:** [October 11, 2023, 9:07am UTC](https://forums.unrealengine.com/t/how-to-write-my-own-modules/1288121/5 "2023-10-11T09:07:55Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
