Full Version : container/stealing error
xmlspawner >>Troubleshooting >>container/stealing error


<< Prev | Next >>

devin0316- 01-21-2007
I know this has been discussed, and it says how to fix in the installation instructions, BUT i still can't figure it out. What i did was copy the new container and stealing files to the original places, and allowed for overwrite. what am i missing?

ArteGordon- 01-21-2007
are you getting errors? What do they say?

devin0316- 01-21-2007
errors are:
containers.cs
about 15 lines saying "already contains a definition"
stealing.cs
3 lines saying "already contains a definition"

ArteGordon- 01-21-2007
ah, yeah so you do have duplicate scripts somewhere.

The easiest way to find them is to use Agent Ransack to search for a string like

"public class Stealing"

in all the files below your Scripts folder and it will find the duplicates.

For the container.cs scripts search for something like

"public abstract class BaseContainer"

you can find the link to dl Ransack in the Files section

devin0316- 01-21-2007
Ok I got agent ransack now. and its showing about 4 differnet lines. what one is the line that gives the "definition"

im trying to figure out what to change.

ArteGordon- 01-21-2007
you dont need to change anything in any files. You just need to find the duplicate files and either remove them, move them out of the Scripts folder, or change their extension to something other than .cs

devin0316- 01-21-2007
CODE

RunUO - [www.runuo.com] Version 2.0, Build 2357.32527
Core: Running on .NET Framework Version 2.0.50727
Scripts: Compiling C# scripts...failed (2 errors, 0 warnings)
Errors:
+ Container.cs:
   CS0101: Line 11: The namespace 'Server.Items' already contains a definition
for 'BaseContainer'
   CS0101: Line 152: The namespace 'Server.Items' already contains a definition
for 'StrongBackpack'
   CS0101: Line 197: The namespace 'Server.Items' already contains a definition
for 'Backpack'
   CS0101: Line 237: The namespace 'Server.Items' already contains a definition
for 'Pouch'
   CS0101: Line 264: The namespace 'Server.Items' already contains a definition
for 'BaseBagBall'
   CS0101: Line 300: The namespace 'Server.Items' already contains a definition
for 'SmallBagBall'
   CS0101: Line 326: The namespace 'Server.Items' already contains a definition
for 'LargeBagBall'
   CS0101: Line 352: The namespace 'Server.Items' already contains a definition
for 'Bag'
   CS0101: Line 388: The namespace 'Server.Items' already contains a definition
for 'Barrel'
   CS0101: Line 418: The namespace 'Server.Items' already contains a definition
for 'Keg'
   CS0101: Line 445: The namespace 'Server.Items' already contains a definition
for 'PicnicBasket'
   CS0101: Line 472: The namespace 'Server.Items' already contains a definition
for 'Basket'
   CS0101: Line 501: The namespace 'Server.Items' already contains a definition
for 'WoodenBox'
   CS0101: Line 530: The namespace 'Server.Items' already contains a definition
for 'SmallCrate'
   CS0101: Line 562: The namespace 'Server.Items' already contains a definition
for 'MediumCrate'
   CS0101: Line 594: The namespace 'Server.Items' already contains a definition
for 'LargeCrate'
   CS0101: Line 626: The namespace 'Server.Items' already contains a definition
for 'MetalBox'
   CS0101: Line 657: The namespace 'Server.Items' already contains a definition
for 'MetalChest'
   CS0101: Line 688: The namespace 'Server.Items' already contains a definition
for 'MetalGoldenChest'
   CS0101: Line 719: The namespace 'Server.Items' already contains a definition
for 'WoodenChest'
   CS0101: Line 751: The namespace 'Server.Items' already contains a definition
for 'PlainWoodenChest'
   CS0101: Line 782: The namespace 'Server.Items' already contains a definition
for 'OrnateWoodenChest'
   CS0101: Line 813: The namespace 'Server.Items' already contains a definition
for 'GildedWoodenChest'
   CS0101: Line 844: The namespace 'Server.Items' already contains a definition
for 'WoodenFootLocker'
   CS0101: Line 875: The namespace 'Server.Items' already contains a definition
for 'FinishedWoodenChest'
+ Stealing.cs:
   CS0101: Line 16: The namespace 'Server.SkillHandlers' already contains a def
inition for 'Stealing'
   CS0102: Line 36: The type 'Server.SkillHandlers.Stealing' already contains a
definition for 'StealingTarget'
   CS0101: Line 410: The namespace 'Server.SkillHandlers' already contains a de
finition for 'StolenItem'
Scripts: One or more scripts failed to compile or no script files were found.
- Press return to exit, or R to try again.


this is the errors. i don't see 2 of the same files.

ArteGordon- 01-21-2007
use agent ransack to do a string search through all of your scripts in your Scripts folder for the string

"public abstract class BaseContainer"

You will find more than one file with that string, then you need to get rid of the duplicate file.

devin0316- 01-21-2007
ok found the files. NOW i have another problem.

CODE

Scripts: Compiling C# scripts...failed (4 errors, 0 warnings)
Errors:
+ Misc/LootPack.cs:
   CS0111: Line 553: Type 'Server.LootPackEntry' already defines a member calle
d 'IsInTokuno' with the same parameter types
+ New Folder/Datafiles/BoxData.cs:
   CS0246: Line 28: The type or namespace name 'CommandEventArgs' could not be
found (are you missing a using directive or an assembly reference?)
+ New Folder/Datafiles/PropsData.cs:
   CS0246: Line 64: The type or namespace name 'CommandEventArgs' could not be
found (are you missing a using directive or an assembly reference?)
+ New Folder/Datafiles/SpawnData.cs:
   CS0246: Line 57: The type or namespace name 'CommandEventArgs' 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.
- Press return to exit, or R to try again.

devin0316- 01-21-2007
DUUHHH.... i fixed most of it. now i am down to 1 error.

CODE

Errors:
+ Misc/LootPack.cs:
   CS0111: Line 553: Type 'Server.LootPackEntry' already defines a member calle
d 'IsInTokuno' with the same parameter types
Scripts: One or more scripts failed to compile or no script files were found.
- Press return to exit, or R to try again.

ArteGordon- 01-21-2007
looks like you added a duplicate IsInTokuno method in LootPack.cs instead of just modifying the existing one.

Just go through LootPack.cs and search for the string IsInTokuno.
You will find you have two methods. Keep the one that looks like

CODE

       private static bool IsInTokuno(Mobile m)
       {
           // ARTEGORDONMOD
           // allow lootpack construction without a mobile
           if (m == null) return false;

           if (m.Region.IsPartOf("Fan Dancer's Dojo"))
               return true;

           if (m.Region.IsPartOf("Yomotsu Mines"))
               return true;

           return (m.Map == Map.Tokuno);
       }


devin0316- 01-21-2007
o geez. that worked. now its another thing
CODE

Errors:
+ XmlSpawner2.cs:
   CS0029: Line 9451: Cannot implicitly convert type 'System.Collections.ArrayL
ist' to 'System.Collections.Generic.List<Server.Tile>'
Scripts: One or more scripts failed to compile or no script files were found.
- Press return to exit, or R to try again.


this makes no sense to me tongue.gif

ArteGordon- 01-21-2007
look at the Latest News at the top of the main XmlSpawner release thread.

devin0316- 01-21-2007
can't find it. Plz make a link to it. thanks for all your help btw


http://xmlspawner.15.forumer.com/index.php...iew=getlastpost

is that what you are talking about?


i don't see anything about this error

CODE

Errors:
+ XmlSpawner2.cs:
   CS0029: Line 9451: Cannot implicitly convert type 'System.Collections.ArrayL
ist' to 'System.Collections.Generic.List<Server.Tile>'
Scripts: One or more scripts failed to compile or no script files were found.
- Press return to exit, or R to try again.

devin0316- 01-21-2007
I found it out. just had to delete the // at begining of the file. It works now. Thank you for helping me!