-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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
Initial support for web service for newer clients #5731
Conversation
Warnings:
and, are not working, its necessary configure something in lua files? |
There's a lot of warnings in the http lib project, but since it's not our code (3rd party), I don't want to try to fix them. You need to set up the External settings lua file and point it to the ip of your host and the port that's set in web_athena.conf |
These logs are because I forgot to put a conf for logging the request/responses.
I don't understand, what do you mean? It looks like the console logs correctly. |
For emblems, you need to create the guild_emblem_dir yourself. I've added an error message in web-server startup. I can't do this automatically since there's no portable way to make directories in c++11. I've created a config option for the full logging, Added a nginx-like log message, it looks like this: |
response status 404 is regarding what ya ? |
What's your client version? |
Im using 20200304 RE client and also have Gepard included. The guild_emblems warning will not be shown if I create the folder in rathena folder. But I dont think people can access it via http since its in rathena folder, not webserver. |
When I use Korean world name, it displayed weirdly. |
The guild_emblem_dir should be made in rathena folder, same level as
I have no idea, that might be intended by the client |
@vstumpf Congrats by the incredible work. But uploading images in .gif is crashing the webserver, .bmp is working properly. |
Ok, no meme, are .gifs supposed to work for guild emblems? How big is the .gif? (can you just share it here or on discord, |
the maximum size I don't know, the dimensions are the same, 24x24px, since the client 2020 that gif is supported. |
Im not at home, but in 2 hours i eill send to you more infos. |
24x24 bmp / gif with less than 50 kbp |
I've added support for gif emblems, and this requires a new column in the I also start the http server on a separate thread, so the sql keepalives actually trigger. |
Do you happen to know if they will add this to the main emulator or add another solution to display the guild emblems? |
That is the intention with this PR. If you would like a php version, you can use athena-web-service |
@vstumpf after new commits web are not working anymore: after show this error, this window closes. |
The problem is be caused by this commit: 5eed958 |
Are you on windows? It works fine on ubuntu20. I'll look into it. |
Yes, windows 10 x64, VS2019 |
…ure/webservice # Conflicts: # 3rdparty/CMakeLists.txt # Makefile.in # configure # configure.ac
Addressed Issue(s): N/A
Server Mode: Both
Description of Pull Request: C++ Implementation of the Web Service required by newer clients.
Thanks @secretdataz for the athena-web-service, which I got the schemas from.
Using CMake
cmake -DENABLE_WEB_SERVER
Using Visual Studio
Features:
Todos:
Possible future extensions