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 08-25-2008, 05:08 PM   #1 (permalink)
ConnectUO Creator
 
Jeff's Avatar
 
Join Date: Jan 2004
Age: 27
Posts: 4,881
Default [RunUO 2.0 SVN] Extension Scripts

Hi guys, It's been along time since I've released anything here, and I hadn't planned on releasing anything else. But, since I needed to use RunUO to grade the competition entries and was getting sick of waiting for the scripts to compile, I wrote this enhancement to help me.

Description
The Extensions Scripts modification allows you to specify seperate folders to put scripts in within the root of the RunUO directory. Each specified folder will be compiled and cached within its own directory just as RunUO does with the Scripts directory.

Pros:
  • If the Scripts in Scripts\ are not changed and cached, compile time is greatly increased
  • You can add an Unlimited number of extensions.(Best to make 1 extension per system, if the system doesnt require any modification to the distro)
Cons:
  • Core mod, Need to have Intermediate to Advanced knowledge of C# to install.
  • Once an extension is added, it may only be removed it the scripts inside the extension do not use Serialization and no other extension references it. If they do and you remove it you WILL corrupt your world save or the server will no longer compile.

Installation
Copy and overwrite ScriptCompiler.cs and Main.cs into your RunUO Core Project and compile the Core. Create a file in /Data/ called extensions.cfg. Add the name of each directory you wish to compile seperately into extensions.cfg.

Extensions.cfg Example
My RunUO Directory has 4 folders in it. Data, Scripts, ScriptExtensions, and ScriptCompetitions directories. My extensions.cfg file looks like the following

Code:
ScriptExtensions
ScriptCompetitions
This is what the Console will say if it successfully compiles each Extension Folder

Code:
RunUO - [www.runuo.com] Version 2.0, Build 3159.19932
Core: Running on .NET Framework Version 2.0.50727
Core: Optimizing for 2 64-bit processors
Scripts: Compiling C# scripts (Scripts)...done (cached)
Scripts: Skipping VB.NET Scripts...done (use -vb to enable)
Scripts: Compiling C# scripts (ScriptExtensions)...done (0 errors, 0 warnings)
Scripts: Skipping VB.NET Scripts...done (use -vb to enable)
Scripts: Compiling C# scripts (ScriptCompetitions)...done (cached)
Scripts: Skipping VB.NET Scripts...done (use -vb to enable)
Scripts: Verifying...done (2120 items, 500 mobiles)
Regions: Loading...done
World: Loading...done (22 items, 1 mobiles) (0.62 seconds)
ServerList: Auto-detecting public IP address...done (69.17.103.204)
Restricting client version to 6.0.9.2. Action to be taken: LenientKick
Additional Notes
If you have several different extension folders and one of the folders references objects in another, the folder with the referenced items needs to be before the other in the extensions.cfg.

Example:
ExtensionsA has object NewItem.
ExtensionsB has an object NewerItem and is inhereted from NewItem.

When specifying these folders in the extensions.cfg you need to add ExtensionsA, then ExtensionsB

Disclaimer
I am currently using this to test scripts that are submitted for Scripting Competitions. I will provide any and all fixes that I find in my testing, or and big issues that are found from you the user. Unless I'm in a fairly decent mood, you won't see much support for installing this. This is a Core Mod and RunUO's official policy is no support for Core Mods...If you do not have the know-how to install this yourself, learn to use C# outside of RunUO and it should make sense later. Additionally there is no Support for VB scripts with this Mod and since I do not need it, I will not be introducing it.

Updates
  • 1.02 Fixed a bug that caused the Extensions to not load properly.
  • 1.01 Fixed a bug that allowed you to specify folders not in the root of the RunUO directory.
  • 1.00 Initial Release
Attached Files
File Type: zip ExtensionScripts.zip (10.2 KB, 44 views)
__________________
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

Last edited by Jeff; 08-26-2008 at 07:33 PM.
Jeff is offline   Reply With Quote
Old 08-25-2008, 05:17 PM   #2 (permalink)
Master of the Internet
 
Join Date: Mar 2006
Location: Germany
Age: 17
Posts: 14,770
Send a message via AIM to Suil Ban Send a message via MSN to Suil Ban
Default

That's pretty handy.
__________________
go fish
Suil Ban is offline   Reply With Quote
Old 08-25-2008, 06:01 PM   #3 (permalink)
ConnectUO Creator
 
Jeff's Avatar
 
Join Date: Jan 2004
Age: 27
Posts: 4,881
Default

Updated 1.01
__________________
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-25-2008, 07:36 PM   #4 (permalink)
ConnectUO Creator
 
Jeff's Avatar
 
Join Date: Jan 2004
Age: 27
Posts: 4,881
Default

Updated 1.02
__________________
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-26-2008, 01:47 AM   #5 (permalink)
Forum Master
 
Joeku's Avatar
 
Join Date: Feb 2005
Location: ShatteredSosaria.com
Posts: 9,260
Default

Has anyone ever told you that you're amazing?

And have I ever told you that I love you?
Joeku is offline   Reply With Quote
Old 08-26-2008, 06:58 PM   #6 (permalink)
Forum Expert
 
Asmir3's Avatar
 
Join Date: Sep 2005
Location: A-Town Baby
Age: 19
Posts: 620
Default

Nice job Jeff but I have one error when compiling the core

Error1: 'Server.ScriptCompiler' does not contain a definition for 'VerifyingAndLoad'C:\Documents and Settings\Asmir\My Documents\Visual Studio 2008\Projects\RunUO\RunUO\Main.cs
__________________

Now open - uo15.net - The best in Publish 15 emulation
Asmir3 is offline   Reply With Quote
Old 08-26-2008, 07:32 PM   #7 (permalink)
ConnectUO Creator
 
Jeff's Avatar
 
Join Date: Jan 2004
Age: 27
Posts: 4,881
Default

Quote:
Originally Posted by Asmir3 View Post
Nice job Jeff but I have one error when compiling the core

Error1: 'Server.ScriptCompiler' does not contain a definition for 'VerifyingAndLoad'C:\Documents and Settings\Asmir\My Documents\Visual Studio 2008\Projects\RunUO\RunUO\Main.cs
Ya sorry, I changed the name and forgot to include the new Main.cs

you can either change that line that says VerifyingAndLoad to VerifyAndLoad or redownload it, I've fixed it in the zip.
__________________
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-26-2008, 08:00 PM   #8 (permalink)
Forum Novice
 
Join Date: Dec 2006
Location: Southern Utah
Age: 29
Posts: 914
Send a message via Yahoo to greywolf79
Default

Looks cool. Thanks. I will check it out when I get home and have a chance...

GreyWolf.
greywolf79 is online now   Reply With Quote
Old 08-28-2008, 02:39 AM   #9 (permalink)
Forum Master
 
Joeku's Avatar
 
Join Date: Feb 2005
Location: ShatteredSosaria.com
Posts: 9,260
Default

Idk if this is good...
Quote:
RunUO - [www.runuo.com] Version 2.0, Build 3162.967
Core: Running on .NET Framework Version 2.0.50727
Core: Optimizing for 2 processors
Scripts: Compiling C# scripts (Scripts)...done (cached)
Scripts: Skipping VB.NET Scripts...done (use -vb to enable)
Scripts: Compiling C# scripts (Custom Scripts)...done (cached)
Scripts: Skipping VB.NET Scripts...done (use -vb to enable)
Scripts: Verifying...done (2124 items, 500 mobiles)
Regions: Loading...done
World: Loading...done (3 items, 1 mobiles) (0.35 seconds)
ServerList: Auto-detecting public IP address...done (24.224.67.106)
Restricting client version to 6.0.9.2. Action to be taken: LenientKick
Listening: 127.0.0.1:2593
Listening: 192.168.100.103:2593
It's there twice...

Another thing is, if the custom folder doesn't contain any files, it throws an error.
Joeku is offline   Reply With Quote
Old 08-28-2008, 06:51 PM   #10 (permalink)
ConnectUO Creator
 
Jeff's Avatar
 
Join Date: Jan 2004
Age: 27
Posts: 4,881
Default

Quote:
Originally Posted by Joeku View Post
Idk if this is good...

It's there twice...

Another thing is, if the custom folder doesn't contain any files, it throws an error.
Its there 2 times, because it trys to compile for each "Scripts" and "Extensions" it would be there a 3rd time if u had a 2nd Extension, It just says Scripts because I didnt change anything in the VB side, i thought I mentioned that above . Ya, i figured no one was dumb enough to leave the folder empty....my mistake.
__________________
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 10-08-2008, 12:38 AM   #11 (permalink)
Forum Master
 
Joeku's Avatar
 
Join Date: Feb 2005
Location: ShatteredSosaria.com
Posts: 9,260
Default

Found a bug...
Attached Images
File Type: png screenshot.PNG (92.6 KB, 33 views)
Joeku is offline   Reply With Quote
Old 10-08-2008, 02:07 AM   #12 (permalink)
ConnectUO Creator
 
Jeff's Avatar
 
Join Date: Jan 2004
Age: 27
Posts: 4,881
Default

Quote:
Originally Posted by Joeku View Post
Found a bug...
Hmm, ill look at this when im done with CUO.
__________________
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 10-08-2008, 06:09 AM   #13 (permalink)
Forum Novice
 
SiENcE's Avatar
 
Join Date: Jul 2005
Location: Berlin (Germany)
Posts: 124
Send a message via ICQ to SiENcE Send a message via AIM to SiENcE Send a message via MSN to SiENcE
Default

The concept is taken from SunUO. SunUO has this for years now.

It's in deed very handy but i prefer a more advanced system like in SunUO. I don't understand why the core team don't include this very good modification from max (sunuo).

An XML config to enable/disable the "extension scripts" like in SunUO is very handy and also a legacy overlay system for required "script folder" modifications. Via XML config you can also handle dependencys from extension scripts.

You should take a look at ;-).

Last edited by SiENcE; 10-08-2008 at 06:14 AM.
SiENcE 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 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0 RC5