Compare commits
No commits in common. "main" and "0.1" have entirely different histories.
40
README.md
40
README.md
|
@ -1,40 +0,0 @@
|
||||||
[English](https://github.com/mostm/GI_AchievementParser/blob/main/README.md) | [Русский](https://github.com/mostm/GI_AchievementParser/blob/main/README_ru.md)
|
|
||||||
|
|
||||||
# GI_AchievementParser
|
|
||||||
In-game achievement parser for Genshin Impact
|
|
||||||
|
|
||||||
## Installing
|
|
||||||
- Download and install [Tesseract OCR](https://digi.bib.uni-mannheim.de/tesseract/tesseract-ocr-w64-setup-5.3.3.20231005.exe)
|
|
||||||
- Unpack latest [release](https://github.com/mostm/GI_AchievementParser/releases/latest) in any folder
|
|
||||||
- Set the game up by following [Inventory Kamera's settings](https://github.com/Andrewthe13th/Inventory_Kamera#setting-up-genshin-impact) - this software operates the same way.
|
|
||||||
|
|
||||||
## Running
|
|
||||||
Run `GI_AchievementParser.exe` (it will ask for admin rights - this is normal) and press Enter in the console window.
|
|
||||||
|
|
||||||
Before you do that, keep in mind - do not touch keyboard or mouse during scanning (or you will have to start over).
|
|
||||||
|
|
||||||
In-case you want to quit scanning, just spam `Windows` key. It should stop after a few tries.
|
|
||||||
|
|
||||||
## Uploading data to Genshin Center
|
|
||||||
|
|
||||||
After scan is complete, you might want to upload that data somewhere.
|
|
||||||
|
|
||||||
For that, I've included my script for uploading to [Genshin Center](https://genshin-center.com/)
|
|
||||||
|
|
||||||
To do that, copy your "Cookies" from Chrome (as a string)
|
|
||||||
|
|
||||||
Quick how-to:
|
|
||||||
1. Press `Ctrl+Shift+I` in open "Genshin Center" window.
|
|
||||||
2. Open "Network" tab.
|
|
||||||
3. Select any request out of "session", "profile" or "achievements" (with that exact name).
|
|
||||||
4. Scroll a bit, until you get to "Request headers". You should see text "Cookie:" and it's data on the right side. Copy it.
|
|
||||||

|
|
||||||
5. Run `Загрузчик в Genshin-Center.exe` (it should be in the same folder as `GI_AchievementParser.exe` and it's `results` folder)
|
|
||||||
6. Paste your Cookies that you just copied.
|
|
||||||
7. ...
|
|
||||||
8. PROFIT!
|
|
||||||
|
|
||||||
## Known issues
|
|
||||||
- Does not scan achievements with "steps" (5, 10 and 20 primogems) correctly.
|
|
||||||
- Achievements with "steps" only counted as "Completed" on the last step (20 primo).
|
|
||||||
- Achievements besides first category might not parse correctly (most of them are correct), keep this in mind and recheck manually after scanning.
|
|
40
README_ru.md
40
README_ru.md
|
@ -1,40 +0,0 @@
|
||||||
[English](https://github.com/mostm/GI_AchievementParser/blob/main/README.md) | [Русский](https://github.com/mostm/GI_AchievementParser/blob/main/README_ru.md)
|
|
||||||
|
|
||||||
# GI_AchievementParser
|
|
||||||
Сканер достижений для Genshin Impact
|
|
||||||
|
|
||||||
## Установка
|
|
||||||
- Загрузите и установите [Tesseract OCR](https://digi.bib.uni-mannheim.de/tesseract/tesseract-ocr-w64-setup-5.3.3.20231005.exe)
|
|
||||||
- Распакуйте последний [релиз](https://github.com/mostm/GI_AchievementParser/releases/latest) в любую папку
|
|
||||||
- Настройте игру, следуя настройкам [настройкам Inventory Kamera](https://github.com/Andrewthe13th/Inventory_Kamera#setting-up-genshin-impact) - эта программа работает таким же образом.
|
|
||||||
|
|
||||||
## Использование
|
|
||||||
Запустите `GI_AchievementParser.exe` (Windows попросит права администратора - это нормально) и нажмите Enter в окне консоли.
|
|
||||||
|
|
||||||
Перед тем как вы это сделайте, учтите - трогать клавиатуру или мышь во время сканирования нельзя (или вам потребуется начать с нуля).
|
|
||||||
|
|
||||||
Если вы захотите остановить сканирование, понажимайте на клавишу `Windows`. Программа остановиться после нескольких нажатий.
|
|
||||||
|
|
||||||
## Загрузка данных в Genshin Center
|
|
||||||
|
|
||||||
После завершения сканирования, вам скорее всего захочется загрузить данные куда-то.
|
|
||||||
|
|
||||||
Для этого, Я добавил свой скрипт для загрузки на [Genshin Center](https://genshin-center.com/)
|
|
||||||
|
|
||||||
Для того чтобы это сделать, скопируйте свои "Куки" из Chrome (как строку)
|
|
||||||
|
|
||||||
Как это сделать:
|
|
||||||
1. Нажмите `Ctrl+Shift+I` в открытом окне "Genshin Center".
|
|
||||||
2. Откройте вкладку "Network".
|
|
||||||
3. Выберите любой запрос из "session", "profile" или "achievements" (в точности с таким названием).
|
|
||||||
4. Прокрутите немного, пока не дойдете до "Request headers". Вы можете увидеть текст "Cookie:" и данные на правой стороне. Скопируйте их.
|
|
||||||

|
|
||||||
5. Запустите `Загрузчик в Genshin-Center.exe` (он должен быть в той же папке что и `GI_AchievementParser.exe` с его папкой `results`)
|
|
||||||
6. Вставьте свои "Куки", которые вы только что скопировали.
|
|
||||||
7. ...
|
|
||||||
8. PROFIT!
|
|
||||||
|
|
||||||
## Известные проблемы
|
|
||||||
- Не сканирует достижения с "этапами" (5, 10 и 20 "Камней истока") корректно.
|
|
||||||
- Достижения с "этапами" только считаются выполненными на последнем этапе (20 "Камней истока").
|
|
||||||
- Достижения, кроме первой категории, могут сканироваться некорректно (хотя многие из них - верны). Учитывайте это и перепроверяйте их вручную после сканирования.
|
|
|
@ -42,8 +42,8 @@ def main():
|
||||||
if not gc_ids:
|
if not gc_ids:
|
||||||
print(f'Пропускаем {k} (нет в базе)')
|
print(f'Пропускаем {k} (нет в базе)')
|
||||||
continue
|
continue
|
||||||
# if gc_achievements.get(str(gc_ids[0]), {'category_id': 123})['category_id'] == 0:
|
if gc_achievements.get(str(gc_ids[0]), {'category_id': 123})['category_id'] == 0:
|
||||||
ids_to_submit += gc_ids
|
ids_to_submit += gc_ids
|
||||||
submit_ids(ids_to_submit, cookies)
|
submit_ids(ids_to_submit, cookies)
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue