samp.directory
← Scripts et bibliothèques

defaultzone/SAChess

SAChess - implementation of the Lichess API for GTA: San Andreas with ImGui.

Outil★ 1mis à jour mars 2024GPL-3.0Lua
Ouvrir sur GitHub

README.md

SAChess - implementation of the Lichess API for GTA: San Andreas with ImGui.

SAChess is a free and open source implementation of the Lichess API in Lua dialect - Clue. You can play it directly in the game with ImGui interface. It features board streaming, seek creating, draw handling, resigning or aborting games.

[!NOTE]
You can play only rapid and classical games due lichess Board API limits.

SAChess is using some public assets for different purposes:

Thanks!

Compilation

SAChess is using Lua dialect called Clue: all files from src/ directory will be compiled to the one Lua script. You can use next command to compile all source code:

clue -t=luajit --base base/Release.lua src/

Compiled file will be in the root directory of the repository. It called as main.lua.

Installation

To inject Lua script in game proccess we using MoonLoader and it's default library. So, you can just put compiled file in moonloader/ directory and it will work (only if you have all libraries installed, there listed below).

Libraries that used in this project:

  • mimgui
  • effil
  • requests

You can install all of them here. Put each library in moonloader/lib/ directory.

After you finally installed all dependencies and script - type /sachess.open command (or press F2) to open board. You will be prompted to enter the Lichess API token in it.

License

SAChess is licensed under the terms of the GNU General Public License v3.

chesschessboardlichess-apisamp

Cette page est construite à partir de ce que GitHub publie sur le dépôt. samp.directory n’héberge pas le code. Signaler un problème avec cette fiche

defaultzone/SAChess : Outil SA-MP | samp.directory