Mirage Source http://web.miragesource.net/forums/ |
|
Reboot Your Server Remotely - Source http://web.miragesource.net/forums/viewtopic.php?f=210&t=683 |
Page 1 of 2 |
Author: | Obsidian [ Mon Oct 23, 2006 7:16 pm ] |
Post subject: | Reboot Your Server Remotely - Source |
I wasn't really sure where to post this, because it both is and isn't MS... i used the MS base and removed everythign else so i could write this a bit faster, but it technically isn't mirage... Anyways, this program allows you to start a very small app. on your server computer, and if your server ever crashes, you can use the RemoteClient to restart your sever. Readme is included so you can set it up yourself (includes the source code). Only requirement is that you MUST in some way, give credit to the MS Community if you use it (e.g., post it in your credits in your game/engine/whatever) Download: Attachment: [Edit] I'd also like to point out that this isn't the most secure way of doing it... i probably could have added a password function and a few other things to keep people from restarting your server for you (if they have the RemoteRestartClient, they IP address, and the port number, they'd be able to restart your sever... not that it would really effect anything, except for your server going down for 10-60 seconds depending on your servers load time...) but i'll leave the password part up to you. |
Author: | Uranium [ Tue Oct 24, 2006 3:24 am ] |
Post subject: | |
actually it would be a way to dupe items if they were able to do that as it wont save the character data if it crashes the server |
Author: | Spodi [ Tue Oct 24, 2006 3:42 am ] |
Post subject: | |
How so? Drop it and wait for the map to save? |
Author: | Dr. Spoon [ Wed Oct 25, 2006 12:51 pm ] |
Post subject: | |
wouldn't it be possible to work the remote app into the mirage client? you would to have a secondary connection option but you can also use the players own account info and if their access isn't high enough just fail the attempt just an idea for anyone who wants to try it out |
Author: | Matt [ Wed Oct 25, 2006 2:33 pm ] |
Post subject: | |
Or just hide the information for the server restart, unless the player is a high enough access. That way, you won't have to deal with noobs packet hacking to do it. |
Author: | Obsidian [ Wed Oct 25, 2006 8:07 pm ] |
Post subject: | |
yeah and i thought about doing it that way to begin with. this just made it easier so it would be more efficient even for people who really didn't understand how to code, but needed it for their games. |
Author: | Verrigan [ Thu Oct 26, 2006 6:05 am ] |
Post subject: | |
A separate application is the way to go, IMO.. If the server hangs (still accept connections but doesn't process input/output...) you won't be able to send a reboot message to it. My 2 cents. |
Author: | William [ Thu Oct 26, 2006 6:21 pm ] |
Post subject: | |
Wow, now when I actually tryed it out. It seems to be a very good program to use |
Author: | Obsidian [ Thu Oct 26, 2006 8:38 pm ] |
Post subject: | |
Thanks Will |
Author: | Dr. Spoon [ Thu Oct 26, 2006 10:53 pm ] |
Post subject: | |
i only suggested integrating the two clients not the servers.. but hey no worries.. |
Author: | Obsidian [ Thu Oct 26, 2006 11:55 pm ] |
Post subject: | |
It's nothing personal spoon, just the way i chose to do it. Your way would work just fine too. |
Author: | Tayuke [ Wed Dec 20, 2006 8:03 pm ] |
Post subject: | |
Compile Error on the Server Side... Code: Function IsLoggedIn(ByVal Index As Long) As Boolean
If IsConnected(Index) And Trim(Player(Index) [b].Login[/b] ) <> "" Then IsLoggedIn = True Else IsLoggedIn = False End If End Function Quote: Compile Error:
Method of data Member not Found Whats the problem here? I made all the required changes |
Author: | Obsidian [ Wed Dec 20, 2006 10:01 pm ] |
Post subject: | |
Hmmm... that's odd... where is it saying "method or data member not found" what specifically? The Player(index).Login part? Please be a bit more specific and i can help you fix it... |
Author: | Tayuke [ Thu Dec 28, 2006 1:37 am ] |
Post subject: | |
This bit: (Player(Index) .Login ) <> "" Then The Bold doesn't work in the [code]...sorry |
Author: | Obsidian [ Thu Dec 28, 2006 2:38 am ] |
Post subject: | |
oh... well it should be working. i'll download the link copy only and test it to make sure i didn't make any mistakes. I'll reupload tomorrow (i don't have access to my main PC... my grandparents are staying in my room for a bit ) |
Author: | Tayuke [ Fri Dec 29, 2006 6:36 am ] |
Post subject: | |
Look, I'll also try again, and see if it does work the 2nd time...but, I thought I ddi everything right? |
Page 1 of 2 | All times are UTC |
Powered by phpBB® Forum Software © phpBB Group https://www.phpbb.com/ |