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!

RunUO 2.0 svn181 built by Linux for Linux

robotclown

Wanderer
How I built RunUO 2.0 svn181 on Ubuntu Linux

# from Ubuntu (feisty) shell
# Assumes Mono JIT Compiler 1.2.3.1 or newer ( execute mono -V to see your version)

# Make a home for runuo
Code:
sudo mkdir /opt/games/runuo
cd /opt/games/runuo

# Stuff we'll need
Code:
sudo apt-get install subversion unzip

# Get latest runuo
Code:
sudo svn checkout http://svn.runuo.com/repos/runuo/devel/
cd devel

# Replace a few src files with kubutoUO latest files
# Get zip from from http://www.runuo.com/forums/other/74341-fixes-[CODE]runuo-2-0-rc1-linux-2.html#post661718
sudo unzip kubuntUO-08MAR2007.zip
sudo cp -R ./ravontus/* ./
sudo rm -rf ./ravontus[/CODE]

# Set datapath to UO .mul files '/opt/games/uo'
Code:
sudo vi ./Scripts/Misc/DataPath.cs

# Modifications made to ravontus files
# ./Scripts/Accounting/Account.cs line 743

# Modifications made to svn181 files
# ./Scripts/Engines/Factions/Core/Election.cs line 462
# ./Scripts/Misc/ShardPoller.cs line 380
# ./Server/Network/NetState.cs line 519

# build
Code:
./build.sh
 

robotclown

Wanderer
build.sh - gmcs command to build RunUO.exe

Code:
#!/bin/bash

gmcs -out:../runuo.exe -d:MONO -optimize+ -unsafe -r:System,System.Configuration.Install,System.Data,System.Drawing,System.EnterpriseServices,System.Management,System.Runtime.Remoting,System.Runtime.Serialization.Formatters.Soap,System.Security,System.ServiceProcess,System.Web,System.Web.Services,System.Windows.Forms,System.Xml -nowarn:219 -recurse:Server/*.cs
 

robotclown

Wanderer
run.sh - start runuo.exe

Code:
#!/bin/bash

mono /opt/games/runuo/runuo.exe > /var/log/runuo.log 2>&1
tail /var/log/runuo.log

# output (runuo.log)

Code:
RunUO - [www.runuo.com] Version 2.0, Build 2675.27766
Core: Running on .NET Framework Version 2.0.50727
Scripts: Compiling C# scripts...done (0 errors, 0 warnings)
Scripts: Compiling VB.NET scripts...no files found.
Scripts: Verifying...done (2089 items, 497 mobiles)
Regions: Loading...done
World: Loading...done (0 items, 0 mobiles) (0.05 seconds)
This server has no accounts.
Creating Username: admin  Password: admin
Account created.
Address: 127.0.0.1:2593
Address: 192.168.10.213:2593
Core: Using standard save strategy
World: Saving...done in 0.19 seconds.
Core: Using standard save strategy
World: Saving...done in 0.02 seconds.
Core: Using standard save strategy
World: Saving...done in 0.01 seconds.
Core: Using standard save strategy
World: Saving...done in 0.03 seconds.
 

SysError

Wanderer
great job
but I have some problems

Code:
RunUO - [www.runuo.com] Version 2.0, Build 2675.27766
Core: Running on .NET Framework Version 2.0.50727
Scripts: Compiling C# scripts...failed (4 errors, 0 warnings)
Errors:
 + /home/uo/TEST/Scripts/Commands/Generic/Extensions/WhereExtension.cs:
    CS1706: Line 11: Anonymous methods are not allowed in attribute declaration
 + /home/uo/TEST/Scripts/Commands/Generic/Extensions/LimitExtension.cs:
    CS1706: Line 9: Anonymous methods are not allowed in attribute declaration
 + /home/uo/TEST/Scripts/Commands/Generic/Extensions/DistinctExtension.cs:
    CS1706: Line 11: Anonymous methods are not allowed in attribute declaration
 + /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]

i'm using your distro
OS FreeBSD 6.2

Code:
Mono JIT compiler version 1.2.3.1, (C) 2002-2006 Novell, Inc and Contributors. www.mono-project.com
        TLS:           normal
        GC:            Included Boehm (with typed GC)
        SIGSEGV:       altstack
        Architecture:  x86
        Disabled:      none


maybe freeBSD mono package is different than linux???
I need some help, can anybody help me???
 

Viky

Wanderer
SysError;681332 said:
great job
but I have some problems

Code:
RunUO - [www.runuo.com] Version 2.0, Build 2675.27766
Core: Running on .NET Framework Version 2.0.50727
Scripts: Compiling C# scripts...failed (4 errors, 0 warnings)
Errors:
 + /home/uo/TEST/Scripts/Commands/Generic/Extensions/WhereExtension.cs:
    CS1706: Line 11: Anonymous methods are not allowed in attribute declaration
 + /home/uo/TEST/Scripts/Commands/Generic/Extensions/LimitExtension.cs:
    CS1706: Line 9: Anonymous methods are not allowed in attribute declaration
 + /home/uo/TEST/Scripts/Commands/Generic/Extensions/DistinctExtension.cs:
    CS1706: Line 11: Anonymous methods are not allowed in attribute declaration
 + /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]

i'm using your distro
OS FreeBSD 6.2

Code:
Mono JIT compiler version 1.2.3.1, (C) 2002-2006 Novell, Inc and Contributors. www.mono-project.com
        TLS:           normal
        GC:            Included Boehm (with typed GC)
        SIGSEGV:       altstack
        Architecture:  x86
        Disabled:      none


maybe freeBSD mono package is different than linux???
I need some help, can anybody help me???

FreeBSD is not Linux, it´s Unix system with many differences. If you can increase chance to compilation and successor run, use the source codes.
 

Brutus5000

Sorceror
Today, Mono 1.2.4 has been released. I will give it a try later this week.

Btw. what happend to the above mentioned thread?
 

Brutus5000

Sorceror
How can an IndexOutOfRangeException already happen on Compiling the Core-Files?!
I hope this just happens with Mono under Windows. Can anyone confirm?

Unhandled Exception: System.IndexOutOfRangeException: Array index is out of range.
at Mono.CSharp.TypeManager.UnifyType (System.Type pt, System.Type at, System.Type[] inferred) [0x00000]
at Mono.CSharp.TypeManager.UnifyTypes (System.Type[] pts, System.Type[] ats, System.Type[] inferred) [0x00000]
at Mono.CSharp.TypeManager.UnifyType (System.Type pt, System.Type at, System.Type[] inferred) [0x00000]
at Mono.CSharp.TypeManager.InferTypeArguments (System.Type[] param_types, System.Type[] arg_types, System.Type[] inferred_types) [0x00000]
at Mono.CSharp.TypeManager.InferTypeArguments (Mono.CSharp.EmitContext ec, System.Collections.ArrayList arguments, System.Reflection.MethodBase& method) [0x00000]
at Mono.CSharp.MethodGroupExpr.OverloadResolve (Mono.CSharp.EmitContext ec, System.Collections.ArrayList Arguments, Boolean may_fail, Location loc) [0x00000]
at Mono.CSharp.MethodGroupExpr.OverloadExtensionResolve (Mono.CSharp.EmitContext ec, System.Collections.ArrayList& arguments, Mono.CSharp.MethodGroupExpr& mg, Mono.CSharp.Expression expr, Location loc) [0x00000]
at Mono.CSharp.Invocation.DoResolve (Mono.CSharp.EmitContext ec) [0x00000]
at Mono.CSharp.Expression.Resolve (Mono.CSharp.EmitContext ec, ResolveFlags flags) [0x00000]
at Mono.CSharp.Expression.Resolve (Mono.CSharp.EmitContext ec) [0x00000]
at Mono.CSharp.Return.Resolve (Mono.CSharp.EmitContext ec) [0x00000]
at Mono.CSharp.Block.Resolve (Mono.CSharp.EmitContext ec) [0x00000]
at Mono.CSharp.EmitContext.ResolveTopBlock (Mono.CSharp.EmitContext anonymous_method_host, Mono.CSharp.ToplevelBlock block, Mono.CSharp.Parameters ip, IMethodData md, System.Boolean& unreachable) [0x00000]
at Mono.CSharp.EmitContext.EmitTopBlock (IMethodData md, Mono.CSharp.ToplevelBlock block) [0x00000]
at Mono.CSharp.MethodData.Emit (Mono.CSharp.DeclSpace parent) [0x00000]
at Mono.CSharp.Method.Emit () [0x00000]
at Mono.CSharp.TypeContainer.EmitType () [0x00000]
at Mono.CSharp.RootContext.EmitCode () [0x00000]
at Mono.CSharp.Driver.MainDriver (System.String[] args) [0x00000]
at Mono.CSharp.Driver.Main (System.String[] args) [0x00000]
 
I have the same error than Bolsunovsky and Brutus5000 and would realy like to get it working, too.
I have mono 1.2.4 on Gentoo.
Does anyone know something about this?

Thanks
 

RavonTUS

Sorceror
BORNtobeNAMELESS;690442 said:
I have the same error than Bolsunovsky and Brutus5000 and would realy like to get it working, too.
I have mono 1.2.4 on Gentoo.
Does anyone know something about this?

Thanks

Did the core scripts compile correctly? If they did, then your issue is with the core file "ScriptCompiler.cs". It is the program that compiles all the files in the individual scripts (\scripts folder).

I would guess that it is not reading the files correctly. Check to make sure your ScriptCompiler.cs contains a lot of IF MONO statements. Maybe there is a difference in the Geno vs Deb reads them.

-Ravon
 
No, it does not compile.
The errors Brutus5000 mentioned seem to come from the gmcs-compiler. They look like a Runtime-Error(in gmcs), not like a compile-error.

I downgraded mono from 1.2.4 to 1.2.3.1 and it compiles fine using gmcs with only a few "unused"-warnings. Looks like a mono bug.

I attached a patch for rev187 to compile on mono-1.2.3.1. Is it ok or did i something wrong? I only put the changes from robotclown's patched rev181 into rev187 and hope i didn't miss something.

Edit: uhh, i missed ScriptCompiler.cs. Should be in the patch now.
 

Attachments

  • runuo2-rev187-compileable.diff.txt
    4.9 KB · Views: 32

Brutus5000

Sorceror
RavonTUS;690601 said:
Did the core scripts compile correctly?

The error happens on compiling the Core Scripts. But there is no additional information what file exactly caused this error. So i think BORNtobeNAMELESS is right, it looks more like a runtime error and not like a compile-error.

I tested it on Mono for Windows 1.2.4, Windows XP SP2.

And as far as my team now rented a Windows 2003 server, I won't take a closer look. But since it's just interesting me I will test it with the next mono versions again. (Not only because right management in Windows sucks ^^)
 
Top