Skip to content

Releases: shinkuan/Akagi

v1.1.0

22 Jan 14:01
Compare
Choose a tag to compare

請詳細閱讀

提供了安裝Akagi的自動化腳本install_akagi.ps1

執行前請注意腳本執行位置,如果執行位置內有名為"Akagi"的資料夾,會將其刪除並以最新版本替代

  1. install_akagi.ps1放到你想安裝的位置
  2. 以管理員開啟Powershell
  3. cd到安裝位置
  4. 有些電腦會限制Powershell腳本的執行,這也是為什麼我們需要管理員權限,執行以下指令以讓腳本能夠運行:
    • Set-ExecutionPolicy -Scope Process -ExecutionPolicy Bypass
  5. 執行 install_akagi.ps1
  6. bot.zip放入 ./players

Changelog

  • Unlocker的bug修復 f86e46d
  • 當Akagi發生錯誤時嘗試將所有執行中的Container關閉 7791146
  • 修復暗槓後mjai沒有反應 6992e18
  • 自動打牌大改寫 50c2982
  • 將mitm_playwright.py與mitm.py整合在一起 c64fc02
  • 增加了Playwright的設定頁面、現在可以在遊戲執行中切換Autoplay了 f78f2c2

mitm_playwright.py已被移除,與mitm.py整合

Settings.json有新內容

  • Playwright:
    • enable: Enable the playwright
    • width: width of the viewport of playwright
    • height: height of the viewport of playwright

Full Changelog: v1.0.1...v1.1.0

v1.0.1

19 Jan 09:31
Compare
Choose a tag to compare

v1.0.1

安裝過程略有不同,請詳細閱讀更新後的README

The installation process is slightly different, please read the updated README in detail

Changelog:

  • 現在不再需要安裝完整的mjai,也就是說安裝過程不需要rust了
  • 不再限制bot的CPU以及Memory用量,希望能改善效能問題
  • 現在在Akagi啟動時會連帶啟動4個bot (啟動時請耐心等待),對應四個風位,如此一來在加入對局時便不必等待新的bot開啟導致卡頓。
  • 現在Akagi內的Setting能個正常作用了
  • 新增了mitm_playwright.py,啟動時會連帶啟動一個已經自動連上mitmproxy的chromium,簡化連接mitm流程。
  • 使用mitm_playwright.py將會自動使用safe_code.js替換掉code.js

What's Changed

Full Changelog: v1.0.0...v1.0.1

v1.0.0

19 Jan 09:11
Compare
Choose a tag to compare

v1.0.0

Installation, I suggest you watch the video.

YouTube Video for you to follow.

You will need:

  1. Docker
  2. Proxifier or something that can redirect connection to mitmproxy.
    1. Remember to trust mitmproxy's Certificate!!! Don't know how? Google it.
  3. A bot.zip that contains the AI. Examples
  4. (Optional, Recommend) Use Windows Terminal to open client.py for a nice looking TUI.

Don't know how to make a bot.zip yourself? Don't worry!

Get bot.zip at Discord

Docker:

  1. Install Docker on your PC
  2. docker pull smly/mjai-client:v3

Akagi:

install.bat is found to have some problem on some machines.

I suggest you follow the video.

  1. git clone this
  2. cd into this repo
  3. Create a Python Virtual Env python -m venv venv
  4. Activate it. .\venv\Scripts\activate
  5. pip install -r requirement.txt
  6. cd mjai.app
  7. Install mjai pip install -e .
  8. put bot.zip into ./players folder

or

  1. Run install.bat
  2. put bot.zip into ./players folder

Run

After you activate the venv:

  1. Configure your setting at setting.json
  2. python mitm.py
  3. python client.py

What's Changed

Full Changelog: https://github.com/shinkuan/Akagi/commits/v1.0.0