User Tools

Site Tools


setting_up_an_addon

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
setting_up_an_addon [2023/07/31 02:20] – created antigravitiessetting_up_an_addon [2023/07/31 03:03] (current) antigravities
Line 45: Line 45:
   - Click **Save** and close - now we're ready to launch the game and start coding! Select the launch configuration you just created from the dropdown and then click the **Play** button. The game will load and your addon will be enabled!   - Click **Save** and close - now we're ready to launch the game and start coding! Select the launch configuration you just created from the dropdown and then click the **Play** button. The game will load and your addon will be enabled!
  
-===== Writing your addon's code =====+====== Writing your addon's code ======
  
 You can open the addon in your preferred code editor by right clicking it in the Projects pane. From there, you'll be able to create C# files and write code as usual. You can open the addon in your preferred code editor by right clicking it in the Projects pane. From there, you'll be able to create C# files and write code as usual.
 +
 +Two things that you might want to do (but anything is possible in theory):
 +
 +  * [[custom_weaponry|Add custom weapons to the game]]
 +  * [[custom_teams_and_roles|Add custom teams and roles to the game]]
  
 When you save your code, s&box will **automagically** compile it and load it in the game. With a few exceptions, your changes will be visible **immediately**. When you save your code, s&box will **automagically** compile it and load it in the game. With a few exceptions, your changes will be visible **immediately**.
 +
 +====== Publishing your addon to asset.party ======
 +
 +Once you've finished writing and testing your code, you can upload it to asset.party in order to allow players to select it when creating a lobby or dedicated server.
 +
 +  - Right click your project in the Project Settings pane, and then click **Project Settings** to open the project settings menu.
 +  - Select **Upload To Asset Party** in the menu on the left.
 +  - Confirm your ident as created earlier in this guide, and select the organization you want to publish it under. If you haven't already created an organization, do so by selecting the "Create New Organisation" option and restart the game before continuing. {{ :addon_image9.png?400 |}}
 +  - Confirm that all of the files that you want to upload show in this screen, then click **Upload Files**.
 +  - Provide a change title and optional description, then click **Publish New Revision**.
 +  - Congratulations, your addon is now on asset.party! You can click **View and Edit on Web** to view and edit the addon on asset.party.
setting_up_an_addon.1690770038.txt.gz · Last modified: 2023/07/31 02:20 by antigravities

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki