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 publish them under the GPL licensing terms. 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 07-17-2007, 07:36 PM   #1 (permalink)
Administrator
 
Zippy's Avatar
 
Join Date: Aug 2002
Location: Baltimore, MD
Age: 26
Posts: 4,890
Default [1.0 and 2.0] Razor Feature Negotiation

Summary
This script allows your server to negotiate with Razor to determine which features are allowed on your server. This script will work with both 1.0 and 2.0 RunUO versions.

Installation
Simply place this script anywhere in your Scripts sub-folder.

Configuration
The following entries appear at the top of the script file:
Code:
		public const bool Enabled = true; // Is the "Feature Enforced" turned on?
		public const bool KickOnFailure = true; // When true, this will cause anyone who does not negotiate (include those not running Razor at all) to be disconnected from the server.
		public static readonly TimeSpan HandshakeTimeout = TimeSpan.FromSeconds( 30.0 ); // How long to wait for a handshake response before showing warning and disconnecting
		public static readonly TimeSpan DisconnectDelay = TimeSpan.FromSeconds( 15.0 ); // How long to show warning message before they are disconnected
		public const string WarningMessage = "The server was unable to negotiate features with Razor on your system.<BR>You must be running the <A HREF=\"http://razor.runuo.com/download.php\">latest version of Razor</A> to play on this server.<BR>Once you have Razor installed and running, go to the <B>Options</B> tab and check the box in the lower right-hand corner marked <B>Negotiate features with server</B>.  Once you have this box checked, you may log in and play normally.<BR>You will be disconnected shortly.";
These are fairly self explanitory, I think. Below them is the following section:
Code:
		public static void Configure()
		{
			// TODO: Add your server's feature allowances here
			// For example, the following line will disallow all looping macros on your server
			//DisallowFeature( RazorFeatures.LoopedMacros );
		}
You can add a list of features to be blocked by editing this area. The list of features appears directly below it. So, to disallow The light filter and the weather filter, you would change this section to the following:
Code:
		public static void Configure()
		{
			DisallowFeature( RazorFeatures.FilterWeather );
			DisallowFeature( RazorFeatures.FilterLight );
		}
How it works (This section describes the default configuration. If you change the configuration, it will work differently.)
This script negotiates features with Razor by sending a packet to the client and listening for a response sent by Razor.
Razor sends the response if and only if the "Negotiate features with server" option is checked on the "Options" tab. If players do not check this box, then Razor will not respond to the negotiation packet.
After starting negotiation, the server waits for 30 seconds for Razor to respond. If no response is received, a message is displayed to the user and 15 seconds later they are disconnected from the server. This means that both users who have not checked the "Negotiate features with server" box and users who do not have Razor running at all will be disconnected from your server. If you use this script with the default configuration, your users must be running Razor version 1.0.8 or higher in order to play on your server. The reason for this is that the users must voluntarily allow the server to detect Razor. If they chose not to allow it, then the server will be unable to detect them.
If the user has their Razor properly configured, they will see no messages and can play as normal. Features which have be disallowed by the server will show up as "locked" on the Razor window and players will not be able to use them.

Note: This script also requires Razor version 1.0.8 to work. This Razor version is being released today, and all users will be automatically updated over the next 24 hours. Users who prevent razor from updating properly or who use an other version of Razor will be treated as though they are not using Razor at all. In the default configuration, this means they will be shown a message and then disconnected from the server.

NOTICE: This feature and this script have only undergone a small amount of testing. There may be unexpected problems related to this script, and you are using it AT YOUR OWN RISK. Please test it before placing it on your live shard. Also, please DO NOT post bugs in this thread. Please post bugs relating to this feature and this script in the Razor Support Forum here on RunUO.com. Please post all general support questions (How do I do ____? Why is my ____ not working?) in this thread. Please do not ask questions about this script in the Razor Support Forum. The Razor Forum is for Razor questions and bugs related to this script (not support questions)!

Thank you, and enjoy.
Attached Files
File Type: cs RazorNegotiator.cs (6.0 KB, 385 views)
__________________
Zippy, Razor Creator and RunUO Core Developer
The RunUO Software Team

"Intuition, like a flash of lightning, lasts only for a second. It generally comes when one is tormented by a difficult decipherment and when one reviews in his mind the fruitless experiments already tried. Suddenly the light breaks through and one finds after a few minutes what previous days of labor were unable to reveal."
~The Cryptonomicon

Zippy is offline   Reply With Quote
Old 07-17-2007, 08:06 PM   #2 (permalink)
Tru
Forum Expert
 
Tru's Avatar
 
Join Date: Jan 2003
Location: California
Age: 41
Posts: 3,259
Default

You Rock!!
Tru is offline   Reply With Quote
Old 07-17-2007, 08:55 PM   #3 (permalink)
Forum Expert
 
Pyro-Tech's Avatar
 
Join Date: Oct 2003
Location: Carbondale, IL
Age: 25
Posts: 1,805
Send a message via MSN to Pyro-Tech
Default

wow...this is great.

too bad there isn't a better way to distinguish old versions and people who arent using it. That may be one reason i won't use this right away due to it require's everyone to run razor.

but this will be helpful to many....thanks for this
__________________

Pyro-Tech is offline   Reply With Quote
Old 07-17-2007, 09:06 PM   #4 (permalink)
Master of the Internet
 
Anti-Basic's Avatar
 
Join Date: Dec 2005
Posts: 13,307
Default

I agree with you wholeheartedly, but i can see from a technical standpoint where that would be difficult. TBH, I'd just put in the connectuo listing for the shard "Requires Razor" in description field.

If a player really wants to play the shard, they'll install it and just minimize/ignore it.
__________________
Quote:
Originally Posted by David View Post
Rats! I was fingered!
Anti-Basic is offline   Reply With Quote
Old 07-17-2007, 09:55 PM   #5 (permalink)
Master of the Internet
 
Lord_Greywolf's Avatar
 
Join Date: Dec 2005
Posts: 12,184
Send a message via Yahoo to Lord_Greywolf
Default

this does sound great, and i would use it, except to many of my players use the old encryption method (at least until connect uo can split up the patch files and support multi uo for gm's)

to bad can not make 2 different versions of 1.0.8 (1.0.8 & 1.0.8 old enc or what ever)
one for the new encryption and one for old encryption - because many many people are still using the old encrption method
__________________
http://www.AoAUO.com

:) ..... Come for the Customs, Play for the Fun. Return to see your new Friends ..... :)
Lord_Greywolf is offline   Reply With Quote
Old 07-18-2007, 05:14 AM   #6 (permalink)
Newbie
 
Dr. Phillie's Avatar
 
Join Date: Apr 2007
Age: 23
Posts: 77
Default

It gives me this:

Why? How to get rid of that message?
Dr. Phillie is offline   Reply With Quote
Old 07-18-2007, 05:57 AM   #7 (permalink)
Forum Expert
 
Join Date: Oct 2002
Age: 47
Posts: 4,755
Default

Thanks for listening to user suggestions and implementing this Zippy!
__________________
HellRazor is offline   Reply With Quote
Old 07-18-2007, 06:52 AM   #8 (permalink)
Administrator
 
Zippy's Avatar
 
Join Date: Aug 2002
Location: Baltimore, MD
Age: 26
Posts: 4,890
Default

Quote:
Originally Posted by Lord_Greywolf View Post
this does sound great, and i would use it, except to many of my players use the old encryption method (at least until connect uo can split up the patch files and support multi uo for gm's)

to bad can not make 2 different versions of 1.0.8 (1.0.8 & 1.0.8 old enc or what ever)
one for the new encryption and one for old encryption - because many many people are still using the old encrption method
There is no "old" encryption method. Razor will work with anything back until around 4.0.0.

Quote:
Originally Posted by Dr. Phillie View Post
It gives me this:

Why? How to get rid of that message?
I'll fix that and post an update later today.
__________________
Zippy, Razor Creator and RunUO Core Developer
The RunUO Software Team

"Intuition, like a flash of lightning, lasts only for a second. It generally comes when one is tormented by a difficult decipherment and when one reviews in his mind the fruitless experiments already tried. Suddenly the light breaks through and one finds after a few minutes what previous days of labor were unable to reveal."
~The Cryptonomicon

Zippy is offline   Reply With Quote
Old 07-18-2007, 08:34 AM   #9 (permalink)
Newbie
 
Dr. Phillie's Avatar
 
Join Date: Apr 2007
Age: 23
Posts: 77
Default

Will there come a change, if a player doesn't use razor he could still play the game?
Dr. Phillie is offline   Reply With Quote
Old 07-18-2007, 01:55 PM   #10 (permalink)
Forum Novice
 
Join Date: Jun 2007
Posts: 367
Default

Wow Interesting Script! Thanks Alot Ill Be Using This Probably! +Karma
__________________

Shard Name: MurDeR Go RounD
Shard IP: Murdergoround.servegame.com
The Ultimate PvP Deed
Flats is offline   Reply With Quote
Old 07-18-2007, 09:57 PM   #11 (permalink)
Administrator
 
Zippy's Avatar
 
Join Date: Aug 2002
Location: Baltimore, MD
Age: 26
Posts: 4,890
Default

Quote:
Originally Posted by Dr. Phillie View Post
Will there come a change, if a player doesn't use razor he could still play the game?
Unlikely .
__________________
Zippy, Razor Creator and RunUO Core Developer
The RunUO Software Team

"Intuition, like a flash of lightning, lasts only for a second. It generally comes when one is tormented by a difficult decipherment and when one reviews in his mind the fruitless experiments already tried. Suddenly the light breaks through and one finds after a few minutes what previous days of labor were unable to reveal."
~The Cryptonomicon

Zippy is offline   Reply With Quote
Old 07-18-2007, 10:07 PM   #12 (permalink)
Newbie
 
Join Date: Jul 2004
Location: China
Age: 27
Posts: 50
Send a message via ICQ to Cloud[CHN] Send a message via MSN to Cloud[CHN]
Wink

great~!

thanks for your efforts.

fame +9999
karma +9999
__________________
Driftin' Cloud in the Sky...
http://www.atlin.cn
Cloud[CHN] is offline   Reply With Quote
Old 07-19-2007, 05:58 AM   #13 (permalink)
Forum Novice
 
Join Date: Dec 2005
Location: Germany
Age: 32
Posts: 402
Default

Quote:
Originally Posted by Dr. Phillie View Post
Will there come a change, if a player doesn't use razor he could still play the game?
Quote:
Originally Posted by Zippy View Post
Unlikely.
But definitely a usefull thing, and as such a feature request supported by me.

(Disclaimer: of course I recognize that your word on it is final. A request is hardly a bad thing though.)
Setharnas is offline   Reply With Quote
Old 07-19-2007, 11:21 AM   #14 (permalink)
Master of the Internet
 
Anti-Basic's Avatar
 
Join Date: Dec 2005
Posts: 13,307
Default

Dudes, I think that its more of a technical problem than him choosing not to allow non razor users on.

Quote:
Originally Posted by Zippy
This script negotiates features with Razor by sending a packet to the client and listening for a response sent by Razor.
I'm guessing that since they were made before this negotiation script, older versions of razor don't know how to respond to the packet sent by the script. They can't be detected as existing thus they are treated the same as not having razor running. So, In order for the script to allow clients without razor running at all, it would also have to allow earlier versions of razor that cannot respond to the packet sent by the server, which defeats the purpose of blocking some razor features, since the players will just use an older version to use features which aren't allowed.
__________________
Quote:
Originally Posted by David View Post
Rats! I was fingered!
Anti-Basic is offline   Reply With Quote
Old 07-19-2007, 12:39 PM   #15 (permalink)
Master of the Internet
 
Lord_Greywolf's Avatar
 
Join Date: Dec 2005
Posts: 12,184
Send a message via Yahoo to Lord_Greywolf
Default

Quote:
Originally Posted by Zippy View Post
There is no "old" encryption method. Razor will work with anything back until around 4.0.0.
sorry, i should have been more specific
It will work with the clients, but not all 3rd party programs using the old encryption method (the one introduced in 5.0.65 is the new method that osi uses)
so only those using razor or connect uo to coonnect can use the newest razor

and like i said - neither one supports multi uo, multiple patches, and a few other features, that a lot of shards still use

I still love the idea, and hopefully once connect uo gets fully finctional, i amy be able to use it then
until then myself and a lot of other players are stuch using razor 1.0.1 or earlier versions only
__________________
http://www.AoAUO.com

:) ..... Come for the Customs, Play for the Fun. Return to see your new Friends ..... :)
Lord_Greywolf is offline   Reply With Quote
Old 07-19-2007, 05:08 PM   #16 (permalink)
Administrator
 
Zippy's Avatar
 
Join Date: Aug 2002
Location: Baltimore, MD
Age: 26
Posts: 4,890
Default

ConnectUO supports MultiUO and patches.

Razor supports MultiUO.
__________________
Zippy, Razor Creator and RunUO Core Developer
The RunUO Software Team

"Intuition, like a flash of lightning, lasts only for a second. It generally comes when one is tormented by a difficult decipherment and when one reviews in his mind the fruitless experiments already tried. Suddenly the light breaks through and one finds after a few minutes what previous days of labor were unable to reveal."
~The Cryptonomicon

Zippy is offline   Reply With Quote
Old 07-21-2007, 02:33 AM   #17 (permalink)
Master of the Internet
 
Lord_Greywolf's Avatar
 
Join Date: Dec 2005
Posts: 12,184
Send a message via Yahoo to Lord_Greywolf
Default

connect uo will only allow me to have 1 big patch file, not many smaller ones
can have many files instide of it but only 1 patch file
unless it was changed in the last couple of months again

but i have never got multi uo to work it - just sits there whne i try to open a second one up - but i could be doing something wrong

but it still does not fully support all of the different files either - there are a few that players still complain about, like bodydef, etc not working right

but things like that are for the connect uo discussion forums and not for here
__________________
http://www.AoAUO.com

:) ..... Come for the Customs, Play for the Fun. Return to see your new Friends ..... :)
Lord_Greywolf is offline   Reply With Quote
Old 07-21-2007, 05:38 AM   #18 (permalink)
Lurker
 
Join Date: Jan 2006
Posts: 1
Default

Hi,
i have problem, when i set this row to Configuration method

Code:
public static void Configure()
		{
			DisallowFeature( RazorFeatures.FilterWeather );
			DisallowFeature( RazorFeatures.FilterLight );
		}
And i start with "Negotiate features with server" as checked, an i have set filter light on razor. Light on server is stay filtered by razor.

I was thing that this setting can help disable this filter. Or i understand wrong?
Estelendil is offline   Reply With Quote
Old 08-13-2007, 06:20 PM   #19 (permalink)
Master of the Internet
 
Lord_Greywolf's Avatar
 
Join Date: Dec 2005
Posts: 12,184
Send a message via Yahoo to Lord_Greywolf
Default

a nice simple question - has any one have this running yet on their shard and got it working correctly?

And was it worth it?

just making sure before i force everyone to have razor
__________________
http://www.AoAUO.com

:) ..... Come for the Customs, Play for the Fun. Return to see your new Friends ..... :)
Lord_Greywolf is offline   Reply With Quote
Old 08-13-2007, 09:06 PM   #20 (permalink)
Tru
Forum Expert
 
Tru's Avatar
 
Join Date: Jan 2003
Location: California
Age: 41
Posts: 3,259
Default

Quote:
Originally Posted by Lord_Greywolf View Post
a nice simple question - has any one have this running yet on their shard and got it working correctly?

And was it worth it?

just making sure before i force everyone to have razor
I use it to simply filter Light and Weather and it works fine. I toyed with nulling auto doors and it worked but I removed it as that one annoyed people.
Tru is offline   Reply With Quote
Old 08-14-2007, 12:55 AM   #21 (permalink)
Master of the Internet
 
Lord_Greywolf's Avatar
 
Join Date: Dec 2005
Posts: 12,184
Send a message via Yahoo to Lord_Greywolf
Default

i am looking for doing the same filters as you, and maybe the block dismounting - at least until i test it to make sure that if i "hit a person" and dismount them they stay down - because i thought i say a couple auto mount again, and they sort of blows using the dismount special ability on weapons
(but if test show differently - then just the 1st 2)

*edited - just checked - it still does allow dismounting via weapon use even when checked - so can keep that one in
__________________
http://www.AoAUO.com

:) ..... Come for the Customs, Play for the Fun. Return to see your new Friends ..... :)

Last edited by Lord_Greywolf; 08-14-2007 at 01:12 AM.
Lord_Greywolf is offline   Reply With Quote
Old 08-14-2007, 08:14 AM   #22 (permalink)
Forum Expert
 
Join Date: Feb 2004
Age: 28
Posts: 1,834
Default

Quote:
Originally Posted by Lord_Greywolf View Post
i am looking for doing the same filters as you, and maybe the block dismounting - at least until i test it to make sure that if i "hit a person" and dismount them they stay down - because i thought i say a couple auto mount again, and they sort of blows using the dismount special ability on weapons
(but if test show differently - then just the 1st 2)

*edited - just checked - it still does allow dismounting via weapon use even when checked - so can keep that one in
also there is a remount delay of 10 seconds for bola and dismount ability
__________________
[sig]all my scripts are public domain and can be re-released in any form[/sig]
Kamuflaro is offline   Reply With Quote
Old 10-22-2007, 08:16 AM   #23 (permalink)
Forum Novice
 
qwerty84's Avatar
 
Join Date: Apr 2006
Location: Abbiategrasso, Italy
Age: 25
Posts: 134
Send a message via ICQ to qwerty84 Send a message via MSN to qwerty84
Default

Quote:
Originally Posted by Consol Log
RunUO - [www.runuo.com] Version 2.0, Build 2824.24868
Core: Running on .NET Framework Version 2.0.50727
Core: Running with arguments: -debug -haltonwarning
Core: Optimizing for 2 processors
Scripts: Compiling C# scripts...failed (0 errors, 1 warnings)
Warnings:
+ Custom/RazorNegotiator.cs:
CS0162: Line 141: Rilevato codice non eseguibile.
Scripts: One or more scripts failed to compile or no script files were found.
- Press return to exit, or R to try again.
Reveling the warning from SVN 264
qwerty84 is offline   Reply With Quote
Old 10-25-2007, 10:52 PM   #24 (permalink)
Administrator
 
Zippy's Avatar
 
Join Date: Aug 2002
Location: Baltimore, MD
Age: 26
Posts: 4,890
Default

Can you translate that to English?
__________________
Zippy, Razor Creator and RunUO Core Developer
The RunUO Software Team

"Intuition, like a flash of lightning, lasts only for a second. It generally comes when one is tormented by a difficult decipherment and when one reviews in his mind the fruitless experiments already tried. Suddenly the light breaks through and one finds after a few minutes what previous days of labor were unable to reveal."
~The Cryptonomicon

Zippy is offline   Reply With Quote
Old 10-25-2007, 10:58 PM   #25 (permalink)
Forum Master
 
Joeku's Avatar
 
Join Date: Feb 2005
Location: ShatteredSosaria.com
Posts: 9,279
Default

According to FreeTranslation.com, it looks to be Italian.
Quote:
Pointed out not executable code.
But yeah. I love you Zippy.
Joeku is offline   Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off



Powered by vBulletin® Version 3.7.0
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0 RC5