|
||
|
|||||||
| Script Support Get support for modifying RunUO Scripts, or writing your own! |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 (permalink) | ||
|
Forum Novice
Join Date: Dec 2006
Posts: 480
|
Hey everyone, a while ago my server just crashed, I was playing around with region control (using Custom Regions in a box).
When I try reboot, this is the error I get: Quote:
Quote:
__________________
legendsofkaine.page.tl
|
||
|
|
|
|
|
#3 (permalink) |
|
Forum Novice
Join Date: Dec 2006
Posts: 480
|
Well, I'm pretty sure its not a problem with the script, it has worked perfectly for a while now, and I have not touched anything in the script lately.
What I did was add a new custom region using the Custom Regions in a box and thats when the server crashed, yet I have used that many other places on the shard, and never had a problem before. Anyway, considering I have already started a new thread, here is a link to the Custom Regions in a box release thread: [RunUO 2.0 RC1] Custom Regions in a Box V4.0 Thanks for the help in advance ![]() Regards
__________________
legendsofkaine.page.tl
|
|
|
|
|
|
#4 (permalink) |
|
Forum Novice
Join Date: Dec 2005
Posts: 608
|
doesn't look like a stable script to me.
the regions script never was written very well anyway. my best bet is that your region was null change this Code:
[CommandProperty(AccessLevel.GameMaster)]
public Point3D CustomGoLocation
{
get { return m_Region.GoLocation; }
set
{
m_Region.GoLocation = value;
m_CustomGoLocation = value;
UpdateRegion();
}
}
Code:
[CommandProperty(AccessLevel.GameMaster)]
public Point3D CustomGoLocation
{
get { return m_Region.GoLocation == null ? Point3D.Zero : m_Region.GoLocation; }
set
{
m_Region.GoLocation = value;
m_CustomGoLocation = value;
UpdateRegion();
}
}
__________________
Add your scripts! Script Library for custom RunUO scripts >> sunny-productions.eu |
|
|
|
|
|
#5 (permalink) | |
|
Forum Novice
Join Date: Dec 2006
Posts: 480
|
Hey man, Thank you so much for going to so much effort to help me out with this
![]() I just remembered, that was most definately the case (the region was null) I had not specified the boundries yet. Your piece of code gives 1 error: Quote:
![]()
__________________
legendsofkaine.page.tl
|
|
|
|
|
|
|
#7 (permalink) |
|
Forum Novice
Join Date: Dec 2006
Posts: 480
|
Ahh okay, thanks for the tip m8, but I'm pretty sure I didnt specify the region's boundries...Which is what it said I didnt do in the crashlog
![]() So we have pinpointed the problem, just need to figure out how to fix it :>
__________________
legendsofkaine.page.tl
|
|
|
|
|
|
#8 (permalink) |
|
Forum Novice
Join Date: Dec 2005
Posts: 608
|
sorry, try this:
Code:
[CommandProperty(AccessLevel.GameMaster)]
public Point3D CustomGoLocation
{
get { return m_Region == null ? Point3D.Zero : m_Region.GoLocation; }
set
{
m_Region.GoLocation = value;
m_CustomGoLocation = value;
UpdateRegion();
}
}
__________________
Add your scripts! Script Library for custom RunUO scripts >> sunny-productions.eu |
|
|
|
|
|
#9 (permalink) | |
|
Newbie
Join Date: May 2006
Location: Czech Republic
Posts: 78
|
Quote:
|
|
|
|
|
|
|
#12 (permalink) |
|
Forum Novice
Join Date: Oct 2003
Posts: 153
|
The Fix is already listed in the origional thread even though the above may do the same
RegionControl.cs (line 536-551): This fixes the crash problem with the custom go location. Code:
private Point3D m_CustomGoLocation;
[CommandProperty(AccessLevel.GameMaster)]
public Point3D CustomGoLocation
{
get { return (m_Region != null) ? m_Region.GoLocation : new Point3D(0,0,0); }
set
{
if (m_Region != null)
{
m_Region.GoLocation = value;
m_CustomGoLocation = value;
UpdateRegion();
}
}
}
Last edited by datguy; 08-18-2008 at 07:17 PM. |
|
|
|
|
|
#13 (permalink) |
|
Forum Novice
Join Date: Dec 2006
Posts: 480
|
OKay, I have made the change to the script, but the server is still giving the error when attempting to compile, due to it running a save as the shard crashed.
My idea would be to roll back to the last save, but I am not entirely sure how... Any pointers ? Ta
__________________
legendsofkaine.page.tl
|
|
|
|
![]() |
| Bookmarks |
| Tags |
| custom, deser, error, region, ser |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|