thedudeguy / JukeIt

A Bukkit plugin for Minecraft that allows you to "Burn" new music onto Music Discs and play them in the Jukeboxes.
GNU General Public License v3.0
10 stars 10 forks source link

Almost there. #96

Closed Nuglenko closed 12 years ago

Nuglenko commented 12 years ago

First, if this an error coming from me bacause i failed to read the instructions, just answer "you failed to read the instructions correctly". I will understand u_u.

Here,s my problem: everything works fine to burn the disc. I have manually put in my music folder a music which i converted from MP3 to ogg with audacity. The same logo from the basic music jesus vs thing appears, so the game detects it.

When i try to burn both musics (the original one or my own music) i get the c.d., i put it into a jukebox, i receive the "downloading music" text in my screen... then nothing QQ.

On my server, i receive the following warning, which may be the cause:

23:20:37 [WARNING] [JukeBukkit] Missing Record Player Data, this data should have been created when the block was placed.

So... that's it!

thedudeguy commented 12 years ago

in the jukebukkit config, what is the option "webServerHost" set to?

thedudeguy commented 12 years ago

actually just paste your whole config.

Nuglenko commented 12 years ago

enableWebServer: true webServerPort: 8080 webServerHost: 127.0.0.1 serverName: World allowWebServerUploads: true allowExternalURLs: true debug: false

thedudeguy commented 12 years ago

ok, for the webServerHost, you dont want to use localhost (127.0.0.1) you want set this option to the url or ip that you use to connect to the server when connecting within the client. This option name is a little misleading, and I need to change it and remove the localhost default. the option data is merely sent to the client so the client knows where to download the music from, and if your client is on a different machine than the server, localhost will point to the client machine and not the server machine. also make sure that port 8080 is port forwarded to the server in your router/ip table setup, and firewalls allow connections through that port.

to make sure the webserver is working properly, open a web browser and browse to http://[webServerHost]:[webServerPort]

so if your config looked like: webServerPort: 8080 webServerHost: myminecraftserver.mydomain.com

than in your web browser browse to http://myminecraftserver.mydomain.com:8080

you should have access to the Web GUI for JukeBukkit. I recommend using the webgui to upload songs to the server instead of dropping songs in the song folder on the server, as there are file naming restrictions, for example, no spaces can be used in a file name, it messes up spoutcraft. The web gui accounts for this and fixes it all up.

Nuglenko commented 12 years ago

I accessed my web server correctly. (I,ll remember that one!). I was able to upload the songs on the server and reach game in game but still no sound o.o .(I swear my sound in MC isn't at 0 and my apeakers are on). I still get the same warning though.

thedudeguy commented 12 years ago

after the "downloading music" popup, there should eventually be a "download complete" popup, then it starts playing. If it never gets to the download complete message, then the client is having trouble retrieving the music.

The client will attempt to download the music from a url like this: http://myminecraftserver.mydomain.com:8080/music/[filename].ogg

you can also enter that into a web browser to test that it is accessible. Also you can check the SpoutCraft logs located in the spoutcraft install folder and look for stacktraces.

thedudeguy commented 12 years ago

also, if you set the debug option in the config to true, than you can monitor your server log files and see if the server is handling the requests for the music.

heres a cut and paste out of my server log showing that the web server received the request, and handled it.

2012-06-13 20:51:46 [INFO] [JukeBukkit] Checking if URL is complete: battle_jesus_vs_cyborg_hitlers.ogg
2012-06-13 20:51:46 [INFO] [JukeBukkit] URL Failed, probably a server file
2012-06-13 20:51:46 [INFO] [JukeBukkit] Checking newly patched url: http://minecraft.mydomain.com:8080/music/battle_jesus_vs_cyborg_hitlers.ogg
2012-06-13 20:51:46 [INFO] [JukeBukkit] URL Passes, returning as: http://minecraft.mydomain.com:8080/music/battle_jesus_vs_cyborg_hitlers.ogg
2012-06-13 20:51:46 [INFO] [JukeBukkit] Updating Block Design
2012-06-13 20:51:46 [INFO] [JukeBukkit] BlockDesign updated.
2012-06-13 20:51:46 [INFO] [JukeBukkit] Handling Web Request: /music/battle_jesus_vs_cyborg_hitlers.ogg
2012-06-13 20:51:46 [INFO] [JukeBukkit] Attempting to handle a music uri
2012-06-13 20:51:46 [INFO] [JukeBukkit] URI is a music URI
Nuglenko commented 12 years ago

I'm still there. The web servers works, i'm uploading a music on it.

I just remembered today my server was if offline mode, i hope this isn't the problem (or you may want to kill me). I'll recontact you to say if this works or not.

I've set the debug mode to true. If there's something i'll paste the logs. That shouldn't take long.

Nuglenko commented 12 years ago

When i put my burned c.d. into the jukebox, it says:

11:47:14 [INFO] [JukeBukkit] URL Passes, returning as: http:/(MY.IP)/music/zelda.ogg <--- i don't want to show my ip to everyone but this is the i.p. of my server)

Then stays there. Once, i got these messages: 1:43:08 [WARNING] [JukeBukkit] Missing Record Player Data, this data should have been created when the block was placed. 11:43:44 [INFO] [JukeBukkit] Handling Web Request: /
11:43:44 [INFO] [JukeBukkit] Handling Web Request: /css/bootstrap.css
11:43:44 [INFO] [JukeBukkit] Handling Web Request: /js/jquery.js
11:43:44 [INFO] [JukeBukkit] Attempting to handle a music uri
11:43:44 [INFO] [JukeBukkit] Handling Web Request: /img/jb32logo.png
11:43:44 [INFO] [JukeBukkit] Attempting to handle a music uri
11:43:44 [INFO] [JukeBukkit] Handling Web Request: /css/uploadify.css
11:43:44 [INFO] [JukeBukkit] Attempting to handle a music uri
11:43:44 [INFO] [JukeBukkit] Handling Web Request: /css/bootstrap responsive.css
11:43:44 [INFO] [JukeBukkit] Attempting to handle a music uri
11:43:44 [INFO] [JukeBukkit] Handling Web Request: /js/bootstrap-tooltip.js
11:43:44 [INFO] [JukeBukkit] Attempting to handle a music uri
11:43:44 [INFO] [JukeBukkit] Attempting to handle a music uri
11:43:44 [INFO] [JukeBukkit] Handling Web Request: /js/bootstrap-collapse.js
11:43:44 [INFO] [JukeBukkit] Attempting to handle a music uri
11:43:44 [INFO] [JukeBukkit] Handling Web Request: /js/bootstrap-popover.js
11:43:44 [INFO] [JukeBukkit] Attempting to handle a music uri
11:43:44 [INFO] [JukeBukkit] Handling Web Request: /js/jquery.uploadify.min.js
11:43:44 [INFO] [JukeBukkit] Attempting to handle a music uri
11:43:44 [INFO] [JukeBukkit] Handling Web Request: /js/uploadify.swf
11:43:44 [INFO] [JukeBukkit] Attempting to handle a music uri
11:43:45 [INFO] [JukeBukkit] Handling Web Request: /false
11:43:45 [INFO] [JukeBukkit] Attempting to handle a music uri
11:43:58 [INFO] [JukeBukkit] Handling Web Request: /music/zelda.ogg
11:43:58 [INFO] [JukeBukkit] Attempting to handle a music uri
11:43:58 [INFO] [JukeBukkit] URI is a music URI
11:43:59 [INFO] [JukeBukkit] Handling Web Request: /favicon.ico
11:43:59 [INFO] [JukeBukkit] Attempting to handle a music uri
11:43:59 [INFO] [JukeBukkit] Handling Web Request: /favicon.ico
11:43:59 [INFO] [JukeBukkit] Attempting to handle a music uri
11:44:08 [INFO] [JukeBukkit] Checking if URL is complete: zelda.ogg
11:44:08 [INFO] [JukeBukkit] URL Failed, probably a server file

thedudeguy commented 12 years ago

that all looks good. is it working now then?

Nuglenko commented 12 years ago

I'm not receiving any "download complete" message. I know the record doesn't start instantly, but how many time can the download take? On the web GUI, it takes about 2 seconds to upload the music.

I am ashamed to say it but ... i run windows vista * DO NOT HIT*

thedudeguy commented 12 years ago

could you have a firewall on your computer running the client prevent connections over the specified ports? also look at the logs in the spoutcraft install folder and see if you see any stack traces. try clearing the cache on spoutcraft client. you can also try the latest devs of jukebukkit, but the plugin side seems to be working fine, something is preventing your mc client from connecting to the server

http://build.lincomlinux.org/jenkins/job/JukeBukkit/9/

Nuglenko commented 12 years ago

Deactivating the firewall and anti-virus didn't do. I am wondering if perhaps the client has problems because i run it on hamachi, on my own machine.

I'll keep the plugin and do my own researches, i don't want to take all your time, there are other people out here who alos need help! But i am very grateful you took some time for me and i even learned soe littles things from you. If you want to stay until the end, no problem, i just can't guarantee when we'll find the damn problem x_x.

thedudeguy commented 12 years ago

Hamachi? oh. ya thats probably the problem right there. dunno though. JukeBukkit is probably running fine you might just not have your network or vpn set up completely correct. You'll have to find a way to troubleshoot your network or something.

Nuglenko commented 12 years ago

Yeah, i tested with one my friends and he was actually able to download my music from his server (he's running it through a real website). I'll fiddle a little with my hamachi then.

thedudeguy commented 12 years ago

closing issue since this is not a jukebukkit bug