Updated `README.md`

This commit is contained in:
strongleong 2022-02-06 23:42:59 +11:00
parent 22421b502c
commit b9de299118
1 changed files with 56 additions and 41 deletions

View File

@ -1,52 +1,67 @@
ScrapModLoader WIP ScrapModLoader
============== ==============
This applications is for managing mods for Scrapland. This applications is for managing mods for Scrapland.
**WARNING! THIS PROJECT IS IN DEVELOPMENT. ALL WRITTEN IN THIS DOCUMENT IS SUBJECT TO CHANGE**
## How to use
ScrapModLoader after first start will create `Scrapland Mods` folder in User's `Document` folder
and scans yours installed programs for any Scrapland instalation. If it could not find any you will be promt with error message.
You can specify Scrapland installation location in settings.
By default this app will search for mods in `Scrapland Mods` in User's `Document` folder,
and you can put all your mods in there, or add any folder you want in
settings and app will search for mods there.
ScrapModLoader supports both original and remastered versions of Scrapland.
## How To Make Mod ## How To Make Mod
Mod for Scrapland is a *.sm file that basically is a zip arhive with following content: For now mod for Scrapland is a *.sm file that basically is a zip arhive with following content:
| Filename | Description | | Filename | Description |
|-------------|-------------------------------------------------| |--------------------|----------------------------------------------|
| icon.png | Icon for mod that will show up in mod loader | | icon.png | Icon for mod that will show up in mod loader |
| meta.ini | Information about mod | | config.xml | Information about mod |
| data.packed | Container with all mod game assets | | <filename\>.packed | Container with all mod game assets |
### meta.ini structure ### meta.ini sample
```ini ```xml
[Miscellaneous] <?xml version="1.0" encoding="UTF-8"?>
Title="Mod Title" <ScrapMod>
Description="A mod description" <Title>Mod Title</Title>
<Description>Mod Desciption</Description>
Category=A category <Category>Category</Category>
Version=1.0 <Version>1.0</Version>
RequiredLauncher=1.0 <RequiredLauncher>1.0</RequiredLauncher>
RequiredGame=1.1 <RequiredGame>1.1</RequiredGame>
<Author name="Author1" website="https://example.com" />
<Author name="Author2" />
<Credits group="Mod author">
<Credit name="Author1" />
</Credits>
<Credits group="Some credit" >
<Credit name="Credit1" />
<Credit name="Credit2" />
<Credit name="Credit3" />
</Credits>
</ScrapMod>
```
AuthorGroup=Group 1 ## TODO:
AuthorGroup=Group 2
[Author] - [X] Support for custom *.packed
Name=Mod author - [X] Supoprt for Scrapland Remastered
Website=http://example.com - [ ] Support for custom game files (i.e. `\Traslation\` files or custom `QuickConsole.py`)
- [ ] Recompiling *.py to *.pyc
[Author] - [ ] Mod settings.
Group=Group 1 - [ ] More meta info in `config.xml`
Name=Mod author - [ ] More mods :wink:
[Author]
Group=Group 2
Name=Another author
[Setting]
Name=setting
Title=Setting titile
Tooltip=Some setting
Type=Int
Min=1
Max=10
Default=2
File=scripts/char/ditritus.py
Placeholder=<speed>
```