OP

Tingan

Tingan
Initiate
ServUO Version
Publish 57
Ultima Expansion
Time Of Legends
When I add a new .cs file to the .../Scripts folder the console shows any errors until I fix them, but once they are error free, their effect isn't seen in-game.

When I edit an existing .cs file, those effects are seen.

Please could someone explain what is wrong, and how I can fix it?

Thank you in advance 🙂
 
In the console that I am running from C:\tinjayuo\ServUO-57.4.1\ServUO.exe, it shows the output below. The scripts I am amending, and storing new ones, are in: C:\tinjayuo\ServUO-57.4.1\Scripts. The scripts are getting compiled every time. Just not executed?

Core: Compiling scripts...
Determining projects to restore...
All projects are up-to-date for restore.
Ultima -> C:\tinjayuo\ServUO-57.4.1\Ultima\bin\Debug\Ultima.dll
Server -> C:\tinjayuo\ServUO-57.4.1\Server\bin\Debug\ServUO.exe
Scripts -> C:\tinjayuo\ServUO-57.4.1\Scripts\bin\Debug\Scripts.dll

Build succeeded.
0 Warning(s)
0 Error(s)
 
Thank you for your support.

I ran winrelease.bat, but still the same result; it compiles but no effect in game.

It's getting late here, but thanks again for the help. If you can suggest anything else, please go ahead and I'll try them tomorrow 🙂
 
Housing is a big system, so without knowing what you were trying to edit/do with housing, hard to say if what you added even works, just because stuff compiles doesn't always means it works! Also, existing houses unless update via code will not have the code applied to them, so you'd need to test with a newly placed house and see if your edits/script work as intended!
 
Here's one I tried, to test, created in the /Scripts/Commands folder and named WalkNorth.cs

using Server;
using Server.Commands;
using Server.Mobiles;

namespace Server.Commands
{
public class WalkNorth
{
public static void Initialize()
{
CommandSystem.Register("walknorth", AccessLevel.Player, new CommandEventHandler(OnWalkNorth));
}

private static void OnWalkNorth(CommandEventArgs e)
{
Mobile m = e.Mobile;

// Walk north 5 squares
for (int i = 0; i < 5; i++)
{
// Direction.North = 0x00
m.Direction = Direction.North;
m.Move(Direction.North);
}
}
}
}
 

Donations

Total amount
$30.00
Goal
$500.00

Shards

Back