https://github.com/logue/symbol-art-parser
Phantasy Star Online 2 New Genesis Symbol Art file (*.sar) parser class.
https://github.com/logue/symbol-art-parser
phantasy-star-online-2 pso2 pso2ngs symbol-art-editor
Last synced: 8 days ago
JSON representation
Phantasy Star Online 2 New Genesis Symbol Art file (*.sar) parser class.
- Host: GitHub
- URL: https://github.com/logue/symbol-art-parser
- Owner: logue
- License: mit
- Created: 2022-07-14T00:26:10.000Z (almost 3 years ago)
- Default Branch: master
- Last Pushed: 2024-04-24T03:32:40.000Z (about 1 year ago)
- Last Synced: 2024-04-24T08:06:57.482Z (about 1 year ago)
- Topics: phantasy-star-online-2, pso2, pso2ngs, symbol-art-editor
- Language: TypeScript
- Homepage: https://logue.dev/symbol-art-parser/
- Size: 10.7 MB
- Stars: 3
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
- Codeowners: .github/CODEOWNERS
Awesome Lists containing this project
README
# Symbol Art Parser
[](https://www.jsdelivr.com/package/npm/symbol-art-parser)
[](https://www.npmjs.com/package/symbol-art-parser)
[](https://uiwjs.github.io/npm-unpkg/#/pkg/symbol-art-parser/file/README.md)
[](https://www.npmjs.com/package/symbol-art-parser)
[](https://gitpod.io/#https://github.com/logue/symbol-art-parser)TypeScript [Phantasy Star Online 2](https://ngs.pso2.com/)'s Symbol Art Parser Libraly.
This library only implements parsing and reading / writing of sar files, and does not include drawing processing.
## Sample
-
## Usage
```js
import SymbolArt from 'symbol-art-parser';const sar = new SymbolArt();
const reader = new FileReader();
reader.onload = () => {
// Load SymbolArt
sar.data = reader.result;
};
reader.readAsArrayBuffer('[*.sar file]');// Dump Symbol Art to json.
const json = sar.json;// Set Symbol Art from json.
sar.json = json;// Save SymbolArt as ArrayBuffer
const data = sar.data;
```## Symbol Art Json Format
See [SymbolArtInterface](src/interfaces/SymbolArtInterface.ts) and [LayerInterface](src/interfaces/LayerInterface.ts).
Or use [JSON Schema](https://json-schema.org/) file.
## Reference
- [saredit](https://github.com/HybridEidolon/saredit) - The processing referred to this program.
## License
[MIT](LICENSE)
© 2022-2024 By Logue.
All rights to the copyrighted works (images, data, audios, texts, etc.) used in ["PSO2: NGS"](https://ngs.pso2.com/) are owned by [SEGA Corporation](https://sega.com/) or its licensors.