|
||
|
|
#1 (permalink) |
|
I think that a GUI with a cpu usage, ram usage, and list of clients connected and console all in one would be nice...
But that's not really what I'm waiting for What I'd like would be the ability to at least SAVE directly from the console window, like by typing save in it! And if you ever decide to do this, why not enable the bcast comme too ![]() |
|
|
|
|
|
|
#2 (permalink) | |
|
Account Terminated
|
Quote:
Frontend already does this. |
|
|
|
|
|
|
#3 (permalink) | |
|
Forum Expert
Join Date: Sep 2002
Location: Houston, Texas
Age: 22
Posts: 3,933
|
Quote:
|
|
|
|
|
|
|
#5 (permalink) |
|
Forum Expert
|
It would take more. The server console would have to check for input as well as performing the rest of its many operations. This would just cause wasted resources that most people need for their server.
Anyways, it's not like it's hard to save right now, I mean all you have to do is log in to your shard and use the [Save command or Save in that nice Admin gump, if you do not think that is enough, turn your AutoSaves up to every five or ten seconds, then you can pretend that you're invoking the Save command from the console. |
|
|
|
|
|
#6 (permalink) |
|
Join Date: Oct 2002
Age: 23
Posts: 4,689
|
Once RunUO goes open source, you can code a GUI or extra console ability into RunUO. You can probably do it without RunUO being open source. Although it is not a priority of the emulator, or the devs. And like everyone else says, its a waste of resources.
My suggestion is for someone to code a working version of FrontEnd, not the Devs though. |
|
|
|
|
|
#8 (permalink) |
|
Master of the Internet
Join Date: Feb 2004
Location: NC/NC State Univ
Age: 23
Posts: 16,424
|
I still think an external GUI-fied console would be good. Possibly a list of accounts/chars and a few command buttons. I sometimes forget to save shardside before xing out my client. Then I have to restart it, and log back in (which doesn't take long, but is annoying.). Anywho. I wouldn't mind programming it...but I have no clue where to start. We should start a project for this. Like Krrios's (sp?) Client or Razor.
my 1.5 cents.
__________________
Goodbye, folks. |
|
|
|
|
|
#10 (permalink) |
|
Forum Expert
Join Date: Dec 2002
Posts: 730
|
It would be far easier to just implement a save command on the console, someone posted a script for that looong ago, and it shouldn't be much hard to do.
Edit: Found the script, it's very old, so I dunno if it works on RC0. I don't remember the author, as it was posted long time ago. Code:
using System;
using System.Threading;
using System.Diagnostics;
using System.ComponentModel;
using Server;
using Server.Network;
class ConsoleCMD {
/// <summary>
/// Console Command interpreter for RunUO
/// </summary>
public static void Initialize()
{
StartConsole(false);
}
public static void StartConsole(bool showprompt)
{
if (showprompt)
{
Console.WriteLine("[RunUO <? for help>]");
}
AutoResetEvent asyncOpIsDone = new AutoResetEvent(false);
ThreadPool.QueueUserWorkItem(new WaitCallback(RunUOConsole), asyncOpIsDone);
return;
}
static void RunUOConsole(Object state)
{
string i = Console.ReadLine();
if (i.Length > 0)
{
switch(i.ToUpper())
{
case "HELP":
case "?":
{
ShowHelp();
break;
}
case "SAVE":
case "S":
{
World.Save();
Console.WriteLine();
break;
}
case "RESTART":
case "RS":
{
Console.WriteLine( "Restarting..." );
World.Save();
Restart(true);
break;
}
case "RNS":
case "RESTART NO SAVE":
{
Console.WriteLine( "Restarting..." );
Restart(true);
break;
}
case "SHUTDOWN":
case "SS":
{
World.Save();
Console.WriteLine( "Shutting down..." );
Restart(false);
break;
}
case "SHUTDOWN NO SAVE":
case "SNS":
{
Console.WriteLine( "Shutting down..." );
Restart(false);
break;
}
case "STATS":
{
ShowShardStats();
break;
}
case "PSTATS":
case "PS":
{
ShowRUOStats();
break;
}
default:
{
Console.WriteLine("Invalid Command:");
ShowHelp();
break;
}
}
}
StartConsole(true);
}
static void ShowHelp()
{
Console.WriteLine("\nConsole Command list");
Console.WriteLine("-=Command=-\t\t-=Description=-\t\t\t-=Shortcut=-");
Console.WriteLine(".-------------------------------------------------------------------- - - -");
Console.WriteLine("| Help\t\t\t- Show this help file\t\t- ?");
Console.WriteLine("| Save\t\t\t- Save World\t\t\t- S");
Console.WriteLine("| Restart\t\t- Restart Server(Saving)\t- RS");
Console.WriteLine("| Restart No Save\t- Restart Server(NO Saving)\t- RNS");
Console.WriteLine("| Shutdown\t\t- Shutdown Server(Saving)\t- SS");
Console.WriteLine("| Shutdown No Save\t- Shutdown Server(NO Saving)\t- SNS");
Console.WriteLine("| Stats\t\t\t- Server Stats\t\t\t- N/A");
Console.WriteLine("| PStats\t\t- RunUO Stats\t\t\t- PS");
Console.WriteLine("'------- - - -\n");
Console.WriteLine("** Commands are NOT case sensitive\n");
return;
}
static void Restart(bool restart)
{
try
{
Process[] list = Process.GetProcessesByName("runuo");
if (restart)
{
Process.Start(Core.ExePath );
}
foreach (Process p in list)
p.Kill();
}
catch
{
Console.WriteLine( "Restart Failed" );
}
}
static void ShowRUOStats()
{
try
{
Process[] list = Process.GetProcessesByName("runuo");
foreach (Process p in list)
{
Console.WriteLine("\n.--------=[ RunUO Usage Information ]=---- - - -");
Console.WriteLine("| Physical Memory:\t" + p.WorkingSet / 1024 + "k");
Console.WriteLine("| Peak Physical Memory:\t" + p.PeakWorkingSet / 1024 + "k");
Console.WriteLine("| Virtual Memory:\t" + p.VirtualMemorySize / 1024 + "k");
Console.WriteLine("| Peak Virtual Memory:\t" + p.PeakVirtualMemorySize / 1024 + "k");
Console.WriteLine("| Total Processor Time:\t" + p.TotalProcessorTime);
Console.WriteLine("| User Processor Time:\t" + p.UserProcessorTime);
Console.WriteLine("'------- - - -\n");
}
}
catch
{
Console.WriteLine( "Could not find 'RunUO' process" );
}
}
static void ShowShardStats()
{
Console.WriteLine("\n.--------=[ Shard Statistics ]=---- - - -");
Console.WriteLine("| Players:\t" + NetState.Instances.Count);
Console.WriteLine("| NPCs:\t\t" + World.Mobiles.Count);
Console.WriteLine("| Items:\t" + World.Items.Count);
Console.WriteLine("'------- - - -\n");
}
}
|
|
|
|
|
|
#13 (permalink) |
|
Forum Expert
Join Date: Mar 2003
Location: where I belong
Posts: 1,784
|
Atomic - I don't know if that's the same, but it looks a lot like Philantrop's console command package. I'd double check with him, but credit where credit goes.
![]()
__________________
"Misfortune shows those who are not really friends." -Aristotle "A multitude of words is no proof of a prudent mind." -Thales |
|
|
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|