I get the following error when I try to compile the server

error CS2001: Source file `r:System,System.Configuration.Install,System.Data,System.Drawing,System.EnterpriseServices,System.Management,System.Security,System.ServiceProcess,System.Web,System.Web.Services,System.Windows.Forms,System.Xml,OpenUO.Core.dll,OpenUO.Ultima.dll,OpenUO.Ultima.Windows.Forms.dll,SevenZipSharp.dll' could not be found
Server/ScriptCompiler.cs(816,35): error CS1525: Unexpected symbol `x'
Server/ScriptCompiler.cs(817,35): error CS1525: Unexpected symbol `y'
Server/ScriptCompiler.cs(872,45): error CS1525: Unexpected symbol `sensitive'
Server/ScriptCompiler.cs(885,56): error CS1525: Unexpected symbol `insensitive'
Compilation failed: 5 error(s), 0 warnings

Running Ubuntu 14.04 on a Dell PowerEdge R420 (don't think any sys info is important at this stage, if you need to know just ask and I'll post it)

I'm no C# Expert at all (far from it) but I checked the code and monoDevelop flags these lines as errors, but I cant seem to figure out exactly WHY they are errors, I have not modified any scripts, this is a baseline server run.

any help would be appreciated.
Thanks
 
well not sure if you have to update, but tbh it wouldnt hurt to update your ubuntu version too. The thing is that your mono version only supports old C# language features, the new ones will throw errors.
 
I'll update and try again, I've been meaning to reconfigure my RAID anyway, so this will give me an opportunity to do that at the same time. I'll let you know what happens, hopefully it works out. Either way I'll post the results here
Post automatically merged:

Quick question while I make this USB, is this guide a good resource to follow to get it running still? I cant seem to find anything newer.

 
Last edited:
Well installing mono, grabbing the server, having the client files and pointing at them inside the datapath.cfg is enough normally.

Then you just open the terminal and write make, wich uses the makefile and you would be set
 
Well installing mono, grabbing the server, having the client files and pointing at them inside the datapath.cfg is enough normally.

Then you just open the terminal and write make, wich uses the makefile and you would be set
ok, im close. getting mono to update to 6 was annoying but i got it. however, I get a bunch of errors when I try to run the server. My guess is that the syntax of my command is wrong, but there may be other issues as well. I'll paste the result below

cadaver1@cadaver1:~/ServUO-56.1$ mcs -sdk:4.5 -out:ServUO.exe -d:MONO -d:ServUO -unsafe -nowarn:219 -recurse:Server/*.cs
Server/SpawnArea.cs(16,14): error CS0234: The type or namespace name `Drawing' does not exist in the namespace `System'. Are you missing `System.Drawing' assembly reference?
Server/SpawnArea.cs(17,14): error CS0234: The type or namespace name `Drawing' does not exist in the namespace `System'. Are you missing `System.Drawing' assembly reference?
Server/Item.cs(5,14): error CS0234: The type or namespace name `Drawing' does not exist in the namespace `System'. Are you missing `System.Drawing' assembly reference?
Server/Item.cs(6,14): error CS0234: The type or namespace name `Drawing' does not exist in the namespace `System'. Are you missing `System.Drawing' assembly reference?
Server/Items/VirtualCheck.cs(3,14): error CS0234: The type or namespace name `Drawing' does not exist in the namespace `System'. Are you missing `System.Drawing' assembly reference?
Server/SpawnArea.cs(28,27): error CS0246: The type or namespace name `Bitmap' could not be found. Are you missing an assembly reference?
Server/SpawnArea.cs(168,11): error CS0246: The type or namespace name `Bitmap' could not be found. Are you missing an assembly reference?
Server/SpawnArea.cs(188,10): error CS0246: The type or namespace name `Bitmap' could not be found. Are you missing an assembly reference?
Server/SpawnArea.cs(202,10): error CS0246: The type or namespace name `Bitmap' could not be found. Are you missing an assembly reference?
Server/SpawnArea.cs(262,53): error CS0246: The type or namespace name `BitmapData' could not be found. Are you missing an assembly reference?
Server/Item.cs(1064,23): error CS0246: The type or namespace name `Bitmap' could not be found. Are you missing an assembly reference?
Server/Item.cs(1083,36): error CS0246: The type or namespace name `Bitmap' could not be found. Are you missing an assembly reference?
Server/Item.cs(1088,23): error CS0246: The type or namespace name `Rectangle' could not be found. Are you missing an assembly reference?
Server/Item.cs(1095,23): error CS0246: The type or namespace name `Size' could not be found. Are you missing an assembly reference?
Compilation failed: 14 error(s), 0 warnings
 
ok, getting closer. I got past the last issue (Wine needed to be updated) now I get the following output

mcs -target:library -out:`pwd`/Ultima.dll -r:System.Drawing.dll -nowarn:0618,0219,0414,1635 -d:MONO -d:ServUO -d:NEWTIMERS -nologo -optimize -unsafe -recurse:`pwd`/Ultima/*.cs
mcs -win32icon:`pwd`/Server/servuo.ico -r:`pwd`/Ultima.dll,System.Drawing.dll -nowarn:0618,0219,0414,1635 -target:exe -out:`pwd`/ServUO.exe -d:MONO -d:ServUO -d:NEWTIMERS -nologo -optimize -unsafe -recurse:`pwd`/Server/*.cs
echo "#!/bin/sh" > `pwd`/ServUO.sh
echo "mono `pwd`/ServUO.exe" >> `pwd`/ServUO.sh
chmod a+x `pwd`/ServUO.sh
sed -i.bak -e 's/<!--//g; s/-->//g' ServUO.exe.config
`pwd`/ServUO.sh
ServUO - [https://www.servuo.com] Version 0.5, Build 7265.28237 - Build on 11/22/2019 3:41:14 PM UTC - Release
Core: Running with arguments: -noconsole
Core: Optimizing for 24 64-bit processors
Core: Unix environment detected
Core: Compiled for MONO and running on 6.4.0.198 (tarball Tue Sep 24 01:20:06 UTC 2019)
RandomImpl: SimpleRandom (Software)
Core: Loading config...
Scripts: Compiling C# scripts...Finished with: 0 errors, 4 warnings
Warnings:
+ Misc/Email.cs:
CS0618: Line 36: `System.Net.Mail.SmtpClient' is obsolete: `SmtpClient and its network of types are poorly designed, we strongly recommend you use https://github.com/jstedfast/MailKit and https://github.com/jstedfast/MimeKit instead'
CS0618: Line 50: `System.Net.Mail.SmtpClient' is obsolete: `SmtpClient and its network of types are poorly designed, we strongly recommend you use https://github.com/jstedfast/MailKit and https://github.com/jstedfast/MimeKit instead'
+ Services/Reports/Rendering/HtmlRenderer.cs:
CS0618: Line 194: `System.TimeZone' is obsolete: `System.TimeZone has been deprecated. Please investigate the use of System.TimeZoneInfo instead.'
CS0618: Line 194: `System.TimeZone' is obsolete: `System.TimeZone has been deprecated. Please investigate the use of System.TimeZoneInfo instead.'
CS0618: Line 243: `System.TimeZone' is obsolete: `System.TimeZone has been deprecated. Please investigate the use of System.TimeZoneInfo instead.'
CS0618: Line 243: `System.TimeZone' is obsolete: `System.TimeZone has been deprecated. Please investigate the use of System.TimeZoneInfo instead.'
+ Services/Town Cryer/Gumps/TownCryerGuildGump.cs:
CS0618: Line 38: `System.TimeZone' is obsolete: `System.TimeZone has been deprecated. Please investigate the use of System.TimeZoneInfo instead.'
+ Services/Town Cryer/Gumps/CreateGuildEntryGump.cs:
CS0618: Line 51: `System.TimeZone' is obsolete: `System.TimeZone has been deprecated. Please investigate the use of System.TimeZoneInfo instead.'
Scripts: Verifying...
Finished (5780 items, 1353 mobiles, 3 customs) (1.87 seconds)
Config: Warning, using default value for DataPath.CustomPath
Enter the Ultima Online directory:
> /home/cadaver1/uoclassic/
DataPath: /home/cadaver1/uoclassic/
Regions: Loading...done
World: Loading...
...done (0 items, 0 mobiles, 0 customs) (0.02 seconds)
tiledata.mul was not found
Make sure your Scripts/Misc/DataPath.cs is properly configured
After pressing return an exception will be thrown and the server will terminate
Error:
System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.TypeInitializationException: The type initializer for 'Server.TileData' threw an exception. ---> System.Exception: TileData: not found
at Server.TileData..cctor () [0x0039e] in <2a7ab98da6524b0897c56d58390ec1c2>:0
--- End of inner exception stack trace ---
at Server.Multis.HouseTeleporterTile.Initialize () [0x00000] in <6b22e6ed6a3243dfb855fe5470855b72>:0
at (wrapper managed-to-native) System.Reflection.RuntimeMethodInfo.InternalInvoke(System.Reflection.RuntimeMethodInfo,object,object[],System.Exception&)
at System.Reflection.RuntimeMethodInfo.Invoke (System.Object obj, System.Reflection.BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x0006a] in <285579f54af44a2ca048dad6be20e190>:0
--- End of inner exception stack trace ---
at System.Reflection.RuntimeMethodInfo.Invoke (System.Object obj, System.Reflection.BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00083] in <285579f54af44a2ca048dad6be20e190>:0
at System.Reflection.MethodBase.Invoke (System.Object obj, System.Object[] parameters) <0x7f41f85fe810 + 0x00040> in <285579f54af44a2ca048dad6be20e190>:0
at Server.ScriptCompiler.Invoke (System.String method) [0x00092] in <2a7ab98da6524b0897c56d58390ec1c2>:0
at Server.Core.Main (System.String[] args) [0x00647] in <2a7ab98da6524b0897c56d58390ec1c2>:0
This exception is fatal, press return to exit

Killed
Makefile:19: recipe for target 'run' failed
make: *** [run] Error 137

So I checked my DataPath.cfg and it is set to:
# Uncomment this line and set it to the path of the client files to set a
# custom data path. Otherwise ServUO will look for the client in the default
# Windows installation directories. Note that this is *required* when running
# on non-Windows systems.
CustomPath=/home/cadaver1/uoclassic/

Updated the HouseTeleporterTiles.cs and tried again and got this output error:

ServUO - [https://www.servuo.com] Version 0.5, Build 7265.28237 - Build on 11/22/2019 3:41:14 PM UTC - Release
Core: Running with arguments: -noconsole
Core: Optimizing for 24 64-bit processors
Core: Unix environment detected
Core: Compiled for MONO and running on 6.4.0.198 (tarball Tue Sep 24 01:20:06 UTC 2019)
RandomImpl: SimpleRandom (Software)
Core: Loading config...
Scripts: Compiling C# scripts...Finished with: 0 errors, 4 warnings
Warnings:
+ Misc/Email.cs:
CS0618: Line 36: `System.Net.Mail.SmtpClient' is obsolete: `SmtpClient and its network of types are poorly designed, we strongly recommend you use https://github.com/jstedfast/MailKit and https://github.com/jstedfast/MimeKit instead'
CS0618: Line 50: `System.Net.Mail.SmtpClient' is obsolete: `SmtpClient and its network of types are poorly designed, we strongly recommend you use https://github.com/jstedfast/MailKit and https://github.com/jstedfast/MimeKit instead'
+ Services/Reports/Rendering/HtmlRenderer.cs:
CS0618: Line 194: `System.TimeZone' is obsolete: `System.TimeZone has been deprecated. Please investigate the use of System.TimeZoneInfo instead.'
CS0618: Line 194: `System.TimeZone' is obsolete: `System.TimeZone has been deprecated. Please investigate the use of System.TimeZoneInfo instead.'
CS0618: Line 243: `System.TimeZone' is obsolete: `System.TimeZone has been deprecated. Please investigate the use of System.TimeZoneInfo instead.'
CS0618: Line 243: `System.TimeZone' is obsolete: `System.TimeZone has been deprecated. Please investigate the use of System.TimeZoneInfo instead.'
+ Services/Town Cryer/Gumps/TownCryerGuildGump.cs:
CS0618: Line 38: `System.TimeZone' is obsolete: `System.TimeZone has been deprecated. Please investigate the use of System.TimeZoneInfo instead.'
+ Services/Town Cryer/Gumps/CreateGuildEntryGump.cs:
CS0618: Line 51: `System.TimeZone' is obsolete: `System.TimeZone has been deprecated. Please investigate the use of System.TimeZoneInfo instead.'
Scripts: Verifying...
Finished (5780 items, 1353 mobiles, 3 customs) (1.84 seconds)
DataPath: /home/cadaver1/uoclassic/
Regions: Loading...done
World: Loading...
...done (0 items, 0 mobiles, 0 customs) (0.02 seconds)
tiledata.mul was not found
Make sure your Scripts/Misc/DataPath.cs is properly configured
After pressing return an exception will be thrown and the server will terminate
Error:
System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.TypeInitializationException: The type initializer for 'Server.TileData' threw an exception. ---> System.Exception: TileData: not found
at Server.TileData..cctor () [0x0039e] in <2a7ab98da6524b0897c56d58390ec1c2>:0
--- End of inner exception stack trace ---
at Server.Multis.HouseTeleporterTile.Initialize () [0x00000] in <6b22e6ed6a3243dfb855fe5470855b72>:0
at (wrapper managed-to-native) System.Reflection.RuntimeMethodInfo.InternalInvoke(System.Reflection.RuntimeMethodInfo,object,object[],System.Exception&)
at System.Reflection.RuntimeMethodInfo.Invoke (System.Object obj, System.Reflection.BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x0006a] in <285579f54af44a2ca048dad6be20e190>:0
--- End of inner exception stack trace ---
at System.Reflection.RuntimeMethodInfo.Invoke (System.Object obj, System.Reflection.BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00083] in <285579f54af44a2ca048dad6be20e190>:0
at System.Reflection.MethodBase.Invoke (System.Object obj, System.Object[] parameters) <0x7f7dda9fe810 + 0x00040> in <285579f54af44a2ca048dad6be20e190>:0
at Server.ScriptCompiler.Invoke (System.String method) [0x00092] in <2a7ab98da6524b0897c56d58390ec1c2>:0
at Server.Core.Main (System.String[] args) [0x00647] in <2a7ab98da6524b0897c56d58390ec1c2>:0
This exception is fatal, press return to exit

Killed
Makefile:19: recipe for target 'run' failed
make: *** [run] Error 137

And I'm out of ideas. any Help would be appreciated. Thanks
 
Fixed

Ran client update **again!** and it started after new patch download
Post automatically merged:

ok so [createworld resulted in the following:

Crash:
Server Crash Report
===================

ServUO Version 0.5, Build 7266.1437
Operating System: Unix 4.15.0.70
.NET Framework: 4.0.30319.42000
Time: 11/23/2019 7:01:24 AM
Mobiles: 116
Items: 2561
Exception:
System.DllNotFoundException: Kernel32 assembly:<unknown assembly> type:<unknown type> member:(null)
  at (wrapper managed-to-native) Server.FileOperations.CreateFile(string,int,System.IO.FileShare,intptr,System.IO.FileMode,int,intptr)
  at Server.FileOperations.OpenSequentialStream (System.String path, System.IO.FileMode mode, System.IO.FileAccess access, System.IO.FileShare share) [0x00040] in <aba37def4fdd48f7b9e4b39e94dc09e6>:0
  at Server.SequentialFileWriter..ctor (System.String path, Server.SaveMetrics metrics) [0x0001e] in <aba37def4fdd48f7b9e4b39e94dc09e6>:0
  at (wrapper remoting-invoke-with-check) Server.SequentialFileWriter..ctor(string,Server.SaveMetrics)
  at Server.ParallelSaveStrategy.OpenFiles () [0x00000] in <aba37def4fdd48f7b9e4b39e94dc09e6>:0
  at Server.ParallelSaveStrategy.Save (Server.SaveMetrics metrics, System.Boolean permitBackgroundWrite) [0x00007] in <aba37def4fdd48f7b9e4b39e94dc09e6>:0
  at Server.World.Save (System.Boolean message, System.Boolean permitBackgroundWrite) [0x00117] in <aba37def4fdd48f7b9e4b39e94dc09e6>:0
  at Server.Misc.AutoSave.Save (System.Boolean permitBackgroundWrite) [0x00035] in <d1d31b28320b441a94fdb8f9ff86db8e>:0
  at Server.Misc.AutoSave.Save () [0x00000] in <d1d31b28320b441a94fdb8f9ff86db8e>:0
  at Server.Timer+DelayCallTimer.OnTick () [0x0000b] in <aba37def4fdd48f7b9e4b39e94dc09e6>:0
  at Server.Timer.Slice () [0x00047] in <aba37def4fdd48f7b9e4b39e94dc09e6>:0
  at Server.Core.Main (System.String[] args) [0x006e1] in <aba37def4fdd48f7b9e4b39e94dc09e6>:0

Clients:
- Count: 1
+ 192.168.50.87: (account = AvrilCadaver) (mobile = 0x74 'Avril Cadaver')

stuck but still working on it, any help would be appriciated
 
Last edited:
Hmm thats a tough one, normally you didnt need wine for the server, and this error could be because of wine too.

The issue befor with the bitmap stuff? I think thats the result of the honesty system.
 
Hmm thats a tough one, normally you didnt need wine for the server, and this error could be because of wine too.

The issue befor with the bitmap stuff? I think thats the result of the honesty system.
So I disabled honesty and tried again, same result after create world or [save

I'm thinking it's because the client save files (documents\Electronic Arts\ ) file path has spaces. If I remove the spaces how do I make the server look in the new file path? Would I add a second line to Datapath.cfg with the new client save location?
 
+ Custom/MetaPets/UI/MetaStoneUI.cs:
CS0234: Line 5: The type or namespace name 'EventScores' does not exist in the namespace 'Server.Engines' (are you missing an assembly reference?)
CS0246: Line 20: The type or namespace name 'EventType' could not be found (are you missing a using directive or an assembly reference?)
Scripts: One or more scripts failed to compile or no script files were found.

Iv got this one error that is keeping me from compiling. anyone know a fix?
 
I ran into "Scripts: One or more scripts failed to compile or no script files were found." error too after an OS update caused an abrupt reboot.

I was unable to solve mine and ended up doing a mix role back (snap shot of the server + latest natural OS backup).
 
Back