Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Reboot Your Server Remotely - Source
#1
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 NOT FOUND]



[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. Smile
Reply
#2
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
Reply
#3
How so? Drop it and wait for the map to save? :wink:
Reply
#4
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
Reply
#5
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.
Reply
#6
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.
Reply
#7
Wow, now when I actually tryed it out. It seems to be a very good program to use Smile
Reply
#8
Thanks Will Big Grin
Reply
#9
i only suggested integrating the two clients not the servers..
but hey no worries..
Reply
#10
It's nothing personal spoon, just the way i chose to do it. Your way would work just fine too.
Reply
#11
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 Smile
Reply
#12
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...
Reply
#13
This bit:

(Player(Index) .Login ) "" Then

The Bold doesn't work in the [code]...sorry
Reply
#14
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 Cry )
Reply
#15
Look, I'll also try again, and see if it does work the 2nd time...but, I thought I ddi everything right?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)