Welcome
Welcome to <strong>SunUO</strong>.

You are currently viewing our boards as a guest, which gives you limited access to view most discussions and access our other features. By joining our free community, you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content, and access many other special features. Registration is fast, simple, and absolutely free, so please, <a href="/profile.php?mode=register">join our community today</a>!

litle error on startup

Get (and give) support on questions related to the SunUO server.

litle error on startup

Postby Vince Lithium on Sun Jul 13, 2008 1:48 pm

Hi it seems sunuo is looking for mscorlibs.dll in mono/2.0/ but by default debian installs mono 1.0 is 2.0 needed or can i adjust a config file in sunuo so it looks in mono/1.0/ map

thanks in advance

vince
Vince Lithium
 
Posts: 12
Joined: Sun Jul 13, 2008 1:24 pm

Postby Vince Lithium on Mon Jul 14, 2008 9:12 am

worked that out installed 2.0 now i get another error
SunUO Version 0.5.1 http://www.sunuo.org/
on Unix 2.6.18.6, runtime 1.1.4322.2032


Unhandled Exception: System.ArgumentException: path
Parameter name: Empty path.
at System.IO.FileSystemInfo.CheckPath (System.String path) [0x00000]
at System.IO.DirectoryInfo..ctor (System.String path) [0x00000]
at (wrapper remoting-invoke-with-check) System.IO.DirectoryInfo:.ctor (string)
at Server.Bootstrap.Main (System.String[] args) [0x00000]
Vince Lithium
 
Posts: 12
Joined: Sun Jul 13, 2008 1:24 pm

Postby BlueAngel on Tue Jul 15, 2008 9:03 am

Hi Vince,
I guess Max forgot something and there is a small bug (at least in *nix distribution) however here the solution:

Download the source and edit the file Bootstrap.cs, at the line 130 there is a code like this:

Code: Select all
if (baseDirectory == null)
   baseDirectory = Path.GetDirectoryName(Process.GetCurrentProcess().MainModule.FileName);


instead of that code use this one:

Code: Select all
if (baseDirectory == null)
   baseDirectory = System.IO.Directory.GetCurrentDirectory();


Compile and run.
I'm not custom with .NET apis and I'm not sure this is the best solution, for example I read that this API may produce error if multiple instance are thrown becouse it doesn't take the base directory where the process is launched but just where the original .exe is located.
However it will work for you.
If you have more problems just reply.
See you
"A spell, once casted, can be undone. But a secret, once revealed, can never again be kept."
BlueAngel
 
Posts: 62
Joined: Wed Sep 12, 2007 2:47 pm
Location: Italy

Postby Vince Lithium on Tue Jul 15, 2008 2:40 pm

Hi thanks for the response i edited the bootsrap.cs

to compile this in the docs says i have to edit conf.mk and then make

this must be old cause i dont have this in 0.5.1

how do i correctly compile this in debian

been a while for me :?
Vince Lithium
 
Posts: 12
Joined: Sun Jul 13, 2008 1:24 pm

Postby BlueAngel on Tue Jul 15, 2008 5:22 pm

In the version 0.5.1 the makefile should be complete, and also it's a very good script. Just use make and everything will be compiled automatically. Then copy the results from the build directory (be careful: copy both SunUO.exe and SunUO.exe.mdb) to where you use normally SunUO and run it (using run.sh). Usualy I have different directories for the source and the release.
Let me know if everything work.
"A spell, once casted, can be undone. But a secret, once revealed, can never again be kept."
BlueAngel
 
Posts: 62
Joined: Wed Sep 12, 2007 2:47 pm
Location: Italy

Postby Vince Lithium on Tue Jul 15, 2008 5:48 pm

thank you for the reply again the compiler cant seem to make contact at cvs.apache.org atm ill try it again in a bit
Vince Lithium
 
Posts: 12
Joined: Sun Jul 13, 2008 1:24 pm

Postby BlueAngel on Tue Jul 15, 2008 8:55 pm

Oh yes, my apologize: I had the same problem today and forgot to tell you. It's not the compiler but the cvs server of Apache which is having problems (maybe an update).
Download the file from this direct link: log4net
and put it in the download directory, then compile again.
Again, please let me know.
"A spell, once casted, can be undone. But a secret, once revealed, can never again be kept."
BlueAngel
 
Posts: 62
Joined: Wed Sep 12, 2007 2:47 pm
Location: Italy

Postby Vince Lithium on Tue Jul 15, 2008 9:56 pm

One step further :)

ok now one compile error

error CS0006: cannot find metadata file `System.Data.dll'
Compilation failed: 1 error(s), 0 warnings
make: *** [build/SunLogin.exe] Fout 1


( Fout =dutch for Error )
Vince Lithium
 
Posts: 12
Joined: Sun Jul 13, 2008 1:24 pm

Postby BlueAngel on Wed Jul 16, 2008 12:37 pm

Mmm... it seems more a Mono problem then SunUO, if I'm not wrong "System.Data.*" is a core assembly.
Could you pleas post more detailed information like which version of Linux and Mono are you using. where you put your files and how you invoke automake?
I never encountered this kind of problem.
"A spell, once casted, can be undone. But a secret, once revealed, can never again be kept."
BlueAngel
 
Posts: 62
Joined: Wed Sep 12, 2007 2:47 pm
Location: Italy

Postby Vince Lithium on Wed Jul 16, 2008 12:51 pm

debian:/home/lithium/build# mono -V
Mono JIT compiler version 1.9.1 (tarball)
Copyright (C) 2002-2007 Novell, Inc and Contributors. www.mono-project.com
TLS: __thread
GC: Included Boehm (with typed GC)
SIGSEGV: altstack
Notifications: epoll
Architecture: x86
Disabled: none

Debian Etch 2.6.18-6-486

server is at /home/server unpacked all files here and the log4net in map /downloads

just use make to invoke
Vince Lithium
 
Posts: 12
Joined: Sun Jul 13, 2008 1:24 pm

Postby BlueAngel on Wed Jul 16, 2008 2:50 pm

I'm sorry but I don't know what kind of problem it maybe. I think about a library problem, maybe you made a wrong installation of Mono however I'm not custom to Mono and I can't help you to find the problem.
Did you installed mono from source or you used an unofficial package for Debian? I use Fedora which as you may know it's very different from Debian.
The only other solution is that I post this files compiled in my machine but I wish to try to let you compile if possible.
"A spell, once casted, can be undone. But a secret, once revealed, can never again be kept."
BlueAngel
 
Posts: 62
Joined: Wed Sep 12, 2007 2:47 pm
Location: Italy

Postby Vince Lithium on Wed Jul 16, 2008 2:54 pm

debian is the stable etch version mono i installed directly from the mono backport repo i can try to use an older version maybe that will hget me anywhere :) but for the older monos i get a error that i posted on top of this topic .
Vince Lithium
 
Posts: 12
Joined: Sun Jul 13, 2008 1:24 pm

Postby BlueAngel on Wed Jul 16, 2008 3:39 pm

The version of Mono you are using is correct however I don't what it could be, maybe a wrong installation or configuration.
Anyway until we'll have the answer I've attached the files compiled on my machine (32bit, Fedora 9, Mono 1.9.1, kernel 2.6.25).
Both files are compressed with bz2 but forum doesn't allow me to upload files with this extension so I just used the .tar extension.
Let me know if they work.
Attachments
suno.exe.mdb.tar
SunUO.exe.mdb with GetCurrentDirectory modification
(222.8 KiB) Downloaded 2 times
sunuo.exe.tar
SunUO.exe with GetCurrentDirectory modification
(215.81 KiB) Downloaded 2 times
"A spell, once casted, can be undone. But a secret, once revealed, can never again be kept."
BlueAngel
 
Posts: 62
Joined: Wed Sep 12, 2007 2:47 pm
Location: Italy

Postby Vince Lithium on Wed Jul 16, 2008 5:33 pm

Older version of mono
the TileData.mul is in my map had to copy some files to my main folder to

Re-starting SunUO.exe
SunUO Version 0.5.1 http://www.sunuo.org/
on Unix 2.6.18.6, runtime 1.1.4322.2032

2008-07-16 21:29:20,965 WARN library legacy does not exist
2008-07-16 21:29:21,040 INFO Library core verified: 4 items, 0 mobiles
2008-07-16 21:29:21,041 INFO All libraries verified: 4 items, 0 mobiles)
2008-07-16 21:29:21,046 WARN Warning: data file TileData.mul not found
2008-07-16 21:29:21,050 FATAL System.Exception: TileData.mul was not found
at Server.TileData.Configure () [0x0013f] in /home/lithium/src/TileData.cs:288
at Server.Core.Start (Boolean repair) [0x000a8] in /home/lithium/src/Main.cs:407
at Server.Bootstrap.Main (System.String[] args) [0x0025b] in /home/lithium/src/Bootstrap.cs:147
SunUO.exe exited with status 0
Vince Lithium
 
Posts: 12
Joined: Sun Jul 13, 2008 1:24 pm

Postby BlueAngel on Thu Jul 17, 2008 10:18 am

My apologize, can you explain better?
What do you mean with "older version of mono"? That you have a older version? As far as I know 1.9.1 is the lastest.
Or that you revert your Mono with a older one?
Also what do you mean "had to copy some files in my folder"?
Anyway check if paths on ./etc/sunuo.xml are correct and also be carefull because as you surely know Linux is case-sensitive so maybe if SunUO can't find tiledatamul is because the name of the file is "TileData.mul" instead of "tiledata.mul". Try to rename it with lowercase characters.
"A spell, once casted, can be undone. But a secret, once revealed, can never again be kept."
BlueAngel
 
Posts: 62
Joined: Wed Sep 12, 2007 2:47 pm
Location: Italy

Next

Return to Server Support

Who is online

Users browsing this forum: No registered users and 0 guests

cron