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!

xmlspawnner error

Davidmp

Wanderer
okay so I'm trying to install the xml spawnner and i get this error
Code:
Errors:
 + xml/XmlMobiles/TalkingJeweler.cs:
    CS1715: Line 10: 'Server.Mobiles.TalkingJeweler.SBInf
em.Collections.Generic.List<Server.Mobiles.SBInfo>' to ma
Server.Mobiles.BaseVendor.SBInfos'
    CS0534: Line 7: 'Server.Mobiles.TalkingJeweler' does
 abstract member 'Server.Mobiles.BaseVendor.SBInfos.get'

& this is what is in the talkingjewler.cs

Code:
using System;
using System.Collections;
using Server;

namespace Server.Mobiles
{
    public class TalkingJeweler : TalkingBaseVendor
    {
        private ArrayList m_SBInfos = new ArrayList();
        protected override ArrayList SBInfos{ get { return m_SBInfos; } }

        [Constructable]
        public TalkingJeweler() : base( "the jeweler" )
        {
            SetSkill( SkillName.ItemID, 64.0, 100.0 );
        }

        public override void InitSBInfo()
        {
            m_SBInfos.Add( new SBJewel() );
        }

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

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

            writer.Write( (int) 0 ); // version
        }

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

            int version = reader.ReadInt();
        }
    }
}

can someone help me here? :D thanks
 

Ednyved

Sorceror
Replace
Code:
        private ArrayList m_SBInfos = new ArrayList();
        protected override ArrayList SBInfos{ get { return m_SBInfos; } }

with
Code:
        private List<SBInfo> m_SBInfos = new List<SBInfo>();
        protected override List<SBInfo> SBInfos { get { return m_SBInfos; } }

and make sure you change
Code:
using System.Collections;
to
Code:
using System.Collections.Generic;
 

Mythosis

Sorceror
Same problem as the original poster. Result after suggested change:

Code:
RunUO - [www.runuo.com] Version 2.1, Build 3995.28114
Core: Running on .NET Framework Version 2.0.50727
Scripts: Compiling C# scripts...failed (3 errors, 0 warnings)
Errors:
+ Customs/XmlSpawner/XmlQuest/XmlQuestHolder.cs:
    CS0117: Line 360: 'Server.Network.NetState' does not contain a definition fo
r 'IsPost6017'
+ Customs/XmlSpawner/XmlUtils/WriteMulti.cs:
    CS0246: Line 307: The type or namespace name 'Tile' could not be found (are
you missing a using directive or an assembly reference?)
    CS0029: Line 307: Cannot implicitly convert type 'Server.StaticTile[]' to 'T
ile[]'
+ Customs/XmlSpawner/XmlSpawner2.cs:
    CS0234: Line 9785: The type or namespace name 'Tile' does not exist in the n
amespace 'Server' (are you missing an assembly reference?)
    CS0117: Line 9785: 'Server.Map' does not contain a definition for 'GetTilesA
t'
    CS0030: Line 9790: Cannot convert type 'Server.Tile' to 'object'
    CS0246: Line 9793: The type or namespace name 'Tile' could not be found (are
you missing a using directive or an assembly reference?)
    CS0246: Line 9795: The type or namespace name 'Tile' could not be found (are
you missing a using directive or an assembly reference?)
    CS0246: Line 9795: The type or namespace name 'Tile' could not be found (are
you missing a using directive or an assembly reference?)
    CS0246: Line 9901: The type or namespace name 'Tile' could not be found (are
you missing a using directive or an assembly reference?)
    CS0246: Line 9940: The type or namespace name 'Tile' could not be found (are
you missing a using directive or an assembly reference?)
    CS0029: Line 9940: Cannot implicitly convert type 'Server.StaticTile[]' to '
Tile[]'
    CS0246: Line 10065: The type or namespace name 'Tile' could not be found (ar
e you missing a using directive or an assembly reference?)
    CS0246: Line 10096: The type or namespace name 'Tile' could not be found (ar
e you missing a using directive or an assembly reference?)
    CS0029: Line 10096: Cannot implicitly convert type 'Server.StaticTile[]' to
'Tile[]'
    CS0246: Line 10101: The type or namespace name 'Tile' could not be found (ar
e you missing a using directive or an assembly reference?)
Scripts: One or more scripts failed to compile or no script files were found.
- Press return to exit, or R to try again.

I'm running RunUO2.1 (downloaded today) and have only added nerun's distro so far. Whats up?
 

Marlando

Wanderer
the following scripts should fix these errors you are having with xml spawner 2
 

Attachments

  • XmlSpawner2.cs
    527.5 KB · Views: 56
  • WriteMulti.cs
    11.7 KB · Views: 33
  • XmlQuestHolder.cs
    62.8 KB · Views: 38

Mythosis

Sorceror
Almost :)

Code:
RunUO - [www.runuo.com] Version 2.1, Build 3995.28114
Core: Running on .NET Framework Version 2.0.50727
Scripts: Compiling C# scripts...failed (1 errors, 0 warnings)
Errors:
+ Customs/XmlSpawner/XmlSpawner2.cs:
    CS0246: Line 1940: The type or namespace name 'ISpawnable' could not be foun
d (are you missing a using directive or an assembly reference?)
Scripts: One or more scripts failed to compile or no script files were found.
- Press return to exit, or R to try again.
 

Marlando

Wanderer
Almost :)



Code:
RunUO - [www.runuo.com] Version 2.1, Build 3995.28114 Core: Running on .NET Framework Version 2.0.50727 Scripts: Compiling C# scripts...failed (1 errors, 0 warnings) Errors: + Customs/XmlSpawner/XmlSpawner2.cs: CS0246: Line 1940: The type or namespace name 'ISpawnable' could not be foun d (are you missing a using directive or an assembly reference?) Scripts: One or more scripts failed to compile or no script files were found. - Press return to exit, or R to try again.​

Mythosis what version of runuo are you using i am using SVN 669 and i don't get this error
 
jesus christ, i just ppointed out a post that shows that getting xmlspawner to work on curerent svn and getting it work on 2.1 (which he is clearly using) are two very different methods. the files i posted will work 100% for him
 
Top