RunUO Community

This is a sample guest message. Register a free account today to become a member! Once signed in, you'll be able to participate on this site by adding your own topics and posts, as well as connect with other members through your own private inbox!

Fixes for RunUO 2.0 RC1 on Linux

SysError

Wanderer
rev162
Code:
uo@monster/home/uo/TEST%RunUO - [www.runuo.com] Version 2.0, Build 2657.15112
Core: Running on .NET Framework Version 2.0.50727
Scripts: Compiling C# scripts...failed (4 errors, 0 warnings)
Errors:
 + /usr/home/uo/TEST/Scripts/Commands/Generic/Extensions/WhereExtension.cs:
    CS1706: Line 11: Anonymous methods are not allowed in attribute declaration
 + /usr/home/uo/TEST/Scripts/Commands/Generic/Extensions/DistinctExtension.cs:
    CS1706: Line 11: Anonymous methods are not allowed in attribute declaration
 + /usr/home/uo/TEST/Scripts/Commands/Generic/Extensions/LimitExtension.cs:
    CS1706: Line 9: Anonymous methods are not allowed in attribute declaration
 + /usr/home/uo/TEST/Scripts/Commands/Generic/Extensions/SortExtension.cs:
    CS1706: Line 11: Anonymous methods are not allowed in attribute declaration
Scripts: One or more scripts failed to compile or no script files were found.
 - Press return to exit, or R to try again.
Error:
System.NullReferenceException: A null value was found where an object instance was required.
  at System.TermInfoDriver.ReadKeyInternal () [0x00000]
  at System.TermInfoDriver.ReadKey (Boolean intercept) [0x00000]
  at System.ConsoleDriver.ReadKey (Boolean intercept) [0x00000]
  at System.Console.ReadKey (Boolean intercept) [0x00000]
  at Server.Core.Main (System.String[] args) [0x00000]

maybe I need install any library?
which libraries must installed on system to start server???
maybe I missed something?
 

RavonTUS

Sorceror
Greetings,

SysError - I am only guessing at this point...

1) Make sure you have UO installed using WINE.
2) Make sure script/datapath.cs is point to your hidden WINE folder with the UO path.

Code:
private const string CustomPath = @".wine/cdrv/Program Files/Ultima Online";

-Ravon
 

SysError

Wanderer
I had change the code in that files

DistinctExtension.cs
LimitExtension.cs
SortExtension.cs
WhereExtension.cs

for example

after
Code:
public sealed class DistinctExtension : BaseExtension
        {

this code

Code:
public delegate DistinctExtension DEDelegateType();

DEDelegateType DEDelegate = new DEDelegateType(DistinctExtension


And after that this error has disappeared

Code:
usr/home/uo/TEST/Scripts/Commands/Generic/Extensions/WhereExtension.cs:
    CS1706: Line 11: Anonymous methods are not allowed in attribute declaration
 + /usr/home/uo/TEST/Scripts/Commands/Generic/Extensions/DistinctExtension.cs:
    CS1706: Line 11: Anonymous methods are not allowed in attribute declaration
 + /usr/home/uo/TEST/Scripts/Commands/Generic/Extensions/LimitExtension.cs:
    CS1706: Line 9: Anonymous methods are not allowed in attribute declaration
 + /usr/home/uo/TEST/Scripts/Commands/Generic/Extensions/SortExtension.cs:
    CS1706: Line 11: Anonymous methods are not allowed in attribute declaration
Scripts: One or more scripts failed to compile or no script files were found.


but I have new errors...

Code:
RunUO - [www.runuo.com] Version 2.0, Build 2657.41040
Core: Running on .NET Framework Version 2.0.50727
Scripts: Compiling C# scripts...Error:
System.Exception: Compiler failed to produce the assembly. Stderr='
** ERROR **: file class.c: line 1912 (mono_class_setup_vtable_general): should not be reached
aborting...
', Stdout=' at slot 52: System.Collections.Generic.ICollection<T>.get_IsReadOnly (48) overrides get_IsReadOnly (1)
 at slot 52: System.Collections.Generic.IList<T>.RemoveAt (33) overrides RemoveAt (4)
 at slot 52: System.Collections.Generic.IList<T>.Insert (32) overrides Insert (3)
 at slot 52: System.Collections.Generic.ICollection<T>.Remove (53) overrides Remove (6)
 at slot 52: System.Collections.Generic.ICollection<T>.Add (49) overrides Add (2)
 at slot 52: System.Collections.Generic.ICollection<T>.Clear (50) overrides Clear (3)
no implementation for interface method System.Collections.Generic.ICollection`1::CopyTo(Int32[2][],int) in class .InternalArray`1
METHOD .ctor()
METHOD System.Collections.Generic.ICollection<T>.get_IsReadOnly()
METHOD get_Count()
METHOD get_Item(int)
METHOD set_Item(int,System.Int32[2])
METHOD System.Collections.Generic.IList<T>.RemoveAt(int)
METHOD System.Collections.Generic.IList<T>.Insert(int,System.Int32[2])
METHOD System.Collections.Generic.ICollection<T>.Remove(System.Int32[2])
METHOD System.Collections.Generic.ICollection<T>.Add(System.Int32[2])
METHOD System.Collections.Generic.ICollection<T>.Clear()
METHOD GetEnumerator()
METHOD Contains(System.Int32[2])
METHOD CopyTo(System.Int32[2][],int)
METHOD IndexOf(System.Int32[2])
METHOD GetGenericValueImpl(int,System.Int32[2]&)
'
  at Mono.CSharp.CSharpCodeCompiler.CompileFromFileBatch (System.CodeDom.Compiler.CompilerParameters options, System.String[] fileNames) [0x00000]
  at Mono.CSharp.CSharpCodeCompiler.CompileAssemblyFromFileBatch (System.CodeDom.Compiler.CompilerParameters options, System.String[] fileNames) [0x00000]
  at System.CodeDom.Compiler.CodeDomProvider.CompileAssemblyFromFile (System.CodeDom.Compiler.CompilerParameters options, System.String[] fileNames) [0x00000]
  at Server.ScriptCompiler.CompileCSScripts (Boolean debug, Boolean cache, System.Reflection.Assembly& assembly) [0x00000]
  at Server.ScriptCompiler.Compile (Boolean debug, Boolean cache) [0x00000]
  at Server.Core.Main (System.String[] args) [0x00000]
This exception is fatal, press return to exit

** (/home/uo/TEST/runuo.exe:95380): WARNING **: exception inside UnhandledException handler: Cannot cast from source type to destination type.


Please, RavonTUS, upload working emulator, plz. I am tired....
 

RavonTUS

Sorceror
Greetings,

Agh, what a mess. There is a new version of the Linux distro I use and RunUO has made a big jump in versions. My personal schedule is a little busy this week, so bare with me.

I will again attempt to update everything over the next two weeks.

-Ravon
 

RavonTUS

Sorceror
os: winxp
mono: 1.2.2.1 for windows
rev: 162 patched (kubuntUO-08MAR2007)

Mono JIT compiler version 1.2.2.1
OS FreeBSD 6.2
compiled under Mono 1.2.3.1 for Windows

SysError, just happen to catch this in your posts.

Are you trying to compile the program on a Windows PC and then run it on a Linux PC? Try compiling it on the Linux PC and avoid the Windows PC completely.

-Ravon
 

SysError

Wanderer
I'm trying to compile under FreeBSD
at the last all under FreeBSD
(downloading rev, patching, compiling, starting...)

maybe I shall try yours working runuo.exe
 

SiENcE

Sorceror
@RavonTUS: Any sollution to the TileMatrix.cs problem. I think the Mono fileloader for map and statics are wrong.

my setup:
-runuo svn 187
-windowsxp
-Mono 1.2.3.1

i append my patchfile for RunUO SVN 187.
 

Attachments

  • runuo_svn187_mono.zip
    10.4 KB · Views: 29

Antidoto

Sorceror
antidoto@antidoto-desktop:~/Desktop/RunUO2$ gmcs -d:MONO -unsafe+ -optimize- -t:exe -out:RunUO.exe -recurse:Server/*.cs
Server/Utility.cs(1,1): error CS1646: Keyword, identifier, or string expected after verbatim specifier: @
Compilation failed: 1 error(s), 0 warnings
antidoto@antidoto-desktop:~/Desktop/RunUO2$

Can you give me the Utility.cs file?
There is an error..

(edit)
I have Ubuntu 7.04
 
Top