Metadata-Version: 2.4
Name: renpy-reindexer
Version: 1.0.2
Summary: Renumber Ren'Py save files after changing the slots-per-page layout.
Author-email: Aze543 <eizen.9258437663@gmail.com>
License: MIT
Project-URL: Homepage, https://github.com/Aze543/Renpy-Reindexer
Project-URL: Issues, https://github.com/Aze543/Renpy-Reindexer/issues
Keywords: renpy,visual-novel,save-files,cli
Classifier: Development Status :: 4 - Beta
Classifier: Environment :: Console
Classifier: Intended Audience :: End Users/Desktop
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.8
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Topic :: Games/Entertainment
Classifier: Topic :: Utilities
Requires-Python: >=3.8
Description-Content-Type: text/markdown
License-File: LICENSE
Dynamic: license-file

# Ren'Py Save Reindexer 1.0.2

Renumbers Ren'Py save files (`page-slot.save`, e.g. `2-4.save`) to change 
how many save slots can fit on a page (Depends on the Device & Layout of the game). 
Works on a save folder directly or on a ZIP file.

## Build / install

From PyPI:

```bash
pip install renpy-reindex
```

From this folder:

```bash
pip install .
```

This installs the `renpy-reindex` command onto your PATH.

## Usage

```bash
renpy-reindex <input_path> --new-slots <N> [options]
```

| Argument | Description |
|---|---|
| `input_path` | Save folder, or a ZIP containing your save files |
| `-n, --new-slots N` | Slots per page under the new layout |
| `--dry-run` | Preview renames only; nothing is written |
| `--no-backup` | Skip creating a `<dir>_backup` copy first |
| `-y, --yes` | Skip the confirmation prompt |
| `--version` | Print the version and exit |
| `-h, --help` | Print the program's detail |

### Examples

DIRECTORY: changing from 4 slots per page (Android Default) to 6 slots per page (Computer Default):

```bash
renpy-reindex ./MyGameSaves -n 6 
```

ZIP-FILE: you can also use the short form of the arguments:

```bash
renpy-reindex ./MyGameSaves.zip --new-slots 6
```

## Safety

By default, a full backup of the save directory is made (as
`<directory>_backup`) before anything is renamed. Renames happen in two
passes (old name → temp name → new name) so that slot numbers never
collide mid-run, and any failure partway through rolls back the temp
renames it already made.
