handbuch:subwaysim:getting_started:create_plugin
Differences
This shows you the differences between two versions of the page.
| handbuch:subwaysim:getting_started:create_plugin [2025/12/11 13:41] – created dcs | handbuch:subwaysim:getting_started:create_plugin [2025/12/11 14:05] (current) – removed dcs | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| - | ====== 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 [[handbuch: | ||
| - | |||
| - | ===== Using the Mod Template ===== | ||
| - | |||
| - | Inside the folder `SubwaySim_Extern`, | ||
| - | |||
| - | To create your own plugin: | ||
| - | * Copy the entire folder `Simuverse_ModTemplate` | ||
| - | * 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. | ||
| - | |||
| - | ===== Understanding the Plugin Structure ===== | ||
| - | |||
| - | 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/ | ||
| - | |||
| - | ===== Renaming and Editing the .uplugin File ===== | ||
| - | |||
| - | The `.uplugin` file must match the exact name of your plugin folder. For example: | ||
| - | |||
| - | SubwaySim_SDK_Testplugin.uplugin | ||
| - | |||
| - | 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. | ||
| - | |||
| - | ===== Preparing the mod.lua File ===== | ||
| - | |||
| - | Open the file `Lua/ | ||
| - | |||
| - | * Title | ||
| - | * Description | ||
| - | * Author (optional) | ||
| - | |||
| - | These values are used by the game to properly initialize and display your mod. | ||
| - | |||
| - | ===== Starting the Unreal Engine Project ===== | ||
| - | |||
| - | Launch the SDK by opening `SubwaySim2.uproject`. On first startup, Unreal Engine will compile shaders — this may take several minutes depending on your hardware. All future startups will be much faster. | ||
| - | |||
| - | ===== Enabling Plugin Visibility in Unreal Engine ===== | ||
| - | |||
| - | Once the editor has loaded, open the Content Drawer Settings. Enable: | ||
| - | * Show Engine Content | ||
| - | * Show Plugin Content | ||
| - | |||
| - | If your plugin is not visible, it must be manually activated: | ||
| - | * Go to `Edit → Plugins` | ||
| - | * Search for your plugin by name | ||
| - | * Activate it and restart the editor | ||
| - | |||
| - | ===== Viewing Your Plugin in the Editor ===== | ||
| - | |||
| - | 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. | ||
| - | |||
| - | ===== Your Plugin Is Ready! ===== | ||
| - | |||
| - | Your custom plugin has now been successfully created and fully prepared. You can begin adding content, building assets, and expanding your mod step by step. Have fun creating your first SubwaySim 2 mod! | ||
handbuch/subwaysim/getting_started/create_plugin.1765456905.txt.gz · Last modified: by dcs
