Repository navigation
Contributing
Thank you for helping. Bug reports from players are just as valuable as code: every report of something that differs from the console helps make the port faithful.
Open an issue on GitHub. Please include:
| What | Why, or how to find it |
|---|---|
| The version |
shattered-stars --version, or the package name (for example ShatteredStars-0.03.00-win64.zip) |
| Your system | Windows or Linux, and whether you use a release package or your own build |
| Your disc images | Which disc, and the format (.cue / .bin, .iso, ...) |
| What happened, and what you expected | As exactly as you can |
| Where in the game | The place and what you were doing. With the debug console (--debug), the where command prints the map number and your position |
| How to make it happen again | The steps, if you know them |
| A save near the problem | A copy of your memory card file (memcard1.mcd). Say which save slot |
| Screenshots or a short video | Especially for anything visual |
| The game's output | If you started the game from a terminal, copy what it printed |
| Mods or Archipelago | Which mods were enabled on the setup program's Mods page, or whether a seed was loaded |
| The original's behaviour | If you can check it, does the same thing happen on a console or in an emulator? That tells a port bug from a bug in the original |
Never attach disc images or any files taken from the game discs. A memory card file is fine: it holds only your save.
If the problem is a bug in the original game, it is still worth reporting: it may belong on Bugs Fixed and Quirks Kept.
Fork the repository, make your change on a branch, and open a pull request that explains what it changes and how you tested it.
Shattered Stars fixes bugs without changing how the game plays. Hit timing, the number of hits, damage, difficulty and battle pacing must stay exactly as in the original. So:
- Measure the faithful version first. For anything that can affect gameplay, compare the port with the original running in PCSX-Redux with the same input: the game's random-number draws, the frames hits land on, the hits and the damage.
- Then make the fix, and measure again. If any of those change, the fix is held, and the numbers go to the maintainer to decide.
-
Keep the original visible. Comment out the original line with
// ORIGINAL BUG (original_bugs.md <id>): ..., write the corrected code below it, and add a row with the next id in its area to docs/port/notes/original_bugs.md: the original address, the port file, the bug in one line, and its status. - Visual fixes that need randomness must not draw from the game's random-number generator; the spell effects have a separate, looks-only random source for this.
- Don't model slowdown. The port runs at full speed by design.
- Keep saves byte-compatible with real memory cards.
Before opening a pull request, build and run the three suites (Building from Source):
cmake --build port/build
SS_DISC1=".../Disc 1.cue" port/build/ss_tests
SS_DISC1=".../Disc 1.cue" port/build/ss_game_tests
SS_DISC1=".../Disc 1.cue" port/tools/smoke_field_events.sh port/build/shattered-starsTests must run headless: never open a window or play audible sound in a test (use
--headless, SDL_VIDEO_DRIVER=offscreen and SDL_AUDIO_DRIVER=dummy), and never write to
your real settings (a headless run never writes config.ini).
The game has debug options for reaching a scene quickly, such as starting on a given map
(--map N) or in a given battle (--battle ENC). They are listed under "Debugging switches" in
port/README.md.
A windowed game playing an Archipelago seed ignores them (and the SS_* debugging variables);
headless runs keep them all, so the tests can use them with a seed.
-
C++20, in the namespaces under
ss::(for exampless::game::battle). Ported game code lives inport/src/game/, the hardware replacements inport/src/psx/andport/src/runtime/, and the window and input inport/src/platform/. -
Names follow the catalog, in
subsystem_verb_objectsnake case (for exampleloader_select_entry). Sony library functions keep their SDK names. - Cite the original. Comments give the original function's address and the structure offsets they use, so any line can be checked against the disassembly.
-
No game code or assets in the repository, ever: no extracted textures, sprites, audio,
logos or data files. The game reads everything from the player's discs at run time. The only
exception is a handful of documentation screenshots of the port running, in
docs/images/. -
Document as you go. Every function you identify gets a row in the catalog; explanations
of how things fit together go in
docs/port/notes/.
| Path | What it holds |
|---|---|
| port | The port: the C++ source (src/), tests (tests/), generated region data (data/), the icon and platform resources (res/) and its tools (tools/: builds and packaging, the smoke test, sweeps, comparisons, the mod tools) |
| port/tools/refs | The reference regression suite's inventory |
| apworld | The Archipelago world (so2/, Python) and its tools (tools/: the data extractors, the batches, the end-to-end tests, the .apworld build) |
| trackers | Tracker support: the PopTracker pack's source (poptracker/) and its generator and tests (tools/) |
| mods | The curated mod list |
| wiki | This wiki's pages; changes go through pull requests like the code |
| tools | Tools the sections share: the disc, archive and script readers (so2_*.py, so2_mod.py), the memory cap, the reverse-engineering scripts |
| docs/port/catalog | The reverse-engineering catalog: every function (functions.csv), global (globals.csv), event-script opcode (script_opcodes.csv) and data format (formats.md). Keep each module's rows in address order within its block, with LF line endings |
| docs/port/notes | Prose notes on each program, the original's bugs, GPU accuracy, the endings and more |
| docs/apworld | The Archipelago design: the seed format, the world's logic and data |
| docs/trackers | The PopTracker pack and the tracker maps |
| docs/release | The release checklist and the release notes |
| docs/CONVENTIONS.md | The project's standing rules (enhance, don't degrade; no game data in git; headless tests; memory caps) |
Shattered Stars is released under the MIT licence; see LICENSE.
Shattered Stars is released under the MIT licence.
Version 0.03.00. Contains no game data: you need your own Star Ocean: The Second Story discs (North American, European, French or German release).
Not affiliated with or endorsed by Square Enix, tri-Ace or Sony Interactive Entertainment. Star Ocean is a trademark of Square Enix.