TMSTKSBK said:eeeeh...
After reading the code, the only thing I can think of is that somehow you're referencing a profile that isn't correctly loaded. And I don't know how you're doing that. You've got talent . How were you attempting to access the selector gump (from a SkillStone/Ticket, from the Main Menu, from ....)?
Another possibility is that there are no profiles, leading to an empty (unassigned) ProfileNames array... Were you actively using Profiles, or did you have it in the non-profile based mode?
The only variable that *can* be null is the SkillProfileHelper.ProfileNames[x]. When the server starts, do you see something like: " - TMSS|3 Loading Skill Profile: Default Profile.skp"? There may be multiple lines like this, but that one should DEFINITELY show up. If it doesn't...well...that's not good.
If you could run it in debug mode, I'd greatly appreciate it (gives line numbers). If you dunno how to run in debug, see the "Stuff to Try and Know..." sticky in the Script Support forum here: http://www.runuo.com/forums/showthread.php?t=60709
Section 1.
So, to boil it down:
*How were you getting to the gump?
*Can you run this in debug, using instructions here: http://www.runuo.com/forums/showthread.php?t=60709
* Do you get a line like: " - TMSS|3 Loading Skill Profile: Default Profile.skp" in the console when you start the server?
lol already turned debug off but it still showed the load and save write lines, but that has been solved I just opened up some of the files till i found the load and save methods and commented out the write lines there and it all works great !!TMSTKSBK said:hahahahahahaa...
You'll never disable them all that way. (there are probably a few hundred)
Open SkillSettings.cs, and scroll down to the bottom where it says "Debug", find the variable called "debugMode" (or DebugMode), and set it to false.
[B]Server Crash Report
===================
RunUO Version 1.0.0, Build 36918
Operating System: Microsoft Windows NT 5.1.2600.0
.NET Framework: 1.1.4322.2032
Time: 5/23/2006 10:52:01 PM
Mobiles: 25
Items: 4637
Clients:
- Count: 1
+ 127.0.0.1: (account = LordOda) (mobile = 0x92F 'Lichking')
Exception:
System.NullReferenceException: Object reference not set to an instance of an object.
at Server.TMSS.SkillProfileSelectGump.MakeGump()
at Server.Items.SkillStone.OnDoubleClick(Mobile from)
at Server.Mobile.Use(Item item)
at Server.Network.PacketHandlers.UseReq(NetState state, PacketReader pvSrc)
at Server.Network.MessagePump.HandleReceive(NetState ns)
at Server.Network.MessagePump.Slice()
at Server.Core.Main(String[] args)[/B]
[B]Server Crash Report
===================
RunUO Version 1.0.0, Build 36918
Operating System: Microsoft Windows NT 5.1.2600.0
.NET Framework: 1.1.4322.2032
Time: 5/26/2006 1:13:48 AM
Mobiles: 20
Items: 4368
Clients:
- Count: 1
+ 127.0.0.1: (account = LordOda) (mobile = 0x92F 'Lichking')
Exception:
System.NullReferenceException: Object reference not set to an instance of an object.
at Server.TMSS.SkillProfileSelectGump.MakeGump()
at Server.Items.SkillStone.OnDoubleClick(Mobile from)
at Server.Mobile.Use(Item item)
at Server.Network.PacketHandlers.UseReq(NetState state, PacketReader pvSrc)
at Server.Network.MessagePump.HandleReceive(NetState ns)
at Server.Network.MessagePump.Slice()
at Server.Core.Main(String[] args)[/B]
public void MakeGump()
{
Closable=true;
Disposable=true;
Dragable=true;
Resizable=false;
AddPage(0);
AddBackground( 45, 25, 470, 315, 5120 );
AddImage( 0, 0, 10440 );
AddHtml( 150, 40, 250, 30, "<basefont color=#FFFFFF>TMSS|3 - Please select a Profile</font>", false, false );
AddButton( 350, 309, 5214, 248, 3600, GumpButtonType.Reply, 0 ); //New Profile Button
AddLabel( 355, 308, 0, "New Profile" );
int numpages = SkillProfileHelper.ProfileNames.Length/20;
if( SkillProfileHelper.ProfileNames.Length%10 != 0 )
{
numpages++;
}
int numprof = SkillProfileHelper.ProfileNames.Length;
for( int num = 0; num < numpages; num++ )
{
AddPage( num+1 );
if( numprof - (num+1)*20 > 0 )
{
AddButton( 285, 310, 9702, 9703, 0, GumpButtonType.Page, num+2); //Next Page
for( int i = 0; i < 20; i++ )
{
AddButton( (i>10?300:75), (i>10?i-10:i)*20+102, 1122, 1124, (num+1)*1000+i, GumpButtonType.Reply, 0 );
AddLabel( (i>10?305:80), (i>10?i-10:i)*20+100, 0, SkillProfileHelper.ProfileNames[i] );
}
}
else
{
for( int i = 0; i < numprof - ( ( num )*20 ); i++)
{
AddButton( (i>10?300:75), (i>10?i-10:i)*20+102, 1122, 1124, (num+1)*1000+i, GumpButtonType.Reply, 0 );
AddLabel( (i>10?305:80), (i>10?i-10:i)*20+100, 0, SkillProfileHelper.ProfileNames[i] );
}
}
if( num > 0 )
{
AddButton( 260, 310, 9706, 9707, 0, GumpButtonType.Page, num); //Prev Page
}
}
}