Open leocbl opened 3 years ago
UPDATE:
I created a MySQL DB. So, the first line, which says "Some functions may be limited without MySQL" is gone.
Using 'hostname' (and not the IP 127.0.0.1 as I was doing) I was able to create random duels from the client. I was also able to connect from other clients and to introduce the password (field below host and port, or is that the room name?) and connect only with the correct password.
But something weird happens. If two clients are dueling and a third client enters that room using the same name as one of the players, it takes the place of that player. How should I ensure two players don't have the same name? I saw on the DB the field 'user', but I don't know how to use it since ygopro client does not have a login option.
I still do not know how I can create rooms from the server-side for players only to connect.
No solution yet.
Translation in portuguese: sem solução ainda.
Hello, everybody. I need some help to understand how to host a ygopro server.
My goal is to host a ygopro server where the server will create rooms for duels and clients will only be able to join these rooms. Initially, I am testing everything locally on my computer.
I have downloaded mycard/ygopro client and compiled (YGOPro Version: 1.035.2). I have downloaded mycard/srvpro, compiled following the wiki (install script for Ubuntu 18 or Debian 9) and I run using testing instruction (node ygopro-server.js). When I run, I have the following messages:
When I open the client, choosing the first option does not show anything related to the server.
My questions are: 1) The result I am getting is normal? Is the server running OK? 2) How do I create a duel room in the server? Is this possible from server-side?
Thanks in advance. I will be very glad for any help.
P.S. I am new to js, so maybe I don't fully understand what the command node is doing.
Edit: Edited 4 times because everytime I forgot to remove the "hostname" information from some part of changing log image.