Workshop: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
Line 7: | Line 7: | ||
# In that folder, create a vpk with your mod contents. (See https://developer.valvesoftware.com/wiki/Vpk for more information) | # In that folder, create a vpk with your mod contents. (See https://developer.valvesoftware.com/wiki/Vpk for more information) | ||
# Create a package.txt file in that folder. For an example of the contents, look below. | # Create a package.txt file in that folder. For an example of the contents, look below. | ||
# Create a PNG image in the workshopsrc folder with the same name as your workshop item. (emp_coast.png) | # Create a PNG image in the workshopsrc folder with the same name as your workshop item. Make sure the image has a resolution of 1920x1080 (at least 16:9) (emp_coast.png) | ||
# Open Empires | # Open Empires | ||
# Open the console | # Open the console |
Revision as of 05:25, 5 March 2017
Warning, still in development!
To add something to the workshop, do the following:
- Create the folder workshopsrc in the empires folder.
- Create a folder with the name of your workshop item in there. Example: emp_coast
- In that folder, create a vpk with your mod contents. (See https://developer.valvesoftware.com/wiki/Vpk for more information)
- Create a package.txt file in that folder. For an example of the contents, look below.
- Create a PNG image in the workshopsrc folder with the same name as your workshop item. Make sure the image has a resolution of 1920x1080 (at least 16:9) (emp_coast.png)
- Open Empires
- Open the console
- Type workshop_upload emp_coast (replace emp_coast with the name of your workshop item)
- The workshop webpage should now open
- Subscribe to your own workshop item
- Test out the workshop item
- If everything works, set the visibility to public.
package.txt
This file controls how the workshop item should be treated.
Example
Package { Name "emp_coast" Author "Thexa4" Type "Map" SearchPaths { game emp_coast.vpk } }
Fields
- Name The name of the workshop item
- Author Who made this workshop item originaly?
- Type The type of workshop item. Should be one of the following:
- Map
- Scripts
- Modelpack
- Texturepack
- Soundpack
- Plugin
- GameOverride If set to 1, load the files in this item before normal game files. This can only be set by developers, if you need this for your mod, please post on the forums.
- SearchPaths A set of searchpaths for files in the item. Normally:
game <name>.vpk
Troubleshooting
If you accidentally removed the generated id file for your item, create a text file named <name>.id.txt, and add the number that's at the end of the url of the page when you have your workshop item open in your browser. This will link it again.