I'm not sure cards could be handled by reading lua scripts, but if a ygopro client could be implemented in this mod, it could also be a choice to launch ygopro server instances for hosting the duel.
https://github.com/mycard/ygopro/tree/server
The above one is the server of ygopro. It launches by command args and hosts 1 room listening on a specific port optioned with args.
A possible design could be, to launch an instance of ygopro server when any duel starts, and send duel data with ygopro protocol to the server, and refresh the field with the returned info.
You may also refer to the client code of ygopro on the master branch for the protocol and client implementation of ygopro.
I hope automatic dueling mod would come out soon.
I'm not sure cards could be handled by reading lua scripts, but if a ygopro client could be implemented in this mod, it could also be a choice to launch ygopro server instances for hosting the duel.
https://github.com/mycard/ygopro/tree/server
The above one is the server of ygopro. It launches by command args and hosts 1 room listening on a specific port optioned with args.
A possible design could be, to launch an instance of ygopro server when any duel starts, and send duel data with ygopro protocol to the server, and refresh the field with the returned info.
You may also refer to the client code of ygopro on the master branch for the protocol and client implementation of ygopro.
I hope automatic dueling mod would come out soon.