RunUO Community

This is a sample guest message. Register a free account today to become a member! Once signed in, you'll be able to participate on this site by adding your own topics and posts, as well as connect with other members through your own private inbox!

Intelisense in Visual Studio for scripting in RunUO: Beta 13

Status
Not open for further replies.

minorj

Wanderer
Will this work with SharpDevlop 0.92???

and for the dude/dudet looking for editor www.icsharpcode.net - it is one them GPL's aka it free. And it works.
 
D

DarkPhantom

Guest
I came up with a quicker way of doing this without having any extra source files.

- simply copy the RunUO.exe as RunUO.dll (don't look at me .. VS simply refuses to create a reference to a .exe file .. but is happy with .exe renamed to a .dll)
- create a new project in vs.net (in my case I made it a class library project)
- from the main menu Project -> Add Reference
- make sure you are on the .NET tab .. hit browse and find the RunUO.dll file .. and then hit OK on the bottom
- add any script to the project and it will have intellisense working in it
 

Phantom

Knight
minorj said:
Will this work with SharpDevlop 0.92???

and for the dude/dudet looking for editor www.icsharpcode.net - it is one them GPL's aka it free. And it works.

Yes already has been said it will work. Why don't you read all the post. All you have to do is load the files into Sharp Dev, works exactly like Visual Studio.

To Dark Phantom
Interesting name? I wonder who it could be? Myself I am thinking its Silver Ghost trying to give me a bad name. If your not Silver Ghost aka Richard then sorry.
 

Phantom

Knight
I have never meet another Dark Phantom...

I am the only one, thought of the name 5 years ago. I really hope it was a 1 time poster.
 
L

Lost User

Guest
To make it work with #dev:

http://www.runuo.com/discussion/viewtopic.php?t=3037
 

Phantom

Knight
This small guide will show you how to use code completion #dev without having to load a ton of .cs's and having to update all those files for every runuo release.

1) Open SharpDevelop
2) Select new > combine > empty C# console app, name it RunUO and save it on folder youyrrunuofolder\#dev
3) Go to the project tab and right click on 'references' and select Add
4) On the references window, click on ".NET Assembly Browser"
5) Click on browse
6) Select Runuo.exe, rename Scripts.dll to other name and select it
7) Save the project

Done!

If you read Kiff's reply just below yours you wouldn't have had to asked.
 
L

Lost User

Guest
i did read that and i tried that
but it kept crashing and crashing and crashing and taking up all my ram
i only have 128...
 

Enervation

Wanderer
Its quite likely thats its not crashing, leave it for 5 mins or so and it should work.
But 128 ram is very minimal, i wouldnt bother if i was you, ive got 320mb ram and it still crashes regularly.
 
L

Lost User

Guest
I left it for 10-15 mins and it still kept loading and was annoying :/
 
J

juas

Guest
I Decompiled C# and VB.NET Code ... and RunUO

Code of RunUO ...

[STAThread]
public static void Main(string[] args) {
TimerThread local0;
MessagePump local1;

AppDomain.CurrentDomain.add_UnhandledException(new UnhandledExceptionEventHandler(null, Core.CurrentDomain_UnhandledException));
AppDomain.CurrentDomain.add_ProcessExit(new EventHandler(null, Core.CurrentDomain_ProcessExit));
if (Core.BaseDirectory.Length > 0)
Directory.SetCurrentDirectory(Core.BaseDirectory);
local0 = new TimerThread();
Core.timerThread = new Thread(new ThreadStart(local0, TimerMain));
Core.timerThread.Name = "Timer Thread";
if (!(ScriptCompiler.Compile())) {
Console.WriteLine("Scripts: One or more scripts failed to compile");
Console.WriteLine(" - Press return to exit");
Console.ReadLine();
}
else {
Region.Load();
local1 = new MessagePump(new Listener());
Core.timerThread.Start();
Map.Felucca.Tiles.Force();
Map.Trammel.Tiles.Force();
Map.Ilshenar.Tiles.Force();
while (true) {
Thread.Sleep(1);
Mobile.ProcessDeltaQueue();
Item.ProcessDeltaQueue();
Timer.Slice();
local1.Slice();
NetState.ProcessDisposedQueue();
}
}
}

For Example... :D

I have it a great deal time ago before the first Beta
 
J

juas

Guest
Oh !! It is code of RunUO, was going to say that had it descompiled :D
 
T

tektus

Guest
:) You can also use Macromedia Dreamweave MX for c# editor.
It doesn't list the classes but it can make the text more readible by
colorizing the keywords and stuff.
 

Phantom

Knight
Helpplz said:
OK. I have Downloaded the 2 files in this post but can any one explain to me what these two files do ?

Well the command generates the CoreDefs files used in a project to get Intelisense. You don't need the Beta 13 coredefs since they are outdated.
 
Status
Not open for further replies.
Top