|
||
|
|||||||
| Other Cant find a category above, use this one! Core mods not listed above go here! |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#51 (permalink) |
|
Forum Expert
Join Date: Mar 2003
Location: where I belong
Posts: 1,786
|
Run through the tutorial again, step by step, and make sure you nail each piece on the head. Ensure that you're plugging the whole of the Core download into the Project -- you can see what's included in the .prjx or .cmb file when you load SharpDevelop and open the Projects tab.
Once that's done, make sure you've got everything in the right directory after compiling the executable. Scripts in the root Scripts folder, Data where it belongs, a Server.exe.config file (possibly not needed; haven't tried without it), and the rest of the shibang.
__________________
"Misfortune shows those who are not really friends." -Aristotle "A multitude of words is no proof of a prudent mind." -Thales |
|
|
|
|
|
#52 (permalink) | |
|
Forum Expert
Join Date: Nov 2004
Location: Beyond the Gates of Hell
Age: 36
Posts: 3,509
|
OK I got the .exe to work but the access level list in the [admin gump doesn't display the proper names. I tried this but I got errors:
Code:
private static int[] AccessOffsets = new int[]
{
0, //AccessLevel.Player //remains zero
1, //AccessLevel.Counselor //remains 1
2, //AccessLevel.GameMaster //remains 2
3, //AccessLevel.Scriptor //remains 3
4, //AccessLevel.Oracle //changed to 5
5, //AccessLevel.Seer //remains 3
6, //AccessLevel.Overseer //changed to 5
7, //AccessLevel.MasterScriptor //remains 3
8, //AccessLevel.Administrator //changed to 5
};
public static void Initialize()
{
Commands.Register( "FixAccess", AccessLevel.Administrator, new
ommandEventHandler( Online_OnCommand ) ); <--FixAccess here (opps)
}
private static void FixAcces_OnCommand( CommandEventArgs e )
{
ArrayList mobiles = new ArrayList( World.Mobiles.Values );
for( int i = 0; i < mobiles.Count; ++i )
{
Mobile m = mobiles[i] as Mobile;
int newOffset = AccessOffsets[m.AccessLevel];
m.AccessLevel = (AccessLevel)newOffset;
}
}
Quote:
*Edit: I fixed the first error, but still have the second one.
__________________
Leader of the Anti-OSI Movement. Inventing a new game experience in an EA Games-free environment. Don Juan Matus "The basic difference between an ordinary man and a warrior is that a warrior takes everything as a challenge, while an ordinary man takes everything as a blessing or as a curse." My Customs:
|
|
|
|
|
|
|
#53 (permalink) |
|
Forum Expert
Join Date: Mar 2003
Location: where I belong
Posts: 1,786
|
Try this:
Code:
public static void FixAcces_OnCommand( CommandEventArgs e )
{
ArrayList mobiles = new ArrayList( World.Mobiles.Values );
for( int i = 0; i < mobiles.Count; ++i )
{
Mobile m = mobiles[i] as Mobile;
int currLevel = (int)m.AccessLevel;
int newOffset = AccessOffsets[currLevel];
currLevel = newOffset;
}
}
__________________
"Misfortune shows those who are not really friends." -Aristotle "A multitude of words is no proof of a prudent mind." -Thales |
|
|
|
|
|
#54 (permalink) |
|
Forum Expert
|
Omg, i never knew how the sourecode worked.. and holy cow there are so many things i could do with it!
Thanks for pointed this out with sharp develope its handy!But... I only touched the accesslevels and it seems that my Server.exe keeps crashing.. Error: Code:
RunUO - [www.runuo.com] Version 1.0.0, Build 35109 Scripts: Compiling C# scripts...done (0 errors, 0 warnings) Scripts: Compiling VB.net scripts...no files found. Scripts: Verifying...Error: System.Reflection.ReflectionTypeLoadException: One or more of the types in the a ssembly unable to load. at System.Reflection.Module.GetTypesInternal(StackCrawlMark& stackMark) at System.Reflection.Assembly.GetTypes() at Server.Core.VerifySerialization(Assembly a) at Server.Core.VerifySerialization() at Server.ScriptCompiler.Compile(Boolean debug) at Server.Core.Main(String[] args) This exception is fatal, press return to exit Code:
public enum AccessLevel
{
Player = 0,
Counselor = 1,
Seer = 2,
SeniorCounselor = 3,
GameMaster = 4,
SeniorGamemaster = 5,
Administrator = 6,
SeniorAdministrator = 7,
ShardOwner = 8
}
Code:
private static string[] m_AccessLevelNames = new string[]
{
"a player",
"a counselor",
"a seer",
"a senior counselor",
"a game master",
"a senior gamemaster",
"an administrator",
"a senior administrator",
"a shard owner"
};
- DaZiL |
|
|
|
|
|
#56 (permalink) |
|
Join Date: Mar 2005
Age: 34
Posts: 93
|
With the new rank structure would that allow for lvl 5-8 to have more freedom and access to functionality around the world and to have button commands for just about anything in game... Just a question as <cough> I am a noob but in age high enough lol to try to understand this....
|
|
|
|
|
|
#57 (permalink) | |
|
Forum Expert
Join Date: Mar 2003
Location: where I belong
Posts: 1,786
|
Quote:
__________________
"Misfortune shows those who are not really friends." -Aristotle "A multitude of words is no proof of a prudent mind." -Thales |
|
|
|
|
|
|
#58 (permalink) |
|
Join Date: Mar 2005
Age: 34
Posts: 93
|
Actually that makes perfect sense to me now. I see that by changing the levels it would then allow any players that are brought into the world and made say a gm then they couldnt go screwing up the things that the shard owner wanted to stay one way. And this allows for better control by the shard owner on his/her shard..... Thanks that made alot more sense to me hehe
|
|
|
|
|
|
#60 (permalink) |
|
Forum Expert
Join Date: Mar 2003
Location: where I belong
Posts: 1,786
|
I have never used VS.Net, and this guide was written for SharpDevelop. It's free, so if no one else can help you could download it temporarily
![]()
__________________
"Misfortune shows those who are not really friends." -Aristotle "A multitude of words is no proof of a prudent mind." -Thales |
|
|
|
|
|
#63 (permalink) | |
|
Account Terminated
|
Quote:
If you don't know how to do this, DO NOT MODIFY THE CORE, Being able to modify the core on your own is one thing when you ask for help doing its not going to sit well with true RunUO supporters. |
|
|
|
|
|
|
#65 (permalink) |
|
Ok nice tutorial.
this is my curent set up COunceler Councelerranktwo Seer Gm Admin Dev Owner i want to make it so the owner can be the only person to make it possible to make the accesslevel owner while a dev can make every accesslevel up to dev but not owner. so in short i am trying to make it so one accesslevel can change accesslevels but only up dev (must be a dev to change accesslevels) i know wher to make it so the dev has access to the command but not how to limit the access to this. any help would be great ty irish. |
|
|
|
|
|
|
#66 (permalink) | |
|
Forum Novice
|
Quote:
|
|
|
|
|
|
|
#68 (permalink) | |
|
Forum Expert
Join Date: Mar 2003
Location: where I belong
Posts: 1,786
|
Quote:
__________________
"Misfortune shows those who are not really friends." -Aristotle "A multitude of words is no proof of a prudent mind." -Thales |
|
|
|
|
|
|
#70 (permalink) | |
|
Forum Expert
Join Date: Feb 2004
Age: 27
Posts: 2,047
|
Quote:
|
|
|
|
|
|
|
#71 (permalink) |
|
Account Terminated
Join Date: Nov 2003
Posts: 144
|
Dude, I know what the CORE is !!!
I really NEED to add some new ACESS LEVEL... I got all the programs and I did everything in the FAQ but I sont see any MOBILES.cs Can you please tell me where it is? look a screenshot: |
|
|
|
|
|
#74 (permalink) |
|
Account Terminated
Join Date: Nov 2003
Posts: 144
|
LOL....
I see.... I did everything right but i got a lot of errors in the SHARDCREATOR when I pressed F9 ! It said I have an error in .NET FRamework or something like that... :/ What do I need to have installed here in my PC ? |
|
|
|