You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+42Lines changed: 42 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -22,6 +22,8 @@ ZomboidMod serves as an umbrella for these tools, connecting everything you need
22
22
- Decompiles and packages game classes to expose game engine code.
23
23
- Uses [ZomboidDoc](https://github.com/yooksi/pz-zdoc/) to compile a readable and always up-to-date modding Lua library.
24
24
- Compact workspace that can be used straight out of the box.
25
+
- Fully automated project changelog generation.
26
+
- Create mod distributions with a click of a button.
25
27
- Easy installation steps for enabling advanced features.
26
28
- Comes pre-configured for use with Git.
27
29
- Fully integrates with IntelliJ IDEA.
@@ -128,6 +130,45 @@ You can rerun the task at any time if you accidentally delete the configuration
128
130
129
131
## How to use
130
132
133
+
### Search scopes
134
+
135
+
IDEA [scopes](https://www.jetbrains.com/help/idea/settings-scopes.html) are sets of files you can search in various contexts. ZomboidMod generates custom search scopes to help you find code usages or references helpful in modding the game:
136
+
137
+
-`mod-lua` - All Lua files in `media` directory.
138
+
-`mod-media` - All files in `media` directory.
139
+
-`pz-java` - Project Zomboid Java classes.
140
+
-`pz-lua` - Project Zomboid Lua classes.
141
+
142
+
Learn more about [searching everywhere](https://www.jetbrains.com/help/idea/searching-everywhere.html) in IntelliJ IDEA.
143
+
144
+
### Changelog
145
+
146
+
> If you are not familiar with what a changelog is I recommend reading [keep a changelog](https://keepachangelog.com/en/1.0.0/).
147
+
148
+
ZomboidMod uses [github-changelog-generator](https://github.com/github-changelog-generator/github-changelog-generator) to generate standardized changelogs. Your should generate a changelog after each release, when all issues on project Github repository have been closed with a merge commit.
149
+
150
+
Before generating a changelog you need to do the following:
151
+
152
+
- Make sure you have designated repository `url` in `mod.info` file.
153
+
154
+
- Generate a [Github token](https://github.com/github-changelog-generator/github-changelog-generator#github-token) and store it in `local.properties`:
155
+
156
+
```properties
157
+
cg.token=<your-40-digit-token>
158
+
```
159
+
160
+
That simply run `generateChangelog` task to generate project changelog.
161
+
162
+
### Distribution
163
+
164
+
Before others can download your mod you need to assemble and upload the mod distribution.
165
+
166
+
Assembling distributions is a process of packaging everything your mod needs to run in production environment in compressed archives. Anything not needed in production environment (such as gradle files) needs to be excluded from distributions.
167
+
168
+
ZomboidMod handles this for you. Just run `assembleModDist` and a distribution archive matching the current project version will be created in `build/distributions` directory.
169
+
170
+
## List of tasks
171
+
131
172
### Setup tasks
132
173
133
174
-`createLaunchRunConfigs` - Create game launch run configurations.
@@ -156,6 +197,7 @@ You can rerun the task at any time if you accidentally delete the configuration
156
197
157
198
-`annotateZomboidLua` - Annotate vanilla Lua with EmmyLua.
158
199
-`compileZomboidLua` - Compile Lua library from modding API.
200
+
-`updateZomboidLua` - Run ZomboidDoc to update compiled Lua library.
0 commit comments