Resource icon

CompletelyCustomizableVendor overhaul and update 1.3

No permission to download

JaxStraw

Citizen
Feb 20, 2018
39
2
8
39
Errors:
+ Custom Scripts/Completely Customizable Vendor/Gumps/ClassicVendorGump.cs:
CS0246: Line 116: The type or namespace name 'MobileStatusExtended' could not be found (are you missing a using directive or an assembly reference?)
+ Custom Scripts/Completely Customizable Vendor/Core/PaymentTarget.cs:
CS0246: Line 58: The type or namespace name 'XmlAttachment' could not be found (are you missing a using directive or an assembly reference?)
+ Custom Scripts/Completely Customizable Vendor/Core/Currency.cs:
CS0246: Line 369: The type or namespace name 'XmlAttachment' could not be found (are you missing a using directive or an assembly reference?)
CS0103: Line 369: The name 'XmlAttach' does not exist in the current context
CS0246: Line 385: The type or namespace name 'XmlAttachment' could not be found (are you missing a using directive or an assembly reference?)
CS0103: Line 385: The name 'XmlAttach' does not exist in the current context
Scripts: One or more scripts failed to compile or no script files were found.

I keep getting these errors and I have everything saved in my custom scripts folder. Any ideas on how to correct this?

I am running the newer version of ServUO
UO Version 7.0.85.15
 
Last edited:

Diesel

Gold Donator
Sep 7, 2014
160
36
28
55
Shard Name
Medival World 73.146.176.79
Xml was removed from the current repo. Zerodowned was awesome and released the xmlattach package to work with the new repo. You need to install that package. Customizable vendor uses it.

Here is a link to that package

XML ATTACH PACKAGE
 
  • Like
Reactions: JaxStraw

JaxStraw

Citizen
Feb 20, 2018
39
2
8
39
Xml was removed from the current repo. Zerodowned was awesome and released the xmlattach package to work with the new repo. You need to install that package. Customizable vendor uses it.

Here is a link to that package

XML ATTACH PACKAGE

Do I just unpack them into the MasterServuo folder or do I need to place them somewhere specific?
Post automatically merged:

Errors:
+ Custom Scripts/Completely Customizable Vendor/Gumps/ClassicVendorGump.cs:
CS0246: Line 116: The type or namespace name 'MobileStatusExtended' could not be found (are you missing a using directive or an assembly reference?)
+ Custom Scripts/Completely Customizable Vendor/Core/PaymentTarget.cs:
CS0246: Line 58: The type or namespace name 'XmlAttachment' could not be found (are you missing a using directive or an assembly reference?)
+ Custom Scripts/Completely Customizable Vendor/Core/Currency.cs:
CS0246: Line 369: The type or namespace name 'XmlAttachment' could not be found (are you missing a using directive or an assembly reference?)
CS0103: Line 369: The name 'XmlAttach' does not exist in the current context
CS0246: Line 385: The type or namespace name 'XmlAttachment' could not be found (are you missing a using directive or an assembly reference?)
CS0103: Line 385: The name 'XmlAttach' does not exist in the current context
+ Items/Equipment/Weapons/BaseWeapon.cs:
CS0246: Line 606: The type or namespace name 'XmlLevelItem' could not be found (are you missing a using directive or an assembly reference?)
CS0103: Line 606: The name 'XmlAttach' does not exist in the current context
CS0246: Line 606: The type or namespace name 'XmlLevelItem' could not be found (are you missing a using directive or an assembly reference?)
CS0246: Line 606: The type or namespace name 'XmlLevelItem' could not be found (are you missing a using directive or an assembly reference?)
CS0246: Line 610: The type or namespace name 'LevelInfoEntry' could not be found (are you missing a using directive or an assembly reference?)
CS0103: Line 610: The name 'AttributeCategory' does not exist in the current context
Scripts: One or more scripts failed to compile or no script files were found.
 
Last edited:

Diesel

Gold Donator
Sep 7, 2014
160
36
28
55
Shard Name
Medival World 73.146.176.79
Add them to your customs folder in scripts
 

JaxStraw

Citizen
Feb 20, 2018
39
2
8
39
Add them to your customs folder in scripts

Errors:
+ Custom Scripts/Completely Customizable Vendor/Gumps/ClassicVendorGump.cs:
CS0246: Line 116: The type or namespace name 'MobileStatusExtended' could not be found (are you missing a using directive or an assembly reference?)
+ Items/Equipment/Weapons/BaseWeapon.cs:
CS0246: Line 606: The type or namespace name 'XmlLevelItem' could not be found (are you missing a using directive or an assembly reference?)
CS0103: Line 606: The name 'XmlAttach' does not exist in the current context
CS0246: Line 606: The type or namespace name 'XmlLevelItem' could not be found (are you missing a using directive or an assembly reference?)
CS0246: Line 606: The type or namespace name 'XmlLevelItem' could not be found (are you missing a using directive or an assembly reference?)
Scripts: One or more scripts failed to compile or no script files were found.


Well, that gave me fewer errors lol

Is there something else I need to change in the code?
 

Diesel

Gold Donator
Sep 7, 2014
160
36
28
55
Shard Name
Medival World 73.146.176.79
Ok, I am unsure about your MobileStatusExtended error is about. However, did you drop the XmlLevelItem into your Scripts/Custom folder as well as the xmlattach package? They work hand in hand. I think if you put in the XmlLevelItem package it should solve the XmlevelItem error on line 606. Have you altered your BaseWeapon.cs?

You should find the the XmlLevelItem package at the same spot I gave you for the XmlAttach package. I also pasted it here for you.
 

Attachments

JaxStraw

Citizen
Feb 20, 2018
39
2
8
39
Ok, I am unsure about your MobileStatusExtended error is about. However, did you drop the XmlLevelItem into your Scripts/Custom folder as well as the xmlattach package? They work hand in hand. I think if you put in the XmlLevelItem package it should solve the XmlevelItem error on line 606. Have you altered your BaseWeapon.cs?

You should find the the XmlLevelItem package at the same spot I gave you for the XmlAttach package. I also pasted it here for you.

Yes, I have and I did the changes to BaseWeapon.cs

With all 3 of the folders in my custom scripts folder, I am still getting these errors

Errors:
+ Custom Scripts/Completely Customizable Vendor/Gumps/ClassicVendorGump.cs:
CS0246: Line 116: The type or namespace name 'MobileStatusExtended' could not be found (are you missing a using directive or an assembly reference?)
+ Items/Equipment/Weapons/BaseWeapon.cs:
CS0246: Line 606: The type or namespace name 'XmlLevelItem' could not be found (are you missing a using directive or an assembly reference?)
CS0103: Line 606: The name 'XmlAttach' does not exist in the current context
CS0246: Line 606: The type or namespace name 'XmlLevelItem' could not be found (are you missing a using directive or an assembly reference?)
CS0246: Line 606: The type or namespace name 'XmlLevelItem' could not be found (are you missing a using directive or an assembly reference?)
Scripts: One or more scripts failed to compile or no script files were found.



In baseweapon.cs I replaced:

public override void GetContextMenuEntries(Mobile from, List<ContextMenuEntry> list)
{
base.GetContextMenuEntries(from, list);

with:

public override void GetContextMenuEntries(Mobile from, List<ContextMenuEntry> list)
{
base.GetContextMenuEntries(from, list);
// Xml Spawner 3.26c XmlLevelItem - SOF
XmlLevelItem levitem = XmlAttach.FindAttachment(this, typeof(XmlLevelItem)) as XmlLevelItem;

if (levitem != null)
{
list.Add(new LevelInfoEntry(from, this, AttributeCategory.Melee));
}
// Xml Spawner 3.26c XmlLevelItem - EOF


This is what I have in that section now:


public override void GetContextMenuEntries(Mobile from, List<ContextMenuEntry> list)
{
base.GetContextMenuEntries(from, list);
// Xml Spawner 3.26c XmlLevelItem - SOF
XmlLevelItem levitem = XmlAttach.FindAttachment(this, typeof(XmlLevelItem)) as XmlLevelItem;

if (levitem != null)
{
list.Add(new LevelInfoEntry(from, this, AttributeCategory.Melee));
}
// Xml Spawner 3.26c XmlLevelItem - EOF

if (SearingWeapon && Parent == from)
{
list.Add(new SearingWeapon.ToggleExtinguishEntry(from, this));
}

if (BlessedFor == from && BlessedBy == from && RootParent == from)
{
list.Add(new UnBlessEntry(from, this));
}
}
 

Diesel

Gold Donator
Sep 7, 2014
160
36
28
55
Shard Name
Medival World 73.146.176.79
Posting my baseweapon.cs. You can try taking winmerge and pulling them both up at the same time and look for differences. I've had a lot of work done to my server mostly by a real programmer (which I am not. I am a codebunglar). It might show something. Thats about my best move I got left to help.

Hell you might even try to replace yours with mine but it might also explode your computer lol so if you do that be ready to reverse it.
 

Attachments

JaxStraw

Citizen
Feb 20, 2018
39
2
8
39
Looks like a using reference was missed, at the top of the script you'll need to add it or prior to the lines of code pointing to its elements!

You were correct and that fixed all but one error :)

Errors:
+ Custom Scripts/Completely Customizable Vendor/Gumps/ClassicVendorGump.cs:
CS0246: Line 116: The type or namespace name 'MobileStatusExtended' could not be found (are you missing a using directive or an assembly reference?)
Scripts: One or more scripts failed to compile or no script files were found.

I have dabbed around and tried to correct this error, but keep getting the same error
 

GoldDraco13

Squire
Aug 1, 2014
356
233
43
48
Canada
mycy4.com
Donate
Donate money to this user
If you are using Visual Studio, hover over the MobileStatusExtended and add the reference, or if you do not use VS, what I said above applies to this error too, you'll have to find what using reference you need, VS just makes it easy!
 

JaxStraw

Citizen
Feb 20, 2018
39
2
8
39
One to go you're so close!
haha! I know!! I feel like i could do anything right now!!


.... nope... just tried to jump over my desk and I fell, hit my chair, and now i think I broke my spleen...
Post automatically merged:

If you are using Visual Studio, hover over the MobileStatusExtended and add the reference, or if you do not use VS, what I said above applies to this error too, you'll have to find what using reference you need, VS just makes it easy!

I am getting VS again. I've been using notepad ++ for so long, i didn't install VS to this pc yet
Post automatically merged:

If you are using Visual Studio, hover over the MobileStatusExtended and add the reference, or if you do not use VS, what I said above applies to this error too, you'll have to find what using reference you need, VS just makes it easy!
so, for some reason, it will not let me add a reference when I hover over "MobileStatusExteneded

This is the file I have and is how it was when I dled it
 

Attachments

Last edited:

GoldDraco13

Squire
Aug 1, 2014
356
233
43
48
Canada
mycy4.com
Donate
Donate money to this user
You might need to call a instance of it, qualify it! If it is static, then you can ref it, otherwise if not then you need to make a instance of it!

If not a static, try exploring this option!
Code:
MobileStatusExtended MSE = new MobileStatusExtended (); //Create a instance, then use MSE as the ref to anything calling it!

MSE.ValueStore = SomeValue;

ValueStore = MSE.SomeValueStored;