RunUO Community

This is a sample guest message. Register a free account today to become a member! Once signed in, you'll be able to participate on this site by adding your own topics and posts, as well as connect with other members through your own private inbox!

MONO Ahead Of Time (AOT) in RunUO

fwiffo

Sorceror
Yes, if you're using runuo under unix you can use AOT (only if you have mono > 3.x, latest actually is 3.2.1)

What is needed:
Modifications to the CORE scripts to integrate Scripts.dll in Server.exe, making a single monolithe executable to run optimizations.

Procedure:
- apply the patch included in this post to your server files, to enable monolithic runuo under mono;
- COPY the Server forlder inside the Scripts folder, also delete the Output folder;
- from the command line run:
mcs -warn:2 -optimize -unsafe -d:MONO -out:RunUO.exe -recurse:Scripts/*.cs -r:System.dll -r:System.Web.dll -r:System.Xml.dll -r:System.Data.dll -r:System.Drawing.dll -r:System.Windows.Forms.dll

then:
mono --aot RunUO.exe
mono-cil-strip RunUO.exe

Finally, to run the server with monolithic core you'll have to do:
mono RunUO.exe -monolith

Done!
 

Attachments

  • mono.patch
    1.5 KB · Views: 0
Top