From 7a34fd006b7d4b25fca48db7ecc6aff0ead1aa5f Mon Sep 17 00:00:00 2001 From: strongleong Date: Tue, 7 Feb 2023 17:59:31 +1100 Subject: [PATCH] Updated README.md --- README.md | 69 +++++++++++++++++++++++++++++++++++++++++++------------ 1 file changed, 54 insertions(+), 15 deletions(-) diff --git a/README.md b/README.md index e741a8f..035e8ce 100644 --- a/README.md +++ b/README.md @@ -1,34 +1,54 @@ # Scrapland Mods -This repository is a just mine playground where I learn how to mod Scrapland and +This repository is a just my playground where I learn how to mod Scrapland and try to make something useful and/or fun. Don't take this repository too serous. -It is no near good example on moding Scrapland. I am just plaing around here 😅. +It is no near good example on modding Scrapland. I am just playing around here 😅. + +**Warning**: everything in here is **in development**! \ +Anything, at any time can stop work properly, crash your game, set your pc on +fire, start cancer or kill your dog. Use it on your own. + +## Table of content + +* [Requirements](#requirements) +* [build.ps1](#buildps1) + * [Setup](#setup) + * [How to use](#how-to-use) +* [Mods structure](#mods-structure) + * [Simple mod](#simple-mod) + * [Mod with misc](#mod-with-misc) +* [Existing mods](#existing-mods) +* [Useful links](#useful-links) ## Requirements -For building `.packed` files in scripts I use [ScrapPackedExplorer](https://github.com/romibi/Scrap-Packed-Explorer). -If you want to use my scripts you need to use ScrapPackedExplorer >= 0.3.1. +For building `.packed` files with `build.sh` I use [ScrapPackedExplorer](https://github.com/romibi/Scrap-Packed-Explorer). +If you want to use my `build.sh` you need to use ScrapPackedExplorer >= 0.3.1. For compiling `.py` to `.pyc` you need [Python 1.5.2](https://www.python.org/download/releases/1.5/). -And preferably you need to have any verison of Scrapland itself 😄. +And preferably you need to have any version of Scrapland itself 😄. ## build.ps1 -`build.ps1` is a script that can build, insatll and uninstall mods fromt this +`build.ps1` is a script that can build, install and uninstall mods from this repo. ### Setup -To use `build.ps1` you need specify 3 varables at the top of the script: path to -ScrapPackedExplorer, Python 1.5.2 and Scrapland: +To use `build.ps1` you need to do 2 simple steps: + + 1. Copy `config.example.ps1` to `config.ps1` + 2. Change paths to `ScrapPackedExplorer`, `Python 1.5.2` and `Scrapland` to yours. ```powershell -$pack_expl_path = '..\bins\spe.exe'; -$pyhton_path = 'C:\Program Files (x86)\Python\python.exe'; -$scrapland_path = 'D:\Games\SteamLibrary\steamapps\common\Scrapland'; +$packed_explorer_path = '..\bins\spe.exe'; +$pyhton_path = 'C:\Program Files (x86)\Python\python.exe'; +$scrapland_path = 'D:\Games\SteamLibrary\steamapps\common\Scrapland'; ``` +If you will not do this 2 steps `build.ps1` will use default variables. + ### How to use it Building mods: @@ -55,7 +75,7 @@ There is 2 types of "configuration" of mod folder: *simple* and *with misc* ### Simple mod -Everyting in mod folder except `README.md` will be packed in `.packed` file. That's it. Pretty +Everything in mod folder except `README.md` will be packed in `.packed` file. That's it. Pretty simple. ### Mod with misc @@ -69,7 +89,26 @@ ModFolder\ |____ ... ``` -Everyting in `packed` folder will be packed in `.packed` file. -Everyting in `misc` folder will be copied to the game folder. If that file is -aredy exists, original file will be backed-up and re-installed on its place on +Everything in `packed` folder will be packed in `.packed` file. +Everything in `misc` folder will be copied to the game folder. If that file is +already exists, original file will be backed-up and re-installed on its place on uninstalling mod. + + +## Existing mods: + + - Loader: Contains just `scripts/init.py`. + - Logger: Contains... logger. How surprising. + - Police2Gear: Replaces default money-bagging police action to transforming to armed police + - ScorerPlayground: Just playground for working with `SScorer` where I try to make custom menus + +Check out `ModName/README.md` for more info. + +## Useful links + + - [Python 1.5.2](https://www.python.org/download/releases/1.5/) + - [ScrapPackedExplorer](https://github.com/romibi/Scrap-Packed-Explorer) (@romibi) + - [ScrapHacks](https://gitdab.com/SREP/ScrapHacks) - tools and documenation for reverse-engeenering Scrapland (@earthnuker) + - [Notes about how game engine works](https://gitdab.com/SREP/Notes) (@earthnuker) + - [My mods loader for Scrapland](https://gitdab.com/SREP/ScrapModLoader). Depricated, will work on this sometimes later when I learn more about modding Scrapland + - [Scrapland Discord server](https://discord.gg/eBw2Pzpu4w)