manual:subwaysim:getting_started:create_plugin
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revision | |||
| manual:subwaysim:getting_started:create_plugin [2025/12/12 12:14] – dcs | manual:subwaysim:getting_started:create_plugin [2025/12/12 12:26] (current) – dcs | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| ====== Creating a Plugin ====== | ====== Creating a Plugin ====== | ||
| - | On this page, you will learn how to create your own plugin, which will later contain all assets, scripts and content for your SubwaySim 2 mod. As explained in [[manual: | + | On this page, you will learn how to create your own plugin, which will later contain all assets, scripts and content for your SubwaySim 2 mod. As explained in [[:manual: |
| ---- | ---- | ||
| Line 10: | Line 10: | ||
| To create your own plugin: | To create your own plugin: | ||
| + | |||
| * Copy the entire folder `Simuverse_ModTemplate` | * Copy the entire folder `Simuverse_ModTemplate` | ||
| * Rename the copied folder to match the name of your project, e.g. `SubwaySim_SDK_Testplugin` | * Rename the copied folder to match the name of your project, e.g. `SubwaySim_SDK_Testplugin` | ||
| - | {{: | + | {{: |
| Important: Plugin names must not contain spaces, umlauts, or special characters. Use only letters, numbers, and underscores. | Important: Plugin names must not contain spaces, umlauts, or special characters. Use only letters, numbers, and underscores. | ||
| Line 22: | Line 23: | ||
| Inside your renamed plugin folder, you will find: | Inside your renamed plugin folder, you will find: | ||
| - | ***Content** – Contains all Unreal Engine assets such as textures, materials, Blueprints, maps, and the `Movies` folder for video files. | ||
| - | ***Lua** – Contains all Lua scripts. The most important file here is `mod.lua`, your master script where all other Lua scripts used by your mod must be registered. | ||
| - | ***Resources** – Contains assets such as the plugin icon shown in the Unreal Plugin Manager. | ||
| - | ***.uplugin file** – The metadata/ | ||
| + | * **Content** | ||
| + | * **Lua** | ||
| + | * **Resources** | ||
| + | * **.uplugin file** | ||
| ---- | ---- | ||
| Line 32: | Line 33: | ||
| The `.uplugin` file must match the exact name of your plugin folder. For example: | The `.uplugin` file must match the exact name of your plugin folder. For example: | ||
| + | < | ||
| - | | + | |
| + | |||
| + | </ | ||
| Open this file with a text editor. Inside you will see several fields, but only two must be changed: | Open this file with a text editor. Inside you will see several fields, but only two must be changed: | ||
| - | | + | < |
| - | " | + | |
| - | + | " | |
| - | {{: | + | |
| + | </ | ||
| + | |||
| + | {{: | ||
| Adjust these values to reflect your plugin name and description. | Adjust these values to reflect your plugin name and description. | ||
| Line 54: | Line 61: | ||
| * Author (optional) | * Author (optional) | ||
| - | {{: | + | {{: |
| These values are used by the game to properly initialize and display your mod. | These values are used by the game to properly initialize and display your mod. | ||
| Line 69: | Line 76: | ||
| Once the editor has loaded, open the Content Drawer Settings. Enable: | Once the editor has loaded, open the Content Drawer Settings. Enable: | ||
| + | |||
| * Show Engine Content | * Show Engine Content | ||
| * Show Plugin Content | * Show Plugin Content | ||
| - | {{: | + | {{: |
| If your plugin is not visible, it must be manually activated: | If your plugin is not visible, it must be manually activated: | ||
| + | |||
| * Go to `Edit → Plugins` | * Go to `Edit → Plugins` | ||
| * Search for your plugin by name | * Search for your plugin by name | ||
| * Activate it and restart the editor | * Activate it and restart the editor | ||
| - | {{: | + | {{: |
| - | {{: | + | |
| + | If you plan to create a map mod, you need to make sure that " | ||
| ---- | ---- | ||
| Line 88: | Line 98: | ||
| After activation, your plugin will appear in the Content Drawer. | After activation, your plugin will appear in the Content Drawer. | ||
| - | {{: | + | {{: |
| - | Note that Unreal Engine only displays the **Content** folder of your plugin — Lua files are not visible inside the editor, as they are handled externally by the game. | + | Note that Unreal Engine only displays the **Content** |
| ---- | ---- | ||
| Line 99: | Line 109: | ||
| {{page> | {{page> | ||
| + | |||
| + | |||
manual/subwaysim/getting_started/create_plugin.txt · Last modified: by dcs
