-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #3 from kosch104/AssetPackCreatorBeta
Asset Pack Creator Beta Release
- Loading branch information
Showing
16 changed files
with
82 additions
and
60 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
## Create an Asset Pack using Asset Pack Creator | ||
The Asset Pack Creator is a Windows Application designed to be used as a replacement of manually creating asset packs | ||
|
||
## Features | ||
- Choose a name for your Asset Pack | ||
- Add and Remove your prefab files | ||
- Includes overview of added prefabs | ||
- Add/Remove thumbnails to your Prefabs (including live preview) | ||
- Automatically sets correct Prefab Name and Thumbnail paths in the Prefab file | ||
- Edit your Asset Pack Publishing Information (thumbnail, Display name) including Markdown Preview | ||
- Publish your Asset Pack from within the application without ever opening an IDE | ||
- Add Name and Description to your assets (coming soon) | ||
- Add Localization to your assets (coming soon) | ||
|
||
## Getting Started | ||
|
||
1. Download OR Clone the [repository](https://github.com/kosch104/CS2-CustomAssetPack) OR Create a repository based on this ("Use this template", green button) | ||
2. Open the repository in your windows explorer (file browser) and execute the `AssetPackCreator.exe` | ||
3. Follow the instruction steps in the Asset Pack Creator | ||
|
||
## Known Issues | ||
- When opening the Creator in a manually edited Asset Pack there can be uncaught exceptions. |
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,7 +13,7 @@ | |
<!--The file should contain 2 lines:--> | ||
<!--[email protected]--> | ||
<!--Your-PDX-Account-Pa$$word--> | ||
<PDXAccountDataPath>$(USERPROFILE)\Desktop\pdx_account.txt</PDXAccountDataPath> | ||
<PDXAccountDataPath>$(USERPROFILE)\pdx_account.txt</PDXAccountDataPath> | ||
|
||
<!--The file where mod information which is required for publishing mod on PDX mods are stored--> | ||
<PublishConfigurationPath>Properties\PublishConfiguration.xml</PublishConfigurationPath> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
## Manually Creating your Asset Pack | ||
|
||
1. Clone the [repository](https://github.com/kosch104/CS2-CustomAssetPack) OR Create a repository based on this ("Use this template", green button) | ||
2. Open the repository in your windows explorer (file browser) and execute the `AssetPackCreatorUtilities.exe`. There you can rename your project. Choose a project name that contains no spaces or special characters and ends in `AssetPack` | ||
3. Open the repository sln-file with any IDE (Visual Studio, Rider, but NOT Visual Studio Code, that doesn't work) | ||
4. If you are using an alternative Cities Skylines II installation path, enter it in the `CustomAssetPack.csproj`-file under `<CustomManagedPath>` | ||
5. Create a file called `pdx_account.txt` on your Desktop. Put your PDX Mods username in the first line, your password in the second line. This is required for the mod to be published under your name and will not be shared with anyone. | ||
6. Put the assets you want to add into the "Resources/assets" folder in the solution explorer (subfolders allowed) | ||
7. Edit the localization file "en-US.json" to include your assets. Otherwise, they will have missing localization | ||
8. Add thumbnails to your assets. Make sure the icon path is set like this `coui://customassets/PackName/CarProp.png` | ||
9. Click on the Build Symbol (Hammer in Rider) at the top to build your project. This will load the assets into your local mods folder | ||
|
||
## Publishing your Asset Pack | ||
|
||
To publish your mod you have to do the following steps: | ||
1. Open `Properties/PublishConfiguration.xml` in Notepad | ||
2. Edit `<DisplayName>`, `<ShortDescription>`, `<LongDescription>` and `<Tag>` | ||
3. Replace the `thumbnail.png` file by the thumbnail for your Asset Pack | ||
4. In Visual Studio, navigate to "Publish" and select "Publish New Mod". In Rider you can just select "Publish New Mod" next to the green arrow and press the arrow to execute the Publish Configuration. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,33 +1,21 @@ | ||
<Publish> | ||
<!--Id must be set in order to update existed mod. it is not required for publishing mod for the first time--> | ||
<ModId Value="" /> | ||
<!--Name of the mod to display to players--> | ||
<DisplayName Value="TODO#1" /> | ||
<!--Short description of the mod--> | ||
<ShortDescription Value="TODO#2" /> | ||
<!--Long description of the mod. Single line or multi line. Supports minimal markdown subset--> | ||
<!--LongDescription Value="This is a long description" /--> | ||
<LongDescription> | ||
TODO#3 | ||
</LongDescription> | ||
<!--Thumbnail--> | ||
<Thumbnail Value="Properties/Thumbnail.png" /> | ||
<!--Screenshot, can be set multiple times--> | ||
<Screenshot Value="" /> | ||
<!--Tag, can be set multiple times--> | ||
<Tag Value="Code Mod" /> | ||
<!--Link to the forum post where the mod can be discussed--> | ||
<ForumLink Value="" /> | ||
<!--Version of the mod--> | ||
<ModVersion Value="1.0" /> | ||
<!--Recommended version of the base game to use the mod--> | ||
<GameVersion Value="1.1.*" /> | ||
<!--Dependency for the mod, can be set multiple times--> | ||
<Dependency Id="78903" /> | ||
<!--Change log for new version. Single line or multi line. Supports minimal markdown subset--> | ||
<ChangeLog Value="" /> | ||
<!--ChangeLog> | ||
</ChangeLog--> | ||
<!--External link. supported types are discord, github, youtube, twitch, x, paypal, patreon--> | ||
<ExternalLink Type="discord" Url="https://discord.gg/UkKAfRqfCn" /> | ||
<Publish> | ||
<ModId Value="" /> | ||
<DisplayName Value="Example Pack (do not subscribe)" /> | ||
<ShortDescription Value="Example Pack Description" /> | ||
<LongDescription>## Asset Pack Name | ||
This asset packs adds xxx and yyy to the game | ||
|
||
## Added Assets: | ||
- Asset 1 | ||
- Asset 2 | ||
- Asset 3 (special)</LongDescription> | ||
<Thumbnail Value="Properties/Thumbnail.png" /> | ||
<Screenshot Value="" /> | ||
<Tag Value="Code Mod" /> | ||
<ForumLink Value="" /> | ||
<ModVersion Value="1.0" /> | ||
<GameVersion Value="1.1.*" /> | ||
<Dependency Id="78903" /> | ||
<ChangeLog>Initial release</ChangeLog> | ||
<ExternalLink Type="discord" Url="https://discord.gg/UkKAfRqfCn" /> | ||
</Publish> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
{ | ||
"Assets.NAME[CarProp]": "AutoProp", | ||
"Assets.DESCRIPTION[CarProp]": "Ein kleines Auto zur Dekoration ohne jegliche Funktionalität" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
{ | ||
"Assets.NAME[CarProp]": "Example Name", | ||
"Assets.DESCRIPTION[CarProp]": "Example Description" | ||
"Assets.NAME[CarProp]": "CarProp", | ||
"Assets.DESCRIPTION[CarProp]": "A small car prop without any functionality" | ||
} |
Binary file not shown.
Binary file not shown.