|
||
|
|||||||
| Server Support on Windows Get (and give) support on general questions related to the RunUO server itself. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 (permalink) |
|
Forum Newbie
Join Date: Jan 2003
Posts: 65
|
My players (and me testing the issues) are not able to craft faction items. They have the skill and silver needed to make the items, but it never asks them if they want it to be a faction item. We also made sure they tried it in a city they currently control and still no change. Any idea why this wouldn't work?
![]() Last edited by munkie; 04-08-2007 at 05:43 AM. |
|
|
|
|
|
#4 (permalink) |
|
Forum Newbie
Join Date: Jan 2003
Posts: 65
|
I've tried to reset the factions using [factionreset, [factiontownreset, and [factionitemreset but every time i do it, i get the following error then the shard crashes:
Server Crash Report =================== RunUO Version 2.0, Build 2357.32527 Operating System: Microsoft Windows NT 5.2.3790 Service Pack 1 .NET Framework: 2.0.50727.42 Time: 4/8/2007 3:40:12 AM Mobiles: 14433 Items: 118769 Clients: - Count: 1 + 68.206.15.150: (account = <account name removed>) (mobile = 0x5 '<mobile name removed>') Exception: System.NullReferenceException: Object reference not set to an instance of an object. at Server.Factions.Town.Capture(Faction f) at Server.Factions.Faction.FactionReset_OnCommand(Com mandEventArgs e) at Server.Commands.CommandSystem.Handle(Mobile from, String text, MessageType type) at Server.Mobile.DoSpeech(String text, Int32[] keywords, MessageType type, Int32 hue) at Server.Mobiles.PlayerMobile.DoSpeech(String text, Int32[] keywords, MessageType type, Int32 hue) at Server.Engines.PartySystem.Chat3Guild.UnicodeSpeec hChat3(NetState state, PacketReader pvSrc) at Server.Network.MessagePump.HandleReceive(NetState ns) at Server.Network.MessagePump.Slice() at Server.Core.Main(String[] args) I have even removed all faction items and booted all faction players and regenerated and still the same problem. Any idea how I can resolve this? |
|
|
|
|
|
#5 (permalink) |
|
Master of the Internet
Join Date: Oct 2005
Age: 45
Posts: 6,283
|
Run your server in debug mode to hopefully find the exact location of the crash.
How to run your server in DEBUG and what specific command crashes the server or is it all of those commands?
__________________
Why is it that I'm never as smart as I thought I was yesterday? My vast knowledge is only surpassed by my infinite ignorance. <TheOutkastDev> i might have to hire an assassin to killl mal so that i can jump in front of the bullet and piss on him |
|
|
|
|
|
#7 (permalink) |
|
Master of the Internet
Join Date: Oct 2005
Age: 45
Posts: 6,283
|
If you are running 2.0, it will tell you when you start that you are in debug mode. The errors should be very similar but with line numbers in the error.
__________________
Why is it that I'm never as smart as I thought I was yesterday? My vast knowledge is only surpassed by my infinite ignorance. <TheOutkastDev> i might have to hire an assassin to killl mal so that i can jump in front of the bullet and piss on him |
|
|
|
|
|
#8 (permalink) |
|
Forum Newbie
Join Date: Jan 2003
Posts: 65
|
I get the following error when I put it in debug, but I have not changed any of the files its referring too.
Exception: System.NullReferenceException: Object reference not set to an instance of an object. at Server.Factions.Town.Capture(Faction f) in c:\RunUO\Scripts\Engines\Factions\Core\Town.cs:lin e 444 at Server.Factions.Town.set_Owner(Faction value) in c:\RunUO\Scripts\Engines\Factions\Core\Town.cs:lin e 37 at Server.Factions.Faction.FactionReset_OnCommand(Com mandEventArgs e) in c:\RunUO\Scripts\Engines\Factions\Core\Faction.cs: line 621 at Server.Commands.CommandSystem.Handle(Mobile from, String text, MessageType type) at Server.Mobile.DoSpeech(String text, Int32[] keywords, MessageType type, Int32 hue) at Server.Mobiles.PlayerMobile.DoSpeech(String text, Int32[] keywords, MessageType type, Int32 hue) in c:\RunUO\Scripts\Mobiles\PlayerMobile.cs:line 2162 at Server.Network.PacketHandlers.UnicodeSpeech(NetSta te state, PacketReader pvSrc) at Server.Network.MessagePump.HandleReceive(NetState ns) at Server.Network.MessagePump.Slice() at Server.Core.Main(String[] args) |
|
|
|
|
|
#9 (permalink) |
|
Master of the Internet
Join Date: Oct 2005
Age: 45
Posts: 6,283
|
That appears to be a bug in the RC1 code. This is the Capture method from one of the SVN versions. You can try replacing yours with this:
Code:
public void Capture( Faction f )
{
f.Silver += SilverCaptureBonus;
if ( m_State.Owner == f )
return;
if ( m_State.Owner == null ) // going from unowned to owned
LastIncome = DateTime.Now;
else if ( f == null ) // going from owned to unowned
LastIncome = DateTime.MinValue;
// otherwise changing hands, income timer doesn't change
m_State.Owner = f;
Sheriff = null;
Finance = null;
TownMonolith monolith = this.Monolith;
if ( monolith != null )
monolith.Faction = f;
VendorListCollection vendorLists = VendorLists;
for ( int i = 0; i < vendorLists.Count; ++i )
{
VendorList vendorList = vendorLists[i];
FactionVendorCollection vendors = vendorList.Vendors;
for ( int j = vendors.Count - 1; j >= 0; --j )
vendors[j].Delete();
}
GuardListCollection guardLists = GuardLists;
for ( int i = 0; i < guardLists.Count; ++i )
{
GuardList guardList = guardLists[i];
FactionGuardCollection guards = guardList.Guards;
for ( int j = guards.Count - 1; j >= 0; --j )
guards[j].Delete();
}
ConstructGuardLists();
}
__________________
Why is it that I'm never as smart as I thought I was yesterday? My vast knowledge is only surpassed by my infinite ignorance. <TheOutkastDev> i might have to hire an assassin to killl mal so that i can jump in front of the bullet and piss on him |
|
|
|
|
|
#11 (permalink) |
|
Master of the Internet
Join Date: Oct 2005
Age: 45
Posts: 6,283
|
I think it would, yes. Especially since it will get you at least started on the updates that will eventually be necessary to use the next release of 2.0 since much has changed in the SVN code.
__________________
Why is it that I'm never as smart as I thought I was yesterday? My vast knowledge is only surpassed by my infinite ignorance. <TheOutkastDev> i might have to hire an assassin to killl mal so that i can jump in front of the bullet and piss on him |
|
|
|
|
|
#13 (permalink) |
|
Master of the Internet
Join Date: Oct 2005
Age: 45
Posts: 6,283
|
RunUO 2.0 SVN open to public, Update on 2.0 Release
There is also a thread in FAQ forum about how to compile your new server you will need.
__________________
Why is it that I'm never as smart as I thought I was yesterday? My vast knowledge is only surpassed by my infinite ignorance. <TheOutkastDev> i might have to hire an assassin to killl mal so that i can jump in front of the bullet and piss on him |
|
|
|
|
|
#15 (permalink) |
|
Forum Newbie
Join Date: Jan 2003
Posts: 65
|
Alright so, I've updated my shard to the latest SVN (the server and scripts) and I am (or players) still not able to craft faction items in a town controlled by the faction.
The update did fix the crashing when i used the faction commands though. Does anyone have any other ideas? |
|
|
|
|
|
#16 (permalink) |
|
Forum Newbie
Join Date: Jan 2003
Posts: 65
|
I am going to go out on a lim here and ask this...could the problem be that I am forcing the towns to be taken over faster then 24hours (setting the CorruptionStart to a day before), so we can test the factions quicker?
I'm not sure why this would change anything but I just thought I would ask it anyway. |
|
|
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|