Getting this error:

Code:
ServUO - [http://www.servuo.com] Version 0.5, Build 6242.14638
Core: Optimizing for 4 64-bit processors
RandomImpl: CSPRandom (Software)
Core: Loading config...
Scripts: Compiling C# scripts...Failed with: 1 errors, 0 warnings
Errors:
+ Custom Scripts/Vita-Nex/Modules/Toolbar/Entries/ToolbarCommand.cs:
    CS0104: Line 72: 'Point' is an ambiguous reference between 'System.Drawing.P
oint' and 'Server.Commands.Point'
Scripts: One or more scripts failed to compile or no script files were found.
- Press return to exit, or R to try again.

As of yesterday, running ServUO SVN #1790
 
I'm unsure what Server.Commands.Point is supposed to be, but it conflicts with conventional .NET supplied types and should be re-named to something else.
 
I'm correct in assuming that VNC 4.0 is just a drop and go install, right? I didn't see any install instructions anywhere, but I figured that's because there really didn't need to be any?
 
Exactly, it is 100% drag/drop. It just seems tht recent ServUO repository changes have caused an issue with compatibility.

The ServUO change in this case should be fixed, because the namespace and name used is ambiguous.

Where is Server.Commands.Point located?
 
I wasn't sure if you were asking me this, Voxpire. My C# / coding knowledge is very limited (almost nil) However, after looking back on this thread, there is a 'point' script where you can use the [point command to target an object and then it shows the other players where your are 'pointing.' I'm going to try and remove it and see if that changes anything.
[doublepost=1487081914][/doublepost]Yep. That was it. I took that script out, put VNC in and rebooted after I updated the SVN. (oddly enough, the first time I booted up I got a crash... but no log... and then the second time it worked just fine.)

Here was the script that was causing the issue:

Code:
using System;
using System.Text;
using Server;
using Server.Network;
using Server.Targeting;
using Server.Items;

namespace Server.Commands
{
    public class Point
    {
        // Use [Point to point at anything you wish
        public static void Initialize()
        {
            CommandSystem.Register( "Point", AccessLevel.Player, new CommandEventHandler( Point_OnCommand ) );
        }

        public static void Point_OnCommand( CommandEventArgs e )
        {
            Mobile from = e.Mobile;
            from.Target = new PointTarget();
        }
    }
  
    public class PointTarget : Target
    {
        public PointTarget() : base( -1, true, TargetFlags.None )
        {
        }
       
        public PointTarget(Mobile from, Item targeted) : base( -1, true, TargetFlags.None )
        {
            from.PublicOverheadMessage(MessageType.Emote ,1153, true, from.Name.ToString() + " Points There");
            targeted.PublicOverheadMessage(MessageType.Emote ,1153,true, from.Name.ToString() + " Points Here");    
        }
       
        protected override void OnTarget( Mobile from, object targeted )
        {
            if ( from.Name == null)
            {
                from.SendMessage("Your name is not valid fix it now");
                return;
            }
          
            if ( targeted is Mobile )
            {
                Mobile m_target = (Mobile)targeted;
                from.PublicOverheadMessage(MessageType.Emote ,1153, true,"*" + from.Name + " Points at*");
               
                if ( m_target.Name != null)
                    m_target.PublicOverheadMessage(MessageType.Emote ,1153,true, "*" + m_target.Name + "*");
                else
                    m_target.PublicOverheadMessage(MessageType.Emote ,1153,true,"*"+ from.Name + " whatever it is!*");
            }
            else if ( targeted is Item )
            {
                Item m_target = (Item)targeted;
                from.PublicOverheadMessage(MessageType.Emote ,1153, true,"*" + from.Name + " Points at*");
                if (m_target.Name != null)
                    m_target.PublicOverheadMessage(MessageType.Emote ,1153,true, "* " + m_target.Name + "*");
                else
                    m_target.PublicOverheadMessage(MessageType.Emote ,1153,true, "*Points Here*");
            }
            else
            {
                IPoint3D p = targeted as IPoint3D;

                if ( p != null )
                {
                    Map map = from.Map;
                    Item pointer = new Item (8302);
                    Point3D m_point = new Point3D(p);
                    pointer.MoveToWorld(m_point,map);
                    pointer.Movable = false;
                    PointTimer p_time = new PointTimer(pointer);
                    from.PublicOverheadMessage(MessageType.Emote ,1153, true, "*" + from.Name.ToString() + " Points at*");
                    pointer.PublicOverheadMessage(MessageType.Emote ,1153, true, "*This Spot*" );
                }
                else
                {
                    from.SendMessage( "Cannot point at this for some reason!" );
                }
            }    
        }
    }
   
    public class PointTimer : Timer
    {
        private Item m_item;

        public PointTimer( Item m) : base( TimeSpan.FromSeconds( 5.0 ) )// Change the Message delay here for static tiles
        {
            m_item = m;
            Start();
        }

        protected override void OnTick()
        {
            m_item.Delete();
            Stop();
        }
    }
}

Now I'm eager to see what all VNC can do now that I got it installed! Thanks for all your help.
 
IMO, the 'Point' command class should be named 'PointCommand'.

This will be changed in the ServUO repo.

Thanks for getting back to me on it :)
 
Very well and install the Vita-Nex Core 4.0.0.0 now someone tells me so it works what is the difference in using it and not using it?
 
Back