alchemy

Member
ServUO Version
Publish 57
Ultima Expansion
Mondain's Legacy
Dear all,

I have a strange behavior, using the latest ServUO release.
When I change something in ./Scripts, let's say for example MapDefinition.cs, I have to recompile all using _winrelease.bat instead of just running ServUO.exe and get the recompiliation of my scripts changes.

ServUO.exe does not capture my mofifications in ./Scripts

Do you have a suggestions to overcome this?

Alchemy
 
You have Pub 57 listed? Is that accurate or are you using Pub 58? Because with pub 58, you do require a recompile unlike 57 where it is done on start up!
 
Hello voxpire,

I already tried to switch to "False" or "True" or "false" or "true" the only parameter called "Dynamic" of the compiler config, which do the same behavior: touching a file does not trigger the re-compilation of the file. I've tried on another WIndows machine with other dotnet, same result unfortunately.


Compiler.cfg:
# Forces scripts to be compiled at runtime.
# This is a legacy feature that was originally provided by the core.
Dynamic=True

My case seems weird...

Even adding this in the Scripts.csproj didn't make the compiler detected the touched file:
C#:
    <ItemGroup> <Compile Include="**/*.cs" /> </ItemGroup>
 
Last edited:
Both versions have a Compiler.cfg
Maybe I am confused, I know they have to be compiled to start, but with 57, we can edit a script and it is applied on next restart, no need to recompile, where as 58, we need to recompile to implement the script edits! Did you change 57 to work like 58?
 
Hello Wilson,

Indeed, I have the pubs57 (even my directory name is ServUO-pub57)

To make sure the few scripts changes I've done doesn't interact with the identified incident, I've redo from scratch with a clean download, compiled all and start server.

Then I touched the Scripts/MapDefinitions.cs by adding a console text message "xxx".

Launching again ServUO the changed cs didn't get compiled.

Recompiling all by using _winrelease.bat, the change happens and the console text message "xxx" came.

C#:
    public class MapDefinitions
    {
        public static void Configure()
        {
            System.Console.WriteLine("XXX");

I'm very surprise I am the only one reprting this on Windows (tested on a W10 and W11, 2 different hw) since the Pub57 has been released. Maybe a dotnet consideration I missed? Or no one uses Pub57 on Windows since?


INI:
C:\>dotnet --list-sdks
9.0.305 [C:\Program Files\dotnet\sdk]

C:\>dotnet --list-runtimes
Microsoft.AspNetCore.App 5.0.17 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
Microsoft.AspNetCore.App 9.0.9 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
Microsoft.NETCore.App 6.0.32 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
Microsoft.NETCore.App 9.0.9 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
Microsoft.WindowsDesktop.App 6.0.32 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App]
Microsoft.WindowsDesktop.App 9.0.9 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App]
 

Attachments

  • capture.png
    capture.png
    56 KB · Views: 5
Last edited:

Active Shards

Donations

Total amount
$0.00
Goal
$500.00
Back