ITLongwell / mondains-legacy

Automatically exported from code.google.com/p/mondains-legacy
0 stars 0 forks source link

Delete Items #47

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
I don't speack english...

I have a server with ML svn 23 when upgrade to next version a server asks
to eliminate many item, in particular BaseAddon and BaseAddonContainer.

ex. Aquarium, ParrotPearh, all chairs ecc

Original issue reported on code.google.com by pa.mi...@gmail.com on 7 Oct 2008 at 8:28

GoogleCodeExporter commented 8 years ago
sorry, i have svn 22

Original comment by pa.mi...@gmail.com on 7 Oct 2008 at 9:51

GoogleCodeExporter commented 8 years ago
Try to comment 

Code:
            int version = reader.ReadInt();

            m_Crafter = reader.ReadMobile();
            m_Resource = (CraftResource) reader.ReadInt();
            m_Quality = (ItemQuality) reader.ReadInt();

in CraftableFurniture.cs, start the server, immediately shutit down with save, 
than 
uncomment and restart.

Original comment by gje...@gmail.com on 8 Oct 2008 at 2:37

GoogleCodeExporter commented 8 years ago
same problem with all BaseAddonContainer

I tried to use the same method "comment deserialize", but does not work

Original comment by pa.mi...@gmail.com on 10 Oct 2008 at 6:25

GoogleCodeExporter commented 8 years ago
Try to add this in BaseAddonContainer

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

            int version = reader.ReadInt();

            if ( version > 0 )
            {
                reader.ReadInt();
                List<AddonComponent> components = 
reader.ReadStrongItemList<AddonComponent>();

                m_Components = new List<AddonContainerComponent>();

                foreach ( AddonComponent c in components )
                    m_Components.Add( new AddonContainerComponent
( c.ItemID ) );
            }
            else
                m_Components = 
reader.ReadStrongItemList<AddonContainerComponent>();

            AddonComponent.ApplyLightTo( this );
        }

Than after restart nad save. Delete that code.

Original comment by gje...@gmail.com on 8 Nov 2008 at 10:36

GoogleCodeExporter commented 8 years ago
same problem

Original comment by pa.mi...@gmail.com on 9 Nov 2008 at 11:35

GoogleCodeExporter commented 8 years ago
RunUO - [www.runuo.com] Version 2.0, Build 3139.12869
Core: Running on .NET Framework Version 2.0.50727
Core: Running with arguments: -debug
Core: Optimizing for 2 processors
Scripts: Compiling C# scripts...done (cached)
Scripts: Skipping VB.NET Scripts...done (use -vb to enable)
Scripts: Verifying...done (3402 items, 959 mobiles)
Regions: Loading...done
World: Loading...An error was encountered while loading a saved object
 - Type: Server.Items.ElvenWashBasinSouthAddon
 - Serial: 0x4008CCE5
Delete the object? (y/n)

Original comment by pa.mi...@gmail.com on 9 Nov 2008 at 11:51

GoogleCodeExporter commented 8 years ago

I checked the various files that affect the problem, but the error remains

sorry for my english

Original comment by pa.mi...@gmail.com on 10 Nov 2008 at 8:48

GoogleCodeExporter commented 8 years ago
Problem is that before svn 23 this those items were just regular items and now 
they 
are containers, which sorta messes them up. So best you just delete em.

Original comment by gje...@gmail.com on 11 Nov 2008 at 6:28

GoogleCodeExporter commented 8 years ago

Original comment by gje...@gmail.com on 20 Nov 2008 at 8:41