Go Back   RunUO - Ultima Online Emulation > RunUO > Custom Script Release Archive

Custom Script Release Archive This is a pre-script database archive of what our users had released.

 
 
Thread Tools Display Modes
Old 02-13-2006, 07:27 PM   #1 (permalink)
Forum Master
 
Joeku's Avatar
 
Join Date: Feb 2005
Location: ShatteredSosaria.com
Posts: 9,261
Thumbs up Client Patch Warning

Client Patch Warning v1.6
Originally created by Joeku AKA Demortris
Completely revamped by XxSP1DERxX

Changelog
-v1.0 > v1.1 Post #12: updated to allow seperate required and suggested patches. Fixed bug that would potentially leave players invulnerable/frozen (Thanks for the report Erica).
-v1.1 > v1.2 Post #13: fixed small bug that would sometimes send gump on invalid clients. Fixed bug that always made the player mortal and unfrozen (was an annoyance for staff who keep immortal).
-v1.2 > v1.3 Post #45 XxSP1DERxX's Complete Revamp: Consolidated the gumps into 1 gump. Consolidated the gump display. Optimized the version checks. Fixed the null Client Version bug. Fixed an exploit to defeat the gump. Fixed a timer bug keeping the timer alive indefinately. Fixed a timer bug making the gumps keep reappearing. 'bad client version' is now written to the console. Fixed a bug with freezing/blessing not being taken off. Removed the Try/Catch and added a Mobile check (jic?). Fixed the spacing on the buttons to be standard for all gump variants. Edited the messages that are sent to the client. Suggested patching no longer blesses/freezes you.
-v1.3 > v1.45 Post #55: Removed the Blessing/CantWalk crap due to bugs. Added Enforce Client Verification so that you can enforce Required clients to go through the client verification as a normal RunUO server would.
v1.45 > v1.5 Post #63: Fixed the problem with EnforceClientVerification. It will now work without any other file modifications.
v1.5 > v1.6 Post #69: Updated to allow a certain amount of seconds for invulnerability protection. Default protection is 15 seconds.

Description
Dynamic Client Patch Warning gump. No distro files included.

Features
-Automatically detects shard name/inserts where neccesary
-Pops up overtop of other gumps on player login (if player's client is not up-to-date)
-Seperate required and suggested patch versions can be enabled.
-Built-in Help Menu.
-Website button.
-Yet more sexy gump art by yours truly!
-Tons of updates and options by XxSP1DERxX!
-Optional invulnerability protection for players, time-based (you can set how long you want). Default 15 seconds.

Patch Suggested Preview*
Patch Required Preview*
Help Gump Preview*

Installation
Extract the attached file to your custom scripts directory. In the file "ClientPatchWarning.cs", locate the following code:
Code:
public class ClientPatchWarning
{
	//Settings
	public static bool EnforceClientVerification = false;
	public static ClientVersion Required = new ClientVersion( "5.0.1a" );
	public static ClientVersion Suggested = new ClientVersion( "5.0.1j" );
	public static string WebsiteURL = "http://www.runuo.com/forums";
	public static TimeSpan Delay = TimeSpan.FromSeconds( 1.0 );
	public static TimeSpan KickDelay = TimeSpan.FromSeconds( 30.0 );
	public static int InvulProtection = 15;	//seconds of invulnerability protection
Set the parts in red to what is desired. Enjoy!

Future Plans
-Auto-detect new client patch versions (I have no idea how I can do this, if anyone has any idea please tell me!)
-Simple organized logging with an in-game viewer.

Thank you for using this script, I hope you enjoy it! You can e-mail suggestions/requests to demortris@adelphia.net, post them here, or contact XxSP1DERxX.

*Preview Images are bad quality. Images are not up-to-date.
Attached Files
File Type: cs ClientPatchWarning.cs (7.5 KB, 197 views)

Last edited by Joeku; 03-29-2006 at 02:19 AM. Reason: v1.5 > v1.6
Joeku is offline  
Old 02-13-2006, 08:10 PM   #2 (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

This is awesome! I like it...it would also be nice to possibly add in support for custom patches......although im not sure if this is neccessary or not? i never did a patch for my shard yet so....*shrug*

great job though
__________________

Pyro-Tech is offline  
Old 02-13-2006, 08:26 PM   #3 (permalink)
Forum Master
 
Joeku's Avatar
 
Join Date: Feb 2005
Location: ShatteredSosaria.com
Posts: 9,261
Default

I don't think its possible to detect what files the player's client is using. That would be cool though
Joeku is offline  
Old 02-13-2006, 09:58 PM   #4 (permalink)
Forum Expert
 
Erica's Avatar
 
Join Date: Jan 2005
Location: Laramie Wyoming
Age: 43
Posts: 1,323
Send a message via ICQ to Erica Send a message via AIM to Erica Send a message via MSN to Erica Send a message via Yahoo to Erica Send a message via Skype™ to Erica
Default

So let me get this straight your saying this script if i just put it in my custom folder script and do not change nothing on the script at all that if a player is in client 5.0.1h and i just got that part on script to 5.0.1j they wont be able to do nothing or move till they patch up and they get the gump to read what they gotta do if so please let me know cause if thats the case this is awesome since lots never listen when you tell them to patch up on osi.*PS* Also was wondering if player already has account before i added this script and if there client is 5.0.1h would that also freeze them up till they patch also.
Erica is offline  
Old 02-13-2006, 10:27 PM   #5 (permalink)
Forum Master
 
Joeku's Avatar
 
Join Date: Feb 2005
Location: ShatteredSosaria.com
Posts: 9,261
Default

If you have it set to "bool required = true;" then they can't do anything until they patch. If you have it set to "bool required = false;" then the gump just pops up every time they log in and they can exit out of it, but it should eventually annoy them enough to make them patch lol.
Joeku is offline  
Old 02-13-2006, 10:51 PM   #6 (permalink)
Forum Expert
 
Erica's Avatar
 
Join Date: Jan 2005
Location: Laramie Wyoming
Age: 43
Posts: 1,323
Send a message via ICQ to Erica Send a message via AIM to Erica Send a message via MSN to Erica Send a message via Yahoo to Erica Send a message via Skype™ to Erica
Default

Quote:
Originally Posted by Joeku
If you have it set to "bool required = true;" then they can't do anything until they patch. If you have it set to "bool required = false;" then the gump just pops up every time they log in and they can exit out of it, but it should eventually annoy them enough to make them patch lol.
hmm thats odd i set this to "bool required = true;" and as a admin i cant move and im at client 5.0.1j and script also of yours set to 5.0.1j i had to prop myself to put cantwalk to true was on false might want to check that .
Erica is offline  
Old 02-13-2006, 11:14 PM   #7 (permalink)
 
Join Date: Oct 2002
Age: 23
Posts: 4,689
Default

This would be better if you could have BOTH options, required and recommended. If the required is met, then the recommended is sent only, otherwise the required is used.
XxSP1DERxX is offline  
Old 02-13-2006, 11:22 PM   #8 (permalink)
Forum Master
 
Joeku's Avatar
 
Join Date: Feb 2005
Location: ShatteredSosaria.com
Posts: 9,261
Default

Good idea, I'll work on that tomorow. Thanks
Joeku is offline  
Old 02-14-2006, 01:26 PM   #9 (permalink)
 
Join Date: Oct 2002
Age: 23
Posts: 4,689
Default

Also you could have done this script without using new gumps. RunUO comes with OSI's default warning gump (used with moongate travelling etc). if you had used it, you would only need to specify the title, the body, and its callback.
XxSP1DERxX is offline  
Old 02-14-2006, 02:50 PM   #10 (permalink)
Forum Expert
 
stormwolff's Avatar
 
Join Date: Nov 2003
Location: The Internet
Age: 28
Posts: 3,510
Default

Great idea
stormwolff is offline  
Old 02-15-2006, 12:41 PM   #11 (permalink)
Forum Master
 
Joeku's Avatar
 
Join Date: Feb 2005
Location: ShatteredSosaria.com
Posts: 9,261
Default

Quote:
Originally Posted by Erica
hmm thats odd i set this to "bool required = true;" and as a admin i cant move and im at client 5.0.1j and script also of yours set to 5.0.1j i had to prop myself to put cantwalk to true was on false might want to check that .
Didn't do that for me...

I'll be running some more tests on this, should come out with a new release soon.
Joeku is offline  
Old 02-15-2006, 03:03 PM   #12 (permalink)
Forum Master
 
Joeku's Avatar
 
Join Date: Feb 2005
Location: ShatteredSosaria.com
Posts: 9,261
Default

v1.0 > v1.1
Client Patch Warning v1.1 now posted, please replace the following: "Client Patch Warning v1.0.cs" with the updated version.
Info: updated to allow seperate required and suggested patches. Fixed bug that would potentially leave players invulnerable/frozen (Thanks for the report Erica).

Last edited by Joeku; 02-15-2006 at 03:06 PM.
Joeku is offline  
Old 02-19-2006, 01:20 AM   #13 (permalink)
Forum Master
 
Joeku's Avatar
 
Join Date: Feb 2005
Location: ShatteredSosaria.com
Posts: 9,261
Default

v1.1 > v1.2
Client Patch Warning v1.2 now posted, please replace the following: "Client Patch Warning v1.1.cs" with the updated version.
Info: fixed small bug that would sometimes send gump on invalid clients. Fixed bug that always made the player mortal and unfrozen (was an annoyance for staff who keep immortal).
Joeku is offline  
Old 02-19-2006, 11:27 PM   #14 (permalink)
Forum Novice
 
Join Date: May 2005
Age: 36
Posts: 175
Default

Quote:
Originally Posted by Joeku
If you have it set to "bool required = true;" then they can't do anything until they patch. If you have it set to "bool required = false;" then the gump just pops up every time they log in and they can exit out of it, but it should eventually annoy them enough to make them patch lol.
I cant find "bool required = " in this script
PoolMan is offline  
Old 02-20-2006, 12:51 AM   #15 (permalink)
Forum Master
 
Joeku's Avatar
 
Join Date: Feb 2005
Location: ShatteredSosaria.com
Posts: 9,261
Default

The script has been updated since that post; please read through the entire thread. Now you can have a required version and a suggested version. The required version is default at 4.0.0 (which almost everyone has anyway). If you want it to be the latest version, just set it to 5.0.1j.
Joeku is offline  
Old 02-20-2006, 06:54 AM   #16 (permalink)
Forum Expert
 
Erica's Avatar
 
Join Date: Jan 2005
Location: Laramie Wyoming
Age: 43
Posts: 1,323
Send a message via ICQ to Erica Send a message via AIM to Erica Send a message via MSN to Erica Send a message via Yahoo to Erica Send a message via Skype™ to Erica
Default

Quote:
Originally Posted by Joeku
The script has been updated since that post; please read through the entire thread. Now you can have a required version and a suggested version. The required version is default at 4.0.0 (which almost everyone has anyway). If you want it to be the latest version, just set it to 5.0.1j.
i found a bug ok when a gm or a admin lets say you keep the staff immortal you log off then log back on and your not immortal no more so there should be something to not conflict the admins or any staff member that like to stay immortal.
Erica is offline  
Old 02-20-2006, 02:28 PM   #17 (permalink)
Forum Master
 
Joeku's Avatar
 
Join Date: Feb 2005
Location: ShatteredSosaria.com
Posts: 9,261
Default

Yes, I thought that I fixed that in version 1.2, but it is still bugging for me too. I'll run some more tests...
Joeku is offline  
Old 02-21-2006, 02:30 PM   #18 (permalink)
 
Join Date: Oct 2002
Age: 23
Posts: 4,689
Default

This should work, but I am at school so I doubt its perfect. It should be enough for you to get an idea of how to fix it (if I didn't already). I also consolidated your gump.

Last edited by XxSP1DERxX; 02-22-2006 at 03:57 AM.
XxSP1DERxX is offline  
Old 02-21-2006, 05:35 PM   #19 (permalink)
Forum Expert
 
Erica's Avatar
 
Join Date: Jan 2005
Location: Laramie Wyoming
Age: 43
Posts: 1,323
Send a message via ICQ to Erica Send a message via AIM to Erica Send a message via MSN to Erica Send a message via Yahoo to Erica Send a message via Skype™ to Erica
Default

Quote:
Originally Posted by XxSP1DERxX
This should work, but I am at school so I doubt its perfect. It should be enough for you to get an idea of how to fix it (if I didn't already). I also consolidated your gump.
2 errors on yours
Code:
 - Error: Scripts\CustomScripts\ClientPatchWarning.cs: CS0103: (line 25, column
47) The name 'World_Logout' does not exist in the class or namespace 'Server.Cli
entPatchWarning'
 - Error: Scripts\CustomScripts\ClientPatchWarning.cs: CS1026: (line 63, column
49) ) expected
Erica is offline  
Old 02-21-2006, 05:54 PM   #20 (permalink)
Forum Expert
 
Raider's Avatar
 
Join Date: Jan 2005
Age: 31
Posts: 288
Send a message via Yahoo to Raider
Default

I also got the same errors as you did so XxSP1DERxX have any clue .
Raider is offline  
Old 02-21-2006, 08:52 PM   #21 (permalink)
Forum Master
 
Joeku's Avatar
 
Join Date: Feb 2005
Location: ShatteredSosaria.com
Posts: 9,261
Default

I'll fix and repost... thanks for the great idea, Spider!
Joeku is offline  
Old 02-22-2006, 03:57 AM   #22 (permalink)
 
Join Date: Oct 2002
Age: 23
Posts: 4,689
Default

Here i fixed those 2 errors.

I believe I fixed the bug with the gump, but since I haven't tested it I cannot be 100%. Please get back to me on that, or of course Joeku

There is a problem with the way the CTimer runs. It will run indefinately. Once I have this fixed, I will repost it.

Last edited by XxSP1DERxX; 02-24-2006 at 03:32 AM.
XxSP1DERxX is offline  
Old 02-22-2006, 05:38 AM   #23 (permalink)
Forum Expert
 
Erica's Avatar
 
Join Date: Jan 2005
Location: Laramie Wyoming
Age: 43
Posts: 1,323
Send a message via ICQ to Erica Send a message via AIM to Erica Send a message via MSN to Erica Send a message via Yahoo to Erica Send a message via Skype™ to Erica
Default

Quote:
Originally Posted by XxSP1DERxX
Here i fixed those 2 errors.

I believe I fixed the bug with the gump, but since I haven't tested it I cannot be 100%. Please get back to me on that, or of course Joeku

There is a problem with the way the CTimer runs. It will run indefinately. Once I have this fixed, I will repost it.

Note: Because the script has been modified for the majority of its content, the header has been removed. Credit for the original script goes to Joeku because the amount edited is less than three-quarters.
Doesnt Work you stay stuck in log in.
Erica is offline  
Old 02-22-2006, 10:38 AM   #24 (permalink)
 
Join Date: Oct 2002
Age: 23
Posts: 4,689
Default

Quote:
Originally Posted by Erica
Doesnt Work you stay stuck in log in.
It doesn't do that for me, but that could be related to the Timer issue I said earlier. I will have a version that does work 100% out by the end of today.
XxSP1DERxX is offline  
Old 02-22-2006, 11:05 AM   #25 (permalink)
 
Join Date: Oct 2002
Age: 23
Posts: 4,689
Default

I fixed the problems, here is the script.
XxSP1DERxX is offline  
 

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 - 2009, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0 RC5