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 09-05-2005, 09:01 PM   #1 (permalink)
Forum Newbie
 
Join Date: Sep 2005
Age: 30
Posts: 45
Default Quick Help

Sorry guys i had this set up last year cant remember how to redo it. Anyways i got uo gateway, etc, etc, all the steps i downloaded runuo and unzipped it to my c drive, but when i launch it i just get this error, i dont remember much but it is to have my user name and stuff, where and how do i put this in so runuo will work??


dean8880 is offline   Reply With Quote
Old 09-05-2005, 09:12 PM   #2 (permalink)
 
Join Date: Aug 2005
Age: 28
Posts: 184
Default

Post the script. It is looking for a file in the Data folder that doesn't exist.
-Nox- is offline   Reply With Quote
Old 09-05-2005, 09:13 PM   #3 (permalink)
Forum Newbie
 
Join Date: Sep 2005
Age: 30
Posts: 45
Default More. . .

Do you think it did not unzipp runuo properly??
How do i post the script??
dean8880 is offline   Reply With Quote
Old 09-05-2005, 10:16 PM   #4 (permalink)
 
Join Date: Aug 2005
Age: 28
Posts: 184
Default

Open the script in a text editer, the hit Ctrl + A, then Ctrl + C, then, in the post message box, hit Ctrl + V. Then highlight everything, and press the Pound button at the top of the advanced poster.

-Nox
-Nox- is offline   Reply With Quote
Old 09-05-2005, 10:17 PM   #5 (permalink)
Master of the Internet
 
TMSTKSBK's Avatar
 
Join Date: Feb 2004
Location: NC/NC State Univ
Age: 23
Posts: 16,424
Default

it's saying that it can't locate the ODBC database type in the .NET Framework's Data namespace...
__________________
Goodbye, folks.
TMSTKSBK is offline   Reply With Quote
Old 09-06-2005, 12:40 AM   #6 (permalink)
Forum Newbie
 
Join Date: Sep 2005
Age: 30
Posts: 45
Default

Quote:
Originally Posted by TMSTKSBK
it's saying that it can't locate the ODBC database type in the .NET Framework's Data namespace...

Ah so what that means is maybe redownload the .net framework??
dean8880 is offline   Reply With Quote
Old 09-06-2005, 12:41 AM   #7 (permalink)
Forum Newbie
 
Join Date: Sep 2005
Age: 30
Posts: 45
Default

Quote:
Originally Posted by -Nox-
Open the script in a text editer, the hit Ctrl + A, then Ctrl + C, then, in the post message box, hit Ctrl + V. Then highlight everything, and press the Pound button at the top of the advanced poster.

-Nox

You must excuse my misunderstanding, i do very much appricate the help. Ok when you say open the script, do you mean the script in the dos menu or the script from the file located in the runuo folder. sorry for my lack of understanding on that.
dean8880 is offline   Reply With Quote
Old 09-06-2005, 12:49 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

in the runuo folder.
__________________
Goodbye, folks.
TMSTKSBK is offline   Reply With Quote
Old 09-06-2005, 12:55 AM   #9 (permalink)
Forum Newbie
 
Join Date: Sep 2005
Age: 30
Posts: 45
Default

PHP Code:
[quote=TMSTKSBK]in the runuo folder.[/quote]


using System;
using System.Threading;
using System.Collections;
using System.Data;
using System.Data.Odbc;

namespace Server.Engines.MyRunUO
{
    public class 
DatabaseCommandQueue
    
{
        private 
Queue m_Queue;
        private 
ManualResetEvent m_Sync;
        private 
Thread m_Thread;

        private 
bool m_HasCompleted;

        private 
string m_CompletionString;
        private 
string m_ConnectionString;

        public 
bool HasCompleted
        
{
            
get{ return m_HasCompleted; }
        }

        public 
void Enqueueobject obj )
        {
            
lock m_Queue.SyncRoot )
            {
                
m_Queue.Enqueueobj );
                try{ 
m_Sync.Set(); }
                catch{}
            }
        }

        public 
DatabaseCommandQueuestring completionStringstring threadName ) : thisConfig.CompileConnectionString(), completionStringthreadName )
        {
        }

        public 
DatabaseCommandQueuestring connectionStringstring completionStringstring threadName )
        {
            
m_CompletionString completionString;
            
m_ConnectionString connectionString;

            
m_Queue Queue.Synchronized( new Queue() );

            
m_Queue.Enqueuenull ); // signal connect

            /*m_Queue.Enqueue( "DELETE FROM myrunuo_characters" );
            m_Queue.Enqueue( "DELETE FROM myrunuo_characters_layers" );
            m_Queue.Enqueue( "DELETE FROM myrunuo_characters_skills" );
            m_Queue.Enqueue( "DELETE FROM myrunuo_guilds" );
            m_Queue.Enqueue( "DELETE FROM myrunuo_guilds_wars" );*/

            
m_Sync = new ManualResetEventtrue );

            
m_Thread = new Thread( new ThreadStartThread_Start ) );
            
m_Thread.Name threadName;//"MyRunUO Database Command Queue";
            
m_Thread.Priority Config.DatabaseThreadPriority;
            
m_Thread.Start();
        }

        private 
void Thread_Start()
        {
            
bool connected false;

            
OdbcConnection connection null;
            
OdbcCommand command null;
            
OdbcTransaction transact null;

            
DateTime start DateTime.Now;

            
bool shouldWriteException true;

            while ( 
true )
            {
                
m_Sync.WaitOne();

                while ( 
m_Queue.Count )
                {
                    try
                    {
                        
object obj m_Queue.Dequeue();

                        if ( 
obj == null )
                        {
                            if ( 
connected )
                            {
                                if ( 
transact != null )
                                {
                                    try{ 
transact.Commit(); }
                                    catch ( 
Exception commitException )
                                    {
                                        
Console.WriteLine"MyRunUO: Exception caught when committing transaction" );
                                        
Console.WriteLinecommitException );

                                        try
                                        {
                                            
transact.Rollback();
                                            
Console.WriteLine"MyRunUO: Transaction has been rolled back" );
                                        }
                                        catch ( 
Exception rollbackException )
                                        {
                                            
Console.WriteLine"MyRunUO: Exception caught when rolling back transaction" );
                                            
Console.WriteLinerollbackException );
                                        }
                                    }
                                }

                                try{ 
connection.Close(); }
                                catch{}

                                try{ 
connection.Dispose(); }
                                catch{}

                                try{ 
command.Dispose(); }
                                catch{}

                                try{ 
m_Sync.Close(); }
                                catch{}

                                
Console.WriteLinem_CompletionString, (DateTime.Now start).TotalSeconds );
                                
m_HasCompleted true;

                                return;
                            }
                            else
                            {
                                try
                                {
                                    
connected true;
                                    
connection = new OdbcConnectionm_ConnectionString );
                                    
connection.Open();
                                    
command connection.CreateCommand();

                                    if ( 
Config.UseTransactions )
                                    {
                                        
transact connection.BeginTransaction();
                                        
command.Transaction transact;
                                    }
                                }
                                catch ( 
Exception e )
                                {
                                    try{ if ( 
transact != null transact.Rollback(); }
                                    catch{}

                                    try{ if ( 
connection != null connection.Close(); }
                                    catch{}

                                    try{ if ( 
connection != null connection.Dispose(); }
                                    catch{}

                                    try{ if ( 
command != null command.Dispose(); }
                                    catch{}

                                    try{ 
m_Sync.Close(); }
                                    catch{}

                                    
Console.WriteLine"MyRunUO: Unable to connect to the database" );
                                    
Console.WriteLine);
                                    
m_HasCompleted true;
                                    return;
                                }
                            }
                        }
                        else if ( 
obj is string )
                        {
                            
command.CommandText = (string)obj;
                            
command.ExecuteNonQuery();
                        }
                        else
                        {
                            
string[] parms = (string[])obj;

                            
command.CommandText parms[0];

                            if ( 
command.ExecuteScalar() == null )
                            {
                                
command.CommandText parms[1];
                                
command.ExecuteNonQuery();
                            }
                        }
                    }
                    catch ( 
Exception e )
                    {
                        if ( 
shouldWriteException )
                        {
                            
Console.WriteLine"MyRunUO: Exception caught in database thread" );
                            
Console.WriteLine);
                            
shouldWriteException false;
                        }
                    }
                }

                
lock m_Queue.SyncRoot )
                {
                    if ( 
m_Queue.Count == )
                        
m_Sync.Reset();
                }
            }
        }
    }

dean8880 is offline   Reply With Quote
Old 09-06-2005, 01:27 AM   #10 (permalink)
Forum Newbie
 
Join Date: Sep 2005
Age: 30
Posts: 45
Default Well . . .

Guess ill reinstall runuo and the .net framework. I cant think of anything else
dean8880 is offline   Reply With Quote
Old 09-06-2005, 03:57 AM   #11 (permalink)
Forum Expert
 
Join Date: Apr 2004
Location: Lawton OK
Age: 33
Posts: 476
Default

check your other thread but basically the problem appears to be that you only dled and installed the .net sdk and not the framework. the sdk is the software developer's kit and basically expands upon the framework in areas for programming and such, but doesn't itself provide the full basic functionality of the framework ( in lamens terms ). you can leave the sdk installed and add in the framework or remove it and just install the framework if hd space is an issue. if you cant find the 1.1 framework redistributable, it used to appear in the windows update page.
slithers 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