Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add SALT encoding and decoding #1

Closed
BurnySc2 opened this issue Apr 18, 2020 · 1 comment
Closed

Add SALT encoding and decoding #1

BurnySc2 opened this issue Apr 18, 2020 · 1 comment
Labels
enhancement New feature or request

Comments

@BurnySc2
Copy link
Owner

BurnySc2 commented Apr 18, 2020

Insert it here:

const encodeSALT = (buildOrder) => {
// TODO Encode salt build order
return "Some salt build order encoded"
}
const decodeSALT = (saltEncoding) => {
// TODO Decode salt build order from string

Use file /constants/salt_constants.js

References:
https://drive.google.com/file/d/0Bzrw_bC8iBjfSzFRRGlWWnNWNDg/view
https://github.com/Veritasimo/sc2-scrapbook/blob/68028fdbc7ce67a394ba139746e82485ebbf4312/SALT.cs#L150
https://www.reddit.com/r/starcraft/comments/25losh/build_order_tool_salt_update/chin15d/

Edit: Alternatively it could be done parsing the text of the spawningtool build order output by https://github.com/StoicLoofah/spawningtool

@BurnySc2
Copy link
Owner Author

BurnySc2 commented Nov 5, 2020

Closing in favor of issue #9
SALT encoding does contain less information than sc2-planner build orders - technically it could be exported as SALT encoding, but that seems a lot of work for now.
Importing from SALT encoding will lack information, so that would be fairly pointless.

Importing from replays would provide complete information.

@BurnySc2 BurnySc2 closed this as completed Nov 5, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant