- Implemented a local web server using http.server to serve the save editor. - Created a user interface with HTML, CSS, and JavaScript for managing game slots and editing save files. - Added API endpoints for retrieving slot information, overview, and raw data for editing. - Implemented functionality for saving changes back to the game files. - Added tests for ARR and DTA formats to ensure data integrity during round-trip serialization. Co-authored-by: Codex <noreply@openai.com>
44 lines
807 B
Python
44 lines
807 B
Python
"""ricsave — czytanie i edycja zapisów gry „Reksio i Czarodzieje" (silnik PIK, 2004).
|
|
|
|
>>> from ricsave import Game
|
|
>>> g = Game("~/Reksio/Reksio i Czarodzieje")
|
|
>>> s = g.slot(0) # 0 = żywy stan rozgrywki
|
|
>>> s.summary()["location"]
|
|
'GULDRYK'
|
|
|
|
Rdzeń nie ma zależności zewnętrznych. Opis formatu: docs/format-zapisow.md
|
|
"""
|
|
|
|
from . import arr, catalog, dta, schema
|
|
from .slot import (
|
|
Game,
|
|
ItemsView,
|
|
SaveError,
|
|
SceneView,
|
|
Slot,
|
|
backup,
|
|
copy_slot,
|
|
load_game,
|
|
new_game,
|
|
save_game,
|
|
)
|
|
|
|
__all__ = [
|
|
"Game",
|
|
"ItemsView",
|
|
"SaveError",
|
|
"SceneView",
|
|
"Slot",
|
|
"arr",
|
|
"backup",
|
|
"catalog",
|
|
"copy_slot",
|
|
"dta",
|
|
"load_game",
|
|
"new_game",
|
|
"save_game",
|
|
"schema",
|
|
]
|
|
|
|
__version__ = "0.1.0"
|