ArteGordon
Wanderer
very nice! Thanks for getting it done so quickly. I'll put it into the latest update.
ArteGordon said:very nice! Thanks for getting it done so quickly. I'll put it into the latest update.
Asmoug said:Hi.
I had a small issue; if i don't use [addallpoints or "addatt xmlpoints" on at least one character, [topplayers will make the server crash.
to fix this, in the constructor of TopPlayersGump place
around line 2364 in my version.Code:if( attachment == null ) return;
Asmoug said:another thing.
moving away non-partecipants seems to give some troubles ... it moved away NPCs (could be used to escape ?) and moved players to invalid location ("black" areas, over the mountains if made inside a cavern/mine...)
I wondered if it could be used to enter houses, but i didn't check it.
I just commented it out ... I don't think it's really necessary.
Oh, besides this it's still a great work, big thanks!
Asmoug said:Hi.
I had a small issue; if i don't use [addallpoints or "addatt xmlpoints" on at least one character, [topplayers will make the server crash.
to fix this, in the constructor of TopPlayersGump place
Code:Same problem here Here is a Debug crash from XMLPoints. It occured when executing the [TopPlayers command. I just put the system in last night and nobody has had a chance to accumulate any points as of yet. Ill try to duplicate with Debug info. Exception: System.NullReferenceException: Object reference not set to an instance of an object. at Server.Engines.XmlSpawner2.TopPlayersGump..ctor(XmlPoints attachment) in d:\UO\1.0.0\Scripts\_Custom\XMLPoints 1.20\XmlAttachments\XmlPoints.cs:line 2379 at Server.Engines.XmlSpawner2.XmlPoints.TopPlayers_OnCommand(CommandEventArgs e) in d:\UO\1.0.0\Scripts\_Custom\XMLPoints 1.20\XmlAttachments\XmlPoints.cs:line 1081 at Server.Commands.Handle(Mobile from, String text) at Server.Mobile.DoSpeech(String text, Int32[] keywords, MessageType type, Int32 hue) at Server.Network.PacketHandlers.UnicodeSpeech(NetState state, PacketReader pvSrc) at Server.Network.MessagePump.HandleReceive(NetState ns) at Server.Network.MessagePump.Slice() at Server.Core.Main(String[] args)
public TopPlayersGump(XmlPoints attachment) : base( 0,0)
{
if(RankList == null || attachment == null) return;
ArteGordon said:thanks, I'll try to reproduce it as well.
(edit)
ah, I wonder if it is the same bug that asmoug reported a little while ago. That fix will be in the next update but it is not in the current release. That occurred when topplayers was issued when there were players without points attachments. The fix was to test for null attachments.
around line 2358 in xmlpoints.cs
Code:public TopPlayersGump(XmlPoints attachment) : base( 0,0) { if(RankList == null || attachment == null) return;
see if that takes care of it.
Exception:
System.ArgumentNullException: Value cannot be null.
Parameter name: format
at System.String.Format(IFormatProvider provider, String format, Object[] args)
at Server.Engines.XmlSpawner2.ConfirmChallengeGump..ctor(Mobile from, Mobile target)
at Server.Engines.XmlSpawner2.IssueChallengeGump.OnResponse(NetState state, RelayInfo info)
at Server.Network.PacketHandlers.DisplayGumpResponse(NetState state, PacketReader pvSrc)
at Server.Network.MessagePump.HandleReceive(NetState ns)
at Server.Network.MessagePump.Slice()
at Server.Core.Main(String[] args)
AddLabel( 20, 205, 68, String.Format(GetText(target, 200259)) ); // "You have been challenged by"
AddLabel( 20, 225, 68, String.Format(GetText(target, 200260),from.Name) ); // "{0}. Accept?"
AddLabel( 20, 245, 33, String.Format(GetText(target, 200256)) ); // "You will NOT gain points!"
manofwar said:I am having problem with some players going out challenging and get turned down and just keep challenging. Was wondering if there is way to keep track of the challenges to a text file so i can reference that or something like that so i can have proof instead of just someones word that they are doing it? This is the only type of PVP i have on my server and dont want people abusing it. I also dont want people telling me this is happening and start banning people on some elses word if they dont like the person. Any help would be appreciated, Thanks in advance.
public ConfirmChallengeGump(Mobile from, Mobile target) : base ( 0, 0 )
{
if(target == null || from == null) return;
// log all challenges in the Command logs
CommandLogging.WriteLine( from, "{0} {1} challenged {2}", from.AccessLevel, CommandLogging.Format( from ), CommandLogging.Format( target ));