Go Back   RunUO - Ultima Online Emulation > RunUO > FAQ Forum

FAQ Forum A place to find answers to the most frequently asked questions, and a place to post said answers. Do NOT use this forum to ask questions.

Reply
 
Thread Tools Display Modes
Old 06-29-2006, 01:54 PM   #1 (permalink)
Forum Expert
 
BeneathTheStars's Avatar
 
Join Date: Jul 2005
Location: (South)Tip o' Texas
Posts: 1,294
Send a message via AIM to BeneathTheStars Send a message via MSN to BeneathTheStars
Default How to run your server in DEBUG

NOTE: This works for RunUO 1.0 AND RunUO 2.0
NOTE: This was made using Windows XP, it may be different on other versions of Windows.

Hello, this tut will show you how to run your server in debug mode. What will debug mode do for you? Take a look...

Not Debug:
Code:
Exception:
System.NullReferenceException: Object reference not set to an instance of an object.
   at Server.Gumps.AccountInfo.OnResponse(NetState sender, RelayInfo info) 
   at Server.Mobile.CloseGump(Type type, Int32 buttonID, Boolean throwOnOffline)
   at Server.Mobile.CloseGump(Type type)
   at Server.Gumps.AccountInfo.ParseResponses(Mobile from, ArrayList textentries) 
   at Server.Gumps.AccountInfo.OnResponse(NetState sender, 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)
So you say, where did it go wrong? Thats where debug comes in. Here is a debug server crash:
Code:
Exception:
System.NullReferenceException: Object reference not set to an instance of an object.
   at Server.Gumps.AccountInfo.OnResponse(NetState sender, RelayInfo info) in c:\RunUO-2.0-RC1\Scripts\Account Info System\AccountInfoGump.cs:line 85
   at Server.Mobile.CloseGump(Type type, Int32 buttonID, Boolean throwOnOffline)
   at Server.Mobile.CloseGump(Type type)
   at Server.Gumps.AccountInfo.ParseResponses(Mobile from, ArrayList textentries) in c:\RunUO-2.0-RC1\Scripts\Account Info System\AccountInfoGump.cs:line 168
   at Server.Gumps.AccountInfo.OnResponse(NetState sender, RelayInfo info) in c:\RunUO-2.0-RC1\Scripts\Account Info System\AccountInfoGump.cs:line 101
   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)
See where it tells you where the problem is? So how do you get this bit of technology? Listen up..

Steps to a debug server:
1. Right click Server.exe or RunUO.exe and click 'Create Shortcut'
Screen Shot: http://img274.imageshack.us/img274/2...hortcut4jc.png

2.Right click the new shortcut, and click properties.
Screen Shot:http://img414.imageshack.us/img414/4...utprops2vj.png

3.On the newly opened window, look for the word Target. Go to the very left end of the target box, and put the following after the last quotation.
Code:
-debug
Screen Shot: http://img258.imageshack.us/img258/1172/target8wh.png

Just use the newly created shortcut to start your server, and every time it crashes, you wont be in the dark!

Hope that helps!
~BeneathTheStars (A.K.A Charon)

Last edited by Jeff; 05-04-2007 at 03:37 PM.
BeneathTheStars is offline   Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off



Powered by vBulletin® Version 3.7.0
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0 RC5