Go Back   RunUO - Ultima Online Emulation > RunUO > Server Support on Mono

Server Support on Mono Forum dedicated to RunUO 2.0 on Mono.

Reply
 
Thread Tools Display Modes
Old 09-22-2007, 08:52 AM   #1 (permalink)
Lurker
 
Join Date: Apr 2007
Age: 42
Posts: 3
Default How to compile the latest svn on Ubuntu feisty

Greetings,

Thanks to everyone involved in the RunUO project. I remember a while back, a runuosvn181 deb package was posted, which seemed to run without problems on ubuntu. I still have that deb, but since upgrading my system, it will not run anymore :| . I was wondering if you guys can post instructions on how to compile the latest svn with the latest mono release. I've tried some other compilation instructions elsewhere on these forums, but they are not working. Thanks in advance for your help!
UORunner is offline   Reply With Quote
Old 09-23-2007, 12:31 PM   #2 (permalink)
Newbie
 
Join Date: Jul 2006
Posts: 22
Default

Hi there,

what version of mono you got running in your system? Latest svn shouldn't make any props compiling with mono 2.5.

get latest svn with

"svn checkout http://svn.runuo.com/repos/runuo/devel/"
and compile with:

Quote:
$ ~/mono-1.2.5/bin/gmcs -d:MONO -unsafe+ -optimize- -t:exe -out:RunUO.exe -recurse:Server/*.cs
like mark told in his threat, should work wihtout errors. If you got errors, please post.

Saba

Last edited by Sabaoth; 09-23-2007 at 12:33 PM.
Sabaoth is offline   Reply With Quote
Old 09-23-2007, 03:49 PM   #3 (permalink)
Lurker
 
Join Date: Apr 2007
Age: 42
Posts: 3
Default Thanks for the reply! This is what got.

ok. I got rev 261 from svn, and in the terminal I went to my runuo/devel folder. From there, I typed in the command and this is what returned:

*@*:~/runuo/devel$ /home/*/mono-1.2.5/bin/gmcs -d:MONO -unsafe+ -optimize- -t:exe -out:RunUO.exe -recurse:Server/*.cs
Server/Main.cs(451,37): warning CS0219: The variable `ms' is assigned but its value is never used
Server/Map.cs(1797,33): warning CS0219: The variable `start' is assigned but its value is never used
Server/Mobile.cs(8728,32): warning CS0219: The variable `oldRegion' is assigned but its value is never used
Server/MultiData.cs(108,61): warning CS0219: The variable `extra' is assigned but its value is never used
Server/Items/BaseMulti.cs(159,29): warning CS0219: The variable `version' is assigned but its value is never used
Server/Items/SecureTradeContainer.cs(116,29): warning CS0219: The variable `version' is assigned but its value is never used
Server/Network/Listener.cs(96,46): warning CS0219: The variable `res' is assigned but its value is never used
Server/Network/PacketHandlers.cs(405,46): warning CS0219: The variable `layer' is assigned but its value is never used
Server/Network/PacketHandlers.cs(520,32): warning CS0219: The variable `lang' is assigned but its value is never used
Server/Network/PacketHandlers.cs(519,29): warning CS0219: The variable `unk' is assigned but its value is never used
Server/Network/PacketHandlers.cs(549,29): warning CS0219: The variable `type' is assigned but its value is never used
Server/Network/PacketHandlers.cs(548,29): warning CS0219: The variable `lastTip' is assigned but its value is never used
Server/Network/PacketHandlers.cs(563,29): warning CS0219: The variable `value' is assigned but its value is never used
Server/Network/PacketHandlers.cs(582,29): warning CS0219: The variable `unk2' is assigned but its value is never used
Server/Network/PacketHandlers.cs(590,29): warning CS0219: The variable `unk2' is assigned but its value is never used
Server/Network/PacketHandlers.cs(620,29): warning CS0219: The variable `v8' is assigned but its value is never used
Server/Network/PacketHandlers.cs(619,29): warning CS0219: The variable `v7' is assigned but its value is never used
Server/Network/PacketHandlers.cs(618,29): warning CS0219: The variable `v6' is assigned but its value is never used
Server/Network/PacketHandlers.cs(617,29): warning CS0219: The variable `v5' is assigned but its value is never used
Server/Network/PacketHandlers.cs(616,29): warning CS0219: The variable `v4' is assigned but its value is never used
Server/Network/PacketHandlers.cs(615,32): warning CS0219: The variable `s4' is assigned but its value is never used
Server/Network/PacketHandlers.cs(614,32): warning CS0219: The variable `s3' is assigned but its value is never used
Server/Network/PacketHandlers.cs(613,32): warning CS0219: The variable `s2' is assigned but its value is never used
Server/Network/PacketHandlers.cs(612,32): warning CS0219: The variable `s1' is assigned but its value is never used
Server/Network/PacketHandlers.cs(611,29): warning CS0219: The variable `v3' is assigned but its value is never used
Server/Network/PacketHandlers.cs(610,29): warning CS0219: The variable `v2' is assigned but its value is never used
Server/Network/PacketHandlers.cs(609,29): warning CS0219: The variable `v1' is assigned but its value is never used
Server/Network/PacketHandlers.cs(692,37): warning CS0219: The variable `light' is assigned but its value is never used
Server/Network/PacketHandlers.cs(691,37): warning CS0219: The variable `dungeon' is assigned but its value is never used
Server/Network/PacketHandlers.cs(690,37): warning CS0219: The variable `nightFX' is assigned but its value is never used
Server/Network/PacketHandlers.cs(689,37): warning CS0219: The variable `music' is assigned but its value is never used
Server/Network/PacketHandlers.cs(688,37): warning CS0219: The variable `soundFX' is assigned but its value is never used
Server/Network/PacketHandlers.cs(686,37): warning CS0219: The variable `zEnd' is assigned but its value is never used
Server/Network/PacketHandlers.cs(685,37): warning CS0219: The variable `zStart' is assigned but its value is never used
Server/Network/PacketHandlers.cs(684,37): warning CS0219: The variable `height' is assigned but its value is never used
Server/Network/PacketHandlers.cs(683,37): warning CS0219: The variable `width' is assigned but its value is never used
Server/Network/PacketHandlers.cs(682,37): warning CS0219: The variable `y' is assigned but its value is never used
Server/Network/PacketHandlers.cs(681,37): warning CS0219: The variable `x' is assigned but its value is never used
Server/Network/PacketHandlers.cs(680,37): warning CS0219: The variable `unk' is assigned but its value is never used
Server/Network/PacketHandlers.cs(865,32): warning CS0219: The variable `lang' is assigned but its value is never used
Server/Network/PacketHandlers.cs(890,29): warning CS0219: The variable `hue' is assigned but its value is never used
Server/Network/PacketHandlers.cs(889,29): warning CS0219: The variable `itemID' is assigned but its value is never used
Server/Network/PacketHandlers.cs(887,29): warning CS0219: The variable `menuID' is assigned but its value is never used
Server/Network/PacketHandlers.cs(947,29): warning CS0219: The variable `minusOne' is assigned but its value is never used
Server/Network/PacketHandlers.cs(1054,29): warning CS0219: The variable `flags' is assigned but its value is never used
Server/Network/PacketHandlers.cs(1449,29): warning CS0219: The variable `key' is assigned but its value is never used
Server/Network/PacketHandlers.cs(1709,29): warning CS0219: The variable `unk' is assigned but its value is never used
Server/Network/PacketHandlers.cs(1708,29): warning CS0219: The variable `width' is assigned but its value is never used
Server/Network/PacketHandlers.cs(1796,32): warning CS0219: The variable `serial' is assigned but its value is never used
Server/Network/PacketHandlers.cs(1810,32): warning CS0219: The variable `av' is assigned but its value is never used
Server/Network/PacketHandlers.cs(1809,29): warning CS0219: The variable `unk' is assigned but its value is never used
Server/Network/PacketHandlers.cs(1893,29): warning CS0219: The variable `clientIP' is assigned but its value is never used
Server/Network/PacketHandlers.cs(1886,32): warning CS0219: The variable `name' is assigned but its value is never used
Server/Network/PacketHandlers.cs(2022,29): warning CS0219: The variable `clientIP' is assigned but its value is never used
Server/Network/PacketHandlers.cs(2021,29): warning CS0219: The variable `charSlot' is assigned but its value is never used
Server/Network/PacketHandlers.cs(1992,29): warning CS0219: The variable `unk3' is assigned but its value is never used
Server/Network/PacketHandlers.cs(1991,29): warning CS0219: The variable `unk2' is assigned but its value is never used
Server/Network/PacketHandlers.cs(1990,29): warning CS0219: The variable `unk1' is assigned but its value is never used
Server/Persistence/StandardSaveStrategy.cs(97,36): warning CS0219: The variable `decaying' is assigned but its value is never used
Server/Item.cs(1887,37): warning CS0169: The private method `Server.Item.SetSaveFlag(ref Server.Item.SaveFlag, Server.Item.SaveFlag, bool)' is never used
Server/Timer.cs(380,36): warning CS0414: The private field `Server.Timer.m_QueueCountAtSlice' is assigned but its value is never used
Server/ScriptCompiler.cs(520,30): warning CS0169: The private method `Server.ScriptCompiler.LoadScriptedAssembly(System .Collections.Generic.List<System.Reflection.Assemb ly>, string, Server.ScriptCompiler.Compiler, bool)' is never used
Server/Gumps/Gump.cs(370,32): warning CS0169: The private method `Server.Gumps.Gump.Compile()' is never used
Server/Persistence/FileQueue.cs(39,37): warning CS0414: The private field `Server.FileQueue.Chunk.offset' is assigned but its value is never used
Compilation succeeded - 64 warning(s)

Now I see the runuo.exe in there, but how do I run this? Is it through mono, commandline or some other method? If I click .exes in ubuntu, Wine pops up. Again, many thanks for your help.
UORunner is offline   Reply With Quote
Old 09-23-2007, 04:01 PM   #4 (permalink)
Newbie
 
Join Date: Jul 2006
Posts: 22
Default

just run it with:

Quote:
mono runuo.exe
and it should work!

Start a plain server to be sure that it will work, custom scrips will mostly still cause errors without modification!

Last edited by Sabaoth; 09-23-2007 at 04:04 PM.
Sabaoth is offline   Reply With Quote
Old 09-24-2007, 05:30 AM   #5 (permalink)
Lurker
 
Join Date: Apr 2007
Age: 42
Posts: 3
Default Thank you!

You just made my night Sabaoth! Another quick question if I may, is it possible to compile Pandora's Box with mono as well? Again, many thanks for your time.
UORunner is offline   Reply With Quote
Old 09-26-2007, 05:42 PM   #6 (permalink)
Lurker
 
Join Date: Aug 2006
Age: 27
Posts: 6
Default Compile Error

Hi Guys. I've been trying to compile the latest svn, but im getting an error:

paddywan@grrrr ~/runuo/devel $ gmcs -d:MONO -unsafe+ -optimize- -t:exe -out:RunUO.exe -recurse:Server/*.cs
Server/Main.cs(451,37): warning CS0219: The variable `ms' is assigned but its value is never used
Server/Map.cs(1797,33): warning CS0219: The variable `start' is assigned but its value is never used
Server/Mobile.cs(8728,32): warning CS0219: The variable `oldRegion' is assigned but its value is never used
Server/MultiData.cs(108,61): warning CS0219: The variable `extra' is assigned but its value is never used

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.OverloadExtensionResol ve (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]


Im using Gentoo with mono 1.2.4

Has anyone else run in to this error?
PaddyWan is offline   Reply With Quote
Old 09-27-2007, 11:36 AM   #7 (permalink)
Newbie
 
Join Date: Jul 2006
Posts: 22
Default

Hi there,

mono 1.24 isn't working, you need to update to 1.25 and it will work out of the box.
Sabaoth is offline   Reply With Quote
Old 09-28-2007, 07:30 AM   #8 (permalink)
Lurker
 
Join Date: Aug 2006
Age: 27
Posts: 6
Default Opps

Sorry, my bad. I just assumed i had the latest mono installed
PaddyWan is offline   Reply With Quote
Old 10-02-2007, 08:09 AM   #9 (permalink)
Lurker
 
Join Date: Sep 2007
Age: 21
Posts: 9
Default

antidoto@antidoto-desktop:~/Desktop/RunUO$ mono RunUO.exe
Error:
System.EntryPointNotFoundException: SetConsoleCtrlHandler
at (wrapper managed-to-native) Server.Core:SetConsoleCtrlHandler (Server.Core/ConsoleEventHandler,bool)
at Server.Core.Main (System.String[] args) [0x00000]
This exception is fatal, press return to exit

** (RunUO.exe:6279): WARNING **: exception inside UnhandledException handler: Cannot cast from source type to destination type.

antidoto@antidoto-desktop:~/Desktop/RunUO$

This is my error...
What's the metter?
Antidoto is offline   Reply With Quote
Old 10-02-2007, 10:35 PM   #10 (permalink)
Newbie
 
Join Date: Aug 2004
Age: 24
Posts: 35
Default

At least wrong RunUO version. You should use current SVN version, not RC1.
seirge is offline   Reply With Quote
Old 10-03-2007, 09:24 AM   #11 (permalink)
Lurker
 
Join Date: Sep 2007
Age: 21
Posts: 9
Default

Excuse me... what's the version name I have to use?
(Excuse me my orrible Englisch!)

(edit)
sorry, where I get the SVN version?
thanks

Last edited by Antidoto; 10-04-2007 at 10:18 AM.
Antidoto is offline   Reply With Quote
Old 10-05-2007, 02:01 PM   #12 (permalink)
Forum Administrator
 
Join Date: Jan 2003
Location: Northern Virginia
Posts: 1,530
Default

Quote:
Originally Posted by Antidoto View Post
Excuse me... what's the version name I have to use?
(Excuse me my orrible Englisch!)

(edit)
sorry, where I get the SVN version?
thanks
Obtain Subversion (Gentoo: emerge subversion, etc), create folder, cd folder, type
Code:
svn co http://svn.runuo.com/repos/runuo/devel/
Mark is offline   Reply With Quote
Old 10-08-2007, 09:07 AM   #13 (permalink)
Lurker
 
Join Date: Sep 2007
Age: 21
Posts: 9
Default

antidoto@antidoto-desktop:~/devel$ gmcs -d:MONO -unsafe+ -optimize- -t:exe -out:RunUO.exe -recurse:Server/*.csServer/Main.cs(451,16): warning CS0219: The variable `ms' is assigned but its value is never used
Server/Map.cs(1797,12): warning CS0219: The variable `start' is assigned but its value is never used
Server/Mobile.cs(8728,11): warning CS0219: The variable `oldRegion' is assigned but its value is never used
Server/MultiData.cs(108,12): warning CS0219: The variable `extra' is assigned but its value is never used
Server/Serialization.cs(684,10): error CS0117: `T' does not contain a definition for `Deleted'
Server/Serialization.cs(732,10): error CS0117: `T' does not contain a definition for `Deleted'
Server/Serialization.cs(780,10): error CS0117: `T' does not contain a definition for `Disbanded'
Compilation failed: 3 error(s), 4 warnings
antidoto@antidoto-desktop:~/devel$

and now?
What's the metter?

sorry for my bad...
Antidoto is offline   Reply With Quote
Old 11-29-2007, 01:42 PM   #14 (permalink)
Newbie
 
Join Date: Feb 2005
Age: 24
Posts: 11
Default

I'm using a Debian System with Mono 1.2.5.1 and got the latest SVN
I compiled it sucsessfully and when i run it, I get following error message.

RunUO - [www.runuo.com] Version 2.0, Build 2889.34513
Core: Running on .NET Framework Version 2.0.50727
Core: Optimizing for 2 processors
Core: Unix environment detected
Scripts: Compiling C# scripts...Error:
System.Exception: Compiler failed to produce the assembly. Stderr='', Stdout=''
at Mono.CSharp.CSharpCodeCompiler.CompileFromFileBatc h (System.CodeDom.Compiler.CompilerParameters options, System.String[] fileNames) [0x00000]
at Mono.CSharp.CSharpCodeCompiler.CompileAssemblyFrom FileBatch (System.CodeDom.Compiler.CompilerParameters options, System.String[] fileNames) [0x00000]
at System.CodeDom.Compiler.CodeDomProvider.CompileAss emblyFromFile (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

Knows anybody what to do?
BOESewicht is offline   Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off



Powered by vBulletin® Version 3.7.0
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0 RC5