Go Back   RunUO - Ultima Online Emulation > RunUO > Utility Support > Ultima SDK

Ultima SDK Support for the Ultima SDK.

Reply
 
Thread Tools Display Modes
Old 11-25-2003, 11:32 AM   #1 (permalink)
Newbie
 
Join Date: Nov 2003
Posts: 30
Default Where does the dll load the files from?

I already wrote this post whereelse where it didnt belong, so here i go again:

All basic methods im using result into the 'System.IO.DirectoryNotFoundException' , eg:
Gumps gumps = new Gumps(); or
Map.Felucca.GetImage
and so on

it doesnt seem to find the uo dir...

when i initialize Gumps, its directly followed by a 'System.TypeInitializationException': "The TypeInitializer for Ultima.Gumps caused an exception" as well

The Exceptions are caused while running those lines without any further *non-default* code

So where do i select the directory where to load the files from or what did i do wrong at all?
squishy is offline   Reply With Quote
Old 11-25-2003, 05:45 PM   #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

Can you post what your using exactly...
Phantom is offline   Reply With Quote
Old 11-25-2003, 09:32 PM   #3 (permalink)
Newbie
 
Join Date: Nov 2003
Posts: 30
Default

I can make a whole new Project, add the Ultima.dll as reference and use:

public class Gui : System.Windows.Forms.Form {
private static System.Windows.Forms.RichTextBox status;
private System.ComponentModel.Container components = null;

public Gui() {
Ultima.Gumps gumps = new Gumps();
PictureBox box = new PictureBox();
box.Image = Gumps.GetGump(0x1);
InitializeComponent();
}

Calling this ctor results into the mentioned errors: If i comment the first line (Gumps gumps = new Gumps(), the "box.Image = Gumps.GetGump(0x1);" thingy throws the DirectoryNotFoundException

and they also both throw a "System.TypeInitializationException" right after that.

someBitMap = Map.Felucca.GetImage; will only throw the first one

I would be happy if you at least could answer my question "Where does the Ultima.dll load the files from?" before you ask again what am i doing :P

I think that would basically help me... I hope, I can set it somewhere becaue if not, im obviously doomed
squishy is offline   Reply With Quote
Old 11-26-2003, 01:38 AM   #4 (permalink)
 
Join Date: Mar 2003
Location: Near a lava pool
Age: 8
Posts: 1,012
Default

The SDK retrieves information about the UO folder from the registry, which is the only place where it can find it. My guess your registry information is not correct, or missing. You can check it out here:

HKEY_LOCAL_MACHINE\SOFTWARE\Origin Worlds Online

If you wish to specify a custom folder, or want to bypass your problem programmatically, use Ultima.Client.Directories.
__________________
Oxygen should be regarded as a drug.
Arya is offline   Reply With Quote
Old 11-26-2003, 02:09 AM   #5 (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

squishy

I want a class I can work with.

If you don't then I can't help me, this means you can't claim something doesn't work just because your to blind to allow me to help you

Infact, tried of asking you are on your own :x
Phantom is offline   Reply With Quote
Old 11-26-2003, 03:47 AM   #6 (permalink)
Newbie
 
Join Date: Nov 2003
Posts: 30
Default

HKEY_LOCAL_MACHINE\SOFTWARE\Origin Worlds Online\Ultima Online\1.0

There it actually is it written down

The installation is AoS 2D and the directory settings are correct but it doenst find any Directory...
But the Client.Directory thing worked, thanks
squishy 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