Go Back   RunUO - Ultima Online Emulation > RunUO > Custom Script Releases

Custom Script Releases This forum is where you can release your custom scripts for other users to use.

Please note: By releasing your scripts here you are submitting them to the public and as such agree to make them public domain. The RunUO Team has made its software GPL for you to use and enjoy you should do the same for anything based off of RunUO.

Reply
 
Thread Tools Display Modes
Old 06-30-2006, 03:24 PM   #1 (permalink)
Forum Expert
 
milt's Avatar
 
Join Date: Nov 2003
Location: Lancaster, PA
Age: 20
Posts: 1,606
Send a message via AIM to milt Send a message via Yahoo to milt Send a message via Skype™ to milt
Default [RunUO 2.0 RC1] Milt's Automated Tournament System

Well well... I guess it is time for another release! Ladies and gentlemen, version 2.0!

There are a lot of similarities in this system with the previous version, so you shouldn't be to lost setting it up and running it. The code is a lot more stable and smoother.

New Features:
-Better gump setup
-Information and Statistics Gump
-Multiple arena support
-More stable algorithms
-Faster and I-think-crash-free...
-Support for teams (2v2, 3v3, etc)
-Improved error checking
-Enhanced with .NET 2.0 features
-Ability to stop tournament
-Region Management and Editing Gump
-Support for 3d arenas
-Notoriety support, with no distro mods
-Support to block multiple IP Addresses from signing up for tournament

I might have missed some new features but I'm sure you will find them when you play around with it a bit .

Installation Instructions:
All you have to do is unzip and put the folder of scripts into you Scripts folder! I still managed to make the system with no distro mods.

Setting up the system:
First thing your probably going to want to do is get in game, and [add TSystemStone. This stone is the main stone for your tournament. Now [props the stone and check out the different properties.
-AllowSameIP: if set to false, it will block duplicate IP Addresses from being able to sign up for the tournament.
-AllowTeams: if you want your tournament to be 2v2, 3v3, etc... put this to true.
-CanHeal: if this is set to false, players will not be able to heal themselves in the tournament.
-Enabled: this determines if the system is enabled or not. If you want to close signups, set this to false.
-MagicWeapons: oops, I forgot to take this out. I didn't add support for this in this version.
-Potions: set this to true if you want players to be able to use potions in the tournament.
-SpectatorDest: this is the location that players will be teleported to after they fight their match.
-TeamMaxPlayers: this is the maximum amount of players a team can have (AllowTeams must be set to true for this to even work). So if you want a 2v2, you need to set it to 2.

Next you will need a tournament master. Do an [add TMaster and put him wherever you want. [props him and set his link to the TSystemStone that you placed. This is the guy that players will go to in order to sign up for the tournament.

The last thing that you will need to do is add a dueling region. Double click the TSystemStone and go to 'Region Management and Editing' and click the Add Region button. This will let you target the bounds of your dueling area. The targeting can be pretty tricky, so make sure that you covered your entire area by clicking "Show All Regions" or clicking the arrow next to a specific region and then clicking Show. If you add multiple regions, the tournament will automatically use all of them whenever it can.

There you are, you can now get your players to sign up with the tournament master. If you go to the Information and Statistics gump on the TSystemStone, you can view and kick people who are signed up for the tournament. This page is only supported when the tournament has not been started. When you are ready to start your tournament, go onto the stone and go to System Commands, and hit Start the tournament. Enjoy.

I haven't been able to test this system with over 15 people, so for all I know there could be some bugs or crashes. Please report all of your problems or crashes (don't think there are any), and I will get to work on fixing them right away.

Thank you and please enjoy!

P.S. - I have already started version 3, which WILL have a shitload of features. When I was halfway done coding this version, I realized a way better way to write some of this code. It'll be even better...

Time for everyone to go bug hunting!
Attached Files
File Type: zip Milt's Tourney System 2.0.1.zip (24.6 KB, 994 views)
__________________
--Milt, AKA Pokey

Last edited by milt; 06-30-2006 at 03:37 PM.
milt is offline   Reply With Quote
Old 06-30-2006, 07:53 PM   #2 (permalink)
Forum Expert
 
Asmir3's Avatar
 
Join Date: Sep 2005
Location: A-Town Baby
Age: 19
Posts: 620
Default

Thx Milt for the script for a kool script. I love it cant wait for 3.0 :0
__________________

Now open - uo15.net - The best in Publish 15 emulation
Asmir3 is offline   Reply With Quote
Old 07-01-2006, 01:57 AM   #3 (permalink)
Forum Novice
 
Join Date: Aug 2004
Location: :P
Age: 21
Posts: 138
Send a message via AIM to TheNorthStar
Default

I haven't really messed with this much, so I may have done something wrong. But when I added this script to my shard and restarted I got a crash when I logged off my admin character.

Here's the crashlog:
Code:
Exception:
System.NullReferenceException: Object reference not set to an instance of an object.
   at Server.TSystem.TSystemStone.TSystem_OnDisconnect(DisconnectedEventArgs e)
   at Server.DisconnectedEventHandler.Invoke(DisconnectedEventArgs e)
   at Server.EventSink.InvokeDisconnected(DisconnectedEventArgs e)
   at Server.Mobile.set_NetState(NetState value)
   at Server.Network.NetState.ProcessDisposedQueue()
   at Server.Core.Main(String[] args)
I haven't done anything with this yet, I just added the script.
__________________
Make music online with Splice!
TheNorthStar is offline   Reply With Quote
Old 07-01-2006, 02:08 AM   #4 (permalink)
Forum Expert
 
Johabius's Avatar
 
Join Date: Dec 2004
Location: Kansas, USA
Age: 38
Posts: 4,964
Send a message via ICQ to Johabius Send a message via Yahoo to Johabius
Default

You might want to reinstall the package, the previous version was missing a null check in the TSystemStone
Or, if you don't feel like reinstalling here's the quick fix from the archives:

Quote:
If you go to line 266 in TSystemStone.cs, change it to:
Code:
if(StaticRef != null && StaticRef.Started)
__________________
In some cases stupid makes you win-Radwen

Last edited by Johabius; 07-01-2006 at 02:14 AM.
Johabius is offline   Reply With Quote
Old 07-01-2006, 02:53 AM   #5 (permalink)
Forum Expert
 
Pyro-Tech's Avatar
 
Join Date: Oct 2003
Location: Carbondale, IL
Age: 24
Posts: 1,805
Send a message via MSN to Pyro-Tech
Default

does this one still allow the ability for players to start their own tournaments without staff having to do anything like v1?

and i mean outside of staff setting up the region, can a group of players join, then do the tourny.....finish and next one kick in when more players sign up?
__________________

Pyro-Tech is offline   Reply With Quote
Old 07-01-2006, 03:09 AM   #6 (permalink)
Forum Expert
 
milt's Avatar
 
Join Date: Nov 2003
Location: Lancaster, PA
Age: 20
Posts: 1,606
Send a message via AIM to milt Send a message via Yahoo to milt Send a message via Skype™ to milt
Default

Quote:
Originally Posted by Pyro-Tech
does this one still allow the ability for players to start their own tournaments without staff having to do anything like v1?

and i mean outside of staff setting up the region, can a group of players join, then do the tourny.....finish and next one kick in when more players sign up?
No sorry, this version only supports a game master manually starting the tournament.
__________________
--Milt, AKA Pokey
milt is offline   Reply With Quote
Old 07-01-2006, 03:22 AM   #7 (permalink)
Forum Expert
 
Pyro-Tech's Avatar
 
Join Date: Oct 2003
Location: Carbondale, IL
Age: 24
Posts: 1,805
Send a message via MSN to Pyro-Tech
Default

Quote:
Originally Posted by milt
No sorry, this version only supports a game master manually starting the tournament.
ok then....thanks for clearing that up
__________________

Pyro-Tech is offline   Reply With Quote
Old 07-01-2006, 02:11 PM   #8 (permalink)
Forum Novice
 
Join Date: Dec 2005
Posts: 206
Default

just for you to know, thank you a lot for this script..

i took version 1.0 and added support for any amount of teams, ffa, and I improved the picker system, I made it a bracketed tournament, instead of the "last man standing" you made..

it took me two months to change it :P but it was worth it.

awe script.
__________________
11010101 me.
the nico is offline   Reply With Quote
Old 07-12-2006, 06:47 AM   #9 (permalink)
Forum Novice
 
Join Date: May 2006
Posts: 260
Default

Is there a way to make it so when you are done with the first fight, you never fight again?


What I want to do is convert this into a duel system rather than a touranment system.
Big Cheez-it is offline   Reply With Quote
Old 07-18-2006, 03:04 AM   #10 (permalink)
 
Join Date: Sep 2005
Age: 24
Posts: 46
Default

Is there a way to make it CtF???
Viking-hybrid is offline   Reply With Quote
Old 07-20-2006, 11:28 PM   #11 (permalink)
Forum Expert
 
milt's Avatar
 
Join Date: Nov 2003
Location: Lancaster, PA
Age: 20
Posts: 1,606
Send a message via AIM to milt Send a message via Yahoo to milt Send a message via Skype™ to milt
Default

It would probably be more work converting this to CTF rather than just making a whole new system for it.
__________________
--Milt, AKA Pokey
milt is offline   Reply With Quote
Old 07-21-2006, 01:48 AM   #12 (permalink)
 
Join Date: Sep 2005
Age: 24
Posts: 46
Default

ive been trying to make a whole CtF system but i am not a great scripter
Viking-hybrid is offline   Reply With Quote
Old 07-24-2006, 05:38 PM   #13 (permalink)
Newbie
 
Join Date: Jul 2005
Age: 21
Posts: 57
Default

Version 2.0 is only for run uo 2.0 correct cause the new one is sweet compared to v1.0 but i dont have runuo2.0.
Victorr is offline   Reply With Quote
Old 07-24-2006, 07:17 PM   #14 (permalink)
Forum Expert
 
Asmir3's Avatar
 
Join Date: Sep 2005
Location: A-Town Baby
Age: 19
Posts: 620
Default

yes ur correct. If u dont have runuo 2.0rc1 download from runuo
Quote:
Originally Posted by Victorr
Version 2.0 is only for run uo 2.0 correct cause the new one is sweet compared to v1.0 but i dont have runuo2.0.
__________________

Now open - uo15.net - The best in Publish 15 emulation
Asmir3 is offline   Reply With Quote
Old 07-30-2006, 11:35 PM   #15 (permalink)
Forum Newbie
 
Join Date: Dec 2005
Posts: 32
Question Crash problem

We accidentaly deleted the Tourny master. when we put it back in and linked it then double clicked the tourny master the entire shard crashed. I have the latest version of your package installed. Here is the crash report.

Code:
System.NullReferenceException: Object reference not set to an instance of an object.
   at Server.TSystem.TJoinGump.FindTeam(Mobile from)
   at Server.TSystem.TJoinGump..ctor(TSystemStone stone, Mobile from)
   at Server.TSystem.TMaster.OnDoubleClick(Mobile from)
   at Server.Mobile.Use(Mobile m)
   at Server.Network.PacketHandlers.UseReq(NetState state, PacketReader pvSrc)
   at Server.Network.MessagePump.HandleReceive(NetState ns)
   at Server.Network.MessagePump.Slice()
   at Server.Core.Main(String[] args)
Thank you for any insight.

Lubomir
Lubomir is offline   Reply With Quote
Old 08-07-2006, 08:15 AM   #16 (permalink)
Master of the Internet
 
Anti-Basic's Avatar
 
Join Date: Dec 2005
Age: 20
Posts: 12,927
Default

hehehe got a crash report for you, you should find it amusing......

Code:
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: 8/7/2006 6:09:12 AM
Mobiles: 23136
Items: 98766
Clients:
- Count: 2
+ 65.138.100.66: (account = Anti-Basic) (mobile = 0x3 'Nar Matteru')
+ 69.155.135.76: (account = eros) (mobile = 0x283F 'leVelate')

Exception:
System.InvalidOperationException: Collection was modified; enumeration operation may not execute.
   at System.ThrowHelper.ThrowInvalidOperationException(ExceptionResource resource)
   at System.Collections.Generic.Dictionary`2.ValueCollection.Enumerator.MoveNext()
   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.QuickRestart.DoRestart(Boolean normal)
   at Server.Misc.QuickRestart.CheckRestart()
   at System.Threading.ThreadHelper.ThreadStart_Context(Object state)
   at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
   at System.Threading.ThreadHelper.ThreadStart()
This happened right after I added the tournament system in. It compiled fine under [quickrestart, did seem to take awhile longer tho, since I had been adding scripts all night, but after it finished compiling and went to actually restart, it crashed before it got the chance, the server is still down it seems, so it didnt even do the after crash restart.

Last edited by Anti-Basic; 08-07-2006 at 08:19 AM.
Anti-Basic is offline   Reply With Quote
Old 08-07-2006, 10:58 AM   #17 (permalink)
ConnectUO Creator
 
Jeff's Avatar
 
Join Date: Jan 2004
Age: 28
Posts: 4,886
Default

Quote:
Originally Posted by Anti-Basic
hehehe got a crash report for you, you should find it amusing......

Code:
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: 8/7/2006 6:09:12 AM
Mobiles: 23136
Items: 98766
Clients:
- Count: 2
+ 65.138.100.66: (account = Anti-Basic) (mobile = 0x3 'Nar Matteru')
+ 69.155.135.76: (account = eros) (mobile = 0x283F 'leVelate')

Exception:
System.InvalidOperationException: Collection was modified; enumeration operation may not execute.
   at System.ThrowHelper.ThrowInvalidOperationException(ExceptionResource resource)
   at System.Collections.Generic.Dictionary`2.ValueCollection.Enumerator.MoveNext()
   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.QuickRestart.DoRestart(Boolean normal)
   at Server.Misc.QuickRestart.CheckRestart()
   at System.Threading.ThreadHelper.ThreadStart_Context(Object state)
   at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
   at System.Threading.ThreadHelper.ThreadStart()
This happened right after I added the tournament system in. It compiled fine under [quickrestart, did seem to take awhile longer tho, since I had been adding scripts all night, but after it finished compiling and went to actually restart, it crashed before it got the chance, the server is still down it seems, so it didnt even do the after crash restart.
at Server.StandardSaveStrategy.SaveItems(SaveMetrics metrics)
at Server.StandardSaveStrategy.Save(SaveMetrics metrics)
that means some script editedthe world when u were saving, i highly doubt that it was this one. especially since u said u were adding lots of stuffs
__________________
Jeff Boulanger
ConnectUO - Core Developer

Want to help make ConnectUO better? Click here to submit your ideas/requests
Use your talent to compete against other community members in RunUO hosted coding competitions

If you know XNA (even if its just a little) or are a good artist(2d or 3d) and are interested in making games for a hobby send me a pm or drop by #xna in irc.runuo.com. I'm looking to put together a small game development team.


Please do not pm me for support. If you are having issues please post in the appropriate forum. Thanks for your continued support of both ConnectUO and RunUO
Jeff is offline   Reply With Quote
Old 08-07-2006, 05:59 PM   #18 (permalink)
Forum Expert
 
Asmir3's Avatar
 
Join Date: Sep 2005
Location: A-Town Baby
Age: 19
Posts: 620
Default

I think happened bec u were editing the script while u did a quickrestart and right befor it restart u saved it. Im not sure but this happened to me when i was edit a script it crashed me bec i was editing while the quick restart was on.
__________________

Now open - uo15.net - The best in Publish 15 emulation
Asmir3 is offline   Reply With Quote
Old 08-07-2006, 07:41 PM   #19 (permalink)
ConnectUO Creator
 
Jeff's Avatar
 
Join Date: Jan 2004
Age: 28
Posts: 4,886
Default

Quote:
Originally Posted by Asmir3
I think happened bec u were editing the script while u did a quickrestart and right befor it restart u saved it. Im not sure but this happened to me when i was edit a script it crashed me bec i was editing while the quick restart was on.
nope, thats not it.
__________________
Jeff Boulanger
ConnectUO - Core Developer

Want to help make ConnectUO better? Click here to submit your ideas/requests
Use your talent to compete against other community members in RunUO hosted coding competitions

If you know XNA (even if its just a little) or are a good artist(2d or 3d) and are interested in making games for a hobby send me a pm or drop by #xna in irc.runuo.com. I'm looking to put together a small game development team.


Please do not pm me for support. If you are having issues please post in the appropriate forum. Thanks for your continued support of both ConnectUO and RunUO
Jeff is offline   Reply With Quote
Old 08-07-2006, 07:44 PM   #20 (permalink)
Master of the Internet
 
Anti-Basic's Avatar
 
Join Date: Dec 2005
Age: 20
Posts: 12,927
Default

hmm I'll investigate to see. But I had successfully quickrestarted before adding the tourney system. (I do it one script at a time, lest seven kick my ass for hanging his server again)
Anti-Basic is offline   Reply With Quote
Old 08-07-2006, 08:06 PM   #21 (permalink)
ConnectUO Creator
 
Jeff's Avatar
 
Join Date: Jan 2004
Age: 28
Posts: 4,886
Default

Quote:
Originally Posted by Anti-Basic
hmm I'll investigate to see. But I had successfully quickrestarted before adding the tourney system. (I do it one script at a time, lest seven kick my ass for hanging his server again)
nah its a error thats 100% random, it wont always happen, i've gotten it and personally am convinced its a issue with dual strategy saving in the core, as the items saved are saved on 2 seperate threads and the thread saving the items generally flunks out cause its not World.Items is not locked, but ive been told by the core team that its caused by a custom script.....but yet it doesnt happen in normal strat saves....go figure.
__________________
Jeff Boulanger
ConnectUO - Core Developer

Want to help make ConnectUO better? Click here to submit your ideas/requests
Use your talent to compete against other community members in RunUO hosted coding competitions

If you know XNA (even if its just a little) or are a good artist(2d or 3d) and are interested in making games for a hobby send me a pm or drop by #xna in irc.runuo.com. I'm looking to put together a small game development team.


Please do not pm me for support. If you are having issues please post in the appropriate forum. Thanks for your continued support of both ConnectUO and RunUO
Jeff is offline   Reply With Quote
Old 08-07-2006, 08:32 PM   #22 (permalink)
Master of the Internet
 
Anti-Basic's Avatar
 
Join Date: Dec 2005
Age: 20
Posts: 12,927
Default

Quote:
Originally Posted by Jeff
nah its a error thats 100% random, it wont always happen, i've gotten it and personally am convinced its a issue with dual strategy saving in the core, as the items saved are saved on 2 seperate threads and the thread saving the items generally flunks out cause its not World.Items is not locked, but ive been told by the core team that its caused by a custom script.....but yet it doesnt happen in normal strat saves....go figure.
also that guy logged in right about the same time this happened. I'll brush it off as a fluke, it seems to be fine now.
Anti-Basic is offline   Reply With Quote
Old 08-27-2006, 05:35 PM   #23 (permalink)
Forum Newbie
 
Χååç's Avatar
 
Join Date: Jun 2006
Posts: 30
Send a message via MSN to Χååç
Default Only this script is garbage

This script would be good if it actually did something rather then suck and put a message in my C# RunUO file How do I get this thing to work maybe then it wouldn't suck
Χååç is offline   Reply With Quote
Old 08-27-2006, 10:15 PM   #24 (permalink)
Forum Expert
 
Asmir3's Avatar
 
Join Date: Sep 2005
Location: A-Town Baby
Age: 19
Posts: 620
Default

Maybe u should read what Milt has explaned. Read

Installation Instructions:

Setting up the system:


Quote:
Originally Posted by Χååç
This script would be good if it actually did something rather then suck and put a message in my C# RunUO file How do I get this thing to work maybe then it wouldn't suck
__________________

Now open - uo15.net - The best in Publish 15 emulation
Asmir3 is offline   Reply With Quote
Old 09-30-2006, 12:59 AM   #25 (permalink)
Newbie