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 03-24-2005, 12:51 AM   #51 (permalink)
Forum Expert
 
Khaz's Avatar
 
Join Date: Mar 2003
Location: where I belong
Posts: 1,786
Default

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
Khaz is offline   Reply With Quote
Old 03-24-2005, 02:39 AM   #52 (permalink)
Forum Expert
 
Lucid Nagual's Avatar
 
Join Date: Nov 2004
Location: Beyond the Gates of Hell
Age: 36
Posts: 3,509
Question Server.exe

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:
Error #1: The Online_OnCommand does not exist in class.
Error #2: Cannont implicitly convert type server.Accesslevel to int.
Any ideas?

*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:
Lucid Nagual is offline   Reply With Quote
Old 03-24-2005, 09:08 AM   #53 (permalink)
Forum Expert
 
Khaz's Avatar
 
Join Date: Mar 2003
Location: where I belong
Posts: 1,786
Default

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
Khaz is offline   Reply With Quote
Old 03-25-2005, 04:47 AM   #54 (permalink)
Forum Expert
 
DaZiL's Avatar
 
Join Date: Mar 2005
Location: 192.168.0.10
Posts: 319
Send a message via ICQ to DaZiL Send a message via AIM to DaZiL Send a message via MSN to DaZiL
Default Whoa..

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
Here's my mobile.cs
Code:
	public enum AccessLevel
	{
		Player = 0,
		Counselor = 1,
		Seer = 2,
		SeniorCounselor = 3,
		GameMaster = 4,
		SeniorGamemaster = 5,
		Administrator = 6,
		SeniorAdministrator = 7,
		ShardOwner = 8
	}
part 2
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"
			};
All help would be appreciated. Maybe ill try redownloading the sourcecode, and doing the steps over again, see if that'll do anything.. doubt it tho, in return thanks.
- DaZiL
DaZiL is offline   Reply With Quote
Old 03-25-2005, 05:01 AM   #55 (permalink)
Forum Expert
 
DaZiL's Avatar
 
Join Date: Mar 2005
Location: 192.168.0.10
Posts: 319
Send a message via ICQ to DaZiL Send a message via AIM to DaZiL Send a message via MSN to DaZiL
Default

how strange.. i re-did those exact steps to find this time it worked... Hmm, woot for me! Maybe something was corrupted in the other sourcecode, anyhoo's its fixed now.

-DaZiL
DaZiL is offline   Reply With Quote
Old 03-29-2005, 10:13 AM   #56 (permalink)
 
Join Date: Mar 2005
Age: 34
Posts: 93
Default

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....
Bugbear_1 is offline   Reply With Quote
Old 03-30-2005, 11:59 AM   #57 (permalink)
Forum Expert
 
Khaz's Avatar
 
Join Date: Mar 2003
Location: where I belong
Posts: 1,786
Default

Quote:
Originally Posted by Bugbear_1
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....
No. Commands are designated by access level, and most of them are set to AccessLevel.Counselor or AccessLevel.GameMaster. Anything "beneath" the accesslevel wouldn't be able to use the command, so if you insert a Legend level between player and counselor, they won't have access to any normal staff commands. However, as Crepti and others discovered, anything not at player level will require some changes in order to prevent them from staying hidden while moving and doing various other 'staff' things. We worked through and fixed those up here and in the subscriber thread Crepti posted a while back.
__________________
"Misfortune shows those who are not really friends." -Aristotle
"A multitude of words is no proof of a prudent mind." -Thales
Khaz is offline   Reply With Quote
Old 03-31-2005, 08:20 AM   #58 (permalink)
 
Join Date: Mar 2005
Age: 34
Posts: 93
Default

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
Bugbear_1 is offline   Reply With Quote
Old 04-08-2005, 08:51 PM   #59 (permalink)
 
Join Date: Apr 2005
Posts: 30
Default

hey foolow all step when compile came up with Drawing,Windows, Color,Graphics,Bitmap could not be found
I use .net 2003
omagaalpha is offline   Reply With Quote
Old 04-10-2005, 05:32 PM   #60 (permalink)
Forum Expert
 
Khaz's Avatar
 
Join Date: Mar 2003
Location: where I belong
Posts: 1,786
Default

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
Khaz is offline   Reply With Quote
Old 04-11-2005, 09:57 PM   #61 (permalink)
 
Join Date: Apr 2005
Posts: 30
Default

hehehe that did it
omagaalpha is offline   Reply With Quote
Old 07-30-2005, 08:33 AM   #62 (permalink)
 
Join Date: May 2004
Age: 21
Posts: 45
Send a message via MSN to AlienX2 Send a message via Yahoo to AlienX2
Default

Quote:
8a) About 118 warning messages will be given, but you needn't worry about these. They are reporting multiple definitions of the same object, and return to use the base definition from the .NET framework.
What do i do? I got 118 warning and 0 errors.
AlienX2 is offline   Reply With Quote
Old 07-30-2005, 09:04 AM   #63 (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 AlienX2
What do i do? I got 118 warning and 0 errors.
You need to allow unsafe code to be compiled.

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.
Phantom is offline   Reply With Quote
Old 07-30-2005, 01:54 PM   #64 (permalink)
 
Join Date: May 2004
Age: 21
Posts: 45
Send a message via MSN to AlienX2 Send a message via Yahoo to AlienX2
Default

Thanks Phantom
AlienX2 is offline   Reply With Quote
Old 08-30-2005, 10:14 AM   #65 (permalink)
 
Join Date: Apr 2004
Location: Duh! ireland
Age: 22
Posts: 73
Send a message via AIM to irishdog Send a message via MSN to irishdog Send a message via Yahoo to irishdog
Default

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.
irishdog is offline   Reply With Quote
Old 08-30-2005, 10:04 PM   #66 (permalink)
Forum Novice
 
Join Date: Nov 2003
Location: New Zealand
Age: 21
Posts: 151
Send a message via ICQ to Bmzx007 Send a message via AIM to Bmzx007 Send a message via MSN to Bmzx007 Send a message via Yahoo to Bmzx007
Default

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.
I agree with the statement, But what do you imply by "True RunUO supporters" are you saying that people who modify the core arent true supporters?. This is the kind of mentality that puts people off even looking at the core, to be labeled like this.
Bmzx007 is offline   Reply With Quote
Old 10-19-2005, 11:28 AM   #67 (permalink)
Account Terminated
 
Join Date: Nov 2003
Posts: 144
Default

I dont see MOBILE.CS
poetawd is offline   Reply With Quote
Old 10-19-2005, 12:30 PM   #68 (permalink)
Forum Expert
 
Khaz's Avatar
 
Join Date: Mar 2003
Location: where I belong
Posts: 1,786
Default

Quote:
Originally Posted by poetawd
I dont see MOBILE.CS
It's a core file.
__________________
"Misfortune shows those who are not really friends." -Aristotle
"A multitude of words is no proof of a prudent mind." -Thales
Khaz is offline   Reply With Quote
Old 10-19-2005, 01:40 PM   #69 (permalink)
Account Terminated
 
Join Date: Nov 2003
Posts: 144
Default

But I did EVERYTHING it was showing in the TUTORIAL but I dont see mobile.cs !!!


where should it be?

Thanks

poetawd is offline   Reply With Quote
Old 10-19-2005, 01:59 PM   #70 (permalink)
Forum Expert
 
Tannis's Avatar
 
Join Date: Feb 2004
Age: 27
Posts: 2,047
Default

Quote:
Originally Posted by poetawd
But I did EVERYTHING it was showing in the TUTORIAL but I dont see mobile.cs !!!


where should it be?

Thanks

Like Khaz said, it's in the core. It's not in the RunUO 1.0.0 distro. If you don't understand what the core is, you definitely should not do this.
Tannis is offline   Reply With Quote
Old 10-19-2005, 03:14 PM   #71 (permalink)
Account Terminated
 
Join Date: Nov 2003
Posts: 144
Angry

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:



poetawd is offline   Reply With Quote
Old 10-19-2005, 03:28 PM   #72 (permalink)
Forum Expert
 
Join Date: May 2005
Age: 29
Posts: 949
Default

This isn't the core. These are the scripts. Download the server source code.
Irian is offline   Reply With Quote
Old 10-19-2005, 04:49 PM   #73 (permalink)
Forum Master
 
Joeku's Avatar
 
Join Date: Feb 2005
Location: ShatteredSosaria.com
Posts: 9,260
Default

lmfao
Joeku is offline   Reply With Quote
Old 10-19-2005, 07:46 PM   #74 (permalink)
Account Terminated
 
Join Date: Nov 2003
Posts: 144
Talking

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 ?
poetawd is offline   Reply With Quote
Old 10-19-2005, 07:56 PM   #75 (permalink)
Forum Master
 
Joeku's Avatar
 
Join Date: Feb 2005
Location: ShatteredSosaria.com
Posts: 9,260
Default

.NET Framework 1.1.......
Joeku is offline   Reply With Quote
Reply

Bookmarks