RunUO Community

This is a sample guest message. Register a free account today to become a member! Once signed in, you'll be able to participate on this site by adding your own topics and posts, as well as connect with other members through your own private inbox!

[RunUO 2.0 RC1] Custom Regions in a Box V4.0

ABTOP

Sorceror
Henry_R;726180 said:
hi....

new to shard building and C#, but have used the custom region controllers on different shards as staff----- great product!

i had to work around the V4.0 *custom-go-to-location* problem that other people reported... got it figured out.

i can place the region control and configure the settings etc, and everything seems to be working fine.... when i restart the server i get a console error message and have to delete the region controller(s) and the server terminates.

any help/guidance on this matter would be appreciated :)

here's the log when start runuo:


****************************************************

RunUO - [www.runuo.com] Version 2.0, Build 2357.32527
Core: Running on .NET Framework Version 2.0.50727
Scripts: Compiling C# scripts...done (cached)
Scripts: Compiling VB.NET scripts...no files found.
Scripts: Verifying...done (2128 items, 544 mobiles)
Regions: Loading...done
World: Loading...An error was encountered while loading a saved object
- Type: Server.Items.RegionControl
- Serial: 0x400002DF
Delete the object? (y/n)
Delete all objects of that type? (y/n)
After pressing return an exception will be thrown and the server will terminate

Error:
System.Exception: Load failed (items=True, mobiles=False, guilds=False, type=Ser
ver.Items.RegionControl, serial=0x400002DF) ---> System.IO.EndOfStreamException:
Unable to read beyond the end of the stream.
at System.IO.__Error.EndOfFile()
at System.IO.BinaryReader.FillBuffer(Int32 numBytes)
at System.IO.BinaryReader.ReadBoolean()
at Server.BinaryFileReader.ReadBool()
at Server.Items.RegionControl.ReadBitArray(GenericReader reader)
at Server.Items.RegionControl.Deserialize(GenericReader reader)
at Server.World.Load()
--- End of inner exception stack trace ---
at Server.World.Load()
at Server.ScriptCompiler.Compile(Boolean debug)
at Server.Core.Main(String[] args)
This exception is fatal, press return to exit

****************************************************



thanks-

Henry

Yeah hooly crap(sorry) i lost with script from 1 page my Saves. I've add new RegionControl then save and restart and got same error. When i check Save folder there is only Mobile, Items, Guild folders:eek:
It's fully my fall.
Author fix and re-post first archive or all also will lost their saves.
 

targetofhate

Wanderer
Code:
RunUO - [www.runuo.com] Version 2.0, Build 2357.32527
Core: Running on .NET Framework Version 2.0.50727
Core: Optimizing for 2 processors
Scripts: Compiling C# scripts...failed (6 errors, 0 warnings)
Errors:
 + Misc/Custom/Region/CustomRegion.cs:
    CS0101: Line 10: The namespace 'Server.Regions' already contains a definitio
n for 'CustomRegion'
    CS0102: Line 84: The type 'Server.Regions.CustomRegion' already contains a d
efinition for 'MovePlayerTimer'
 + Misc/Custom/Region/RegionBounds.cs:
    CS0101: Line 10: The namespace 'Server.Commands' already contains a definiti
on for 'RegionBounds'
    CS0102: Line 26: The type 'Server.Commands.RegionBounds' already contains a
definition for 'RegionBoundTarget'
 + Misc/Custom/Region/RegionControl.cs:
    CS0101: Line 14: The namespace 'Server.Items' already contains a definition
for 'RegionFlag'
    CS0101: Line 65: The namespace 'Server.Items' already contains a definition
for 'RegionControl'
 + Misc/Custom/Region/RegionControlGump.cs:
    CS0101: Line 9: The namespace 'Server.Gumps' already contains a definition f
or 'RegionControlGump'
    CS0102: Line 36: The type 'Server.Gumps.RegionControlGump' already contains
a definition for 'Buttons'
 + Misc/Custom/Region/RemoveAreaGump.cs:
    CS0101: Line 10: The namespace 'Server.Gumps' already contains a definition
for 'RemoveAreaGump'
 + Misc/Custom/Region/RestrictGump.cs:
    CS0101: Line 8: The namespace '<global namespace>' already contains a defini
tion for 'RestrictType'
    CS0101: Line 16: The namespace 'Server.Gumps' already contains a definition
for 'RestrictGump'
    CS0101: Line 97: The namespace 'Server.Gumps' already contains a definition
for 'SpellRestrictGump'
    CS0101: Line 105: The namespace 'Server.Gumps' already contains a definition
 for 'SkillRestrictGump'
Scripts: One or more scripts failed to compile or no script files were found.
 - Press return to exit, or R to try again.
 

Phoric

Wanderer
For those who can't get this to work with SVN, I modified the scripts to enable it to work with SVN 282 (at least it works on my server, so far no crashes). Replace these files:
 

Attachments

  • RegionControl.cs
    34.6 KB · Views: 186
  • CustomRegion.cs
    15 KB · Views: 187

Johabius

Knight
Phoric;735834 said:
For those who can't get this to work with SVN, I modified the scripts to enable it to work with SVN 282 (at least it works on my server, so far no crashes). Replace these files:
Thanks for the fix Phoric. Hopefully someone can get the custom go location figured out.
 
i use runuo rc1 ver 2.0... i just wanted to know, if anyone manage to take it off the Z property of this... it is really pissing me off...
 

jfy260336

Wanderer
Phoric;735834 said:
For those who can't get this to work with SVN, I modified the scripts to enable it to work with SVN 282 (at least it works on my server, so far no crashes). Replace these files:

work with svn285 ml122 now
 

pepolshet

Sorceror
Server Crash Report
===================

RunUO Version 2.0, Build 2357.32527
Operating System: Microsoft Windows NT 5.1.2600 Service Pack 2
.NET Framework: 2.0.50727.42
Time: 21.02.2008 19:11:35
Mobiles: 10647
Items: 116236
Clients:
- Count: 1
+ 127.0.0.1: (account = pepolshet) (mobile = 0x2 'Admin Pepolshet')

Exception:
System.IO.IOException: The process cannot access the file 'D:\RunUO-2.0-RC1\Saves\Items\Items.bin' because it is being used by another process.
at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
at System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy)
at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share)
at Server.BinaryFileWriter..ctor(String filename, Boolean prefixStr)
at Server.StandardSaveStrategy.SaveItems(SaveMetrics metrics)
at Server.StandardSaveStrategy.Save(SaveMetrics metrics)
at Server.World.Save(Boolean message)
at Server.World.Save()
at Server.Misc.AutoSave.Save()
at Server.Misc.AutoSave.OnTick()
at Server.Timer.Slice()
at Server.Core.Main(String[] args)


How can i fix this? Why did the author posted such useless, unfixable piece of crap?

EDIT: BTW this is after i tried to fix this with datguy's way
 

Johabius

Knight
pepolshet;739863 said:
Server Crash Report
===================

RunUO Version 2.0, Build 2357.32527
Operating System: Microsoft Windows NT 5.1.2600 Service Pack 2
.NET Framework: 2.0.50727.42
Time: 21.02.2008 19:11:35
Mobiles: 10647
Items: 116236
Clients:
- Count: 1
+ 127.0.0.1: (account = pepolshet) (mobile = 0x2 'Admin Pepolshet')

Exception:
System.IO.IOException: The process cannot access the file 'D:RunUO-2.0-RC1SavesItemsItems.bin' because it is being used by another process.
at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
at System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy)
at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share)
at Server.BinaryFileWriter..ctor(String filename, Boolean prefixStr)
at Server.StandardSaveStrategy.SaveItems(SaveMetrics metrics)
at Server.StandardSaveStrategy.Save(SaveMetrics metrics)
at Server.World.Save(Boolean message)
at Server.World.Save()
at Server.Misc.AutoSave.Save()
at Server.Misc.AutoSave.OnTick()
at Server.Timer.Slice()
at Server.Core.Main(String[] args)


How can i fix this? Why did the author posted such useless, unfixable piece of crap?
Let me ask a simple question. If this is such a useless, unfixable piece of crap then why are you using it? It would also be helpful to know the circumstances behind the crash.

Here's a similar crash did you do something like this person describes?

http://www.runuo.com/forums/689848-post123.html
 

Johabius

Knight
You still haven't posted the circumstances behind your crash. If you want help, you are going to have to help us help you. Stop being so rude as well.
 

blckfire

Wanderer
I got an error when compiling, It says that it can't find the nametype or namespace of "CommandEventArgs" Line 19 of RegionBounds.cs

I'm trying to use it on version 2.0 RC2.
 

frango9000

Wanderer
ok im having some problems with this script
when i set noplayeritemdrop to true and someone in that area dies theres a crash... i run RC2... heres the log:

Code:
Exception:
System.NullReferenceException: Object reference not set to an instance of an object.
   at Server.Regions.CustomRegion.OnDeath(Mobile m)
   at Server.Mobile.Kill()
   at Server.Mobile.Damage(Int32 amount, Mobile from, Boolean informMount)
   at Server.Mobile.Damage(Int32 amount, Mobile from)
   at Server.Mobiles.PlayerMobile.Damage(Int32 amount, Mobile from)
   at Server.AOS.Damage(Mobile m, Mobile from, Int32 damage, Boolean ignoreArmor, Int32 phys, Int32 fire, Int32 cold, Int32 pois, Int32 nrgy, Boolean keepAlive)
   at Server.Spells.SpellHelper.SpellDamageTimerAOS.OnTick()
   at Server.Timer.Slice()
   at Server.Core.Main(String[] args)
 

Greystar

Wanderer
frango9000;742738 said:
ok im having some problems with this script
when i set noplayeritemdrop to true and someone in that area dies theres a crash... i run RC2... heres the log:

Code:
Exception:
System.NullReferenceException: Object reference not set to an instance of an object.
   at Server.Regions.CustomRegion.OnDeath(Mobile m)
   at Server.Mobile.Kill()
   at Server.Mobile.Damage(Int32 amount, Mobile from, Boolean informMount)
   at Server.Mobile.Damage(Int32 amount, Mobile from)
   at Server.Mobiles.PlayerMobile.Damage(Int32 amount, Mobile from)
   at Server.AOS.Damage(Mobile m, Mobile from, Int32 damage, Boolean ignoreArmor, Int32 phys, Int32 fire, Int32 cold, Int32 pois, Int32 nrgy, Boolean keepAlive)
   at Server.Spells.SpellHelper.SpellDamageTimerAOS.OnTick()
   at Server.Timer.Slice()
   at Server.Core.Main(String[] args)

This was "re" designed for RC1 and hasn't been updated to RC2 yet and from what I've been able to interpret there where some changes in how spells where managed and that may be the reason you are getting the null ref error. However I do not have a fix for it.
 

PrinceArda

Sorceror
Hey guys... I couldn't make this script work, I guess it doesn't work with RunUO 2 RC2...

Since I don't know much C# programming I don't know how to make this script run on RC2... that'd be really nice if anyone could share a RunUO 2 RC2 compatible version of this script if they had it...

Thanks! =)
 

Johabius

Knight
PrinceArda;749738 said:
Hey guys... I couldn't make this script work, I guess it doesn't work with RunUO 2 RC2...

Since I don't know much C# programming I don't know how to make this script run on RC2... that'd be really nice if anyone could share a RunUO 2 RC2 compatible version of this script if they had it...

Thanks! =)
It works just fine for RC2, I'm using it. Would help to know what is happening on your server that makes it "not work". Error messages would be very helpful if you are getting any.
 
well i just tried to add it to my teams shard when i got this 1 error

Code:
Errors:
 + Custom/Custom Regions in a Box V4.0/CustomRegion.cs:
    CS0508: Line 28: 'Server.Regions.CustomRegion.OnDeath(Server.Mobile)': retur
n type must be 'void' to match overridden member 'Server.Region.OnDeath(Server.M
obile)'

NM fixed error forgot to read the whole topic as soon as i grabbed the 2 files from the page 7 no errors and it compiled perfectly!
 

Olivier

Wanderer
Error

Im getting thoose error
RunUO - [www.runuo.com] Version 2.0, Build
Scripts: Compiling C# scripts...failed (1 errors, 0 warnings)
Errors:
+ Custom/Custom region/RegionStone.cs:
CS0101: Line 13: The namespace 'Server.Items' already contains a definition
for 'RegionFlag'
CS0101: Line 57: The namespace 'Server.Items' already contains a definition
for 'RegionControl'
Scripts: One or more scripts failed to compile or no script files were found.
- Press return to exit, or R to try again.

Can someoen help me with fixing them?
 

milvaen

Wanderer
i'm getting this
Code:
Errors:
 + UOA/Item/Custom Regions in a Box V4.0/CustomRegion.cs:
    CS0508: Line 28: 'Server.Regions.CustomRegion.OnDeath(Server.Mobile)': retur
n type must be 'void' to match overridden member 'Server.Region.OnDeath(Server.M
obile)'
 

datguy

Sorceror
Change that line to

public override void OnDeath( Mobile m )


Be very careful using this script, I've crash server a few times. Sever WILL crash on worldsave if you Have a regioncontrol flag with no region specified. When making a region immediately after you give the command [regioncontrol
Select New Region & target ground 2 times, Anywhere, doesn't matter.(now you have a region) Once that is done you can lazily make your region

or

Disable the CustomGo as described on previous pages
 
Top