kubuntUO - RunUO linux for human beings

Tuesday, January 16, 2007

MonoDevelop

Greetings,

Using MonoDevelop, you first need to start a project and then change some of the default settings.

Starting a Project:

  1. Open MonoDevelop
  2. Select File, New Project.
  3. Click "Console Project"
  4. Enter a Name (for example "RunUOv2-Mono")
  5. Click New.

Default Settings
  1. Switch to .Net 2, instead of .Net 1 - Do this by click Project, then Options. Under Genernal, Runtime Options, select 2.0.
  2. Allow Unsafe Code - On the same screen, go to Configuration, Debug, Code Generation. Check "Allow Unsafe Code". Do the same under Release.
  3. Save your settings.
Import Files:
  1. Right click in the "Solutions" pane and add your "*.cs" files.
  2. Right click in the "Solutions" pand and add each folder (ContextMenus, Gumps, Items, Menus, Network, and Persistence.
  3. Now add the files under the folders.
  4. Right click on "References", then Edit References. Add all the "System.???" files. I also threw in the ones call "Microsoft.???".
  5. Save your settings.
Now you can make modification to your server scripts. After all my changes (see in other posts), I can compile the files and create an .exe. However, it will fail when it runs.

If I run the files in MonoDevelop this is the error I get...

RunUO - [www.runuo.com] Version 2.0, Build 2572.23833
Core: Running on .NET Framework Version 2.0.50727
Scripts: Compiling C# scripts...Error:
System.Exception: Compiler failed to produce the assembly. Stderr='', Stdout=''
at Mono.CSharp.CSharpCodeCompiler.CompileFromFileBatch (System.CodeDom.Compiler.CompilerParameters options, System.String[] fileNames) [0x00255] in /home/test/src/mono-1.2.2.1/mcs/class/System/Microsoft.CSharp/CSharpCodeCompiler.cs:235
at Mono.CSharp.CSharpCodeCompiler.CompileAssemblyFromFileBatch (System.CodeDom.Compiler.CompilerParameters options, System.String[] fileNames) [0x00012] in /home/test/src/mono-1.2.2.1/mcs/class/System/Microsoft.CSharp/CSharpCodeCompiler.cs:138
at System.CodeDom.Compiler.CodeDomProvider.CompileAssemblyFromFile (System.CodeDom.Compiler.CompilerParameters options, System.String[] fileNames) [0x00014] in /home/test/src/mono-1.2.2.1/mcs/class/System/System.CodeDom.Compiler/CodeDomProvider.cs:119
at Server.ScriptCompiler.CompileCSScripts (Boolean debug, Boolean cache, System.Reflection.Assembly& assembly) [0x00197] in /home/test/Projects/RunUOv2-MD/RunUOv2-MD/ScriptCompiler.cs:227
at Server.ScriptCompiler.Compile (Boolean debug, Boolean cache) [0x00034] in /home/test/Projects/RunUOv2-MD/RunUOv2-MD/ScriptCompiler.cs:529
at Server.Core.Main (System.String[] args) [0x002ac] in /home/test/Projects/RunUOv2-MD/RunUOv2-MD/Main.cs:427
This exception is fatal, press return to exit

Any suggestions?

-Ravon

0 Comments:

Post a Comment

<< Home