Go Back   RunUO - Ultima Online Emulation > RunUO > RunUO Post Archive

RunUO Post Archive The Archvie

Reply
 
Thread Tools Display Modes
Old 01-09-2005, 11:35 PM   #1 (permalink)
 
Join Date: Jan 2005
Location: Quebec Canada
Age: 19
Posts: 104
Send a message via MSN to Foress
Default GUI or more Usefull Console window?

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
Foress is offline   Reply With Quote
Old 01-10-2005, 12:08 AM   #2 (permalink)
Account Terminated
 
Join Date: Sep 2002
Age: 26
Posts: 3,846
Send a message via ICQ to Phantom Send a message via AIM to Phantom Send a message via MSN to Phantom
Default

Quote:
Originally Posted by Foress
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
This would only make RunUO use more resources.

Frontend already does this.
Phantom is offline   Reply With Quote
Old 01-10-2005, 01:12 AM   #3 (permalink)
Forum Expert
 
TheOutkastDev's Avatar
 
Join Date: Sep 2002
Location: Houston, Texas
Age: 22
Posts: 3,933
Default

Quote:
Originally Posted by Phantom
This would only make RunUO use more resources.

Frontend already does this.
Nominal resource usage and FrontEnd is no longer supported. That's why it is no longer included into the distro.
TheOutkastDev is offline   Reply With Quote
Old 01-10-2005, 03:16 PM   #4 (permalink)
 
Join Date: Jan 2005
Location: Quebec Canada
Age: 19
Posts: 104
Send a message via MSN to Foress
Default

Ok but just the ability to save wouldn't use that much ressource, would it?
Foress is offline   Reply With Quote
Old 01-10-2005, 04:45 PM   #5 (permalink)
Forum Expert
 
Join Date: Aug 2004
Location: Redmond, WA
Age: 21
Posts: 1,288
Send a message via AIM to Sep102 Send a message via MSN to Sep102
Default

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.
Sep102 is offline   Reply With Quote
Old 01-10-2005, 05:54 PM   #6 (permalink)
 
Join Date: Oct 2002
Age: 23
Posts: 4,689
Default

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.
XxSP1DERxX is offline   Reply With Quote
Old 01-10-2005, 06:28 PM   #7 (permalink)
 
Join Date: Jan 2005
Location: Quebec Canada
Age: 19
Posts: 104
Send a message via MSN to Foress
Default

Quote:
Originally Posted by Sep102
turn your AutoSaves up to every five or ten seconds, then you can pretend that you're invoking the Save command from the console.
That is not funny
Foress is offline   Reply With Quote
Old 01-11-2005, 10:42 AM   #8 (permalink)
Master of the Internet
 
TMSTKSBK's Avatar
 
Join Date: Feb 2004
Location: NC/NC State Univ
Age: 23
Posts: 16,424
Default

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.
TMSTKSBK is offline   Reply With Quote
Old 01-11-2005, 12:18 PM   #9 (permalink)
Connection Reset by Peer
 
Join Date: Jan 2003
Posts: 676
Default

It's not difficult to implement this, you can do it with a simple Windows Form on the server end, or use Sockets or Remoting to allow remote administration.
tejster24 is offline   Reply With Quote
Old 01-11-2005, 02:39 PM   #10 (permalink)
Forum Expert
 
Join Date: Dec 2002
Posts: 730
Default

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"); 
	} 
}
Atomic is offline   Reply With Quote
Old 01-11-2005, 04:24 PM   #11 (permalink)
 
Join Date: Jan 2005
Location: Quebec Canada
Age: 19
Posts: 104
Send a message via MSN to Foress
Default

Cool! I'll take a look at it
Foress is offline   Reply With Quote
Old 01-14-2005, 08:56 PM   #12 (permalink)
 
Join Date: Dec 2003
Posts: 1,069
Default

Ya, and there is already a admin gui tool that you can download from the script submissions.
__________________
HI!
jjarmis is offline   Reply With Quote
Old 01-15-2005, 06:51 PM   #13 (permalink)
Forum Expert
 
Khaz's Avatar
 
Join Date: Mar 2003
Location: where I belong
Posts: 1,784
Default

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
Khaz is offline   Reply With Quote
Old 01-15-2005, 07:46 PM   #14 (permalink)
Forum Expert
 
Join Date: Dec 2002
Posts: 730
Default

As I said I really don't remember, but I hope I was clear about the script not being mine. It's a great script, the author should definately repost it on submissions. If you know him please tell him to respost
Atomic is offline   Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off



Powered by vBulletin® Version 3.7.0
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0 RC5