Hi,
I am trying to get XML Spawner to work with RunUO but I get an error and two warnings when compiling which seems to indicate that a date variable is the incorrect data type. I have tried this on my live shard and also on a clean 2.4 install. It appears to point at one of the code areas changed in the last update. I'm using the latest XML Spawner 2 from the GitHub. Am I doing something wrong or is this a bug in the latest release? What can I do to make it compile?
Thanks

Code:
RunUO - [www.runuo.com] Version 2.4, Build 5043.26759
Core: Running on .NET Framework Version 4.0.30319
Core: Optimizing for 8 64-bit processors
RandomImpl: CSPRandom (Software)
Scripts: Compiling C# scripts...failed (3 errors, 1 warnings)
Warnings:
+ Misc/Assistants.cs:
  CS0162: Line 99: Unreachable code detected
  CS0162: Line 155: Unreachable code detected
Errors:
+ Customs/XmlSpawner Core/XmlAttach/XmlAttach.cs:
  CS0019: Line 2375: Operator '>=' cannot be applied to operands of type 'Syst
em.DateTime' and 'long'
Scripts: One or more scripts failed to compile or no script files were found.
- Press return to exit, or R to try again.
 
You should try it with ServUO, works great. :D

If not, are you using the latest version of XmlSpawner, as well as the latest version of Mark's RunUO from here: https://github.com/runuo/runuo ?

I'm pretty sure those issues were fixed in the latest versions.
 
If you could post the section of that script the error is referring to, it would help a lot. Use the code tags though.
 
His error is here -which has changed I just don't remember the fix @Ravenwolfe would know :)
  1. CS0019: Line 2375: Operator '>=' cannot be applied to operands of type 'Syst
  2. em.DateTime' and 'long'
 
Change that line to:

if (from.AccessLevel >= AccessLevel.GameMaster || Core.TickCount >= from.NextActionTime)
 
Sorry I should have posted back here that this worked. Thanks Ravenwolfe.

For anyone else with this problem, the file is
\Scripts\Customs\XmlSpawner Core\XmlAttach\XmlAttach.cs

For me it is around line 2375
 
Back