|
||
|
|||||||
| Server Support on Mono Forum dedicated to RunUO 2.0 on Mono. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#27 (permalink) | ||
|
Forum Novice
|
Quote:
As for the AdminGump here is the solution according to nemeri ... Quote:
Code:
public static ICollection<IAccount> GetAccounts()
{
return m_Accounts.Values;
}
Code:
public static ICollection<IAccount> GetAccounts()
{
return new List<IAccount>(m_Accounts.Values);
}
Thank you, for your effort and for greatly improving RunUO! -Ravon
__________________
Last edited by RavonTUS; 09-08-2007 at 01:08 AM. |
||
|
|
|
|
|
#28 (permalink) |
|
Lurker
Join Date: Jun 2006
Age: 21
Posts: 4
|
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.
|
|
|
|
|
|
#30 (permalink) | |
|
Forum Administrator
Join Date: Jan 2003
Location: Northern Virginia
Posts: 1,547
|
Quote:
Test movement in Felucca, see if it happens there. |
|
|
|
|
|
|
#32 (permalink) |
|
Lurker
Join Date: Sep 2007
Age: 23
Posts: 1
|
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? |
|
|
|
|
|
#33 (permalink) | |
|
Newbie
Join Date: Jul 2006
Posts: 22
|
Hi,
I think you didn't modify the mono config file, found in etc/mono, add these lines: Quote:
Saba Last edited by Sabaoth; 09-12-2007 at 07:28 PM. |
|
|
|
|
|
|
#35 (permalink) |
|
Forum Novice
|
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
__________________
|
|
|
|
|
|
#37 (permalink) | |
|
Forum Novice
|
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:
Code:
public override void Deserialize( GenericReader reader )
{
base.Deserialize( reader );
int version = reader.ReadEncodedInt();
m_Keys = reader.ReadStrongItemList<Key>();
}
What are the ramifications of this section of code not working correctly? or am I missing something else? -Ravon
__________________
|
|
|
|
|
|
|
#38 (permalink) | |
|
Forum Administrator
Join Date: Jan 2003
Location: Northern Virginia
Posts: 1,547
|
Quote:
|
|
|
|
|
|
|
#39 (permalink) | |
|
Forum Novice
|
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:
So, I am little in over my head here. Is having issues with Deserialize or GenericReader or ReadStrongMobileList or all the above? -Ravon
__________________
|
|
|
|
|
|
|
#41 (permalink) |
|
Newbie
Join Date: Aug 2004
Age: 24
Posts: 35
|
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+) Last edited by seirge; 10-14-2007 at 11:17 AM. |
|
|
|
|
|
#42 (permalink) | |
|
Lurker
Join Date: Jan 2007
Posts: 3
|
Quote:
|
|
|
|
|
|
|
#43 (permalink) | |
|
Newbie
Join Date: Aug 2005
Age: 24
Posts: 41
|
Quote:
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. |
|
|
|
|
|
|
#45 (permalink) | ||
|
Forum Expert
Join Date: Dec 2002
Location: The Darkness
Posts: 421
|
Quote:
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:
__________________
ClanCC was missing D: One Vision, One Purpose, Peace Through Power! |
||
|
|
|
|
|
#46 (permalink) |
|
Newbie
Join Date: Aug 2005
Age: 24
Posts: 41
|
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 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 % |
|
|
|
|
|
#47 (permalink) |
|
Newbie
Join Date: Aug 2005
Age: 24
Posts: 41
|
Code:
Stderr='Scripts/Custom/Mondain's Legacy/Engines/Perless System/PeerlessAltar.cs(524,30): warning CS0472: Your code is *very* likely incorrect; 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 ) );
}
Last edited by SysError; 02-06-2008 at 06:14 AM. |
|
|
|