1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Lokai Versioning 2015-01-15

Reduce compile times for new stand-alone scripts

  1. Lokai
    Here is the reason for this change. You won't be able to tell from this below, but the compile time for the C# scripts can take anywhere from 20-30 seconds to several minutes on some systems. It depends on how many customs you have. The part below where it says "Finished with 0 errors, 0 warnings" is the part you wait patiently to appear.

    Code (C#):
    1. ServUO - [http://www.servuo.com] Version 0.5, Build 5469.39357
    2. Publish 54
    3. Core: Running with arguments: -debug
    4. Core: Optimizing for 2 64-bit processors
    5. RandomImpl: CSPRandom (Software)
    6. OpenUO Error: Client files not found.
    7. Scripts: Compiling C# scripts...Finished with: 0 errors, 0 warnings
    8. Scripts: Skipping VB.NET Scripts...done (use -vb to enable)
    9. Scripts: Verifying...
    10. Finished (4196 items, 1003 mobiles, 11 customs) (2.29 seconds)
    In my version of the Server, I compile the standard scripts separately from my customs, so the result always looks like the below output. The standard scripts are cached, so it does not need to recompile them. Since my customs are only a fraction of what is in the Core, my compile time is usually about 2-3 seconds. It includes 5 folders, so I can vary how many different compilings I do.

    Code (C#):
    1. ServUO - [http://www.servuo.com] Version 0.5, Build 5469.39357
    2. Publish 54
    3. Core: Running with arguments: -debug -lv1
    4. Core: Optimizing for 2 64-bit processors
    5. RandomImpl: CSPRandom (Software)
    6. OpenUO Error: Client files not found.
    7. Scripts: Compiling C# scripts...done (cached)
    8. Scripts: Skipping VB.NET Scripts...done (use -vb to enable)
    9. Scripts: Compiling Lokai Version-1 C# scripts...Finished with: 0 errors, 0 warnings
    10. Scripts: Verifying...
    11. Finished (4196 items, 1003 mobiles, 11 customs) (2.29 seconds)
    If I decide that I am done "testing" I can always move the scripts into the standard Customs folder and let it recompile. The world doesn't care which .dll file has the scripts, as long as they are still there.