|
||
|
|||||||
| Other Cant find a category above, use this one! Core mods not listed above go here! |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 (permalink) | ||
|
Forum Expert
|
LOKAI Versioning.
NEW! Just added to this post 2 new downloads, one for 1.0, and another for 2.0 RC2 (or SVN 286.) Both use the new system discussed later in this thread. When you start your Server with one or more of the switches, it will look for files with *.cs extensions located in folders called Scripts.LV1, Scripts.LV2, etc. It will only compile the ones you have selected with switches enabled. I recommend you use the attached Lokai RunUO Menu.bat batch file, which will make running the Server easier, since it will turn on the switches for you. One Note: "debug" and other modes used in the batch file were NOT tested with the 1.0 version, so use caution on those other switches. CHANGE LOG: 4/7/2008 Added RunUO 1.0 Lokai Versioning system. Tested. Added Lokai Versioning for RunUO 2.0 RC2. Tested. 8/15/2007 Lokai RunUO Menu. Batch file to process various switches. This concept is really an expansion of the idea put forth by Ashlar, in: [2.0] Workbench Scripts.WB.dll for faster compile times. The idea is to compile the scripts in separate entities so that compile time is less. This is particularly useful for people that make hundreds of small changes to scripts, and compile the Server each time to make sure it works. This idea expands on that, and introduces a new concept, which for lack of a better term, I call "Lokai Versioning" for simplicity. With this modification, you can choose at Run-time which scripts to include or exclude based on which extensions they have. LV1 scripts have .lv1 extensions, etc. When run, here are examples of what you might see, depending on what parameters you pass to the Compiler: Quote:
Quote:
__________________
Advanced Player Gate with Shard Control - My Master Runebook - Linked Books & Bags - Full Toolbar (Fubar) - XML Bible system - Music Box - Enhancement Deeds - House Paints - Light Switch Last edited by Lokai; 04-07-2008 at 06:13 PM. Reason: Added RunUO Lokai Menu |
||
|
|
|
|
|
#3 (permalink) |
|
Forum Expert
Join Date: Dec 2005
Location: Germany
Age: 31
Posts: 401
|
Lokai, this is a really interesting thing and I actually wonder why it has found so little attention so far. What I'd be interested in, though, is if it could be modified in a way that does not use different file extensions, but different paths instead? Like:
RunUO Server\Scripts RunUO Server\Scripts.LV1 RunUO Server\Scripts.LV2 It should be somewhat less bothersome than constantly having to rename the file extensions (even though I agree that this bother is quite insignificant compared to the possible advantages of the system itself). |
|
|
|
|
|
#4 (permalink) | |
|
Forum Expert
|
Quote:
|
|
|
|
|
|
|
#5 (permalink) | |
|
Forum Expert
Join Date: Dec 2005
Location: Germany
Age: 31
Posts: 401
|
Quote:
*Edit* Works, it loads a bunch of scripts I put into MyServer\Scripts.LV1 and I can use commands defined in them. ![]() To clarify what I did: I merged your main.cs and scriptcompiler.cs with mine, then added an additional overload to the GetScripts method in scriptcompiler. This is needed because the standard one is set to only load from \Scripts. Finally, I modified your Lokai Version 1 - 5 regions so they would use *.cs again, and additionally call GetScripts with the parameter "Scripts.LV1" to "Scripts.LV5". Now I expect anyone who can think of a reason why this should not be done to please tell me so. ![]() Last edited by Setharnas; 07-11-2007 at 10:47 AM. Reason: Confirmation edit |
|
|
|
|
|
|
#6 (permalink) |
|
Master of the Internet
|
sounds like a winer to me
let us know if you have any problems at all with it the more we can spread out some of this stuff the better ![]()
__________________
http://www.AoAUO.com
:) ..... Come for the Customs, Play for the Fun. Return to see your new Friends ..... :) |
|
|
|
|
|
#7 (permalink) |
|
Forum Expert
Join Date: Dec 2005
Location: Germany
Age: 31
Posts: 401
|
Yes, m'lord, I really hope this will help you with your own server. Just be aware that the same limits still apply as with the original idea: you can't have anything in the main script assembly that depends on something loaded in a later one. So, any script package that is completely self-contained (except for inheriting from objects from the main assembly) can be put completely into a Scripts.LV1-5 folder.
Practical example: I have Nerun's distro installed (who hasn't ). This includes a GMHidingStone, the one from CEO IIRC. I had gotten a newer version of that, and this was among the scripts I put into the LV1 folder for a test. Of course, when RunUO tried to compile the main assembly, it error'd out - because it depended on an object that would only be included in a later assembly. As long as you're sure that doesn't happen, you're golden.Oh, and so far it's limited to five custom folders, but that should be sufficient for most servers, I guess. |
|
|
|
|
|
#8 (permalink) | |
|
Forum Expert
|
Quote:
) |
|
|
|
|
|
|
#9 (permalink) | |
|
Forum Expert
|
Quote:
|
|
|
|
|
|
|
#10 (permalink) |
|
Forum Expert
Join Date: Dec 2005
Location: Germany
Age: 31
Posts: 401
|
Nope, main.cs is still as you put it in the zip. I felt I should not redistribute a new archive because my meager contribution consisted of just one slightly modified method, so I won't claim any credit for it. I wouldn't even have thought of the whole thing if not for you and Ashlar.
![]() |
|
|
|
|
|
#12 (permalink) |
|
Forum Expert
Join Date: Dec 2005
Location: Germany
Age: 31
Posts: 401
|
Neat thing, but I have stumbled over a small error. When I tried to open the .csproj file your tool created from my scripts, my VS 2005 error'd out. What it seems to have hiccup'd on was a "&" character (the given position points to a space right after that) in a scriptfolder path.
The error was (paraphrased from german): The project file "Scripts.csproj" could not be read. {path}\Scripts.csproj(122,94): The project file could not be loaded. An error occured while analysing 'EntityName'. Line 122, position 94. Last edited by Setharnas; 07-11-2007 at 06:48 PM. |
|
|
|
|
|
#13 (permalink) | |
|
Forum Expert
|
Quote:
|
|
|
|
|
|
|
#14 (permalink) | |
|
Forum Expert
Join Date: Dec 2005
Location: Germany
Age: 31
Posts: 401
|
Quote:
But I haven't used that tool before, rather made my own project file for my server. So, I've never had this error before either. |
|
|
|
|
|
|
#16 (permalink) |
|
Forum Expert
|
Sorry for bringing this thread back to life.. But does this work on 1.0?
__________________
-Lichking- "I believe in Christianity as I believe in the sun... not because I see it but because by it I see everything else." C.S. Lewis Heed what I say, for it shall be mentioned only once.
|
|
|
|
|
|
#17 (permalink) |
|
Master of the Internet
|
probably would - but i would:
1) make back ups 1st 2) look to see the simular calls made in the 1.0 version, and if different way of being done - modify it to match but can always try it - woprse case is it fubars on you and you have to undo it
__________________
http://www.AoAUO.com
:) ..... Come for the Customs, Play for the Fun. Return to see your new Friends ..... :) |
|
|
|
|
|
#18 (permalink) |
|
Forum Expert
|
Very true, as soon as I have the free time I will try it out..
Thanx Greywolf
__________________
-Lichking- "I believe in Christianity as I believe in the sun... not because I see it but because by it I see everything else." C.S. Lewis Heed what I say, for it shall be mentioned only once.
|
|
|
|
|
|
#19 (permalink) |
|
Forum Expert
|
NEW!
Just added to the top post 2 new downloads, one for 1.0, and another for 2.0 RC2 (or SVN 286.) Both use the new system discussed earlier in this thread. When you start your Server with one or more of the switches, it will look for files with *.cs extensions located in folders called Scripts.LV1, Scripts.LV2, etc. It will only compile the ones you have selected with switches enabled. I recommend you use the attached Lokai RunUO Menu.bat batch file, which will make running the Server easier, since it will turn on the switches for you. One Note: "debug" and other modes used in the batch file were NOT tested with the 1.0 version, so use caution on those other switches. |
|
|
|
|
|
#20 (permalink) |
|
Forum Expert
|
You are the best, I had been unsuccessful in my attempts anyways lol...
**EDIT** When I download the files they are like corrupt or something and aren't working.. anyone else having this issue?
__________________
-Lichking- "I believe in Christianity as I believe in the sun... not because I see it but because by it I see everything else." C.S. Lewis Heed what I say, for it shall be mentioned only once.
Last edited by Iomega0318; 04-27-2008 at 05:48 PM. |
|
|
|