Ravenal
Knight
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....
This is my version
Heres a Comparaison of my shard's Main and the one that is defaulted...
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:
<?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:
<?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...