June 19, 2013, 06:27:57 PM

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - Darchiv

Pages: [1]
1
How-To / Re: Mono install - flags and version
« on: May 24, 2012, 07:59:05 AM »
I followed this instruction. I found LLVM source here.
LLVM is installed in /opt/ter-mono, and so is Mono. And again, /root/mono-llvm does not exist for now (there was only source).
As it was said in the instruction, I indicated on LLVM install directory and after succesfull configuration (LLVM detected), I installed Mono in the same directory as LLVM was.

2
How-To / Re: Mono install - flags and version
« on: May 23, 2012, 01:04:48 PM »
Thanks for response.
I have Mono 2.10.8.1 and LLVM for 2.10.x and succesfully started and played on server without LLVM. When I use LLVM, I'm given the following error (when player joins):
Code: [Select]
mono-sgen: /root/mono-llvm/include/llvm/ADT/SmallVector.h:154: const T& llvm::SmallVectorTemplateCommon<T>::operator[](unsigned int) const [with T = unsigned int]: Assertion `begin() + idx < end()' failed.
Stacktrace:

  at Terraria_Server.Main.Update (System.Diagnostics.Stopwatch) <IL 0x000dd, 0x0062f>
  at Terraria_Server.Program.UpdateLoop () <IL 0x000f1, 0x003e3>
  at Terraria_Server.ProgramThread/<>c__DisplayClass2.<.ctor>b__0 (object) <0x0001b>
  at System.Threading.Thread.StartInternal () <0x0005d>
  at (wrapper runtime-invoke) object.runtime_invoke_void__this__ (object,intptr,intptr,intptr) <IL 0x0004e, 0xffffffff>

Native stacktrace:

        mono-sgen() [0x80e55f9]
        [0xb76f640c]
        /lib/i686/nosegneg/libc.so.6(abort+0x182) [0xb7471e72]
        /lib/i686/nosegneg/libc.so.6(__assert_fail+0xf8) [0xb74679c8]
        mono-sgen() [0x84b1ccf]

Debug info from gdb:

=================================================================
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.
=================================================================

I don't know what's going on, but it shouldn't use files in /root/mono-llvm, in particular because they're deleted... Maybe I can issue any variable for my TDSM start directory or Mono's one, so that it uses correct files? Or just LLVM is incompatible with TDSM for now?

3
How-To / Re: Mono install - flags and version
« on: May 22, 2012, 02:07:31 PM »
OK, I can't wait.
I used 2.11.1. Everything got right, but when player joined (tried...) Mono exceptioned something.
Now I try to compile TDSM on Mono. The results aren't great. I use this in TDSM main source folder:
Code: [Select]
/opt/mono11/bin/mcs -recurse:'*.cs' -lib:/opt/mono11/libOf course I was welcomed by errors:
Code: [Select]
./Utility/Serialize/DiffSerializer.cs(40,45): error CS0246: The type or namespace name `XmlDictionaryWriter' could not be found. Are you missing a using directive or an assembly reference?
./TDSMPermissions/TDSMPermissions/TDSMPermissions.cs(16,7): error CS0246: The type or namespace name `YaTools' could not be found. Are you missing a using directive or an assembly reference?
./Languages/Program.cs(4,14): error CS0234: The type or namespace name `Windows' does not exist in the namespace `System'. Are you missing an assembly reference?
And 61 other.

I'm not blaming you, obviously. However, could you just show me what references I need? Or is this task possible on Mono on Debian at all?


EDIT: Sorry, I'm a short fuse :-[
I forgot about compatibility. Finally, I'll try LLVM for 2.10.x and Mono 2.10.8.1, and hold with compiling TDSM.
That should do the trick.

4
How-To / Mono install - flags and version
« on: May 20, 2012, 05:47:02 AM »
Hello,

I have just set up Debian on Xen VPS and secured it. Now I am going to install Mono, and this has led me to ask some questions:
  • Flag's --with-xen-opt description says "it makes Mono generate code which [...]". So does Mono run code in this way or compile it? If so, could you show me how to use mcs compiler on TDSM project (if TDSM is not compiled under xen-opt)?
  • Shall I use Mono 2.11.x (compared to 2.10.x) or is this useless, as there is nothing better/more functions that TDSM uses?

Best regards,
Darchiv.

5
Programming / Re: making a plugin
« on: December 02, 2011, 09:20:05 AM »
YM, I'm learning C# for 4 days. I know what's namespace, class, method, loop, variable, objects and other small thingies (eg. console text). I think sb doesn't have to learn this language for years if he know how API works and when he's able to write small (not bad, but simple) plugin. Of course he'll need experience in this, so from here, he can write better things...

Pages: [1]

SimplePortal 2.3.3 © 2008-2010, SimplePortal