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

OpenAudioMc - Web Client on a dedicated server ! No Link with Server #88

Closed
Rouchesta opened this issue Mar 20, 2018 · 11 comments
Closed

Comments

@Rouchesta
Copy link

OpenAudioMC 4.0
Spigot 1.12.2

Description :
When i try to clic on the link to open client side it says :
Oh no! :( life has its ups and downs, we could not connect or lost connection to the minecraft server! no need to panic, try again later.

Config :

############################################################
# +------------------------------------------------------+ #
# |                    Web Client                        | #
# |         Configuration for your web client!           | #
# |       (can be disabled by using '-' as value)        | #
# +------------------------------------------------------+ #
############################################################
web:
  url: 'http://audio.teamkog.com/'
  title: 'Kogcraft'
  background: '-'
  startsound: '-'
  ambiancesound: '-'
  speaker_radius: 10

Is there a step by step tutorial to know how to configure my hosted web client with Openaudio ?

Thank you.
Gaëtan.

@Rouchesta
Copy link
Author

Do i have to change something in jar files in my webclient files ?

function oa_socket_startup(name, server, token) {
oaio = io.connect("https://craftmendserver.eu:6969", {
secure: false
});

@ApocalypsjeNL
Copy link
Contributor

It should work just fine with your configuration. Do you get any console errors in your browser console?

@Rouchesta
Copy link
Author

Here is the log.
https://pastebin.com/QA0EcyRs

@Rouchesta
Copy link
Author

Rouchesta commented May 3, 2018

I'm still have the problem.

Loading...

And nothing happened.

Browser Console :
[socket] starting...

Server Logs :
[06:01:53] [Server thread/INFO]: [OpenAudioMc] Enabling OpenAudioMc v4.0
[06:01:53] [Server thread/INFO]: [OpenAudioMc] starting socketio
[06:01:53] [Server thread/INFO]: [OpenAudioMc] socketio started!
[06:01:53] [Server thread/INFO]: [OpenAudioMc] Reflection has found MC v1_12_R1 which is supported
[06:01:53] [Server thread/INFO]: [OpenAudioMc] Found worldguard! lets enable regions!
[10:33:29] [Server thread/INFO]: Rouchesta issued server command: /audio
[10:33:29] [Server thread/INFO]: [OpenAudioMc] starting socketio
[10:33:29] [Server thread/INFO]: [OpenAudioMc] socketio started!
When i click to open the WebClient it works and then stuck on Loading...

@ApocalypsjeNL
Copy link
Contributor

Which browser are you using

@Rouchesta
Copy link
Author

Rouchesta commented May 3, 2018

Mozilla Firefox.
I just checked if my firewall has port 3000 and 6969 opened. It's ok TCP and UDP.

I changed socket.io like this :

function oa_socket_startup(name, server, token) {
oaio = io.connect("http://MYDOMAIN:6969", {
secure: false
});

I think it bugs when trying to retrieve skull, maybe the JSON ? :

console.log("[socket] starting...");
oaio.on('connect', function() {
    console.log("[socket] connected! sending identity");
    var packet = {};
    packet.name = name;
    packet.key = token;
    packet.server = server;
    **oa_ui_setskull("Loading...", "606e2ff0-ed77-4842-9d6c-e1d3321c7838");
    oaio.emit("imaplayer", JSON.stringify(packet));**
});

Does my server need JSON Api v3.0.2 to works ?

@ApocalypsjeNL
Copy link
Contributor

The change of the socket server broke it. It's made to work with the provided socket server

@Rouchesta
Copy link
Author

Rouchesta commented May 3, 2018

Either if i want to use a Webclient hosted on my dedicated server ? How to setup the link ?

I'm now stuck here :
[socket] starting...
socket.js:12:5
[socket] connected! sending identity
socket.js:15:9
Firefox can not connect to the server at wss: //craftmendserver.eu: 6969 / socket.io /? EIO = 3 & transport = websocket & sid = y0eXfJ3py6WXbYMYABmP.
websocket.js: 112
The connection with wss: //craftmendserver.eu: 6969 / socket.io /? EIO = 3 & transport = websocket & sid = y0eXfJ3py6WXbYMYABmP was interrupted while the page was loading.
websocket.js: 112

@Rouchesta
Copy link
Author

Rouchesta commented May 3, 2018

It's now working ... idk why. I'll try to add sounds this evening :-)
I'll close this issue if it works tonight.

Thank you.

@Rouchesta
Copy link
Author

Rouchesta commented May 3, 2018

It worked for 3-4 minutes but now i've a message saying it can't connect to Minecraft server.
I removed the JSON API plugin, is it required ? Or the OpenAudioMC servers are offline again ?

[socket] starting...
socket.js:12:5
[socket] connected! sending identity
socket.js:15:9

@Rouchesta
Copy link
Author

Working again ... just restarted my Minecraft.

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

2 participants