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

oiii88

Sorceror
seanandre;766867 said:
I'm getting the following error when I install this system:

Code:
CS0508: Line 28: 'Server.Regions.CustomRegion.OnDeath(Server.Mobile)': return type must be 'void' to match overridden member 'Server.Region.OnDeath(Server.Mobile)'

I'm not sure if it's because this was designed for RC1 and I'm running RC2. Most scripts that have beenr eleased for RC1 also work for RC2, so I don't know.

Thanks,
Sean

Try grabbing the regioncontrol.cs and customregion.cs posted by phoric on page 7 .
 

pziemczyk

Wanderer
I have one problem.
I trying to set ,,NoPlayerItemDrop" but this doesnt work :/
I set this to true and nothing.

Please help.
 

oiii88

Sorceror
It downloaded fine for me.. So I will re-upload it here for you as a .rar
 

Attachments

  • Custom Regions in a Box V4.0.rar
    10.9 KB · Views: 32

Grom09

Sorceror
im using svn and i get this
Errors:
+ CUSTOM/Custom Regions in a Box V4[1].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)'
i get the same error as the guy above lol.
 

Grom09

Sorceror
u replied too fast. i was just doing that, give me a sec lol, more errors

A fix for:
Errors:
+ CUSTOM/Custom Regions in a Box V4[1].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)'

change line 28 to

public override void OnDeath( Mobile m )

and lines 77 and 80

Code:
                return; // base.OnDeath(m);
            }

            return;// toreturn;

thanks datguy
 

Grom09

Sorceror
im getting problems

i changed to this already
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();           
            }
        }

and deleted logs from today.
i stil get this
Code:
RunUO - [www.runuo.com] Version 2.0, Build 3110.29262
Core: Running on .NET Framework Version 2.0.50727
Scripts: Compiling C# scripts...done (cached)
Scripts: Skipping VB.NET Scripts...done (use -vb to enable)
Scripts: Verifying...done (2732 items, 767 mobiles)
Regions: Loading...done
World: Loading...Error:
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.ReadInt32()
   at Server.World.Load() in c:\SVN 297\Server\World.cs:line 386
   at Server.ScriptCompiler.Compile(Boolean debug, Boolean cache) in c:\SVN 297\
Server\ScriptCompiler.cs:line 627
   at Server.Core.Main(String[] args) in c:\SVN 297\Server\Main.cs:line 443
This exception is fatal, press return to exit
 

Grom09

Sorceror
when i go from a backup, it says i have no accounts and have to create admin again.
should this happen

even if i revert to the most recent, second, or third backup
it is telling me to create owner, and if i do, all the stuff on my shard is gone. how can i get it back....
 

datguy

Sorceror
Awesome, make a few more of those backups
:)

Did you change the CustomGo routine as well? the one you have up there is wrong.:eek:
 

datguy

Sorceror
That's the command, make sure you added it to the correct folder, sometimes I add to a folder & it's one I'm not using as the game folder tree:p
 
Top