Remote Restart for RMX-OS
Authors: Blizzard
Version: 1.1
Type: RMX-OS Plugin
Key Term: RMX-OS Plugin
IntroductionThis script allows you to restart the RMX-OS server remotely from the login screen.
This script is to be distributed under the same terms and conditions like the script it was created for: RMX-OS.
Features
- remote restart server on button press
- very easy to use
ScreenshotsN/A for this sort of script.
DemoN/A
ScriptJust make a new script above main and paste this code into it.
#:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=
# Remote Restart for RMX-OS by Blizzard
# Version: 1.1
# Type: RMX-OS Plugin
# Date: 29.8.2009
# Date v1.01: 3.1.2010
# Date v1.02: 7.4.2013
# Date v1.1: 12.6.2013
#:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=
#
# This script is to be distributed under the same terms and conditions like
# the script it was created for: RMX-OS.
#
#:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=
#
# Information:
#
# This script must be placed below RMX-OS and requires RMX-OS to work
# properly. This script allows you to restart the RMX-OS server remotely
# from the login screen or within the game if the game is run in $DEBUG mode.
#
#
# If you find any bugs, please report them here:
# http://forum.chaos-project.com
#:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=
if !defined?(RMXOS) || RMXOS::VERSION < 2.0
raise 'ERROR: The "Remote Restart" requires RMX-OS 2.0 or higher.'
end
#==============================================================================
# module BlizzCFG
#==============================================================================
module BlizzCFG
#::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
# START Configuration
#::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
# the button to press
REMOTE_BUTTON = Input::Key['F11']
#::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
# END Configuration
#::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
end
#==============================================================================
# module Input
#==============================================================================
module Input
class << Input
alias update_remoterestart_later update
end
def self.update
update_remoterestart_later
if $DEBUG && $network.connected? && self.trigger?(BlizzCFG::REMOTE_BUTTON)
$network.send('RSTRT')
$network.disconnect
$scene = Scene_Servers.new
end
end
end
Make a new file with an
.rb extension in the
Extensions folder of RMX-OS and copy-paste this script into it.
module RMXOS
def self.load_current_extension
return RemoteRestart
end
end
#======================================================================
# module RemoteRestart
#======================================================================
module RemoteRestart
VERSION = 1.1
RMXOS_VERSION = 2.0
SERVER_THREAD = false
def self.initialize
@mutex = Mutex.new
end
def self.mutex
return @mutex
end
def self.main
while RMXOS.server.running
@mutex.synchronize {
self.server_update
}
sleep(0.1)
end
end
def self.server_update
end
def self.client_update(client)
case client.message
when /\ARSTRT\Z/
RMXOS.server.shutdown
return true
end
return false
end
end
InstructionsIn the script in the first comment.
CompatibilityRequires RMX-OS to work.
Credits and Thanks
Author's NotesThis tool can be very useful during development, but is not recommended to use for the actual game.
Remember to activate the server extension by adding the server extension filename to the list in the configuration.
If you find any bugs, please report them here:
http://forum.chaos-project.com
That's it! N-Joy! =D
BEST SCRIPT (Plugin/Extension) EVER!!!
If you are using RMX-OS use this! :D
I didn't know you were releasing it publicy, oh well. Awesome script :)
I didn't intend to. But when jc told me on MSN that it's... *points to his post before* ... I decided to put it up.
Well it is the best script for me because unlike most people that will host the game on their home comp, I have it on a server 45 mins away, so I have te login to remote desktop to fool with it, so when the problem can be fixed with as easy as press the F11 key... then it becomes one of my favorite scripts :P
Why do you think I made it? I don't have access to your server at all. xD
It wouldnt take u long to make an extensions so u could start stealing files and stuff from my comp with RMX OS though and I wouldnt know :roll:
Quote from: jcsnider on September 09, 2009, 09:08:26 pm
It wouldnt take u long to make an extensions so u could start stealing files and stuff from my comp with RMX OS though and I wouldnt know :roll:
Run it as an unprivileged user, duh. :roll:
I can't steal files unless I do a lot of manual script calls on the server or unless I make an extension which he obviously wouldn't install. :P
If you were to name the extension "Blizz-ABS" or something... I dont look at the code cuz I cant understand it :o
Off topic XD, either way...
If you use RMX-OS use the remote restart.
v1.01 is out. It works properly with RMX-OS v1.08.
Wondering if this could be limited to people with admin or mod status? Don't want users to have people kicked for no reason. (although im sure it be a long time before i get a working game out. More worried about it being tested and people finding this out.)
make 2 clients...
1 for addmin where you include this script
1 for normal peep where you don't include this script?
its simple. but works
Quote from: Jackolas on February 06, 2010, 05:22:23 pm
make 2 clients...
1 for addmin where you include this script
1 for normal peep where you don't include this script?
its simple. but works
Simple? thats a lot of work just for admins and non admins. But i guess it works.
what are you talking about, it IS simple, no work at all. it is the same project but one of them has the client side restart script and you give the admin client to admins and use the other for public distributions.
Quote from: Ryexander on February 07, 2010, 04:29:40 pm
what are you talking about, it IS simple, no work at all. it is the same project but one of them has the client side restart script and you give the admin client to admins and use the other for public distributions.
i was over thinking the problem. Had 1 to many for the pre-game last night lol.
I did a small update to make the script work only in debug mode.
Updated for RMX-OS 2.0.