Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Setting up server #35

Open
leocbl opened this issue Dec 20, 2020 · 2 comments
Open

Setting up server #35

leocbl opened this issue Dec 20, 2020 · 2 comments

Comments

@leocbl
Copy link

leocbl commented Dec 20, 2020

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:

ygosvr

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.

@leocbl
Copy link
Author

leocbl commented Dec 21, 2020

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.

@leocbl
Copy link
Author

leocbl commented Dec 26, 2020

No solution yet.

Translation in portuguese: sem solução ainda.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant