This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
| tutorial:creating-a-new-gracesite [2025/02/26 02:31] – created admin | tutorial:creating-a-new-gracesite [2025/02/26 02:49] (current) – admin | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| ====== Creating a New Gracesite ====== | ====== Creating a New Gracesite ====== | ||
| + | Authors: Lucy | ||
| ===== What you’ll need ===== | ===== What you’ll need ===== | ||
| Line 30: | Line 31: | ||
| {{er_new_grace_4.png}} | {{er_new_grace_4.png}} | ||
| + | {{er_new_grace_5.png}} | ||
| **Player** with the **Model Name c0000** (This controls where the player spawns when dying or warping to this grace) | **Player** with the **Model Name c0000** (This controls where the player spawns when dying or warping to this grace) | ||
| - | {{er_new_grace_5.png}} | + | {{er_new_grace_6.png}} |
| **Mark all 3 of these Objects** and **duplicate** them with **Ctrl+D** and move them to where you want the Gracesite to be | **Mark all 3 of these Objects** and **duplicate** them with **Ctrl+D** and move them to where you want the Gracesite to be | ||
| Line 39: | Line 41: | ||
| The **Asset** and **Enemy** need to **overlap**, | The **Asset** and **Enemy** need to **overlap**, | ||
| - | {{er_new_grace_6.png}} | + | {{er_new_grace_7.png}} |
| What you need to do now is change the Entity IDs of the given Objects | What you need to do now is change the Entity IDs of the given Objects | ||
| Line 47: | Line 49: | ||
| You will find the Object that has the Entity ID, now **press +** until there is nothing found, this means that this Entity ID is **not used by another Gracesite** and you can safely use it | You will find the Object that has the Entity ID, now **press +** until there is nothing found, this means that this Entity ID is **not used by another Gracesite** and you can safely use it | ||
| - | {{er_new_grace_7.png}} | + | {{er_new_grace_8.png}} |
| - | +++ **An Explanation on the IDs:** | + | ===== An Explanation on the IDs ===== |
| + | The Entity IDs follow a **very specific pattern** that you need to follow for your Gracesite too. | ||
| - | * The Entity IDs follow a **very specific pattern** that you need to follow for your Gracesite too | + | Here is the Gracesite of Church of Elleh for example, which I will use to explain the pattern, the IDs for it are as follows: |
| - | * Here is the Gracesite of Church of Elleh for example, which I will use to explain the pattern, the IDs for it are as follows: | + | * **Enemy - Has the Entity ID 1042360950** |
| - | * **Enemy - Has the Entity ID 1042360950** | + | * **Player - Has the Entity ID 1042360980** |
| - | * **Player - Has the Entity ID 1042360980** | + | * **Asset - Has the Entity ID 1042361950** |
| - | * **Asset - Has the Entity ID 1042361950** | + | |
| - | * The mapID for Church of Elleh is **m_60_42_36_00** (which can be shown as **m_AA_BB_CC_DD** for clarity) where you can see a connection to the mapID, the Entity ID follows this pattern for the first Gracesite in a given map: | + | |
| - | * **10BBCC0950 - Enemy** | + | |
| - | * **10BBCC0980 - Player (Enemy + 30)** | + | |
| - | * **10BBCC1950 - Asset (Enemy + 1000)**[[footnote]] with each consecutive Gracesite being +1 [[/ | + | |
| - | * With that knowledge we know how to change the Entity IDs now! | + | |
| - | * In my example I duplicated the Gracesite of Church of Elleh into the map of Gowry’s Shack, even though it has a Gracesite present, just for showing how to change the IDs | + | |
| - | * Given that Gowry’s Shack mapID is m60_50_38_00 we need to change the EntityIDs to the following: | + | |
| - | * **Enemy** will now be **1050380951**[[=image https:// | + | |
| - | * **Player** will now be **1050380981**[[=image https:// | + | |
| - | * **Asset** will now be **1050381951**[[=image https:// | + | |
| - | * With these IDs now changed, we can change the **Collision Part Name** of the **Enemy Object as a precaution** - not all Gracesites do this, but some do, I would argue it’s | + | The mapID for Church of Elleh is **m_60_42_36_00** (which can be shown as **m_AA_BB_CC_DD** for clarity) where you can see a connection |
| - | * In my example the Gracesite sits on the Collision | + | * **10BBCC0950 - Enemy** |
| - | * Copy that name and paste it into the Enemy’s Collision Part Name field at the bottom[[=image https:// | + | * **10BBCC0980 - Player (Enemy + 30)** |
| + | * **10BBCC1950 - Asset (Enemy + 1000)** - with each consecutive Gracesite being +1, If the map has AA as anything other than 60 or 61, then the EntityID will use AABB0950 etc. instead without | ||
| - | ------ | + | With that knowledge we know how to change the Entity IDs now! |
| - | ++ **Param Editor** | + | In my example I duplicated the Gracesite of Church of Elleh into the map of Gowry’s Shack, even though it has a Gracesite present, just for showing how to change the IDs |
| + | |||
| + | Given that Gowry’s Shack mapID is m60_50_38_00 we need to change the EntityIDs to the following: | ||
| + | * **Enemy** will now be **1050380951** | ||
| + | |||
| + | {{er_new_grace_9.png}} | ||
| + | |||
| + | * **Player** will now be **1050380981** | ||
| + | |||
| + | {{er_new_grace_10.png}} | ||
| + | |||
| + | * **Asset** will now be **1050381951** | ||
| + | |||
| + | {{er_new_grace_11.png}} | ||
| + | |||
| + | Since it is the second Gracesite on this map! | ||
| + | |||
| + | With the end being 0 for the first Gracesite (which here is Church of the Plague) in the map and every next Gracesite being +1, make sure you follow the consecutive order in your map, if there are 5 Graces present, your IDs should end with 5, since 0-4 is used by the others. | ||
| + | |||
| + | With these IDs now changed, we can change the **Collision Part Name** of the **Enemy Object as a precaution** - not all Gracesites do this, but some do, I would argue it’s a safe bet to add the **Collision Part Name of the collision the Gracesite sits on** incase that is needed (I believe it’s more needed if the Gracesite sits on Terrain itself, if it is on another Asset, that has a collision itself, like a Bridge you most likely won’t need to change it) | ||
| + | |||
| + | In my example the Gracesite sits on the Collision **h503801** | ||
| + | |||
| + | {{er_new_grace_12.png}} | ||
| + | |||
| + | Copy that name and paste it into the Enemy’s Collision Part Name field at the bottom | ||
| + | |||
| + | {{er_new_grace_13.png}} | ||
| + | |||
| + | Make sure to save the Map now with Ctrl+S or right clicking the Map and saving it - you can unload the maps to free up some resources if you’d like | ||
| + | |||
| + | ===== Param Editor ===== | ||
| We can now move on to the Param Editor as we are finally done with the Map Editor part! | We can now move on to the Param Editor as we are finally done with the Map Editor part! | ||
| - | * Go into **BonfireWarpParam** and search for a **Gracesite that is in the same map** as your new one and **mark the last one of that map** and press **Ctrl+D to duplicate** it - if your map did not have any Gracesite, just **duplicate any Gracesite that is near your map** with a similar ID and same Area (aka Caelid, etc.) and duplicate that | + | Go into **BonfireWarpParam** and search for a **Gracesite that is in the same map** as your new one and **mark the last one of that map** and press **Ctrl+D to duplicate** it - if your map did not have any Gracesite, just **duplicate any Gracesite that is near your map** with a similar ID and same Area (aka Caelid, etc.) and duplicate that |
| - | * I will duplicate **Church of the Plague, as this is a Gracesite that exists in the map I’m using**[[=image https:// | + | |
| - | * Now we need to change some specific **Fields**: | + | I will duplicate **Church of the Plague, as this is a Gracesite that exists in the map I’m using** |
| - | * **Name** - Change it to the **Gracesite name** you want to use, I’ll be calling mine **Gowry’s Shack**[[=image https:// | + | |
| - | * **ID** - can stay the same if it’s a duplicate of an existing Gracesite but needs to be changed into **XXBBCC00** when not from the same map - with **XX** being the **starting numbers of the ID** as you duplicated one from the **same area (e.g. Caelid which would be 64)** and **BBCC being from your mapID** as earlier and at the end **00 with each consecutive Gracesite being +1**, so in my example the ID would be **64**(Caelid)**5038**(mapIDBBCC)**01**(00 is the existing Gracesite) - simplified: **64503801**[[=image https:// | + | {{er_new_grace_14.png}} |
| - | * **Event Flag ID** - needs to be a **unique ID** as this is used for the **registering of the Gracesite** and the **unlocking of it on the map**. You can just use a **consecutive EventID** from the same pattern used as before like this: **10BBCC0000** **(AABB0000 on maps > | + | |
| - | * so in this case it is **1050380001** as it is the **second** Gracesite in the map![[=image https:// | + | Now we need to change some specific **Fields**: |
| - | * **Bonfire Entity ID** - Needs to be the **EntityID of your Asset Object** - so here **1050381951**[[=image https:// | + | * **Name** - Change it to the **Gracesite name** you want to use, I’ll be calling mine **Gowry’s Shack** |
| - | * **Subcategory ID** - The area your Gracesite is in, can usually stay the same, but if your Gracesite is not in that area, change it to the one it is - you can find the **areaID** in **BonfireWarpSubCategoryParam** - here it stays **64000 for Caelid**[[footnote]] | + | |
| - | * **MapArea** - **AA** of m**AA**_BB_CC_DD | + | {{er_new_grace_15.png}} |
| - | * **MapBlock** - **BB** of mAA_**BB**_CC_DD | + | |
| - | * **MapRegion** - **CC** of mAA_BB_**CC**_DD | + | * **ID** - can stay the same if it’s a duplicate of an existing Gracesite but needs to be changed into **XXBBCC00** when not from the same map - with **XX** being the **starting numbers of the ID** as you duplicated one from the **same area (e.g. Caelid which would be 64)** and **BBCC being from your mapID** as earlier and at the end **00 with each consecutive Gracesite being +1**, so in my example the ID would be **64**(Caelid)**5038**(mapIDBBCC)**01**(00 is the existing Gracesite) - simplified: **64503801** |
| - | * **m60_50_38_00**:[[=image https:// | + | |
| - | * **Coordinate: | + | {{er_new_grace_16.png}} |
| - | * **Coordinate: | + | |
| - | * **Coordinate: | + | * **Event Flag ID** - needs to be a **unique ID** as this is used for the **registering of the Gracesite** and the **unlocking of it on the map**. You can just use a **consecutive EventID** from the same pattern used as before like this: **10BBCC0000** **(AABB0000 on maps > |
| + | * so in this case it is **1050380001** as it is the **second** Gracesite in the map! | ||
| + | |||
| + | {{er_new_grace_17.png}} | ||
| + | |||
| + | * **Bonfire Entity ID** - Needs to be the **EntityID of your Asset Object** - so here **1050381951** | ||
| + | |||
| + | {{er_new_grace_18.png}} | ||
| + | |||
| + | * **Subcategory ID** - The area your Gracesite is in, can usually stay the same, but if your Gracesite is not in that area, change it to the one it is - you can find the **areaID** in **BonfireWarpSubCategoryParam** - here it stays **64000 for Caelid**. This controls in which sub-menu the Gracesite will appear when opening the Gracesite list while on the map ingame. | ||
| + | |||
| + | {{er_new_grace_19.png}} | ||
| + | |||
| + | * **MapArea** - **AA** of m**AA**_BB_CC_DD | ||
| + | * **MapBlock** - **BB** of mAA_**BB**_CC_DD | ||
| + | * **MapRegion** - **CC** of mAA_BB_**CC**_DD | ||
| + | * **m60_50_38_00** | ||
| + | |||
| + | {{er_new_grace_20.png}} | ||
| + | |||
| + | * **Coordinate: | ||
| + | * **Coordinate: | ||
| + | * **Coordinate: | ||
| + | * It can happen that the Position of the Enemy Object is not correctly updated yet, I suggest saving everything and restarting Smithbox and loading the map again and checking to make sure it’s correct (move it a little to verify the numbers changing correctly) - as these Coordinates determine the Gracesite Icon on the map ingame. | ||
| + | |||
| + | {{er_new_grace_21.png}} | ||
| + | {{er_new_grace_22.png}} | ||
| + | |||
| + | ===== Text Editor ===== | ||
| + | Go into the **Text Editor** and click on **Locations** under **Menu Text** | ||
| + | |||
| + | Search for the Gracesite you just duplicated and you’ll find an ID with the name of it, right click it and duplicate the entry | ||
| + | |||
| + | {{er_new_grace_23.png}} | ||
| + | |||
| + | Here **I duplicated Church of the Plague** and now you can rename it to the **name** your new **Gracesite** has - in my example **Gowry’s Shack**, while making sure there are no extra characters after the name (like a new line etc.) | ||
| + | |||
| + | {{er_new_grace_24.png}} | ||
| + | |||
| + | Make sure to save the new entry by pressing **Ctrl+S** or clicking on **File - Save All Modified Text** | ||
| + | |||
| + | ===== Back to Param Editor ===== | ||
| + | |||
| + | Continuing with the Fields: | ||
| + | * **Text ID** - Change this to the ID of the Text Entry you just created of your Gracesite | ||
| + | |||
| + | If the Gracesite you duplicated has a bunch of Talk IDs or NPC IDs after this one you can safely change them to -1 or 0 respectively, | ||
| + | |||
| + | {{er_new_grace_25.png}} | ||
| + | |||
| + | Now save the Param Editor with Ctrl+S, we can now move on to the Event step of this guide - we are almost done! | ||
| + | |||
| + | ===== DarkScript3 ===== | ||
| + | |||
| + | Open up **DarkScript3** and click on **File - Open Project** and choose the **project.json** in your project folder | ||
| - | ------ | + | {{er_new_grace_26.png}} |
| - | ++ **Text Editor** | + | On the **left** you will see a **list of all maps in Elden Ring**, find yours and **double click it** and **choose Elden Ring** if asked - you will now see all the **events that exist in that map** |
| - | * Go into the **Text Editor** and click on **Locations** under **Menu Text** | + | {{er_new_grace_27.png}} |
| - | * Search for the Gracesite you just duplicated and you’ll find an ID with the name of it, right click it and duplicate the entry[[=image https:// | + | |
| - | * Here **I duplicated Church of the Plague** and now you can rename it to the **name** your new **Gracesite** has - in my example **Gowry’s Shack**, while making sure there are no extra characters after the name (like a new line etc.)[[=image https:// | + | |
| - | * Make sure to save the new entry by pressing **Ctrl+S** or clicking on **File - Save All Modified Text** | + | |
| - | ------ | + | Inside **$Event0** you will see a **RegisterBonfire event** if your map had an existing Gracesite present |
| - | ++ **Back to Param Editor** | + | {{er_new_grace_28.png}} |
| - | * Continuing with the Fields: | + | Change |
| - | * **Text ID** - Change this to the ID of the Text Entry you just created of your Gracesite[[footnote]] If the Gracesite you duplicated has a bunch of Talk IDs or NPC IDs after this one you can safely change them to -1 or 0 respectively, as those control specific Questlines or show the name of an NPC on the map ingame [[/ | + | |
| - | **Now save the Param Editor | + | Change the **second number** to the **Bonfire Entity ID** found in the **Param Editor** - here **1050381951** |
| - | ------ | + | {{er_new_grace_29.png}} |
| - | ++ **DarkScript3** | + | **If your emevd does not contain an event like this, just create one as the first line under Event 0 with this line:** |
| - | * Open up **DarkScript3** and click on **File - Open Project** and choose the **project.json** in your project folder[[=image https:// | + | <code> |
| - | * On the **left** you will see a **list of all maps in Elden Ring**, find yours and **double click it** and **choose Elden Ring** if asked - you will now see all the **events that exist in that map**[[=image https:// | + | |
| - | * Inside **$Event0** you will see a **RegisterBonfire event** if your map had an existing Gracesite present - **copy the full line and paste it right under** and **add a // Comment** naming it - this is so you can see what you changed in the file and know what’s yours and what is vanilla[[=image https:// | + | |
| - | * Change the **first number** inside the **() of RegisterBonfire** to the **EventID** you used in the Param Editor too, following the pattern - here it will be **1050380001, | + | |
| - | * Change the **second number** to the **Bonfire Entity ID** found in the **Param Editor** - here **1050381951**[[=image https:// | + | |
| - | * **If your emevd does not contain an event like this, just create one as the first line under Event 0 with this line:** | + | |
| - | [[code]] | + | |
| // | // | ||
| RegisterBonfire(uniqueEventID, | RegisterBonfire(uniqueEventID, | ||
| - | [[/code]] | + | </code> |
| - | * **Save the file with Ctrl+S or File - Save and close DarkScript3** | + | **Save the file with Ctrl+S or File - Save and close DarkScript3** |
| **We are done! We can now test the new grace and make sure everything is working fine!** | **We are done! We can now test the new grace and make sure everything is working fine!** | ||
| - | ------ | + | ===== Finished! Testing the Gracesite ===== |
| + | Open your **config_eldenring.toml** and point **ModEngine2** to your **mods project folder** like so, adding a new line if needed: **(Make sure to use double slashes < | ||
| - | ++ **Finished! Testing the Gracesite** | + | {{er_new_grace_30.png}} |
| - | * Open your **config_eldenring.toml** and point **ModEngine2** to your **mods project folder** like so, adding a new line if needed: **(Make sure to use double slashes \\!)**[[=image https:// | + | **Launch the game with launchmod_eldenring.bat and test if your Gracesite works! If you followed everything correctly it should work.** |
| - | * **Launch the game with launchmod_eldenring.bat and test if your Gracesite works! If you followed everything correctly it should work.** | + | |
| - | **Here is a video of my tutorial Gracesite working as intended:** | ||
| - | [[html]] | ||
| - | <div style=" | ||
| - | [[/html]] | ||