|
||
|
|||||||
| Other Cant find a category above, use this one! Core mods not listed above go here! |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#26 (permalink) |
|
P3'c Orion Aviator
Join Date: Sep 2004
Age: 30
Posts: 1,272
|
Remove all instances of .Net Just in case somehow you have both installed. Its not likely but it is very well possible. Then reinstall .Net Framework 1.1. This will have no negative side effects what so ever.
-Jamie |
|
|
|
|
|
#28 (permalink) |
|
Just pushin' on...
Join Date: May 2004
Location: UK
Posts: 224
|
Okay, so here's what I did.
-Followed the above instructions to make an Owner AccessLevel - Compiled with no problems. -Ran with no problems (fresh world, so to speak). -It asks me to make an Admin account, I go ahead. Then, as an admin, I change my AccessLevel to Owner. Now, if I want to restrict certain commands to Owner, I can't just change AccessLevel.Administrator to AccessLevel.Owner, can I? Well, I can, but it wouldn't work well... As any Admin I add can easily change their own AccessLevel to Owner. So how do I stop them from doing this? Is there a way in the source code for it to create an Owner account on a fresh install rather than Admin, and change it so that Admin can't change themselves to Owner? |
|
|
|
|
|
#30 (permalink) |
|
Forum Expert
Join Date: Mar 2003
Location: where I belong
Posts: 1,786
|
As Spider said, the check does exist and it is similar to that of the commands.
Around about line 5673 in the core Mobile.cs, you'll find this: Code:
[CommandProperty( AccessLevel.Counselor, AccessLevel.Administrator )]
public AccessLevel AccessLevel
{
get
{
return m_AccessLevel;
}
set
{
AccessLevel oldValue = m_AccessLevel;
if ( oldValue != value )
{
m_AccessLevel = value;
Delta( MobileDelta.Noto );
InvalidateProperties();
SendMessage( "Your access level has been changed. You are now {0}.", GetAccessLevelName( value ) );
ClearScreen();
SendEverything();
OnAccessLevelChanged( oldValue );
}
}
}
Code:
[CommandProperty( AccessLevel.Counselor, AccessLevel.Administrator )] Code:
[CommandProperty( AccessLevel.Counselor, AccessLevel.Owner )]
__________________
"Misfortune shows those who are not really friends." -Aristotle "A multitude of words is no proof of a prudent mind." -Thales |
|
|
|
|
|
#31 (permalink) | |
|
Forum Expert
Join Date: Jan 2004
Location: Florida
Age: 33
Posts: 544
|
Quote:
|
|
|
|
|
|
|
#32 (permalink) |
|
Just pushin' on...
Join Date: May 2004
Location: UK
Posts: 224
|
Sorry for digging up an old topic, but I was wondering if anyone's gotten any futher with this?
Here my current position: My Access Levels look like this... Code:
Player = 0, Counselor = 1, GameMaster = 2, Seer = 3, Administrator = 4 Code:
Player = 0, Donator = 1, Counselor = 2, GameMaster = 3, Seer = 4, Administrator = 5, God = 6 So, how do I change it so my admin character is either Admin (5) or God (6)? That's the only one I need to change... Once I've changed it, I can do the rest ingame. Any help? ![]() EDIT: Okay, small edit... I've sorted that problem. I just did a series of compiles, here are the steps I took: - Created God (5) access level and compiled. - Set in-game access level to God (5). - Created Donator access level (1). Access Level God becomes Administrator. Compiled. - Set in game access level to God (6). - Changed the part about setting access levels, so only Gods can. Compiled. Now then... New problem! On the [admin gump, it doesn't acknowledge that the Donator and God access levels are there. For example, where I am, it says "Unknown" for my access level. And where you have the option to change an account's access level (which I was planning to use for setting up Donators), it has neither Donator nor God in the list. How can I make it recognise the access levels, and include the in the list? ![]() |
|
|
|
|
|
#33 (permalink) |
|
Forum Expert
Join Date: Mar 2003
Location: where I belong
Posts: 1,786
|
It'd have been quicker to simply make a new character on your head administrator account (automatically an administrator access level character) and then set the accesslevels that way. Nonetheless, good enough the way you did it.
For the admin gump, as well as the who gump, find the scripts for those and change them accordingly. If you go through the code you'll easily find the methods that declare what you need them to, as well as the colors of the names. I think both are located in the Gumps directory.
__________________
"Misfortune shows those who are not really friends." -Aristotle "A multitude of words is no proof of a prudent mind." -Thales |
|
|
|
|
|
#34 (permalink) |
|
Just pushin' on...
Join Date: May 2004
Location: UK
Posts: 224
|
I found the Admin gump script and everything on there's working fine now (apart from if I try to set an account to God, it shows me that account's IP addresses instead, but I'll never use set to God anyway :P).
I'll look into the Who gump. Thanks for your help! |
|
|
|
|
|
#38 (permalink) |
|
Forum Expert
Join Date: Mar 2003
Location: where I belong
Posts: 1,786
|
You want to use a project creator to combine all the Core scripts. Check the 3rd Party Utilities forum for the project creator submissions, and follow the directions there. Once you combine all the Core scripts, load the .prjx or .cmb file into SharpDevelop.
__________________
"Misfortune shows those who are not really friends." -Aristotle "A multitude of words is no proof of a prudent mind." -Thales |
|
|
|
|
|
#41 (permalink) |
|
Forum Expert
Join Date: Mar 2003
Location: where I belong
Posts: 1,786
|
I honestly can't explain it any easier than I did in the main post (otherwise I would've). I'll try and get the two inaccessible pictures re-uploaded so they work.
![]()
__________________
"Misfortune shows those who are not really friends." -Aristotle "A multitude of words is no proof of a prudent mind." -Thales |
|
|
|
|
|
#42 (permalink) |
|
Forum Expert
|
Stupid question, can you post the exact location of mobile.cs? Cuz i searched for it via the search tool for XP, and nothin came up. erm, i unno if im missing sumthin or what...
__________________
Procrastinators unite!
Tomorrow. Saying that Java is nice because it works on all OS's is like saying that anal sex is nice because it works on all genders. ![]() |
|
|
|
|
|
#44 (permalink) | |
|
Forum Expert
Join Date: Nov 2004
Location: Beyond the Gates of Hell
Age: 36
Posts: 3,509
|
I got an error here is the log:
Quote:
__________________
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:
|
|
|
|
|
|
|
#45 (permalink) |
|
Forum Expert
Join Date: Mar 2003
Location: where I belong
Posts: 1,786
|
You have all of the regular 1.0.0 distribution files in the same directory as your Server executable, right? What have you changed in the Core?
__________________
"Misfortune shows those who are not really friends." -Aristotle "A multitude of words is no proof of a prudent mind." -Thales |
|
|
|
|
|
#46 (permalink) |
|
Forum Expert
Join Date: Nov 2004
Location: Beyond the Gates of Hell
Age: 36
Posts: 3,509
|
Code:
public enum AccessLevel
{
Player = 0,
Counselor = 1,
GameMaster = 2,
Scriptor = 3,
Oracle = 4,
Seer = 5,
Overseer = 6,
MasterScriptor = 7,
Administrator = 8
}
__________________
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:
|
|
|
|
|
|
#48 (permalink) |
|
Forum Expert
Join Date: Nov 2004
Location: Beyond the Gates of Hell
Age: 36
Posts: 3,509
|
The Project Options are set like this: Name=Server and StandardNamespace=Server.
__________________
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:
|
|
|
|
|
|
#49 (permalink) |
|
Forum Expert
Join Date: Mar 2003
Location: where I belong
Posts: 1,786
|
Did you follow Step #7 or not? Your "listed additions" above doesn't include strings for the access levels.
__________________
"Misfortune shows those who are not really friends." -Aristotle "A multitude of words is no proof of a prudent mind." -Thales |
|
|
|
|
|
#50 (permalink) |
|
Forum Expert
Join Date: Nov 2004
Location: Beyond the Gates of Hell
Age: 36
Posts: 3,509
|
Code:
private static string[] m_AccessLevelNames = new string[]
{
"a player",
"a counselor",
"a game master",
"a scriptor",
"an oracle",
"a seer",
"an overseer",
"a master scriptor",
"an administrator"
};
__________________
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:
|
|
|
|