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-07-2007, 08:40 PM   #26 (permalink)
Forum Administrator
 
Join Date: Jan 2003
Location: Northern Virginia
Posts: 1,547
Default

Quote:
Originally Posted by Sabaoth View Post
so you are right, crashes the server.... but reload doesn't even take a second^^ really performance improvements to sunuo or runuo 1.0!
Yes, I am very impressed with the speed. When I first started experimenting with mono everything was agonizingly slow, now it feels much smoother.
Mark is offline   Reply With Quote
Old 09-08-2007, 01:02 AM   #27 (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 Mark View Post
There is an issue in AdminGump when searching for accounts as well.
WOW!!! Mark and Sabaoth, you have come a great way. I am testing on my end now.

As for the AdminGump here is the solution according to nemeri ...

Quote:
Gumps work by default, however the account list in the admin dialog does not (crashing the server). This is cause it cannot typecast the dictionary's generic ValueCollection into a non-generic ICollection for some reason. Perhaps mono's fault.

(You could also change the AdminGump to make it faster, only enumerating the values once but this would cause brittle code).

fix (but somewhat, not noticably, slower):
In Scripts/Accounting/Accounts.cs find the following around line 27...
Code:
		public static ICollection<IAccount> GetAccounts()
		{
			return m_Accounts.Values;
		}
Code:
		public static ICollection<IAccount> GetAccounts()
		{
			return new List<IAccount>(m_Accounts.Values);
		}
Like he says that may not be the best way to do it, but at least it gives you an idea where to look.

Thank you, for your effort and for greatly improving RunUO!

-Ravon
__________________

Will RunUO work on Linux? Yes

Last edited by RavonTUS; 09-08-2007 at 01:08 AM.
RavonTUS is offline   Reply With Quote
Old 09-09-2007, 07:31 AM   #28 (permalink)
Lurker
 
Join Date: Jun 2006
Age: 21
Posts: 4
Default

I am trying on windows using Mono 1.2.5, I have problem, when compiling it has many warnings about variables that aren't using, and also when starting RunUo it also gives warns about not used variables, also it can't load Items and Mobiles save, it crashes. I hope these problems are on windows only, as I have tried to test it on windows before going on linux with it.
banerok is offline   Reply With Quote
Old 09-09-2007, 02:39 PM   #29 (permalink)
Newbie
 
Join Date: Jul 2006
Posts: 22
Default

so I found out that the tile falling problems still exists in some cases. And there seem to be invisible walls in some cases.
Sabaoth is offline   Reply With Quote
Old 09-09-2007, 04:54 PM   #30 (permalink)
Forum Administrator
 
Join Date: Jan 2003
Location: Northern Virginia
Posts: 1,547
Default

Quote:
Originally Posted by Sabaoth View Post
so I found out that the tile falling problems still exists in some cases. And there seem to be invisible walls in some cases.
Is your client using different muls from your server? Different versions could cause this problem.

Test movement in Felucca, see if it happens there.
Mark is offline   Reply With Quote
Old 09-09-2007, 04:58 PM   #31 (permalink)
Newbie
 
Join Date: Jul 2006
Posts: 22
Default

Exactly the same muls and so on. Well it happens sometimes out there in the forest. When a player next times reports I give you the coordinates, seems to happen at the same place always.
Sabaoth is offline   Reply With Quote
Old 09-11-2007, 04:07 AM   #32 (permalink)
Lurker
 
Join Date: Sep 2007
Age: 23
Posts: 1
Default

Hi to all guys,
I'm not new to RunUO but I never been an active member of the forums... I think I'll start now.
Yesterday I tried to use RunUO on Linux but I've encountered some problems. Compilation failed until I replaced all the scrips I found in this post but I didn't made a deep investigation about the causes so forgive me if I can post the details (anyway it seems the ReadItem issue was the mayor problem). After a succesfully compilation RunUO start and work fine, compilation of scripts too but when I compile scripts some texts doesn't print in console, it seems it print spaces characters indeed. The red text of errors and warning print but the phrase "press enter to quit or R to recompile" (or whatever was that) does not If I press R for each file needed to been fixed it start the compile cycle again normally.
This is a minor issue, the most problem is after compilation I'm not sure if it's done or not and it seems to wait for a prompt like the UO directory and I'm not able to connect. If in this phase I shutdown and restart the server start normally and the text are diplayed correctly.
But when I connect with UO it crash after the creation of a new PG and it simply quit. The crash log report something about the zlib library but actually I'm not in my PC so I'll post it later.

One more question: I run UO with Cedega 6.0.2, do you think is this the best way? Or maybe use wine (of course I use an encrypted client patched in Winzozz).
The post is too long so I'll cut it down, thank you very much for your time.

P.S.:
My PC configuration is:
Intel Dual Core 1.66Ghz 2MB L1 Cache
1024MB Ram
nVidia GeForce Go 7600 256MB dedicated
more useless component I guess you don't need
Fedora Core 7 Linux with Kernel 2.6.22.1
need more?
BlueAngelTC is offline   Reply With Quote
Old 09-11-2007, 06:12 AM   #33 (permalink)
Newbie
 
Join Date: Jul 2006
Posts: 22
Default

Hi,

I think you didn't modify the mono config file, found in etc/mono, add these lines:

Quote:
<dllmap dll="zlib32" target="libz.so" os="!windows" />
<dllmap dll="zlib32.dll" target="libz.so" os="!windows" />

Saba

Last edited by Sabaoth; 09-12-2007 at 07:28 PM.
Sabaoth is offline   Reply With Quote
Old 09-11-2007, 11:37 AM   #34 (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 BlueAngelTC View Post
One more question: I run UO with Cedega 6.0.2, do you think is this the best way? Or maybe use wine (of course I use an encrypted client patched in Winzozz).
I use Wine and UORice to run the client on my kubuntu PC.

-Ravon
__________________

Will RunUO work on Linux? Yes
RavonTUS is offline   Reply With Quote
Old 09-12-2007, 09:46 AM   #35 (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 was just wondering about the Serialization.cs issues. From what I understand, MONO sees ReadItem<T>() and ReadItem() and thinks they are the same thing.

So, to fix it we replace ReadItem<T>() with ReadItemG<T>(), thus giving it a different looking "name".

If this is true, then my question becomes should we also be renaming ReadStrongItemList<T>() and ReadStrongItemList()?? or WriteItemList<T> and WriteItemList()??

Any suggestions?

-Ravon
__________________

Will RunUO work on Linux? Yes
RavonTUS is offline   Reply With Quote
Old 09-12-2007, 10:46 AM   #36 (permalink)
Newbie
 
Join Date: Aug 2004
Location: Bochum, Germany
Age: 21
Posts: 56
Send a message via ICQ to Brutus5000 Send a message via Skype™ to Brutus5000
Default

Why not simply drop ReadItem() since you can replace it with ReadItem<Item>() ?
Well, it doesn't sound very nice at all and you would have one more cast operation than necessary, but how often do you reload your server?
Brutus5000 is offline   Reply With Quote
Old 09-13-2007, 10:58 AM   #37 (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 adding two versions of my Serialization.cs for SVN 237. The first, is just the Serialization.cs file, without changing the ReadItem<T>().

The second file has the ReadItem<T>() changed to ReadItemG<T>() and associated files that go with it.

However, I still get the following error message, on every file, when I run RunUO.exe...

Quote:
item/misc/Keyring.cs
CS0219: Line 202 the variable 'version' is assigned but its value is never used.
Here is the code from that section
Code:
public override void Deserialize( GenericReader reader )
{
	base.Deserialize( reader );

	int version = reader.ReadEncodedInt();

	m_Keys = reader.ReadStrongItemList<Key>();
}
So, I would assume that the serialization is not working correctly, even though everything else seems to be running fine.

What are the ramifications of this section of code not working correctly? or am I missing something else?

-Ravon
Attached Files
File Type: cs Serialization.cs (47.9 KB, 12 views)
File Type: zip RavonTUS-13SEP2007.zip (19.7 KB, 18 views)
__________________

Will RunUO work on Linux? Yes
RavonTUS is offline   Reply With Quote
Old 09-13-2007, 04:34 PM   #38 (permalink)
Forum Administrator
 
Join Date: Jan 2003
Location: Northern Virginia
Posts: 1,547
Default

Quote:
Originally Posted by RavonTUS View Post
Greetings,

I am adding two versions of my Serialization.cs for SVN 237. The first, is just the Serialization.cs file, without changing the ReadItem<T>().

The second file has the ReadItem<T>() changed to ReadItemG<T>() and associated files that go with it.

However, I still get the following error message, on every file, when I run RunUO.exe...



Here is the code from that section
Code:
public override void Deserialize( GenericReader reader )
{
	base.Deserialize( reader );

	int version = reader.ReadEncodedInt();

	m_Keys = reader.ReadStrongItemList<Key>();
}
So, I would assume that the serialization is not working correctly, even though everything else seems to be running fine.

What are the ramifications of this section of code not working correctly? or am I missing something else?

-Ravon
The warnings are harmless, but I've committed a change to supress them.
Mark is offline   Reply With Quote
Old 09-14-2007, 03:48 PM   #39 (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 thought I would post this, just in case your playing along and want to compare notes.

I am currently running SVN 253 without any modifications - YEAH. If I start with a fresh wolrd (no Save folder). I can log in, run around, and restart the server just fine.

I then copied all my custom scripts, less the ones that caused errors (Orb, Pandora, WatchUO, and RandomEncounter). They maybe fixable, but I don't want to mess with them right now. Start the server (runuo.exe), again with a fresh world. I again can log in, run around, and restart the server.

Finally, if I copy over my old SAVE folder, I get the following mess...

Quote:
RunUO - [www.runuo.com] Version 2.0, Build 2814.2401
Core: Running on .NET Framework Version 2.0.50727
Core: Unix environment detected
Scripts: Compiling C# scripts...done (0 errors, 6 warnings)
Scripts: Compiling VB.NET scripts...no files found.
Scripts: Verifying...done (2895 items, 605 mobiles)
Regions: Loading...done
World: Loading...
** ERROR **: file mini.c: line 4661 (mono_method_to_ir): assertion failed: (mono_method_signature (cmethod)->is_inflated)
aborting...
Stacktrace:

at (wrapper managed-to-native) System.Object.__icall_wrapper_compile_generic_meth od (object,intptr,intptr,intptr) <0x00004>
at (wrapper managed-to-native) System.Object.__icall_wrapper_compile_generic_meth od (object,intptr,intptr,intptr) <0xffffffff>
at Server.BinaryFileReader.ReadStrongMobileList () <0x00020>
at Server.Mobile.Deserialize (Server.GenericReader) <0x002d5>
at Server.Mobiles.PlayerMobile.Deserialize (Server.GenericReader) <0x00034>
at Server.World.Load () <0x016c5>
at Server.ScriptCompiler.Compile (bool,bool) <0x002d8>
at Server.Core.Main (string[]) <0x008fd>
at (wrapper runtime-invoke) Server.Core.runtime_invoke_void_string[] (object,intptr,intptr,intptr) <0xffffffff>

Native stacktrace:

mono [0x81681c0]
[0xffffe440]
/lib/tls/i686/cmov/libc.so.6(abort+0x101) [0xb7d0d641]
/usr/lib/libglib-2.0.so.0(g_logv+0x4ca) [0xb7e9c70a]
/usr/lib/libglib-2.0.so.0(g_log+0x29) [0xb7e9c749]
mono [0x8147d4b]
mono [0x8152aba]
mono [0x81547dc]
mono(mono_compile_method+0x18) [0x80929d8]
mono [0x8155547]
[0xb682e4e8]
[0xb682e4a1]
[0xb682cf96]
[0xb682b43d]
[0xb68e2776]
[0xb70b06c9]
[0xb7337416]
[0xb7332f0b]
mono [0x8154f36]
mono(mono_runtime_invoke+0x27) [0x80927b7]
mono(mono_runtime_exec_main+0xb0) [0x80966e0]
mono(mono_runtime_run_main+0x215) [0x8096dd5]
mono(mono_main+0xa15) [0x8058e25]
mono [0x8057f0e]
/lib/tls/i686/cmov/libc.so.6(__libc_start_main+0xdc) [0xb7cf7ebc]
mono [0x8057e51]

Debug info from gdb:

Using host libthread_db library "/lib/tls/i686/cmov/libthread_db.so.1".
[Thread debugging using libthread_db enabled]
[New Thread -1211271456 (LWP 6509)]
[New Thread -1221399664 (LWP 6511)]
[New Thread -1215644784 (LWP 6510)]
0xffffe410 in __kernel_vsyscall ()
3 Thread -1215644784 (LWP 6510) 0xffffe410 in __kernel_vsyscall ()
2 Thread -1221399664 (LWP 6511) 0xffffe410 in __kernel_vsyscall ()
1 Thread -1211271456 (LWP 6509) 0xffffe410 in __kernel_vsyscall ()

Thread 3 (Thread -1215644784 (LWP 6510)):
#0 0xffffe410 in __kernel_vsyscall ()
#1 0xb7e56986 in ?? () from /lib/tls/i686/cmov/libpthread.so.0
#2 0x0810615e in collection_thread (unused=0x0) at collection.c:34
#3 0xb7e4f31b in start_thread () from /lib/tls/i686/cmov/libpthread.so.0
#4 0xb7db157e in clone () from /lib/tls/i686/cmov/libc.so.6

Thread 2 (Thread -1221399664 (LWP 6511)):
#0 0xffffe410 in __kernel_vsyscall ()
#1 0xb7e535c6 in pthread_cond_wait@@GLIBC_2.3.2 ()
from /lib/tls/i686/cmov/libpthread.so.0
#2 0x0810906f in timedwait_signal_poll_cond (cond=0xb78181dc,
mutex=0xb78181c4, timeout=0x0, alertable=0) at handles.c:1413
#3 0x0810916f in _wapi_handle_timedwait_signal_handle (handle=0x404,
timeout=0x0, alertable=0) at handles.c:1493
#4 0x081092ba in _wapi_handle_wait_signal_handle (handle=0xfffffffc,
alertable=-4) at handles.c:1453
#5 0x0811c5d1 in WaitForSingleObjectEx (handle=0x404, timeout=4294967295,
alertable=0) at wait.c:200
#6 0x080adedb in finalizer_thread (unused=0x0) at gc.c:835
#7 0x080cd990 in start_wrapper (data=0x8256dc0) at threads.c:319
#8 0x0811b280 in thread_start_routine (args=0xb76c4768) at threads.c:253
#9 0x081314c4 in GC_start_routine (arg=0xfffffffc) at pthread_support.c:1362
#10 0xb7e4f31b in start_thread () from /lib/tls/i686/cmov/libpthread.so.0
#11 0xb7db157e in clone () from /lib/tls/i686/cmov/libc.so.6

Thread 1 (Thread -1211271456 (LWP 6509)):
#0 0xffffe410 in __kernel_vsyscall ()
#1 0xb7daa3d1 in select () from /lib/tls/i686/cmov/libc.so.6
#2 0xb7ebf4a0 in g_spawn_sync () from /usr/lib/libglib-2.0.so.0
#3 0xb7ebf86c in g_spawn_command_line_sync () from /usr/lib/libglib-2.0.so.0
#4 0x0816823b in mono_handle_native_sigsegv (signal=6, ctx=0xbfc2adec)
at mini-exceptions.c:1081
#5 <signal handler called>
#6 0xffffe410 in __kernel_vsyscall ()
#7 0xb7d0bdf0 in raise () from /lib/tls/i686/cmov/libc.so.6
#8 0xb7d0d641 in abort () from /lib/tls/i686/cmov/libc.so.6
#9 0xb7e9c70a in g_logv () from /usr/lib/libglib-2.0.so.0
#10 0xb7e9c749 in g_log () from /usr/lib/libglib-2.0.so.0
#11 0x08147d4b in mono_method_to_ir (cfg=0x9215fe8, method=0x9215f30,
start_bblock=0x91f9694, end_bblock=0x91f972c, locals_offset=1,
return_var=0x0, dont_inline=0x922f630, inline_args=0x0, inline_offset=0,
is_virtual_call=0) at mini.c:4661
#12 0x08152aba in mini_method_compile (method=0x9215f30, opts=13724159,
domain=0x0, run_cctors=<value optimized out>,
compile_aot=<value optimized out>, parts=0) at mini.c:10356
#13 0x081547dc in mono_jit_compile_method (method=0x9215f30) at mini.c:10725
#14 0x080929d8 in mono_compile_method (method=0x0) at object.c:503
#15 0x08155547 in mono_helper_compile_generic_method (obj=0x1a655e0,
method=0x0, context=0x9215f58, this_arg=0xbfc2bce8) at jit-icalls.c:805
#16 0xb682e4e8 in ?? ()
#17 0x01a655e0 in ?? ()
#18 0x09215f30 in ?? ()
#19 0x09215f58 in ?? ()
#20 0xbfc2bce8 in ?? ()
#21 0x0821b100 in ?? ()
#22 0xbfc2bce8 in ?? ()
#23 0x08faf9f4 in ?? ()
#24 0x00000000 in ?? ()
#0 0xffffe410 in __kernel_vsyscall ()


================================================== ===============
Got a SIGABRT while executing native code. This usually indicates
a fatal error in the mono runtime or one of the native libraries
used by your application.
================================================== ===============

Aborted (core dumped)
Man is that an error message or what.

So, I am little in over my head here. Is having issues with Deserialize or GenericReader or ReadStrongMobileList or all the above?

-Ravon
__________________

Will RunUO work on Linux? Yes
RavonTUS is offline   Reply With Quote
Old 10-02-2007, 01:14 PM   #40 (permalink)
Newbie
 
dr_no's Avatar
 
Join Date: Sep 2006
Location: Poland
Age: 22
Posts: 47
Default

got the same error - tryied to fix it but with no results
__________________
Life would be so much easier if we just could look at the source code.
dr_no is offline   Reply With Quote
Old 10-14-2007, 11:14 AM   #41 (permalink)
Newbie
 
Join Date: Aug 2004
Age: 24
Posts: 35
Default

Try to use this serialization.cs (and replace all ReadItem<>, ReadMobile<>, ReadGuild<> in your Scripts to ReadItemG<>, ReadMobileG<>, ReadGuildG<>).
It works for me. (I am running shard on RunUO 2.0/mono/FreeBSD for 6 months)
But check twice that you use latest runuo svn and latest mono (1.2.5+)
Attached Files
File Type: cs Serialization.cs (35.1 KB, 41 views)

Last edited by seirge; 10-14-2007 at 11:17 AM.
seirge is offline   Reply With Quote
Old 12-31-2007, 07:49 PM   #42 (permalink)
Lurker
 
Join Date: Jan 2007
Posts: 3
Default

Quote:
Originally Posted by seirge View Post
Try to use this serialization.cs (and replace all ReadItem<>, ReadMobile<>, ReadGuild<> in your Scripts to ReadItemG<>, ReadMobileG<>, ReadGuildG<>).
It works for me. (I am running shard on RunUO 2.0/mono/FreeBSD for 6 months)
But check twice that you use latest runuo svn and latest mono (1.2.5+)
Big thanks! Work for me!
sybasesql is offline   Reply With Quote
Old 02-04-2008, 03:07 AM   #43 (permalink)
Newbie
 
Join Date: Aug 2005
Age: 24
Posts: 41
Default

Quote:
server startup problem

Also download serialisation.cs
Linux again, but it is getting close to run
Goto page one download "Championspawner.cs Gauntletspawner.cs Communicationcrystal.cs Autosave.cs Accounts.cs DataPath.cs and Accountprompt.cs"

Recompile server and load.

I replaced all those files? but no result
I still have this error

using latest svn Runuo+ML

Code:
RunUO - [www.runuo.com] Version 2.0, Build 2956.15877
Core: Running on .NET Framework Version 2.0.50727
Core: Unix environment detected
Scripts: Compiling C# scripts...Error:
System.Exception: Compiler failed to produce the assembly. Stderr='Scripts/Mondain's Legacy/Engines/Perless System/PeerlessAltar.cs(524,30): warning CS0472: Your code is *very* likely incorrect;   The result of comparing `System.TimeSpan' against null is always True;  mcs supports this to be compatible with the broken CSC behavior

GLib-ERROR **: gmem.c:172: failed to allocate 2097152 bytes
aborting...
Stacktrace:

  at (wrapper managed-to-native) System.Reflection.Emit.ModuleBuilder.build_metadata (System.Reflection.Emit.ModuleBuilder) <0x00004>
  at (wrapper managed-to-native) System.Reflection.Emit.ModuleBuilder.build_metadata (System.Reflection.Emit.ModuleBuilder) <0xffffffff>
  at System.Reflection.Emit.ModuleBuilder.Save () <0x004e7>
  at System.Reflection.Emit.AssemblyBuilder.Save (string,System.Reflection.PortableExecutableKinds,System.Reflection.ImageFileMachine) <0x0046b>
  at System.Reflection.Emit.AssemblyBuilder.Save (string) <0x00014>
  at Mono.CSharp.CodeGen.Save (string) <0x00038>
  at Mono.CSharp.Driver.MainDriver (string[]) <0x00d8a>
  at Mono.CSharp.Driver.Main (string[]) <0x00055>
  at (wrapper runtime-invoke) Mono.CSharp.Driver.runtime_invoke_int_string[] (object,intptr,intptr,intptr) <0xffffffff>
', Stdout=''
  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

Last edited by SysError; 02-04-2008 at 03:11 AM.
SysError is offline   Reply With Quote
Old 02-04-2008, 03:20 AM   #44 (permalink)
Newbie
 
Join Date: Aug 2005
Age: 24
Posts: 41
Default

Please help me

here my server:

my server
Attached Files
File Type: rar runuo.ml.rar (4.42 MB, 1 views)
SysError is offline   Reply With Quote
Old 02-05-2008, 01:10 AM   #45 (permalink)
Forum Expert
 
ClanCC's Avatar
 
Join Date: Dec 2002
Location: The Darkness
Posts: 421
Default

Quote:
Originally Posted by SysError View Post
I replaced all those files? but no result
I still have this error
Don't replace the files, you should merge them with an diff tool.
Also, it looks like an memory/file problem? Did you try getting the SVN version again and try compiling it? Make sure your using Mono 1.2.5 or above.
Quote:
Originally Posted by SysError
GLib-ERROR **: gmem.c:172: failed to allocate 2097152 bytes
__________________
ClanCC was missing D:
One Vision, One Purpose, Peace Through Power!
ClanCC is offline   Reply With Quote
Old 02-06-2008, 05:18 AM   #46 (permalink)
Newbie
 
Join Date: Aug 2005
Age: 24
Posts: 41
Default

again =)

merged all files with WinMerge tool
compiled and started server

Code:
%mono --debug RunUO.exe
RunUO - [www.runuo.com] Version 2.0, Build 2958.18860
Core: Running on .NET Framework Version 2.0.50727
Core: Unix environment detected
Scripts: Compiling C# scripts...Error:
System.Exception: Compiler failed to produce the assembly. Stderr='Scripts/Custom/Mondain's Legacy/Engines/Perless System/PeerlessAltar.cs(524,30): warning CS0472: Your code is *very* likely incorrect;   The result of comparing `System.TimeSpan' against null is always True;  mcs supports this to be compatible with the broken CSC behavior

(process:85397): GLib-ERROR (recursed) **: gmem.c:172: failed to allocate 4 bytes
aborting...
Stacktrace:


(process:85397): GLib-ERROR (recursed) **: gmem.c:172: failed to allocate 4 bytes
aborting...
', Stdout=''
  at Mono.CSharp.CSharpCodeCompiler.CompileFromFileBatch (System.CodeDom.Compiler.CompilerParameters options, System.String[] fileNames) [0x00255] in /usr/ports/lang/mono/work/mono-1.2.5.1/mcs/class/System/Microsoft.CSharp/CSharpCodeCompiler.cs:235
  at Mono.CSharp.CSharpCodeCompiler.CompileAssemblyFromFileBatch (System.CodeDom.Compiler.CompilerParameters options, System.String[] fileNames) [0x00012] in /usr/ports/lang/mono/work/mono-1.2.5.1/mcs/class/System/Microsoft.CSharp/CSharpCodeCompiler.cs:138
  at System.CodeDom.Compiler.CodeDomProvider.CompileAssemblyFromFile (System.CodeDom.Compiler.CompilerParameters options, System.String[] fileNames) [0x00015] in /usr/ports/lang/mono/work/mono-1.2.5.1/mcs/class/System/System.CodeDom.Compiler/CodeDomProvider.cs:127
  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
new difference: "filed to allocate 4 bytes " =)

admin of my server set limits to me

Code:
%limits
Resource limits (current):
  cputime          infinity secs
  filesize         infinity kB
  datasize           524288 kB
  stacksize           65536 kB
  coredumpsize     infinity kB
  memoryuse          524288 kB
  memorylocked     infinity kB
  maxprocesses           12
  openfiles           11095
  sbsize           infinity bytes
  vmemoryuse       infinity kB
%
he tried starting the server without limits, but server eat all memory and die.
SysError is offline   Reply With Quote
Old 02-06-2008, 05:42 AM   #47 (permalink)
Newbie
 
Join Date: Aug 2005
Age: 24
Posts: 41
Default

Code:
Stderr='Scripts/Custom/Mondain's Legacy/Engines/Perless System/PeerlessAltar.cs(524,30): warning CS0472: Your code is *very* likely incorrect;
PeerlessAltar.cs
Code:
public virtual void OnPeerlessDeath()
		{
			SendMessage( 1072681 ); // The master of this realm has been slain! You may only stay here so long.
			
			if ( DelayAfterBossSlain != null )
				SendMessage( 1075611, DelayAfterBossSlain.TotalSeconds ); // Time left: ~1_time~ seconds
				
			StopTimer();
			
			// delete master keys				
			for ( int i = m_MasterKeys.Count - 1; i >= 0; i -- ) 
				m_MasterKeys[ i ].Delete();
				
			m_MasterKeys.Clear();
			
			m_Timer = Timer.DelayCall( DelayAfterBossSlain, new TimerCallback( FinishSequence ) );
		}
Attached Files
File Type: cs PeerlessAltar.cs (15.0 KB, 8 views)

Last edited by SysError; 02-06-2008 at 06:14 AM.
SysError is offline   Reply With Quote
Old 02-06-2008, 07:12 AM   #