Creating a simple add-on to load units
Moderator: Forum Moderators
Forum rules
- Please use [code] BBCode tags in your posts for embedding WML snippets.
- To keep your code readable so that others can easily help you, make sure to indent it following our conventions.
Creating a simple add-on to load units
Hi, Stopsignal had asked how to load his unit he has created to play it in game and i thought (since he is planning on creating more units anyway) that creating a simple add-on would probably be the best option for him.
To create a simple add-on you need: (maybe this isn't as simple as i had originally said but if you read through the steps you should understand whats going happening)
1. a folder in the userdata/data/add-ons/ folder (this is your add-on's folder)
2. a _main.cfg file (which will load all your add-on for you place it in your addon folder)
3. a folder to store your units (just create another folder called units in your addon's folder and put all your units in it)
4. a folder to store your images (just create another folder called images in your addon's folder)
- and when you want to upload your add-on to the wesnoth add-on database you need a server.pbl file read this
I have attached a archive for Stopsignal which is an era that loads his units! (EDIT the newest version of stopsignals era the deepones is on the addon server for 1.12 it currently is in beta)
NOTE: the deepones era is available on the 1.12 add-on server.
To create a simple add-on you need: (maybe this isn't as simple as i had originally said but if you read through the steps you should understand whats going happening)
1. a folder in the userdata/data/add-ons/ folder (this is your add-on's folder)
2. a _main.cfg file (which will load all your add-on for you place it in your addon folder)
what to put into the _main.cfg file
4. a folder to store your images (just create another folder called images in your addon's folder)
Other steps to create a multiplayer era
I have attached a archive for Stopsignal which is an era that loads his units! (EDIT the newest version of stopsignals era the deepones is on the addon server for 1.12 it currently is in beta)
NOTE: the deepones era is available on the 1.12 add-on server.
- Attachments
-
- Deepones_Era.zip
- Second version
- (165.91 KiB) Downloaded 256 times
-
- Deepones_Era.zip
- deepones era, EDIT: version 1.2
- (134.79 KiB) Downloaded 248 times
Creator of: The Reign of The Lords Era,The Gnats Franken Dungeon.