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

HOWTO: Add custom file #1

Open
sawich opened this issue Jan 14, 2021 · 1 comment
Open

HOWTO: Add custom file #1

sawich opened this issue Jan 14, 2021 · 1 comment
Labels
documentation Improvements or additions to documentation

Comments

@sawich
Copy link
Collaborator

sawich commented Jan 14, 2021

Manual way

  1. Define structure here src\restypes\client\you_file_name.ts (as example you can watch other structure files).
  2. Register structure in src\core\register\japanese.ts or src\core\register\korean.ts .

EXAMPLE

// import you structure
import you_structure from "@/restypes/client/you_structure";

// register method looks like...
parsers.add(GameToken.GAME_TYPE, GameVersion.GAME_VERSION, "filename", you_structure);
  1. ..?
  2. Make Pull reqeust.
  3. Thank you!
@sawich sawich pinned this issue Jan 14, 2021
@sawich sawich added the documentation Improvements or additions to documentation label Jan 14, 2021
@sawich
Copy link
Collaborator Author

sawich commented May 9, 2022

Automated way

  1. Use this tools SoulWorker.ResStructureExtractor.
  2. Use gfrse.js you_json_file.json from tools directory for generating reader sources (for non global game ver u need fix names and path in this script (i'll change it. someday. maybe. hope)) (root directory must be a tools directory).
  3. Commit.
  4. Push.
  5. Pull request.
  6. You are gorgeous.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation
Projects
None yet
Development

No branches or pull requests

1 participant