Go Back   RunUO - Ultima Online Emulation > RunUO > Server Support on Windows

Server Support on Windows Get (and give) support on general questions related to the RunUO server itself.

Reply
 
Thread Tools Display Modes
Old 08-19-2007, 10:59 PM   #51 (permalink)
Forum Expert
 
Ravenal's Avatar
 
Join Date: Oct 2003
Location: Spokane Valley, WA
Age: 24
Posts: 1,526
Default

Nevermind...
__________________
Creator of Genesis :: genesisworlds.com
-- Genesis is the next replacement program for UO Landscaper & Dragon

Last edited by Ravenal; 08-19-2007 at 11:01 PM.
Ravenal is online now   Reply With Quote
Old 10-30-2007, 03:40 AM   #52 (permalink)
Lurker
 
Join Date: Oct 2007
Age: 21
Posts: 1
Default

Hi I am new to this thread and I have read and tried to understand the solution. I am not sure what you mean by distro scripts but i have found the serverlist.cs you were talking about and there it is:

Quote:
using System;
using System.Net;
using System.Net.Sockets;
using Server;
using Server.Network;

namespace Server.Misc
{
public class ServerList
{
/* Address:
*
* The default setting, a value of 'null', will attempt to detect your IP address automatically:
* private const string Address = null;
*
* This detection, however, does not work for servers behind routers. If you're running behind a router, put in your IP:
* private const string Address = "12.34.56.78";
*
* If you need to resolve a DNS host name, you can do that too:
* private const string Address = "shard.host.com";
*/

private const string Address = "70.48.53.91 ";

public const string ServerName = "Shwartz!!";

public static void Initialize()
{
Listener.Port = 2593;

EventSink.ServerList += new ServerListEventHandler( EventSink_ServerList );
}

public static void EventSink_ServerList( ServerListEventArgs e )
{
try
{
IPAddress ipAddr;

if ( Resolve( Address != null && !IsLocalMachine( e.State ) ? Address : Dns.GetHostName(), out ipAddr ) )
e.AddServer( ServerName, new IPEndPoint( ipAddr, Listener.Port ) );
else
e.Rejected = true;
}
catch
{
e.Rejected = true;
}
}

public static bool Resolve( string addr, out IPAddress outValue )
{

if ( IPAddress.TryParse( addr, out outValue ) )
return true;

try
{
IPHostEntry iphe = Dns.GetHostEntry( addr );

if ( iphe.AddressList.Length > 0 )
{
outValue = iphe.AddressList[iphe.AddressList.Length - 1];
return true;
}
}
catch
{
}

outValue = IPAddress.None;
return false;
}

private static bool IsLocalMachine( NetState state )
{
Socket sock = state.Socket;

IPAddress theirAddress = ((IPEndPoint)sock.RemoteEndPoint).Address;

if ( IPAddress.IsLoopback( theirAddress ) )
return true;

bool contains = false;

IPHostEntry iphe = Dns.GetHostEntry( Dns.GetHostName() );

for ( int i = 0; !contains && i < iphe.AddressList.Length; ++i )
contains = theirAddress.Equals( iphe.AddressList[i] );

return contains;
}
}
}
Wich part do i replace with the code you have supplied in solution part 1?
And also where do i find listener.cs?

I know you've already dedicated some of your time to this issue but your help would be greatly appreciated.

Last edited by Magnuson; 10-30-2007 at 03:42 AM.
Magnuson is offline   Reply With Quote
Old 10-30-2007, 01:31 PM   #53 (permalink)
Forum Expert
 
wieganka's Avatar
 
Join Date: Oct 2004
Location: Chesterton, IN
Age: 29
Posts: 288
Default

Quote:
Originally Posted by Jeff View Post
A true server shouldn't be using Vista in the 1st place.
Very true, I agree...however, I do use my Vista machine as my development computer, and it would make testing easier to not have to copy files over to a different computer constantly.

That said, I don't expect Vista support, and have no problems modifying the core for my own use...I'll wait until RC2 though to even take a look at it.

Also, on a side note...you can "disable" IPV6 in Vista. I don't have the specifics at the moment, but all you have to do is go to Device Manager, and there are a couple driver items in there that you have to disable...I think it's the Teredo Tunneling Pseudo-Interface, and the WAN Miniport (IPV6) items. You might have to uncheck the "Internet Protocol Version 6 (TCP/IPv6) item in the Connection Properties of your network card...
wieganka is offline   Reply With Quote
Old 10-30-2007, 01:52 PM   #54 (permalink)
Forum Expert
 
Erica's Avatar
 
Join Date: Jan 2005
Location: Laramie Wyoming
Age: 43
Posts: 1,276
Send a message via ICQ to Erica Send a message via AIM to Erica Send a message via MSN to Erica Send a message via Yahoo to Erica Send a message via Skype™ to Erica
Default

Quote:
Also, on a side note...you can "disable" IPV6 in Vista. I don't have the specifics at the moment, but all you have to do is go to Device Manager, and there are a couple driver items in there that you have to disable...I think it's the Teredo Tunneling Pseudo-Interface, and the WAN Miniport (IPV6) items. You might have to uncheck the "Internet Protocol Version 6 (TCP/IPv6) item in the Connection Properties of your network card...
Dont think thats going to help you run RunUO 2.0 Thought you will crash shard on vista on log on.
__________________
Erica is online now   Reply With Quote
Old 10-30-2007, 02:12 PM   #55 (permalink)
Forum Expert
 
wieganka's Avatar
 
Join Date: Oct 2004
Location: Chesterton, IN
Age: 29
Posts: 288
Default

Quote:
Originally Posted by Erica View Post
Dont think thats going to help you run RunUO 2.0 Thought you will crash shard on vista on log on.
I do know, out of the box, RunUO 2 does not work on Vista...when RC2 comes out, I will be sure to check compatibility. Since the Client works fine on Vista, I think it is reasonable to assume that modifications can be made to the core to get it to work properly. I'm sure someone has done it somewhere...I haven't reeally looked much into it at the moment.
wieganka is offline   Reply With Quote
Old 10-30-2007, 02:14 PM   #56 (permalink)
Forum Expert
 
Erica's Avatar
 
Join Date: Jan 2005
Location: Laramie Wyoming
Age: 43
Posts: 1,276
Send a message via ICQ to Erica Send a message via AIM to Erica Send a message via MSN to Erica Send a message via Yahoo to Erica Send a message via Skype™ to Erica
Default

Quote:
Originally Posted by wieganka View Post
I do know, out of the box, RunUO 2 does not work on Vista...when RC2 comes out, I will be sure to check compatibility. Since the Client works fine on Vista, I think it is reasonable to assume that modifications can be made to the core to get it to work properly. I'm sure someone has done it somewhere...I haven't reeally looked much into it at the moment.
You can make it run on Vista if you do a core modification heres a link on how to make it work on Vista.
Getting RunUO 2.0 to work on Vista
__________________
Erica is online now   Reply With Quote
Old 10-30-2007, 02:21 PM   #57 (permalink)
Forum Expert
 
wieganka's Avatar
 
Join Date: Oct 2004
Location: Chesterton, IN
Age: 29
Posts: 288
Default

Quote:
Originally Posted by Erica View Post
You can make it run on Vista if you do a core modification heres a link on how to make it work on Vista.
Getting RunUO 2.0 to work on Vista

I'll bet that gets included in the new distro.
wieganka is offline   Reply With Quote
Old 10-30-2007, 02:31 PM   #58 (permalink)
Forum Expert
 
Erica's Avatar
 
Join Date: Jan 2005
Location: Laramie Wyoming
Age: 43
Posts: 1,276
Send a message via ICQ to Erica Send a message via AIM to Erica Send a message via MSN to Erica Send a message via Yahoo to Erica Send a message via Skype™ to Erica
Default

Quote:
Originally Posted by wieganka View Post
I'll bet that gets included in the new distro.
Nope read what Ryan says about Windows Vista just keep scrolling down till you see on the post Ryan made. heres the link.
RunUO Update
__________________
Erica is online now   Reply With Quote
Old 10-30-2007, 05:00 PM   #59 (permalink)
Forum Expert
 
wieganka's Avatar
 
Join Date: Oct 2004
Location: Chesterton, IN
Age: 29
Posts: 288
Default

Quote:
Originally Posted by Erica View Post
Nope read what Ryan says about Windows Vista just keep scrolling down till you see on the post Ryan made. heres the link.
RunUO Update

I saw that, and agree with his findings, however, putting in the distro changes to support IPv6 isn't necessarily a "Vista Support Feature"...I mean, at the moment, yes, it would appear to be so...however, eventually IPv6 is going to be used more widespread - it's only a matter of time, and since the modification to support IPv6 itself is quick and easy and isn't really specific to Vista Support only...I don't see a reason why it would be left out.

Either way, it doesn't matter if they do or don't...that's why it's open source with a community to support it.
wieganka is offline   Reply With Quote
Old 10-30-2007, 06:50 PM   #60 (permalink)
Newbie
 
Join Date: Oct 2007
Posts: 10
Default

mordero ... Ireally DONT understand man. Where ya find this "Core" file here? Listen.cs or listener.cs ... I did a full computer search and got nothing
JSin666 is offline   Reply With Quote
Old 10-31-2007, 05:33 AM   #61 (permalink)
Lurker
 
Join Date: Jun 2007
Posts: 3
Default I am lost at this part

I been goin thru the scripts with crap loads of searchs within the folders an my listner says this am i in the wrong area please guide

<html>
<head>
<title>RunUO Documentation - Class Overview - Listener</title>
</head>
<body bgcolor="white" style="font-family: Courier New" text="#000000" link="#000000" vlink="#000000" alink="#808080">
<h4><a href="../namespaces/Server.Network.html">Back to Server.Network</a></h4>
<h2>Listener : IDisposable</h2>
(<font color="blue">static</font>) <font color="blue">int</font> Port( <font color="blue">get</font>; <font color="blue">set</font>; )<br>
(<font color="blue">ctor</font>) Listener( <font color="blue">int</font> port )<br>
<font color="blue">int</font> UsedPort( <font color="blue">get</font>; )<br>
Socket Bind( IPAddress ip, <font color="blue">int</font> port )<br>
<font color="blue">virtual</font> <font color="blue">void</font> Dispose()<br>
<font color="blue">void</font> OnAccept( IAsyncResult asyncResult )<br>
Socket[] Slice()<br>
</body>
</html>
creepster is offline   Reply With Quote
Old 10-31-2007, 05:36 AM   #62 (permalink)
Forum Expert
 
Erica's Avatar
 
Join Date: Jan 2005
Location: Laramie Wyoming
Age: 43
Posts: 1,276
Send a message via ICQ to Erica Send a message via AIM to Erica Send a message via MSN to Erica Send a message via Yahoo to Erica Send a message via Skype™ to Erica
Default

Listener is in the core.
__________________
Erica is online now   Reply With Quote
Old 10-31-2007, 10:23 AM   #63 (permalink)
Forum Expert
 
wieganka's Avatar
 
Join Date: Oct 2004
Location: Chesterton, IN
Age: 29
Posts: 288
Default

Quote:
Originally Posted by JSin666 View Post
mordero ... Ireally DONT understand man. Where ya find this "Core" file here? Listen.cs or listener.cs ... I did a full computer search and got nothing
There are 2 downloads for RunUO. There is RunUO, and RunUO Source. The second of the 2 is the Core source. Download that and look in the Network subfolder...you will find "Listener.cs".
wieganka is offline   Reply With Quote
Old 10-31-2007, 03:47 PM   #64 (permalink)
Newbie
 
Join Date: Oct 2007
Posts: 10
Default

do I just extract the source (core) in my runuo foldeR??
JSin666 is offline   Reply With Quote
Old 10-31-2007, 04:35 PM   #65 (permalink)
Forum Expert
 
wieganka's Avatar
 
Join Date: Oct 2004
Location: Chesterton, IN
Age: 29
Posts: 288
Default

Quote:
Originally Posted by JSin666 View Post
do I just extract the source (core) in my runuo foldeR??

No!
Extract to a different folder, and open it as a separate project into Visual Studio, then make the changes and recompile it. Copy the new EXE file to the RunUO directory.
wieganka is offline   Reply With Quote
Old 10-31-2007, 08:00 PM   #66 (permalink)
Forum Expert
 
Join Date: Nov 2004
Posts: 1,656
Send a message via ICQ to Murzin Send a message via AIM to Murzin Send a message via MSN to Murzin
Default

Quote:
Originally Posted by Raider View Post
I would say Very true at one time but not no more RunUO Will have to sooner or later make it compatible with vistas as i stated xp will be discontinue sooner or later cause if you go to a computer store to buy any latest new computers you wont find XP on them XP is history .
correct, eventaully XP will be history, i think that as of jan 1 MS wont support new sales of XP, and by jan 1 2009 wont support it anymore and will only support vista. you can still buy XP, you just have to look for it, but its still widely available.

Quote:
*PS* Also Windows vista is faster and better then Xp which ive noticed.
really? every test i have seen shows XP as faster than vista other than limited games with full 64 bit compliance, and as vista much slower ( as much as 40% slower ) for media use.

Quote:
Thinks what happen to 95 and 98
MS is a company designed around making money. their goal is to release a new product and stop supporting the previous to encourage upgrading. i STILL find my copies of 98 useful.

Quote:
NT and 2k
Gone.
what are you talking about? win2k is NT 5.0, XP is NT 5.1 ... NT is the OS you are using now... and i know lots of companies who still use win2k.

do you know at all what you are talking about?
Murzin is offline   Reply With Quote
Old 11-04-2007, 03:30 PM   #67 (permalink)
Newbie
 
Join Date: Oct 2007
Posts: 10
Default

can someone post or send me the new compiled .exe ?? Cuz I got visual Studio and I dont know how to do anything in that program
JSin666 is offline   Reply With Quote
Old 11-05-2007, 12:00 PM   #68 (permalink)
Forum Expert
 
wieganka's Avatar
 
Join Date: Oct 2004
Location: Chesterton, IN
Age: 29
Posts: 288
Default

Quote:
Originally Posted by JSin666 View Post
can someone post or send me the new compiled .exe ?? Cuz I got visual Studio and I dont know how to do anything in that program

Take a look at the FAQ Forum.

Here and Here
wieganka is offline   Reply With Quote
Old 11-10-2007, 03:46 PM   #69 (permalink)
Lurker
 
Join Date: Jun 2007
Posts: 3
Default ok i figured it out

ok i made all the changes this is prolly a dumb question to experience runuo ppl but here it is after making all the changes do i combine the sources folder i extracted into the runuo folder? cause thats what i did an its like i made no changes at all ive tried making a seperate folder an named it core that dosent help either please help me when ya can ill be checkin post all day an night
creepster is offline   Reply With Quote
Old 11-10-2007, 08:53 PM   #70 (permalink)
Forum Expert
 
Join Date: Sep 2002
Age: 23
Posts: 1,472
Default

Quote:
Originally Posted by Jeff View Post
A true server shouldn't be using Vista in the 1st place.
I agree, but a testbed or sandbox is often necessary to test changes quickly, and the computer's OS platform/version shouldn't really matter in that case. Besides, this change will be necessary to make the application compatible with Server 2008.
Ravatar is offline   Reply With Quote
Old 11-15-2007, 11:16 PM   #71 (permalink)
Newbie
 
Join Date: Feb 2003
Posts: 33
Default

Well just to be tottally different than the rest of you here trying to get things working with vista. Im hosting my own RunUO 2.0 RC1 shard on my laptop using Vista Ultimate and its running like a charm with custom scripts and a fully spawned world. People can connect without a problem. I have IPv4 and IPv6 enabled. My point is that you cant say vista sucks because it aint working for you. THe only thing that isnt RC1 is the Serverlist.cs. Thats the latest SVN.
__________________
Want to earn another 1000 dollars next month doing next to nothing? click here or here
Hjemad is offline   Reply With Quote
Old 04-06-2008, 06:28 AM   #72 (permalink)
Lurker
 
Join Date: Jan 2008
Age: 16
Posts: 1
Default

Error 1 The name 'port' does not exist in the current context C:\Users\****\****\Local\TemporaryProjects\Console Application1\
Server\Network\Listener.cs 55 54 ConsoleApplication1


m_Listener = Bind(IPAddress.IPv6Any, port);

thats what i have in there but it still seems to fail me in creating how can i bypass errors
Cryptor is offline   Reply With Quote
Old 04-07-2008, 07:26 PM   #73 (permalink)
Forum Novice
 
anybody's Avatar
 
Join Date: Feb 2008
Location: Wasilla, Alaska
Age: 35
Posts: 127
Default

Quote:
Originally Posted by Jeff View Post
A true server shouldn't be using Vista in the 1st place.
I agree.

The only edition of vista that is worth a shit is Ultimate. Home Basic and Home Premium are garbage 'cause they have limited functionality. Try editing the Local Security Policies in Home Premium or try changing the Users and Groups Policies. Yeah, it's sad that gpedit.msc and secpol.msc have been removed from Home Basic and Home Premium and I refuse to go out and spend $200+ for every computer I own just to have vista ultimate.

I've also spent hours searching for software that would manage the registry pertaining to the security and group policies in Home Premium and came up with nothing.
__________________
Quote:
Originally Posted by George Carlin
I have a right to my opinion too and my opinion is... You don't have a right to your opinion!
anybody is offline   Reply With Quote
Old 04-07-2008, 09:32 PM   #74 (permalink)
ConnectUO Creator
 
Jeff's Avatar
 
Join Date: Jan 2004
Age: 27
Posts: 4,879
Default

If you have vista, and are trying to get it runuo to work on it, you have 3 options, give up, compile with the directions found somewhere here on the forums that explain how to do it on vista, or just get some damn vm software and install xp.....its nto that hard...
__________________
Jeff Boulanger
ConnectUO - Core Developer

Want to help make ConnectUO better? Click here to submit your ideas/requests
Use your talent to compete against other community members in RunUO hosted coding competitions

If you know XNA (even if its just a little) or are a good artist(2d or 3d) and are interested in making games for a hobby send me a pm or drop by #xna in irc.runuo.com. I'm looking to put together a small game development team.


Please do not pm me for support. If you are having issues please post in the appropriate forum. Thanks for your continued support of both ConnectUO and RunUO
Jeff is offline   Reply With Quote
Old 04-08-2008, 11:50 AM   #75 (permalink)
Forum Expert
 
mordero's Avatar
 
Join Date: Nov 2003
Location: Illinois, USA
Age: 22
Posts: 2,911
Default

Getting RunUO 2.0 to work on Vista