Any chance you can post this app on your website for download? I live in Canada, and we have the privilege of being last place when it comes to companies giving us access to anything remotely entertaining. Basically, our Android market doesn't have 99% of the awesome stuff the rest of the world seems to have. :sad.gif: No idea why, either.
That, or I'm just an idiot and somehow suck at searching for Mineserve and/or your developer name. :happy.gif: Both are equally possible scenarios, sadly.
The reason why you can't see the app (And most other apps) has nothing to do with the fact that you live in Canada.
The real reason is your android OS version, most of today's apps are only compatible with android 2.0 and later. Mineserve was developped for Android 2.1 and is compatible with 2.0 and 2.2.
The problem is that there are significant differences between version 1.x and 2.x of the android SDK. (Kinda like win9x and NT)
http://www.myminecraft.com Survival and creative servers
Teamspeak available, multiple anti-grief measures in place
VIP based whitelist to limit griefing even further.
The real reason is your android OS version, most of today's apps are only compatible with android 2.0 and later.
Ahh, sorry for being a complete noob, haha! I've been putting off the update, so looks like I'll have to do that tonight. Hopefully this means a lot more sweet apps, though! :biggrin.gif:
Fantastic idea, thanks for putting this out there for us!
My only snag at this point has been in getting the phone app and the server app to shake hands. Upon rebooting the computer after setting everything up, I try to connect from the phone and get a generic "Connection Error". If I run:
/etc/init.d/mineserve restart
it will restart successfully, but when I attempt to connect from the phone, I will get the following errors from the console:
Exception in thread "ServerThread" java.lang.ArrayIndexOutOfBoundsException: 22
at Protocol.processInput(Protocol.java:109)
at ServerThread.run(ServerThread.java:42)
The mineserve log file doesn't display anything at all. I have port 4444 forwarded in my router pointing to the server's IP. This is running on the latest Sun Java version from the Ubuntu Lucid x64 repositories.
A quick google search with those errors don't display anything related to Mineserve, and no one has posted anything close to my issue in this thread thus far. Am I just overlooking something simple here? Please let me know if I can provide any additional information. Any guidance that can be provided would be greatly appreciated!
Fantastic idea, thanks for putting this out there for us!
My only snag at this point has been in getting the phone app and the server app to shake hands. Upon rebooting the computer after setting everything up, I try to connect from the phone and get a generic "Connection Error". If I run:
If you get a Connection Error, it means that the client didn't receive the expected answer from the server.
It seems that the server crashes upon connection attempt, I will forward this bug to mad so he can look over it. This could be due to external factors and setup and the server doesn't know how to manage the failure and give an appropriate error message. I could also be a coding error, either way, we'll have to check it out!
Thanks for reporting this, we will try to have it fixed shortly! Even if it's not directly caused by the code, the code should protect itself against a bad setup or bad settings... which it clearly does not in this case.
Bug has been added to the bugtracker and as soon as i can i will have an answer to why it did this. One more thing did you create the users.txt file with the following format for users / password?
Format:
username:group:password (username / password are case sensitive)
My users.txt file was already there, and already contained the line that I needed:
c0mp13371331337:admins
I believe this was created when Hey0 was installed, so I just left it as-is, figured the username is there, the group is there, and I'm not all that worried about a password as I operate a relatively small server with a close-knit circle of friends. Could this be causing the problem, do I NEED a password specified in that file? The commented out portion of the file doesn't mention anything about a password:
#Add your users here (When adding your entry DO NOT include #!)
#The format is:
#NAME:GROUPS:ADMIN/UNRESTRICTED:COLOR:COMMANDS:IPs
#For administrative powers set admin/unrestricted to 2.
#For no restrictions and ability to give out items set it to 1.
#If you don't want the person to be able to build set it to -1.
#Admin/unrestricted, color and commands are optional.
#Examples:
#Adminfoo:admins
#Moderator39:mods:1:0:/unban
#BobTheBuilder:vip:0:
And I'd rather not break Hey0 in the process.... :wink.gif:
Thanks again for checking into this, much appreciated!
You do need a password since the phone app is able to interact with the physical machine (reboot) tho thx for the details, as soon as i fix the password check i will implement the group check at the same time.
My users.txt file was already there, and already contained the line that I needed:
And I'd rather not break Hey0 in the process.... :wink.gif:
Thanks again for checking into this, much appreciated!
Do not worry about Hey0 mod support, the server app is designed to be compatible.
The issue that mad has brought up about passwords is that the code was designed to expect one.
In your line:
c0mp13371331337:admins
the program is expecting a second ':'
try writing the line like this:
c0mp13371331337:admins:
In the end though you found a bug because the server should detect for incorrect users.txt formating but doesn't, so it continues to process information incorrectly instead until it does something it's not supposed to and crashes.
This should be fixed soon in an updated version of the server, but try writing the line with the extra ':'
This should bypass the problem and let you log in. I tested it on my computer and it works.
EDIT: In order not impede on hey0's future features and cause incompabilities, it seems we are simply going to shove the users into a different standalone file as well. But using the same format.
I can confirm that appending a : to the end of the line in users.txt allows everything to work as expected. Thanks again for your help guys, sorry for fleshing out a bug and giving you guys more work... ;-)
EDIT: Just had a chance to really put Mineserve to use. Server was running a little wonky, so I used the Restart server button within the Android UI and we lost everything since the last time the server was restarted. I'm not sure what the mineserve_server.jar is doing, but I combed through the shell scripts again and was unable to find an explanation for this. Any ideas?
Because right now the mineserve cannot acess the internal minecraft server commands, it's currently not possible to "soft" shutdown the server via mineserve. Players must log off to save their inventory and the world must be manually saved.
It really sucks, and we want to change that, when the commands are supported we will implement a "Kick all" command followed by "Save-all", whatever works essentially to save the server before restarting, if the server isn't responding (Crash/hang), then loss will be unavoidable.
All we need is a good working way to access the server console from one process to another.
Stay tuned for these updates, this is definitely something I want to add/fix!
EDIT: I think there might be a way to have your server to save periodically using a server command... That way you can mitigate the losses. I'm not sure though.
Because right now the mineserve cannot acess the internal minecraft server commands, it's currently not possible to "soft" shutdown the server via mineserve. Players must log off to save their inventory and the world must be manually saved.
It really sucks, and we want to change that, when the commands are supported we will implement a "Kick all" command followed by "Save-all", whatever works essentially to save the server before restarting, if the server isn't responding (Crash/hang), then loss will be unavoidable.
All we need is a good working way to access the server console from one process to another.
Stay tuned for these updates, this is definitely something I want to add/fix!
EDIT: I think there might be a way to have your server to save periodically using a server command... That way you can mitigate the losses. I'm not sure though.
*PHEW* Okay, cool, so it's not just me. :wink.gif:
Granted, I'm DEFINITELY no developer, or even a Linux guru by any stretch of the imagination, but I did notice that you're firing up the server using screen, which I wasn't sure about at first, but after some research, I'm digging it more and more.
The more I look into it, the more I'm wondering if the power of screen could be harnessed from within your android app? What I was doing, and currently do, is to log into the server via SSH, use screen ('sudo screen -r minecraft') to attach my phone's SSH client to the minecraft server running on the computer, then I can execute whatever arbitrary commands I want on the server, including a kick-all/save-all/stop.
Knowing very little about android development, I don't know if that would be feasible from within the .apk or not, but perhaps tossing a bit of code in there to ATTEMPT a login via SSH, and provide a few more options on successful login would be possible? Obviously there would always be times when the server is just hung and you HAVE to force a shut down, but there's not much you can do in those cases when you're sitting in front of the computer either, so whatever.
Those of you who DO use Mineserve on a regular basis to stop/start/restart your servers, how do YOU get the server to save prior to shutting down currently?
We tried to use screen to listen to commands sent by mineserve but we didn't get it to work so far. Tho i'm always up to suggestions (if someone knows how to send commands to a running application via the screen command).
In anycase, if we find a way to control the server console, it will be much better to close the server by kicking everyone, then saving the world then issuing a quit than sending a kill signal lol
I have port 4444 forwarded and set correctly and I cannot run Mineserve. A google search as stated earlier yields no results relating to mineserve. So I come here asking for help.
That, or I'm just an idiot and somehow suck at searching for Mineserve and/or your developer name. :happy.gif: Both are equally possible scenarios, sadly.
(HTC Hero with Android 1.5 in Canada)
I manage the Web site along with these guys so I'll talk to them later today and see what we can do.
Are you with Telus?
The reason why you can't see the app (And most other apps) has nothing to do with the fact that you live in Canada.
The real reason is your android OS version, most of today's apps are only compatible with android 2.0 and later. Mineserve was developped for Android 2.1 and is compatible with 2.0 and 2.2.
The problem is that there are significant differences between version 1.x and 2.x of the android SDK. (Kinda like win9x and NT)
See if you can't update the OS on your HTC...
inb4 iphone hate
http://www.myminecraft.com Survival and creative servers
Teamspeak available, multiple anti-grief measures in place
VIP based whitelist to limit griefing even further.
Ahh, sorry for being a complete noob, haha! I've been putting off the update, so looks like I'll have to do that tonight. Hopefully this means a lot more sweet apps, though! :biggrin.gif:
My only snag at this point has been in getting the phone app and the server app to shake hands. Upon rebooting the computer after setting everything up, I try to connect from the phone and get a generic "Connection Error". If I run:
it will restart successfully, but when I attempt to connect from the phone, I will get the following errors from the console:
The mineserve log file doesn't display anything at all. I have port 4444 forwarded in my router pointing to the server's IP. This is running on the latest Sun Java version from the Ubuntu Lucid x64 repositories.
A quick google search with those errors don't display anything related to Mineserve, and no one has posted anything close to my issue in this thread thus far. Am I just overlooking something simple here? Please let me know if I can provide any additional information. Any guidance that can be provided would be greatly appreciated!
If you get a Connection Error, it means that the client didn't receive the expected answer from the server.
It seems that the server crashes upon connection attempt, I will forward this bug to mad so he can look over it. This could be due to external factors and setup and the server doesn't know how to manage the failure and give an appropriate error message. I could also be a coding error, either way, we'll have to check it out!
Thanks for reporting this, we will try to have it fixed shortly! Even if it's not directly caused by the code, the code should protect itself against a bad setup or bad settings... which it clearly does not in this case.
I'll post the solution when we have it!
Format:
username:group:password (username / password are case sensitive)
My users.txt file was already there, and already contained the line that I needed:
c0mp13371331337:admins
I believe this was created when Hey0 was installed, so I just left it as-is, figured the username is there, the group is there, and I'm not all that worried about a password as I operate a relatively small server with a close-knit circle of friends. Could this be causing the problem, do I NEED a password specified in that file? The commented out portion of the file doesn't mention anything about a password:
And I'd rather not break Hey0 in the process.... :wink.gif:
Thanks again for checking into this, much appreciated!
Do not worry about Hey0 mod support, the server app is designed to be compatible.
The issue that mad has brought up about passwords is that the code was designed to expect one.
In your line:
the program is expecting a second ':'
try writing the line like this:
In the end though you found a bug because the server should detect for incorrect users.txt formating but doesn't, so it continues to process information incorrectly instead until it does something it's not supposed to and crashes.
This should be fixed soon in an updated version of the server, but try writing the line with the extra ':'
This should bypass the problem and let you log in. I tested it on my computer and it works.
EDIT: In order not impede on hey0's future features and cause incompabilities, it seems we are simply going to shove the users into a different standalone file as well. But using the same format.
EDIT: Just had a chance to really put Mineserve to use. Server was running a little wonky, so I used the Restart server button within the Android UI and we lost everything since the last time the server was restarted. I'm not sure what the mineserve_server.jar is doing, but I combed through the shell scripts again and was unable to find an explanation for this. Any ideas?
Because right now the mineserve cannot acess the internal minecraft server commands, it's currently not possible to "soft" shutdown the server via mineserve. Players must log off to save their inventory and the world must be manually saved.
It really sucks, and we want to change that, when the commands are supported we will implement a "Kick all" command followed by "Save-all", whatever works essentially to save the server before restarting, if the server isn't responding (Crash/hang), then loss will be unavoidable.
All we need is a good working way to access the server console from one process to another.
Stay tuned for these updates, this is definitely something I want to add/fix!
EDIT: I think there might be a way to have your server to save periodically using a server command... That way you can mitigate the losses. I'm not sure though.
*PHEW* Okay, cool, so it's not just me. :wink.gif:
Granted, I'm DEFINITELY no developer, or even a Linux guru by any stretch of the imagination, but I did notice that you're firing up the server using screen, which I wasn't sure about at first, but after some research, I'm digging it more and more.
The more I look into it, the more I'm wondering if the power of screen could be harnessed from within your android app? What I was doing, and currently do, is to log into the server via SSH, use screen ('sudo screen -r minecraft') to attach my phone's SSH client to the minecraft server running on the computer, then I can execute whatever arbitrary commands I want on the server, including a kick-all/save-all/stop.
Knowing very little about android development, I don't know if that would be feasible from within the .apk or not, but perhaps tossing a bit of code in there to ATTEMPT a login via SSH, and provide a few more options on successful login would be possible? Obviously there would always be times when the server is just hung and you HAVE to force a shut down, but there's not much you can do in those cases when you're sitting in front of the computer either, so whatever.
Those of you who DO use Mineserve on a regular basis to stop/start/restart your servers, how do YOU get the server to save prior to shutting down currently?
In anycase, if we find a way to control the server console, it will be much better to close the server by kicking everyone, then saving the world then issuing a quit than sending a kill signal lol
/* Mad2k6 */
Donation Link for Styx City Official Server Minimum is $10 for donator status THANKS
Styx City Server TWITTER Follow for server status