Updated README.md

This commit is contained in:
strongleong 2022-02-06 23:42:59 +11:00
parent 22421b502c
commit b9de299118

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>
AuthorGroup=Group 1 <Author name="Author1" website="https://example.com" />
AuthorGroup=Group 2 <Author name="Author2" />
[Author] <Credits group="Mod author">
Name=Mod author <Credit name="Author1" />
Website=http://example.com </Credits>
<Credits group="Some credit" >
[Author] <Credit name="Credit1" />
Group=Group 1 <Credit name="Credit2" />
Name=Mod author <Credit name="Credit3" />
</Credits>
[Author] </ScrapMod>
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>
``` ```
## TODO:
- [X] Support for custom *.packed
- [X] Supoprt for Scrapland Remastered
- [ ] Support for custom game files (i.e. `\Traslation\` files or custom `QuickConsole.py`)
- [ ] Recompiling *.py to *.pyc
- [ ] Mod settings.
- [ ] More meta info in `config.xml`
- [ ] More mods :wink: