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!
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!