Guide [How To] Add a New/Custom Map + Instance Dungeon

Caves

The Annoying Newbie
Premium
Joined
Sep 13, 2024
Messages
67
Solutions
2
Reaction score
30
Points
18
In this simple guide I will show you how to add a new or custom map and turn it into an instance dungeon for your server.
For this guide I will turn Clockworks into an Instance Dungeon.



Let us start, get your World File and create a folder in your World folder.
For this case we will name it "DuClockwork" and make sure all the proper files are in there.


Next, lets do the Resource work.
1. In defineWorld.h, define your world, in my case
Hey There!
Please login and(or) register to see this awesome content today.

2. In World.inc
Hey There!
Please login and(or) register to see this awesome content today.

3. In world.txt.txt
Hey There!
Please login and(or) register to see this awesome content today.

4. In your Program Folder, inside your CoreServer.ini add a line for your Dungeon
Hey There!
Please login and(or) register to see this awesome content today.


With Steps 1 to 4 done, the new map should already be working and you may already visit it ingame.
Just make sure to have the same DuClockwork in your Client's World folder.
At this point the map is already working but no Clockwork spawning and not an instance dungeon yet.


Now to turn your Clockwork map into a working dungeon.
For this, we will need the help of WorldEditor from Atools to get a better view of where you want to place the dungeon entrance and its coordinates.
You can also do this ingame by saving the point where your character is standing but I personally find using WorldEditor more convenient.

1. With WorldEditor we will locate the spot inside the Clockwork Dungeon where we want the teleport trigger to send us to.
Hey There!
Please login and(or) register to see this awesome content today.
Hey There!
Please login and(or) register to see this awesome content today.

2. Applying the coordinates to the Region/Triggers.
That green cube is an attribute region, it will have the teleport function for us to go out of the map.
The teleport coordinates which will send us out of the Clockwork Entrance in its properties are:
1727316281224.png

3. Now with WorldEditor, go to the spot where you want the entrance to be and put a Trigger for the teleport.
And input in the teleport properties the values for the Green X like the picture below
1727316862903.png

And with those steps done, now you should be able to get in and out of the dungeon without having to use a teleport command.
Next step for us is to turn it into a working dungeon.


To turn it into a working instance dungeon and have the clockworks spawn we must add it into the PartyDungeon.lua. (Unless you have a Solo Dungeon Feature)
In PartyDungeon.lua add:

Hey There!
Please login and(or) register to see this awesome content today.


And that should be all you have to do to add and turn Clockwork into a Instance Dungeon
 
Thank you for the tutorial!
 
Thank you for the guide
 
Thank you for the guide,Thank you