A simple playground for modding Scrapland https://discord.gg/eBw2Pzpu4w
Go to file
strongleong 5d8edd50ec Added config for build.ps1 2023-02-07 17:59:13 +11:00
Loader Init commit 2023-02-07 04:46:47 +11:00
Logger Init commit 2023-02-07 04:46:47 +11:00
Police2Gear Init commit 2023-02-07 04:46:47 +11:00
ScorerPlayground Init commit 2023-02-07 04:46:47 +11:00
.gitignore Added config for build.ps1 2023-02-07 17:59:13 +11:00
.vimrc Init commit 2023-02-07 04:46:47 +11:00
README.md README.md in mods folders no longer in .pakced 2023-02-07 04:56:51 +11:00
build.ps1 Added config for build.ps1 2023-02-07 17:59:13 +11:00
config.example.ps1 Added config for build.ps1 2023-02-07 17:59:13 +11:00

README.md

Scrapland Mods

This repository is a just mine 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 😅.

Requirements

For building .packed files in scripts I use ScrapPackedExplorer. If you want to use my scripts you need to use ScrapPackedExplorer >= 0.3.1.

For compiling .py to .pyc you need Python 1.5.2.

And preferably you need to have any verison of Scrapland itself 😄.

build.ps1

build.ps1 is a script that can build, insatll and uninstall mods fromt 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:

$pack_expl_path = '..\bins\spe.exe';
$pyhton_path    = 'C:\Program Files (x86)\Python\python.exe';
$scrapland_path = 'D:\Games\SteamLibrary\steamapps\common\Scrapland';

How to use it

Building mods:

.\build.ps1          # If no argument specified will build all folders except 'bin' and 'out'
.\build.ps1 ModName  # Will build mod from folder "ModName"

Flags:

.\build.ps1 -i --install   # Installs mod after building it
.\build.ps1 -u --uninstall # Instead of building mod will uninstall it

Mods will be in the out folder

Every folder is a separate mod.

Mods structure

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 simple.

Mod with misc

..
ModFolder\
|__ packed\
|____ ...
|__ misc\
|____ ...

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 uninstalling mod.