RunUO Community

This is a sample guest message. Register a free account today to become a member! Once signed in, you'll be able to participate on this site by adding your own topics and posts, as well as connect with other members through your own private inbox!

Can't setup my clientverification script- need help

SirMarcus9818

Sorceror
anyone mind walking me through setting it up? I want client ver 7 and newer to connect and I can't figure out the f'ing thing
 

shackal

Sorceror
If you modify this line to false, shard not verify the client.

Code:
private static bool m_DetectClientRequirement = true;
 

Bittiez

Sorceror
Change this:
C#:
            //ClientVersion.Required = null;
            //Required = new ClientVersion( "6.0.0.0" );
 
            if (m_DetectClientRequirement)
            {
                string path = Core.FindDataFile("client.exe");
 
                if (File.Exists(path))
                {
                    FileVersionInfo info = FileVersionInfo.GetVersionInfo(path);
 
                    if (info.FileMajorPart != 0 || info.FileMinorPart != 0 || info.FileBuildPart != 0 || info.FilePrivatePart != 0)
                    {
                        Required = new ClientVersion(info.FileMajorPart, info.FileMinorPart, info.FileBuildPart, info.FilePrivatePart);
                    }
                }
            }

To this:
C#:
            Required = new ClientVersion("7.0.0.0");
 
            //if (m_DetectClientRequirement)
            //{
            //    string path = Core.FindDataFile("client.exe");
 
            //    if (File.Exists(path))
            //    {
            //        FileVersionInfo info = FileVersionInfo.GetVersionInfo(path);
 
            //        if (info.FileMajorPart != 0 || info.FileMinorPart != 0 || info.FileBuildPart != 0 || info.FilePrivatePart != 0)
            //        {
            //            Required = new ClientVersion(info.FileMajorPart, info.FileMinorPart, info.FileBuildPart, info.FilePrivatePart);
            //        }
            //    }
            //}
 
Top