Go Back   RunUO - Ultima Online Emulation > RunUO > Core Modifications > Other

Other Cant find a category above, use this one! Core mods not listed above go here!

Reply
 
Thread Tools Display Modes
Old 02-14-2005, 04:06 AM   #1 (permalink)
Forum Expert
 
Ravenal's Avatar
 
Join Date: Oct 2003
Location: Spokane Valley, WA
Age: 24
Posts: 1,528
Default New Main.cs Feature... Core Userfriendly

I wanted to spend the extra time to develop a new main so I did...


What I did is a new feature that I believe might work for other places too... This feature might be neat for those who use Motd versions and people may want to know what version the shard is at or something sooo I developed a XML version easy editable...

Simple Installation...

Add your main.cs into the correct location, if you have already reworked your main.cs to do something then I would advice you to know what your doing.... Otherwise go ahead and override ...

At the first time you load it it will restart the core because it is creating the Core.xml file which contains some properties such as this...

RunUO Default (Notice NULL) means that RunUO does not have a Stage, if it was RC then that is where it would have gone...

Also notice that if you change the "Shardname" to something else, it will display that RunUO Message underneath it... I would be kind enought if you did not remove this part Afterall RunUO deserves some credit for their work...

Also to find these Properties for your shard stuff all you have to do is do...

Core.ReadShardVersion and it will put it in there

Notice now, if you Wanted to make your Offical ShardName work well in the ServerList.cs, you need to Change the const to static and it will then Display the shard name if you change it there... Thus will allow you to change the entire shard files or version etc. without having to search and find each script, just incase you decide to change something like your website or something...

WARNING: IF YOU TRY TO CHANGE THE CORE.XML WHILE YOUR SHARD IS RUNNING, THE CHANGES WILL NOT CHANGE UNTIL YOU RESTART....

PHP Code:
<?xml version="1.0" encoding="utf-8" standalone="yes" ?> 
- <ShardConfig>
  <ShardProperties ShardName="RunUO" ShardStage="NULL" ShardWebsite="www.runuo.com" ShardVersion="1.0.0, Build 42853" ShowTodayDate="false" /> 
  </ShardConfig>
This is my version

PHP Code:
<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<ShardConfig>
        <ShardProperties 
        ShardName="Paragonix" 
        ShardStage="Closed Alpha" 
        ShardWebsite="http://paragonix.uniphix.com" 
        ShardVersion="1.0.0a"
        ShowTodayDate="true" />
</ShardConfig>
Heres a Comparaison of my shard's Main and the one that is defaulted...

Attached Files
File Type: cs Main.cs (15.8 KB, 96 views)
__________________
Creator of Genesis :: genesisworlds.com
-- Genesis is the next replacement program for UO Landscaper & Dragon
Ravenal is offline   Reply With Quote
Old 02-14-2005, 05:22 AM   #2 (permalink)
Forum Expert
 
Ravenal's Avatar
 
Join Date: Oct 2003
Location: Spokane Valley, WA
Age: 24
Posts: 1,528
Default

Any sugesstions or possible features you would like me to fix or add just let me know.

Any bugs on this let me know and I'll fix it asap...

Thanks,

awakenlands
__________________
Creator of Genesis :: genesisworlds.com
-- Genesis is the next replacement program for UO Landscaper & Dragon
Ravenal is offline   Reply With Quote
Old 02-14-2005, 04:03 PM   #3 (permalink)
Forum Expert
 
Greystar's Avatar
 
Join Date: Mar 2004
Location: NorthCentral IL, USA
Age: 35
Posts: 3,848
Default

Quote:
Originally Posted by awakenlands
Any sugesstions or possible features you would like me to fix or add just let me know.

Any bugs on this let me know and I'll fix it asap...

Thanks,

awakenlands
All I have to say at this point is nice little mod
__________________
Quote:
(\__/)
(='.'=)This is Bunny. Copy and paste bunny into your
(")_(")signature to help him gain world domination.
Killable Guards (GS Version)
Just a Simple Staff Tool
You can leave me messages.
Ernest Gary Gygax - Quote "I would like the world to remember me as the guy who really enjoyed playing games and sharing his knowledge and his fun pastimes with everybody else."
Greystar is offline   Reply With Quote
Old 02-14-2005, 04:23 PM   #4 (permalink)
Forum Expert
 
Ravenal's Avatar
 
Join Date: Oct 2003
Location: Spokane Valley, WA
Age: 24
Posts: 1,528
Default

Thanks
__________________
Creator of Genesis :: genesisworlds.com
-- Genesis is the next replacement program for UO Landscaper & Dragon
Ravenal is offline   Reply With Quote
Old 03-31-2005, 06:39 PM   #5 (permalink)
Forum Expert
 
Ravenal's Avatar
 
Join Date: Oct 2003
Location: Spokane Valley, WA
Age: 24
Posts: 1,528
Default

Has anyone had issues with this??? And seriously would like to know who has been using this ???
__________________
Creator of Genesis :: genesisworlds.com
-- Genesis is the next replacement program for UO Landscaper & Dragon
Ravenal is offline   Reply With Quote
Old 04-01-2005, 01:31 PM   #6 (permalink)
Forum Expert
 
Greystar's Avatar
 
Join Date: Mar 2004
Location: NorthCentral IL, USA
Age: 35
Posts: 3,848
Default

Quote:
Originally Posted by awakenlands
Has anyone had issues with this??? And seriously would like to know who has been using this ???

I've been using this and had no problems at this point. If I do I'll let you know.
__________________
Quote:
(\__/)
(='.'=)This is Bunny. Copy and paste bunny into your
(")_(")signature to help him gain world domination.
Killable Guards (GS Version)
Just a Simple Staff Tool
You can leave me messages.
Ernest Gary Gygax - Quote "I would like the world to remember me as the guy who really enjoyed playing games and sharing his knowledge and his fun pastimes with everybody else."
Greystar is offline   Reply With Quote
Old 07-07-2005, 09:50 PM   #7 (permalink)
 
Join Date: Dec 2004
Location: USA michigan
Age: 30
Posts: 171
Send a message via Yahoo to cuy782002
Default


ok in english what is this going to change sry for a stupid question but i just have to ask
and were do i put it i looked for the main.cs and didnt come up wif anything

please help a newbie out
cuy782002 is offline   Reply With Quote
Old 07-07-2005, 09:58 PM   #8 (permalink)
Account Terminated
 
Join Date: Sep 2002
Age: 26
Posts: 3,846
Send a message via ICQ to Phantom Send a message via AIM to Phantom Send a message via MSN to Phantom
Default

Quote:
Originally Posted by cuy782002

ok in english what is this going to change sry for a stupid question but i just have to ask
and were do i put it i looked for the main.cs and didnt come up wif anything

please help a newbie out
This is a core modification, to use this, you would have to recompile the core. If your a newbie and don't know how to do this, I suggest you don't even attempt it.

awakenlands

You do understand this would have been possible without a core modification right? Although it wouldn't be displayed at the top, but then again I didn't look at where your code is displayed.
Phantom is offline   Reply With Quote
Old 07-10-2005, 09:57 PM   #9 (permalink)
Forum Expert
 
Ravenal's Avatar
 
Join Date: Oct 2003
Location: Spokane Valley, WA
Age: 24
Posts: 1,528
Default

Yes Phantom I do realize this, but instead of recompiling the core over and over just to change information in there I allowed a XML file that will be read on the application startup ...

I use this same method for my general Shard name from ShardList.cs, MOTD.cs and many other files...

It was simple and easy to make *shurgs*
__________________
Creator of Genesis :: genesisworlds.com
-- Genesis is the next replacement program for UO Landscaper & Dragon
Ravenal is offline   Reply With Quote
Old 07-10-2005, 10:31 PM   #10 (permalink)
Forum Expert
 
Ohms_Law's Avatar
 
Join Date: Sep 2004
Age: 37
Posts: 1,006
Default

awakenlands, he was talking to that "cuy782002" guy, three posts up, not you...
Ohms_Law is offline   Reply With Quote
Old 07-10-2005, 11:16 PM   #11 (permalink)
Account Terminated
 
Join Date: Sep 2002
Age: 26
Posts: 3,846
Send a message via ICQ to Phantom Send a message via AIM to Phantom Send a message via MSN to Phantom
Default

Quote:
Originally Posted by Ohms_Law
awakenlands, he was talking to that "cuy782002" guy, three posts up, not you...
(Thats) funny, I think I know who I was talking to, and it wasn't that guy.
Phantom is offline   Reply With Quote
Old 07-10-2005, 11:47 PM   #12 (permalink)
Forum Expert
 
Ohms_Law's Avatar
 
Join Date: Sep 2004
Age: 37
Posts: 1,006
Default

pfft... i'm an idiot...
Ohms_Law is offline   Reply With Quote
Old 07-11-2005, 01:10 PM   #13 (permalink)
Forum Expert
 
Ravenal's Avatar
 
Join Date: Oct 2003
Location: Spokane Valley, WA
Age: 24
Posts: 1,528
Default

lol :P Nay you just overlooked thats all
__________________
Creator of Genesis :: genesisworlds.com
-- Genesis is the next replacement program for UO Landscaper & Dragon
Ravenal 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