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!

[RunUO 2.0 RC1] Daat99 OWLTR Update for 2.0 w/caveat

Lokai

Knight
serenity lace said:
i installed it in the order you suggested and got no errors till i installed daat99's owltr sys. then it was going no where b/c of keyring and the druid regs. if i remove these files it gives me more errors. Can Someone help me plz? x(

Sure. Post the errors.
 

advani

Wanderer
Keyring.cs error

Errors:

+Item/Misc/Keyring.cs

CS0101: Line 8: The namespace 'Server.Items' Already contains a definition for 'KeyRing'

CS0102: Line 64: The type 'Server.Items.Keyring' already contains a definition for 'InternalTarget'
 

flinn

Wanderer
installing

sorry I am new to this, ok where would i drop the fs gen 2 file? walk me through please, and the stealth? i know that you want me to drag and drop the owl folder onto the runuo2 folder right? thankyou, I really want this upgrade, i use to lay on runuo and it was awesome. thank you
Ok i'm confused, i see the scripts on first post, i have a freash runuo2 server, what do i need please and where do i drop each folder. thx
 

Lokai

Knight
First, you would start with a fresh RunUO 2.0 Server.

Next, you would download FSAnimal Taming Gen2 from the Forums, and follow the instructions there to install it.

Next, you would extract the Daat99 OWLTR zip file to a folder.

After that, follow along with these images:

1. Copy new "Scripts" folder that you just extracted:



2. Paste into your RunUO root folder:



3. When prompted, choose "Yes to All":




4. You will also need to put 'stealth.cs' in the Scripts/Skills folder, overwriting the file that is already there.

5. Last, unzip the ChampionSpawn.cs file and put it in the Scripts/Engines/CannedEvil folder, overwriting the existing file.

OK?
 

VertiCody

Sorceror
small error, when trying to add this system.

Code:
Errors:
 + Custom/Daat99OWLTR/BodRewards/Colored Loom.cs:
    CS0506: Line 44: 'Server.Items.ColoredLoomEastAddon.OnChop(Server.Mobile)':
cannot override inherited member 'Server.Items.BaseAddon.OnChop(Server.Mobile)'
because it is not marked virtual, abstract, or override
    CS0506: Line 156: 'Server.Items.ColoredLoomSouthAddon.OnChop(Server.Mobile)'
: cannot override inherited member 'Server.Items.BaseAddon.OnChop(Server.Mobile)
' because it is not marked virtual, abstract, or override

not sure if taking it out would be better.
 

Lokai

Knight
VertiCody,

My BaseAddon has an "OnChop" method that is marked as Virtual.

What BaseAddon script are you using?
 

VertiCody

Sorceror
Code:
using System;
using System.Collections;
using System.Collections.Generic;
using Server;
using Server.Multis;
using Server.Regions;
using Server.Mobiles;

namespace Server.Items
{
	public enum AddonFitResult
	{
		Valid,
		Blocked,
		NotInHouse,
		DoorsNotClosed,
		DoorTooClose,
		NoWall
	}

	public interface IAddon
	{
		Item Deed{ get; }

		bool CouldFit( IPoint3D p, Map map );
	}

	public abstract class BaseAddon : Item, IChopable, IAddon
	{
		private List<AddonComponent> m_Components;

		public void AddComponent( AddonComponent c, int x, int y, int z )
		{
			if ( Deleted )
				return;

			m_Components.Add( c );

			c.Addon = this;
			c.Offset = new Point3D( x, y, z );
			c.MoveToWorld( new Point3D( X + x, Y + y, Z + z ), Map );
		}

		public BaseAddon() : base( 1 )
		{
			Movable = false;
			Visible = false;

			m_Components = new List<AddonComponent>();
		}

		public virtual bool RetainDeedHue{ get{ return false; } }

		public void OnChop( Mobile from )
		{
			BaseHouse house = BaseHouse.FindHouseAt( this );
			
			PlayerMobile pm = (PlayerMobile)from; //NEW for Player city
			bool ismayor = false;
			if ( pm.City != null && pm.City.Mayor == pm && PlayerGovernmentSystem.IsAtCity( from ) )
				ismayor = true;

			if ( house != null && house.IsOwner( from ) && house.Addons.Contains( this ) || ismayor )
			{
				Effects.PlaySound( GetWorldLocation(), Map, 0x3B3 );
				from.SendLocalizedMessage( 500461 ); // You destroy the item.

				int hue = 0;

				if ( RetainDeedHue )
				{
					for ( int i = 0; hue == 0 && i < m_Components.Count; ++i )
					{
						AddonComponent c = m_Components[i];

						if ( c.Hue != 0 )
							hue = c.Hue;
					}
				}

				Delete();

				if ( house != null )
				house.Addons.Remove( this );

				BaseAddonDeed deed = Deed;

				if ( deed != null )
				{
					if ( RetainDeedHue )
						deed.Hue = hue;

					from.AddToBackpack( deed );
				}
			}
		}

		public virtual BaseAddonDeed Deed{ get{ return null; } }

		Item IAddon.Deed
		{
			get{ return this.Deed; }
		}

		public List<AddonComponent> Components
		{
			get
			{
				return m_Components;
			}
		}

		public BaseAddon( Serial serial ) : base( serial )
		{
		}

		public bool CouldFit( IPoint3D p, Map map )
		{
			List<BaseHouse> houses = null;

			return ( CouldFit( p, map, null, ref houses ) == AddonFitResult.Valid );
		}

		public AddonFitResult CouldFit( IPoint3D p, Map map, Mobile from, ref List<BaseHouse> houses )
		{
			if ( Deleted )
				return AddonFitResult.Blocked;

			foreach ( AddonComponent c in m_Components )
			{
				Point3D p3D = new Point3D( p.X + c.Offset.X, p.Y + c.Offset.Y, p.Z + c.Offset.Z );

				if ( !map.CanFit( p3D.X, p3D.Y, p3D.Z, c.ItemData.Height, false, true, ( c.Z == 0 ) ) )
					return AddonFitResult.Blocked;
				else if ( !CheckHouse( from, p3D, map, c.ItemData.Height, ref houses ) )
					return AddonFitResult.NotInHouse;

				if ( c.NeedsWall )
				{
					Point3D wall = c.WallPosition;

					if ( !IsWall( p3D.X + wall.X, p3D.Y + wall.Y, p3D.Z + wall.Z, map ) )
						return AddonFitResult.NoWall;
				}
			}

			foreach ( BaseHouse house in houses )
			{
				ArrayList doors = house.Doors;

				for ( int i = 0; i < doors.Count; ++i )
				{
					BaseDoor door = doors[i] as BaseDoor;

					if ( door != null && door.Open )
						return AddonFitResult.DoorsNotClosed;

					Point3D doorLoc = door.GetWorldLocation();
					int doorHeight = door.ItemData.CalcHeight;

					foreach ( AddonComponent c in m_Components )
					{
						Point3D addonLoc = new Point3D( p.X + c.Offset.X, p.Y + c.Offset.Y, p.Z + c.Offset.Z );
						int addonHeight = c.ItemData.CalcHeight;

						if ( Utility.InRange( doorLoc, addonLoc, 1 ) && (addonLoc.Z == doorLoc.Z || ((addonLoc.Z + addonHeight) > doorLoc.Z && (doorLoc.Z + doorHeight) > addonLoc.Z)) )
							return AddonFitResult.DoorTooClose;
					}
				}
			}

			return AddonFitResult.Valid;
		}

		public static bool CheckHouse( Mobile from, Point3D p, Map map, int height, ref List<BaseHouse> list )
		{
			if ( from == null || from.AccessLevel >= AccessLevel.GameMaster )
				return true;

			BaseHouse house = BaseHouse.FindHouseAt( p, map, height );

			if ( from == null || house == null || !house.IsOwner( from ) )
				return false;

			if ( !list.Contains( house ) )
				list.Add( house );

			return true;
		}

		public static bool IsWall( int x, int y, int z, Map map )
		{
			if ( map == null )
				return false;

			Tile[] tiles = map.Tiles.GetStaticTiles( x, y, true );

			for ( int i = 0; i < tiles.Length; ++i )
			{
				Tile t = tiles[i];
				ItemData id = TileData.ItemTable[t.ID & 0x3FFF];

				if ( (id.Flags & TileFlag.Wall) != 0 && (z + 16) > t.Z && (t.Z + t.Height) > z )
					return true;
			}

			return false;
		}

		public virtual void OnComponentLoaded( AddonComponent c )
		{
		}

		public virtual void OnComponentUsed( AddonComponent c, Mobile from )
		{
		}

		public override void OnLocationChange( Point3D oldLoc )
		{
			if ( Deleted )
				return;

			foreach ( AddonComponent c in m_Components )
				c.Location = new Point3D( X + c.Offset.X, Y + c.Offset.Y, Z + c.Offset.Z );
		}

		public override void OnMapChange()
		{
			if ( Deleted )
				return;

			foreach ( AddonComponent c in m_Components )
				c.Map = Map;
		}

		public override void OnAfterDelete()
		{
			base.OnAfterDelete();

			foreach ( AddonComponent c in m_Components )
				c.Delete();
		}

		public virtual bool ShareHue{ get{ return true; } }

		[Hue, CommandProperty( AccessLevel.GameMaster )]
		public override int Hue
		{
			get
			{
				return base.Hue;
			}
			set
			{
				if ( base.Hue != value )
				{
					base.Hue = value;

					if ( !Deleted && this.ShareHue && m_Components != null )
					{
						foreach ( AddonComponent c in m_Components )
							c.Hue = value;
					}
				}
			}
		}

		public override void Serialize( GenericWriter writer )
		{
			base.Serialize( writer );

			writer.Write( (int) 1 ); // version

			writer.WriteItemList<AddonComponent>( m_Components );
		}

		public override void Deserialize( GenericReader reader )
		{
			base.Deserialize( reader );

			int version = reader.ReadInt();

			switch ( version )
			{
				case 1:
				case 0:
				{
					m_Components = reader.ReadStrongItemList<AddonComponent>();
					break;
				}
			}

			if ( version < 1 && Weight == 0 )
				Weight = -1;
		}
	}
}
 

VertiCody

Sorceror
Sorry, i fixed that problem now, I got...

Code:
Errors:
 + Customs/XmlSpawner2/Player Government System 2[1].02/These Folders are for in
stall and do not go into your custom folder/Addon/BaseAddonDeed.cs:
    CS1502: Line 84: The best overloaded method match for 'Server.Items.BaseAddo
n.CouldFit(Server.IPoint3D, Server.Map, Server.Mobile, ref System.Collections.Ar
rayList)' has some invalid arguments
    CS1503: Line 84: Argument '4': cannot convert from 'ref System.Collections.G
eneric.List<Server.Multis.BaseHouse>' to 'ref System.Collections.ArrayList'
 + Customs/XmlSpawner2/Player Government System 2[1].02/These Folders are for in
stall and do not go into your custom folder/Distro/PlayerMobile.cs:
    CS1514: Line 2423: { expected
    CS1525: Line 2435: Invalid expression term 'case'
    CS1002: Line 2435: ; expected
    CS1525: Line 2435: Invalid expression term ':'
    CS1002: Line 2435: ; expected
    CS1525: Line 2440: Invalid expression term 'case'
    CS1002: Line 2440: ; expected
    CS1525: Line 2440: Invalid expression term ':'
    CS1002: Line 2440: ; expected
    CS1525: Line 2446: Invalid expression term 'case'
    CS1002: Line 2446: ; expected
    CS1525: Line 2446: Invalid expression term ':'
    CS1002: Line 2446: ; expected
    CS1525: Line 2463: Invalid expression term 'case'
    CS1002: Line 2463: ; expected
    CS1525: Line 2463: Invalid expression term ':'
    CS1002: Line 2463: ; expected
    CS1525: Line 2468: Invalid expression term 'case'
    CS1002: Line 2468: ; expected
    CS1525: Line 2468: Invalid expression term ':'
    CS1002: Line 2468: ; expected
    CS1525: Line 2473: Invalid expression term 'case'
    CS1002: Line 2473: ; expected
    CS1525: Line 2473: Invalid expression term ':'
    CS1002: Line 2473: ; expected
    CS1525: Line 2478: Invalid expression term 'case'
    CS1002: Line 2478: ; expected
    CS1525: Line 2478: Invalid expression term ':'
    CS1002: Line 2478: ; expected
    CS1525: Line 2484: Invalid expression term 'case'
    CS1002: Line 2484: ; expected
    CS1525: Line 2484: Invalid expression term ':'
    CS1002: Line 2484: ; expected
    CS1525: Line 2491: Invalid expression term 'case'
    CS1002: Line 2491: ; expected
    CS1525: Line 2491: Invalid expression term ':'
    CS1002: Line 2491: ; expected
    CS1525: Line 2502: Invalid expression term 'case'
    CS1002: Line 2502: ; expected
    CS1525: Line 2502: Invalid expression term ':'
    CS1002: Line 2502: ; expected
    CS1525: Line 2508: Invalid expression term 'case'
    CS1002: Line 2508: ; expected
    CS1525: Line 2508: Invalid expression term ':'
    CS1002: Line 2508: ; expected
    CS1525: Line 2509: Invalid expression term 'case'
    CS1002: Line 2509: ; expected
    CS1525: Line 2509: Invalid expression term ':'
    CS1002: Line 2509: ; expected
    CS1525: Line 2539: Invalid expression term 'case'
    CS1002: Line 2539: ; expected
    CS1525: Line 2539: Invalid expression term ':'
    CS1002: Line 2539: ; expected
    CS1525: Line 2544: Invalid expression term 'case'
    CS1002: Line 2544: ; expected
    CS1525: Line 2544: Invalid expression term ':'
    CS1002: Line 2544: ; expected
    CS1525: Line 2553: Invalid expression term 'case'
    CS1002: Line 2553: ; expected
    CS1525: Line 2553: Invalid expression term ':'
    CS1002: Line 2553: ; expected
    CS1525: Line 2554: Invalid expression term 'case'
    CS1002: Line 2554: ; expected
    CS1525: Line 2554: Invalid expression term ':'
    CS1002: Line 2554: ; expected
    CS1525: Line 2559: Invalid expression term 'case'
    CS1002: Line 2559: ; expected
    CS1525: Line 2559: Invalid expression term ':'
    CS1002: Line 2559: ; expected
    CS1525: Line 2571: Invalid expression term 'case'
    CS1002: Line 2571: ; expected
    CS1525: Line 2571: Invalid expression term ':'
    CS1002: Line 2571: ; expected
    CS1525: Line 2586: Invalid expression term 'case'
    CS1002: Line 2586: ; expected
    CS1525: Line 2586: Invalid expression term ':'
    CS1002: Line 2586: ; expected
    CS1525: Line 2598: Invalid expression term 'case'
    CS1002: Line 2598: ; expected
    CS1525: Line 2598: Invalid expression term ':'
    CS1002: Line 2598: ; expected
    CS1525: Line 2605: Invalid expression term 'case'
    CS1002: Line 2605: ; expected
    CS1525: Line 2605: Invalid expression term ':'
    CS1002: Line 2605: ; expected
    CS1525: Line 2610: Invalid expression term 'case'
    CS1002: Line 2610: ; expected
    CS1525: Line 2610: Invalid expression term ':'
    CS1002: Line 2610: ; expected
    CS1525: Line 2615: Invalid expression term 'case'
    CS1002: Line 2615: ; expected
    CS1525: Line 2615: Invalid expression term ':'
    CS1002: Line 2615: ; expected
    CS1525: Line 2620: Invalid expression term 'case'
    CS1002: Line 2620: ; expected
    CS1525: Line 2620: Invalid expression term ':'
    CS1002: Line 2620: ; expected
    CS1525: Line 2626: Invalid expression term 'case'
    CS1002: Line 2626: ; expected
    CS1525: Line 2626: Invalid expression term ':'
    CS1002: Line 2626: ; expected
    CS1525: Line 2633: Invalid expression term 'case'
    CS1002: Line 2633: ; expected
    CS1525: Line 2633: Invalid expression term ':'
    CS1002: Line 2633: ; expected
    CS1525: Line 2638: Invalid expression term 'case'
    CS1002: Line 2638: ; expected
    CS1525: Line 2638: Invalid expression term ':'
    CS1002: Line 2638: ; expected
    CS1525: Line 2645: Invalid expression term 'case'
    CS1002: Line 2645: ; expected
    CS1525: Line 2645: Invalid expression term ':'
    CS1002: Line 2645: ; expected
    CS1513: Line 2691: } expected
 + Customs/XmlSpawner2/XmlSpawner2.cs:
    CS0029: Line 9207: Cannot implicitly convert type 'System.Collections.ArrayL
ist' to 'System.Collections.Generic.List<Server.Tile>'

haha this is never ending today
 

Lokai

Knight
Sorry,

I do not use, nor can I support, XML Spawner or Player Government systems. Try posting in those threads.

Thanks.
 

obelix952

Wanderer
i followed all the instructions while installing the animal taming system and compiled fine with no errors at all what so ever
now i installed daats system and made all the corrections to necessary files
and im getting this

RunUO - [www.runuo.com] Version 2.0, Build 2357.32527
Core: Running on .NET Framework Version 2.0.50727
Core: Optimizing for 2 processors
Scripts: Compiling C# scripts...failed (5 errors, 0 warnings)
Errors:
Error:
System.ArgumentException: The path is not of a legal form.
at System.IO.Path.NormalizePathFast(String path, Boolean fullCheck)
at System.IO.Path.GetFullPathInternal(String path)
at System.IO.Path.GetFullPath(String path)
at Server.ScriptCompiler.Display(CompilerResults results)
at Server.ScriptCompiler.CompileCSScripts(Boolean debug, Assembly& assembly)
at Server.ScriptCompiler.Compile(Boolean debug)
at Server.Core.Main(String[] args)
This exception is fatal, press return to exit

Plz advise of what the issue may be
 
Ok got it in and everything seems ok, but need to know for sure if there is a spot in the files that i am overlooking to add in more metals got them added but need to know if there s a spot to change that id's how many ores are there seems that i still only have the ones in this system, so what im asking is, is there a spot that regulates how may ores there are because i cant seem to find it like say a max of 13 or something along that lines because i have 29 total in place

thanks for your help on this
 

frank

Wanderer
boards

when you make boards with colored logs like ash they turn to reg boards so you cant make ash crafts and when you addmenu ash boards you cant use them to make furniture is this the way its suppose to be if so what are the ash boards for. cant use ash boards for fletching either
 

nomad707

Knight
Wow

HOLY CRAP

You put it in normal filestructure so you just drag drop! was getting tired of doing a search and replacing one of 40 files by hand, THANKS YOU.!
 

carrbrooke

Wanderer
I am having a problem with my CraftItem.cs as your script pack is the only 1 i have installed, that has modified this script is it something you can help me with :confused:
Code:
Errors:
 + Engines/Craft/Core/CraftItem.cs:
    CS1502: Line 1350: The best overloaded method match for 'Server.Items.BaseRunicTool.ApplyAttributesTo(Server.Items.BaseWeapon)' has some invalid arguments
    CS1503: Line 1350: Argument '1': cannot convert from 'Server.Items.BaseJewel' to 'Server.Items.BaseWeapon'
 

Angeline

Wanderer
Hello

Everything was ok but today my server crashed
Server Crash Report
===================

Exception:
System.NullReferenceException: La référence d'objet n'est pas définie à une instance d'un objet.
à Server.Engines.Craft.CraftItem.CompleteCraft(Int32 quality, Boolean makersMark, Mobile from, CraftSystem craftSystem, Type typeRes, BaseTool tool, CustomCraft customCraft)
à Server.Engines.Craft.CraftItem.InternalTimer.OnTick()
à Server.Timer.Slice()
à Server.Core.Main(String[] args)

Thanks for your help.
 

Lokai

Knight
obelix,

Normally, people have gotten this error when they messed up their saves somehow. Did you back up your saves, and use a different load of Server with an older save?

obelix952 said:
i followed all the instructions while installing the animal taming system and compiled fine with no errors at all what so ever
now i installed daats system and made all the corrections to necessary files
and im getting this

RunUO - [www.runuo.com] Version 2.0, Build 2357.32527
Core: Running on .NET Framework Version 2.0.50727
Core: Optimizing for 2 processors
Scripts: Compiling C# scripts...failed (5 errors, 0 warnings)
Errors:
Error:
System.ArgumentException: The path is not of a legal form.
at System.IO.Path.NormalizePathFast(String path, Boolean fullCheck)
at System.IO.Path.GetFullPathInternal(String path)
at System.IO.Path.GetFullPath(String path)
at Server.ScriptCompiler.Display(CompilerResults results)
at Server.ScriptCompiler.CompileCSScripts(Boolean debug, Assembly& assembly)
at Server.ScriptCompiler.Compile(Boolean debug)
at Server.Core.Main(String[] args)
This exception is fatal, press return to exit

Plz advise of what the issue may be
 

metaltounge

Wanderer
WOW nice script works great. For some reason i had to remove keyring.cs for it to work. Is removing it going to make a problem later on? Would like to ask what kind of spawner can i use with this?
 

Lokai

Knight
metaltounge said:
WOW nice script works great. For some reason i had to remove keyring.cs for it to work. Is removing it going to make a problem later on? Would like to ask what kind of spawner can i use with this?

No, that's fine. The reason that happens is one script was named keyring.cs and the other was key ring.cs. It doesn't matter which one you delete, I think they are both the same.

I use the spawner system with Nerun's Distro. I have not tried to use the XML Spawner system yet.
 

metaltounge

Wanderer
yes thank you for the awsome scripts i just now have to get in touch with the commands. It is a great script cant wait for more.
 
Top