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 03-31-2008, 04:56 PM   #51 (permalink)
Forum Novice
 
RavonTUS's Avatar
 
Join Date: Aug 2004
Location: in a house.
Age: 39
Posts: 588
Send a message via ICQ to RavonTUS Send a message via AIM to RavonTUS
Default

Greetings,

Install these fixes from RunUO Forge, before compiling.

RunUOForge > Projects > RunUO on Linux > Home

-Ravon
__________________

Will RunUO work on Linux? Yes
RavonTUS is offline   Reply With Quote
Old 04-01-2008, 08:05 AM   #52 (permalink)
Lurker
 
Join Date: Mar 2008
Posts: 9
Default

Hi RavonTUS,

thanks for the tip,

If I use latest svn I can compile but get the follow message during start:
Code:
[runuo@gateway runuo-svn]$ mono runuo.exe 
RunUO - [www.runuo.com] Version 2.0, Build 3013.23354
Core: Running on .NET Framework Version 2.0.50727
Core: Unix environment detected
Scripts: Compiling C# scripts...done (cached)
Scripts: Compiling VB.NET scripts...no files found.
Scripts: Verifying...done (2120 items, 500 mobiles)
Regions: Loading...done
World: Loading...done (0 items, 0 mobiles) (0,03 seconds)
This server has no accounts.
Do you want to create the owner account now? (y/n)
Username: admin
Password: admin
Account created.
Stacktrace:

  at (wrapper managed-to-native) System.Diagnostics.FileVersionInfo.GetVersionInfo_internal (string) <0x00004>
  at (wrapper managed-to-native) System.Diagnostics.FileVersionInfo.GetVersionInfo_internal (string) <0xffffffff>
  at System.Diagnostics.FileVersionInfo.GetVersionInfo (string) <0x00069>
  at Server.Misc.ClientVerification.Initialize () <0x0007b>
  at (wrapper runtime-invoke) Server.Misc.MapDefinitions.runtime_invoke_void (object,intptr,intptr,intptr) <0xffffffff>
  at (wrapper managed-to-native) System.Reflection.MonoMethod.InternalInvoke (object,object[]) <0x00004>
  at (wrapper managed-to-native) System.Reflection.MonoMethod.InternalInvoke (object,object[]) <0xffffffff>
  at System.Reflection.MonoMethod.Invoke (object,System.Reflection.BindingFlags,System.Reflection.Binder,object[],System.Globalization.CultureInfo) <0x0009a>
  at System.Reflection.MethodBase.Invoke (object,object[]) <0x0001a>
  at Server.ScriptCompiler.Compile (bool,bool) <0x003bc>
  at Server.Core.Main (string[]) <0x0090d>
  at (wrapper runtime-invoke) Server.Core.runtime_invoke_void_string[] (object,intptr,intptr,intptr) <0xffffffff>

Native stacktrace:

        mono [0x8170d80]
        mono [0x813d432]
        [0x110440]
        mono [0x817a760]
        mono [0x817b6bd]
        mono [0x817b879]
        [0x7162bf1]
        [0x7162ae2]
        [0x716287c]
        [0x75e8ab6]
        mono [0x815dbd6]
        mono(mono_runtime_invoke+0x27) [0x80f15d7]
        mono(mono_runtime_invoke_array+0x226) [0x80f7016]
        mono [0x80ea58c]
        [0x246c5d]
        [0x2462fb]
        [0x75e8a8b]
        [0x2797a5]
        [0x24221e]
        [0x2411c3]
        mono [0x815dbd6]
        mono(mono_runtime_invoke+0x27) [0x80f15d7]
        mono(mono_runtime_exec_main+0xb0) [0x80f52f0]
        mono(mono_runtime_run_main+0x226) [0x80f5a16]
        mono(mono_main+0xa15) [0x8059615]
        mono [0x80586fe]
        /lib/libc.so.6(__libc_start_main+0xe0) [0x2f2f70]
        mono [0x8058641]

Debug info from gdb:

Using host libthread_db library "/lib/libthread_db.so.1".
...
I use the mono tar ball:
Code:
mono --version
Mono JIT compiler version 1.2.6 (tarball)
Copyright (C) 2002-2007 Novell, Inc and Contributors. www.mono-project.com
        TLS:           __thread
        GC:            Included Boehm (with typed GC)
        SIGSEGV:       normal
        Notifications: epoll
        Architecture:  x86
        Disabled:      none
Any Idea?
lweberru is offline   Reply With Quote
Old 04-01-2008, 10:22 AM   #53 (permalink)
Forum Novice
 
RavonTUS's Avatar
 
Join Date: Aug 2004
Location: in a house.
Age: 39
Posts: 588
Send a message via ICQ to RavonTUS Send a message via AIM to RavonTUS
Default

Greetings,

I am just guessing, but I would say the folder does not have write access.

-Ravon
__________________

Will RunUO work on Linux? Yes
RavonTUS is offline   Reply With Quote
Old 04-02-2008, 09:02 AM   #54 (permalink)
Lurker
 
Join Date: Mar 2008
Posts: 9
Default

Hi,

The Saves folder does not exist (initially) and it seems that mono or runuo has a bug, asking for a folder/file which does not exist.

If I copy my Saves folder from another installation, the problem does not exist.

There is another problem, installing XmlSpawner2:
Code:
RunUO - [www.runuo.com] Version 2.0, Build 3013.23354
Core: Running on .NET Framework Version 2.0.50727
Core: Unix environment detected
Scripts: Compiling C# scripts...failed (12 errors, 0 warnings)
Errors:
 + Custom/XmlMobiles/XmlQuestNPC.cs:
    CS0234: Line 11: The type or namespace name `Scripts' does not exist in the namespace `Server'. Are you missing an assembly reference?
    CS0246: Line 11: The type or namespace name `Scripts.Commands' could not be found. Are you missing a using directive or an assembly reference?
 + Custom/XmlAttach/XmlAttachment.cs:
    CS0234: Line 4: The type or namespace name `Scripts' does not exist in the namespace `Server'. Are you missing an assembly reference?
    CS0246: Line 4: The type or namespace name `Scripts.Commands' could not be found. Are you missing a using directive or an assembly reference?
    CS0234: Line 4: The type or namespace name `Scripts' does not exist in the namespace `Server'. Are you missing an assembly reference?
    CS0246: Line 4: The type or namespace name `Scripts.Commands' could not be found. Are you missing a using directive or an assembly reference?
 + Custom/XmlUtils/WriteMulti.cs:
    CS0246: Line 40: The type or namespace name `CommandEventArgs' could not be found. Are you missing a using directive or an assembly reference?
 + Custom/XmlSpawnerSkillCheck.cs:
    CS0234: Line 11: The type or namespace name `Scripts' does not exist in the namespace `Server'. Are you missing an assembly reference?
    CS0246: Line 11: The type or namespace name `Scripts.Commands' could not be found. Are you missing a using directive or an assembly reference?
    CS0234: Line 11: The type or namespace name `Scripts' does not exist in the namespace `Server'. Are you missing an assembly reference?
    CS0246: Line 11: The type or namespace name `Scripts.Commands' could not be found. Are you missing a using directive or an assembly reference?
 + Custom/XmlSpawner2.cs:
    CS0506: `Server.Mobiles.XmlSpawner.Name': Line 1217: cannot override inherited member `Server.Item.Name' because it is not marked virtual, abstract or override
 + Custom/XmlQuest/XmlQuestPoints.cs:
    CS0246: Line 167: The type or namespace name `CommandEventArgs' could not be found. Are you missing a using directive or an assembly reference?
    CS0246: Line 187: The type or namespace name `CommandEventArgs' could not be found. Are you missing a using directive or an assembly reference?
 + Custom/XmlMobiles/TalkingBaseVendor.cs:
    CS0115: Line 753: `Server.Mobiles.TalkingBaseVendor.GetContextMenuEntries(Server.Mobile, System.Collections.ArrayList)' is marked as an override but no suitable method found to override
 + Custom/XmlMobiles/TalkingBaseEscortable.cs:
    CS0115: Line 462: `Server.Mobiles.TalkingBaseEscortable.AddCustomContextEntries(Server.Mobile, System.Collections.ArrayList)' is marked as an override but no suitable method found to override
 + Custom/XmlQuest/XmlQuestToken.cs:
    CS0506: `Server.Items.XmlQuestToken.Name': Line 866: cannot override inherited member `Server.Item.Name' because it is not marked virtual, abstract or override
 + Custom/XmlUtils/WhatIsIt.cs:
    CS0246: Line 62: The type or namespace name `CommandEventArgs' could not be found. Are you missing a using directive or an assembly reference?
 + Custom/XmlMobiles/TalkingBaseCreature.cs:
    CS0115: Line 746: `Server.Mobiles.TalkingBaseCreature.GetContextMenuEntries(Server.Mobile, System.Collections.ArrayList)' is marked as an override but no suitable method found to override
 + Custom/XmlQuest/XmlQuestHolder.cs:
    CS0506: `Server.Items.XmlQuestHolder.Name': Line 781: cannot override inherited member `Server.Item.Name' because it is not marked virtual, abstract or override
Scripts: One or more scripts failed to compile or no script files were found.
 - Press return to exit, or R to try again.
Exiting...done
I was able to remove some of the
Code:
The type or namespace name `Scripts'
by replacing
Code:
using Server.Scripts;
with

Code:
using Server;
with this script:

Code:
for file in Custom/XmlQuest/XmlQuestLeaders.cs Custom/XmlUtils/XmlEdit.cs Custom/BaseXmlSpawner.cs Custom/XmlMobiles/TalkingBaseVendor.cs Custom/XmlAttach/XmlGetAttachGump.cs Custom/XmlAttach/XmlAttach.cs Custom/XmlSpawnerGumps.cs Custom/XmlSpawner2.cs Custom/ItemFlags.cs Custom/XmlUtils/XmlAdd.cs Custom/XmlMobiles/TalkingBaseCreature.cs Custom/XmlUtils/XmlFind.cs Custom/SpawnerExporter.cs Custom/XmlAttachments/XmlDialog.cs; do echo $file; cat Scripts/$file | sed -e 's/using Server\.Scripts/using Server/g' > Scripts/$file.neu;cp -p Scripts/$file Scripts/$file.backup; mv -f Scripts/$file.neu Scripts/$file; done
but there are a lot of further error messages as you can see.

I know, that XmlSpawner2 != runuo and this forum only said: "runuo works with mono", but XmlSpawner2 is I think one of the best addons I have ever seen. So for a usefull runuo/mono environment we need a solution which works with some popular addons like XmlSpawner2, nerun, ...

Regards
Lukas
lweberru is offline   Reply With Quote
Old 04-02-2008, 10:17 AM   #55 (permalink)
Forum Novice
 
RavonTUS's Avatar
 
Join Date: Aug 2004
Location: in a house.
Age: 39
Posts: 588
Send a message via ICQ to RavonTUS Send a message via AIM to RavonTUS
Default

Quote:
Originally Posted by lweberru View Post
Hi,
but there are a lot of further error messages as you can see.

I know, that XmlSpawner2 != runuo and this forum only said: "runuo works with mono", but XmlSpawner2 is I think one of the best addons I have ever seen. So for a usefull runuo/mono environment we need a solution which works with some popular addons like XmlSpawner2, nerun, ...

Regards
Lukas
I would tent to agree, there are several other scripts that I like that do not run yet. However, please try to keep the thread focused on the topic. Otherwise you will loose the people that are trying to get the basics to work.

-Ravon
__________________

Will RunUO work on Linux? Yes
RavonTUS is offline   Reply With Quote
Old 04-03-2008, 01:28 PM   #56 (permalink)
Lurker
 
Join Date: Mar 2008
Posts: 9
Default

Hi RavenTUS,

so I think there is a problem with the runuo itself. The following is from a blank installation. Without having a Saves folder

Code:
RunUO - [www.runuo.com] Version 2.0, Build 3013.23354
Core: Running on .NET Framework Version 2.0.50727
Core: Unix environment detected
Scripts: Compiling C# scripts...done (cached)
Scripts: Compiling VB.NET scripts...no files found.
Scripts: Verifying...done (2120 items, 500 mobiles)
Regions: Loading...done
World: Loading...done (0 items, 0 mobiles) (0,03 seconds)
This server has no accounts.
Do you want to create the owner account now? (y/n)
Username: admin
Password: admin
Account created.
Stacktrace:

  at (wrapper managed-to-native) System.Diagnostics.FileVersionInfo.GetVersionInfo_internal (string) <0x00004>
  at (wrapper managed-to-native) System.Diagnostics.FileVersionInfo.GetVersionInfo_internal (string) <0xffffffff>
  at System.Diagnostics.FileVersionInfo.GetVersionInfo (string) <0x00069>
  at Server.Misc.ClientVerification.Initialize () <0x0007b>
  at (wrapper runtime-invoke) Server.Misc.MapDefinitions.runtime_invoke_void (object,intptr,intptr,intptr) <0xffffffff>
  at (wrapper managed-to-native) System.Reflection.MonoMethod.InternalInvoke (object,object[]) <0x00004>
  at (wrapper managed-to-native) System.Reflection.MonoMethod.InternalInvoke (object,object[]) <0xffffffff>
  at System.Reflection.MonoMethod.Invoke (object,System.Reflection.BindingFlags,System.Reflection.Binder,object[],System.Globalization.CultureInfo) <0x0009a>
  at System.Reflection.MethodBase.Invoke (object,object[]) <0x0001a>
  at Server.ScriptCompiler.Compile (bool,bool) <0x003bc>
  at Server.Core.Main (string[]) <0x0090d>
  at (wrapper runtime-invoke) Server.Core.runtime_invoke_void_string[] (object,intptr,intptr,intptr) <0xffffffff>
Any Idea.

EDIT:

if i change the follow
Code:
                private static bool m_DetectClientRequirement = true;
to

Code:
                private static bool m_DetectClientRequirement = false;
the server is starting

PS:The Compile of the XmlSpawner2 had success

Regards
Lukas

Last edited by lweberru; 04-03-2008 at 01:35 PM.
lweberru 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