sec_goat
Squire
Hello All I am trying to get Vhaerun's CLR Homestead system working with RunUO 2.1 an I am running into a lot of issues.
Here is what I have done so far, however this just brought up 50 new errors after fixing the first set I was getting. Can some one take a look and let me know if I am on the right track or not?
Thanks
Here is what I have done so far, however this just brought up 50 new errors after fixing the first set I was getting. Can some one take a look and let me know if I am on the right track or not?
Thanks
[/CODE][/FONT][/QUOTE]I am having a lot of issues getting this working with my new install of RunUO 2.1
I get these errors:
Code:Errors:[/FONT] [FONT=Georgia]+ Customs/Vhaerun's CRL Homestead/Distro Modifications/Animals/Boar.cs:[/FONT] [FONT=Georgia] CS0115: Line 48: 'Server.Mobiles.Boar.OnCarve(Server.Mobile, Server.Items.Co[/FONT] [FONT=Georgia]rpse)': no suitable method found to override[/FONT] [FONT=Georgia]+ Customs/Vhaerun's CRL Homestead/Distro Modifications/Animals/Bull.cs:[/FONT] [FONT=Georgia] CS0115: Line 55: 'Server.Mobiles.Bull.OnCarve(Server.Mobile, Server.Items.Co[/FONT] [FONT=Georgia]rpse)': no suitable method found to override[/FONT] [FONT=Georgia]+ Customs/Vhaerun's CRL Homestead/Distro Modifications/Animals/Chicken.cs:[/FONT] [FONT=Georgia] CS0115: Line 49: 'Server.Mobiles.Chicken.OnCarve(Server.Mobile, Server.Items[/FONT] [FONT=Georgia].Corpse)': no suitable method found to override[/FONT] [FONT=Georgia]+ Customs/Vhaerun's CRL Homestead/Distro Modifications/Animals/Cow.cs:[/FONT] [FONT=Georgia] CS0115: Line 55: 'Server.Mobiles.Cow.OnCarve(Server.Mobile, Server.Items.Cor[/FONT] [FONT=Georgia]pse)': no suitable method found to override[/FONT] [FONT=Georgia]+ Customs/Vhaerun's CRL Homestead/Distro Modifications/Animals/Pig.cs:[/FONT] [FONT=Georgia] CS0115: Line 46: 'Server.Mobiles.Pig.OnCarve(Server.Mobile, Server.Items.Cor[/FONT] [FONT=Georgia]pse)': no suitable method found to override[/FONT] [FONT=Georgia]+ Customs/Vhaerun's CRL Homestead/Distro Modifications/Animals/Sheep.cs:[/FONT] [FONT=Georgia] CS0115: Line 80: 'Server.Mobiles.Sheep.OnCarve(Server.Mobile, Server.Items.C[/FONT] [FONT=Georgia]orpse)': no suitable method found to override[/FONT] [FONT=Georgia]+ Customs/Vhaerun's CRL Homestead/Distro Modifications/Animals/Turkey.cs:[/FONT] [FONT=Georgia] CS0115: Line 44: 'Server.Mobiles.Turkey.OnCarve(Server.Mobile, Server.Items.[/FONT] [FONT=Georgia]Corpse)': no suitable method found to override[/FONT] [FONT=Georgia]+ Customs/Vhaerun's CRL Homestead/Distro Modifications/CreateFood.cs:[/FONT] [FONT=Georgia] CS0534: Line 8: 'Server.Spells.First.CreateFoodSpell' does not implement inh[/FONT] [FONT=Georgia]erited abstract member 'Server.Spells.Spell.GetMana()'[/FONT] [FONT=Georgia] CS0534: Line 8: 'Server.Spells.First.CreateFoodSpell' does not implement inh[/FONT] [FONT=Georgia]erited abstract member 'Server.Spells.Spell.CastDelayBase.get'[/FONT] [FONT=Georgia]+ Customs/Vhaerun's CRL Homestead/Vhaerun's CRL Brewing/Items/Hops/Hops.cs:[/FONT] [FONT=Georgia] CS0539: Line 18: 'ICommodity.Description' in explicit interface declaration[/FONT] [FONT=Georgia]is not a member of interface[/FONT] [FONT=Georgia] CS0535: Line 7: 'Server.Items.BaseHops' does not implement interface member[/FONT] [FONT=Georgia]'Server.Items.ICommodity.DescriptionNumber'[/FONT] [FONT=Georgia] CS0535: Line 7: 'Server.Items.BaseHops' does not implement interface member[/FONT] [FONT=Georgia]'Server.Items.ICommodity.IsDeedable'[/FONT] [FONT=Georgia]+ Customs/Vhaerun's CRL Homestead/Vhaerun's CRL Brewing/Items/BrewingIngredient[/FONT] [FONT=Georgia]s.cs:[/FONT] [FONT=Georgia] CS0539: Line 7: 'ICommodity.Description' in explicit interface declaration i[/FONT] [FONT=Georgia]s not a member of interface[/FONT] [FONT=Georgia] CS0535: Line 5: 'Server.Items.Malt' does not implement interface member 'Ser[/FONT] [FONT=Georgia]ver.Items.ICommodity.DescriptionNumber'[/FONT] [FONT=Georgia] CS0535: Line 5: 'Server.Items.Malt' does not implement interface member 'Ser[/FONT] [FONT=Georgia]ver.Items.ICommodity.IsDeedable'[/FONT] [FONT=Georgia] CS0539: Line 88: 'ICommodity.Description' in explicit interface declaration[/FONT] [FONT=Georgia]is not a member of interface[/FONT] [FONT=Georgia] CS0535: Line 86: 'Server.Items.Barley' does not implement interface member '[/FONT] [FONT=Georgia]Server.Items.ICommodity.DescriptionNumber'[/FONT] [FONT=Georgia] CS0535: Line 86: 'Server.Items.Barley' does not implement interface member '[/FONT] [FONT=Georgia]Server.Items.ICommodity.IsDeedable'[/FONT] [FONT=Georgia]+ Customs/Vhaerun's CRL Homestead/Vhaerun's CRL Brewing/Mobiles/Brewer.cs:[/FONT] [FONT=Georgia] CS1715: Line 10: 'Server.Mobiles.Brewer.SBInfos': type must be 'System.Colle[/FONT] [FONT=Georgia]ctions.Generic.List<Server.Mobiles.SBInfo>' to match overridden member 'Server.M[/FONT] [FONT=Georgia]obiles.BaseVendor.SBInfos'[/FONT] [FONT=Georgia] CS0534: Line 7: 'Server.Mobiles.Brewer' does not implement inherited abstrac[/FONT] [FONT=Georgia]t member 'Server.Mobiles.BaseVendor.SBInfos.get'[/FONT] [FONT=Georgia]+ Customs/Vhaerun's CRL Homestead/Vhaerun's CRL Brewing/Mobiles/SBBrewer.cs:[/FONT] [FONT=Georgia] CS1715: Line 17: 'Server.Mobiles.SBBrewer.BuyInfo': type must be 'System.Col[/FONT] [FONT=Georgia]lections.Generic.List<Server.Mobiles.GenericBuyInfo>' to match overridden member[/FONT] [FONT=Georgia]'Server.Mobiles.SBInfo.BuyInfo'[/FONT] [FONT=Georgia] CS0534: Line 7: 'Server.Mobiles.SBBrewer' does not implement inherited abstr[/FONT] [FONT=Georgia]act member 'Server.Mobiles.SBInfo.BuyInfo.get'[/FONT] [FONT=Georgia]+ Customs/Vhaerun's CRL Homestead/Vhaerun's CRL Cooking/Mobiles/MasterCook.cs:[/FONT] [FONT=Georgia] CS1715: Line 10: 'Server.Mobiles.MasterCook.SBInfos': type must be 'System.C[/FONT] [FONT=Georgia]ollections.Generic.List<Server.Mobiles.SBInfo>' to match overridden member 'Serv[/FONT] [FONT=Georgia]er.Mobiles.BaseVendor.SBInfos'[/FONT] [FONT=Georgia] CS0534: Line 7: 'Server.Mobiles.MasterCook' does not implement inherited abs[/FONT] [FONT=Georgia]tract member 'Server.Mobiles.BaseVendor.SBInfos.get'[/FONT] [FONT=Georgia]+ Customs/Vhaerun's CRL Homestead/Vhaerun's CRL Cooking/Mobiles/SBMasterCook.cs[/FONT] [FONT=Georgia]:[/FONT] [FONT=Georgia] CS1715: Line 17: 'Server.Mobiles.SBMasterCook.BuyInfo': type must be 'System[/FONT] [FONT=Georgia].Collections.Generic.List<Server.Mobiles.GenericBuyInfo>' to match overridden me[/FONT] [FONT=Georgia]mber 'Server.Mobiles.SBInfo.BuyInfo'[/FONT] [FONT=Georgia] CS0534: Line 7: 'Server.Mobiles.SBMasterCook' does not implement inherited a[/FONT] [FONT=Georgia]bstract member 'Server.Mobiles.SBInfo.BuyInfo.get'[/FONT] [FONT=Georgia]+ Customs/Vhaerun's CRL Homestead/Vhaerun's CRL Crops/Mobiles/Gardener.cs:[/FONT] [FONT=Georgia] CS1715: Line 10: 'Server.Mobiles.Gardener.SBInfos': type must be 'System.Col[/FONT] [FONT=Georgia]lections.Generic.List<Server.Mobiles.SBInfo>' to match overridden member 'Server[/FONT] [FONT=Georgia].Mobiles.BaseVendor.SBInfos'[/FONT] [FONT=Georgia] CS0534: Line 7: 'Server.Mobiles.Gardener' does not implement inherited abstr[/FONT] [FONT=Georgia]act member 'Server.Mobiles.BaseVendor.SBInfos.get'[/FONT] [FONT=Georgia]+ Customs/Vhaerun's CRL Homestead/Vhaerun's CRL Crops/Mobiles/SBGardener.cs:[/FONT] [FONT=Georgia] CS1715: Line 18: 'Server.Mobiles.SBGardener.BuyInfo': type must be 'System.C[/FONT] [FONT=Georgia]ollections.Generic.List<Server.Mobiles.GenericBuyInfo>' to match overridden memb[/FONT] [FONT=Georgia]er 'Server.Mobiles.SBInfo.BuyInfo'[/FONT] [FONT=Georgia] CS0534: Line 8: 'Server.Mobiles.SBGardener' does not implement inherited abs[/FONT] [FONT=Georgia]tract member 'Server.Mobiles.SBInfo.BuyInfo.get'[/FONT] [FONT=Georgia]+ Customs/Vhaerun's CRL Homestead/Vhaerun's CRL Juicing/Mobiles/JuiceMaker.cs:[/FONT] [FONT=Georgia] CS1715: Line 10: 'Server.Mobiles.JuiceMaker.SBInfos': type must be 'System.C[/FONT] [FONT=Georgia]ollections.Generic.List<Server.Mobiles.SBInfo>' to match overridden member 'Serv[/FONT] [FONT=Georgia]er.Mobiles.BaseVendor.SBInfos'[/FONT] [FONT=Georgia] CS0534: Line 7: 'Server.Mobiles.JuiceMaker' does not implement inherited abs[/FONT] [FONT=Georgia]tract member 'Server.Mobiles.BaseVendor.SBInfos.get'[/FONT] [FONT=Georgia]+ Customs/Vhaerun's CRL Homestead/Vhaerun's CRL Juicing/Mobiles/SBJuiceMaker.cs[/FONT] [FONT=Georgia]:[/FONT] [FONT=Georgia] CS1715: Line 17: 'Server.Mobiles.SBJuiceMaker.BuyInfo': type must be 'System[/FONT] [FONT=Georgia].Collections.Generic.List<Server.Mobiles.GenericBuyInfo>' to match overridden me[/FONT] [FONT=Georgia]mber 'Server.Mobiles.SBInfo.BuyInfo'[/FONT] [FONT=Georgia] CS0534: Line 7: 'Server.Mobiles.SBJuiceMaker' does not implement inherited a[/FONT] [FONT=Georgia]bstract member 'Server.Mobiles.SBInfo.BuyInfo.get't'
I have fixed the new animal CS files by opening each file and around line 55 we have the override method
Code:public override void OnCarve( Mobile from, Corpse corpse)
However the BaseCreature.cs has at line 1332:
Code:public virtual void OnCarve( Mobile from, Corpse corpse, Item with )
I inserted the last variable "Item with" into all the animal cs files included and it makes those errors go away. Can any one comment on if this is appropriate or not?
Next we have the error with Createfood.CS open the new Createfood.CS and make 2 changes:
around line 8:Code:public class CreateFoodSpell : Spell
Change to:
Code:public class CreateFoodSpell : MagerySpell
directly after public class CreateFoodSpell add:
Code:public override SpellCircle Circle { get { return SpellCircle.First; } }
My attempt at fixing the Icommodity errors:
Both Barley and Malt in the BrewingIngredients.cs (And Hops.cs) are not implementing ICommodity correctly. I looked at both the CommodityDeed.cs as well as Ingots.CS to see how they should be done:
To start Is string Icommodity.Number and next you have to add the IsDeedable attribute.
Code:public class Malt : Item, ICommodity[/FONT] [FONT=Georgia] {[/FONT] [FONT=Georgia] int ICommodity.DescriptionNumber[/FONT] [FONT=Georgia] {[/FONT] [FONT=Georgia] get[/FONT] [FONT=Georgia] {[/FONT] [FONT=Georgia] return String.Format( Amount == 1 ? "{0} malt" : "{0} malt", Amount );[/FONT] [FONT=Georgia] }[/FONT] [FONT=Georgia] }[/FONT] [FONT=Georgia] bool ICommodity.IsDeedable { get { return true; } }
I am going to continue looking at other errors to see if I can clear them up as well. As well as updating every one as this goes along.
And finally we have the issue with all the basic vendors (not SBVendor):
Change line 2 to read
Code:using System.Collections.Generic;
and around lines 9-10 change to:
Code:private List<SBInfo> m_SBInfos = new List<SBInfo>();[/FONT] [FONT=Georgia] protected override List<SBInfo> SBInfos { get { return m_SBInfos; } }
And finally we have the SBVendors:
Change line 2 to read
Code:using System.Collections.Generic;
Line 9, 17 and 19
Code:private List<GenericBuyInfo> m_BuyInfo = new InternalBuyInfo();[/FONT] [FONT=Georgia]public override List<GenericBuyInfo> BuyInfo { get { return m_BuyInfo; } }[/FONT] [FONT=Georgia]public class InternalBuyInfo : List<GenericBuyInfo>
Also I hope some one with more programming experience can look at the validity of these fixes!