QUOTE (gladik @ December 21, 2006 04:33 am) |
I put standard scripts and server and it gives out this error. |
QUOTE (gladik @ December 21, 2006 05:20 am) |
I put a new server with scripts and server.exe from 121 revision |
QUOTE (ArteGordon @ December 21, 2006 09:25 am) | ||
Are you saying that this is a new server installation with fresh server/scripts and no mods? Are you using the Scripts from the latest SVN? |
QUOTE |
Items/Container/FillableContainer.cs Line 1173: The type or namespace 'Miner' could not be found (are you missing a using directive or assembly reference?) |
CODE |
public static FillableContent Mine = new FillableContent( 1, new Type[] { typeof( Miner ) }, new FillableEntry[] { new FillableEntry( 2, typeof( Pickaxe ) ), new FillableEntry( 2, typeof( Shovel ) ), new FillableEntry( 2, typeof( IronIngot ) ), //new FillableEntry( 2, typeof( IronOre ) ), TODO: Smaller Ore new FillableEntry( 1, typeof( ForgedMetal ) ) } ); |
QUOTE (ArteGordon @ December 30, 2006 08:00 pm) |
make sure that you have the Miner.cs script in Scripts/Mobiles/Vendors/NPC. I'm guessing that you didnt quite get all of the Scripts files from the Scripts SVN |
QUOTE |
Here are, I hope, easy to follow step by step instructions for compiling the Server .svn. For these instructions I use Visual C# 2005 Express. It can be downloaded for free at http://msdn.microsoft.com/downloads/ After downloading and installing Visual C#, copy the .svn Server folder to a separate location. (It may not be necessary to do this step, but it would not give me permission to work with the files until I did) Now open Visual C# and click on File then New Project. In the box that opens click on "Console Application" and at the bottom of the screen you can name the project if you wish. Then click "OK". It will then open a file called "Program.cs" in the center of the screen and a window on the right called "Solution Explorer". In the solution explorer delete the "Program.cs" and click the + sign next to "Properties" and delete the "AssemblyInfo.cs" under it. Now open the new folder you made with the Server .svn folder inside it. Drag the Server folder onto the Icon underneath the "Solution" icon. (If you named the project in the 3rd step, drag the folder onto the icon that has your project name.) You should now see the folder "Server" at the bottom of the list in the Solution Explorer window. Now click "Project" at the top of the screen. Click Properties at the bottom of the list. It should open to a window that has "Application", "Build", "Build Events", "Debug", "Resources", "Settings", and "Reference Paths" down the left side. Under Assembly Name You can name the finished project name.Below that is Output type. Make sure that says Console Application. Set the Startup object field to "Server.Core". In the Icon Field, you can point it to the server folder at the Icon there. In the Build screen put a check next to "Allow unsafe code". Below that you set where you want the compiled server should save to. Now go to the top and click on Build, Build Solution. Thats it. You have now compiled the new Server.exe. In most cases you should now be able to drop the new Server.exe into your Runuo 2 folder. Remember to delete the scripts\output\scripts.cs.dll (This is the file that allows Cacheing of the scripts) It will write a new copy when the scripts recompile on server start. |