Go Back   RunUO - Ultima Online Emulation > RunUO > Server Support on Windows

Server Support on Windows Get (and give) support on general questions related to the RunUO server itself.

Reply
 
Thread Tools Display Modes
Old 11-09-2006, 01:10 PM   #1 (permalink)
Forum Master
 
Lord_Greywolf's Avatar
 
Join Date: Dec 2005
Posts: 6,633
Send a message via Yahoo to Lord_Greywolf
Default looking for the instructions on compiling the SVN

i have downloaded tortorse svn, gotten the svn files using it also
got C# express installed and running

now all i see in the svn is the same file i could have copied, plus some notes on them from the tortose (guess for the updating and such)

in the server folder all i see is CS files, no main program to load VC# with
(i am used to VB where you have a program name/module that you load up with - of if from scratch is created with the 1st save)

I looked all over the place last night for a walk through or basic directions / etc
i know i have seen them before on here - just can't find them

so if someone knows where they are at - can point me to them - i would appreceate it

thanks
__________________
http://www.AoAUO.com

:) ..... Come for the Customs, Play for the Fun. Return to see your new Friends ..... :)
Lord_Greywolf is offline   Reply With Quote
Old 11-09-2006, 01:23 PM   #2 (permalink)
Master of the Internet
 
Join Date: Oct 2005
Age: 45
Posts: 6,283
Default

This may help, not sure...

Linking Microsoft Visual C# 2005 Express Edition and RunUO 2.0
Malaperth is offline   Reply With Quote
Old 11-09-2006, 01:47 PM   #3 (permalink)
Forum Master
 
Lord_Greywolf's Avatar
 
Join Date: Dec 2005
Posts: 6,633
Send a message via Yahoo to Lord_Greywolf
Default

thanks for the link
but that one is for after you have compile the core up
I need to compile the new core
so i am still looking
__________________
http://www.AoAUO.com

:) ..... Come for the Customs, Play for the Fun. Return to see your new Friends ..... :)
Lord_Greywolf is offline   Reply With Quote
Old 11-09-2006, 01:55 PM   #4 (permalink)
Master of the Internet
 
Join Date: Oct 2005
Age: 45
Posts: 6,283
Default

maybe this one then...

Easy how to compile new server......
Malaperth is offline   Reply With Quote
Old 11-09-2006, 02:28 PM   #5 (permalink)
Forum Expert
 
Kenko's Avatar
 
Join Date: Dec 2004
Location: Land of the Poor
Posts: 1,828
Send a message via MSN to Kenko
Default

try SharpDevelop, I like that one, it's quite intuitive.
Kenko is offline   Reply With Quote
Old 11-09-2006, 04:14 PM   #6 (permalink)
Forum Master
 
Lord_Greywolf's Avatar
 
Join Date: Dec 2005
Posts: 6,633
Send a message via Yahoo to Lord_Greywolf
Default

malaperth - that was the thread i needed - thanks alot

tried to give you karma for it - but must have gave it to you last - says i can't unti i spread it around more (sounds like BS to me being spread around )
__________________
http://www.AoAUO.com

:) ..... Come for the Customs, Play for the Fun. Return to see your new Friends ..... :)
Lord_Greywolf is offline   Reply With Quote
Old 11-09-2006, 04:18 PM   #7 (permalink)
Master of the Internet
 
Join Date: Oct 2005
Age: 45
Posts: 6,283
Default

either way, glad it worked. Now when I decide to brave that process, I can ask you the dumb questions I will undoubtedly have
Malaperth is offline   Reply With Quote
Old 11-09-2006, 04:24 PM   #8 (permalink)
Forum Expert
 
Kenny164's Avatar
 
Join Date: Sep 2004
Location: Ballymena, Northern Ireland
Age: 23
Posts: 464
Send a message via MSN to Kenny164
Default

The way I compile the core is using a batch file in the SVN directory to call csc, then i just copy the exe to my RunUO folder.

Heres the batch file i made (just save it as 'compile.bat' and drop into RUNUO SVN folder):
Code:
@echo off
PATH=C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727
IF EXIST Server.exe DEL Server.exe
csc.exe /optimize /unsafe /nologo /out:Server.exe /recurse:Server\*.cs
Hope this makes this easier, if not, oh well. :P

**EDIT: I have my Environment variables set so i could run csc.exe from the cmdline, so i've added the PATH= into the batch file so it should work without this
__________________
Use the middle mouse button on Here for forum rules, if nothing happens get firefox and try again!!!

Last edited by Kenny164; 11-09-2006 at 04:34 PM.
Kenny164 is offline   Reply With Quote
Old 11-09-2006, 04:28 PM   #9 (permalink)
Master of the Internet
 
Join Date: Oct 2005
Age: 45
Posts: 6,283
Default

I don't see how adding information/possibilities could be a bad thing
Malaperth is offline   Reply With Quote
Old 11-09-2006, 05:42 PM   #10 (permalink)
Forum Expert
 
Kenny164's Avatar
 
Join Date: Sep 2004
Location: Ballymena, Northern Ireland
Age: 23
Posts: 464
Send a message via MSN to Kenny164
Default

heh, since I've looked at it again (the batch file)... Thought i'd add in some more automation, here it is:
Code:
@echo off
PATH=C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727;C:\Program Files\Subversion\bin
echo Updating from SVN tree...
svn update
echo.
echo Compiling Server...
IF EXIST Server.exe DEL Server.exe
csc.exe /optimize /unsafe /nologo /out:Server.exe /recurse:Server\*.cs
echo Server.exe has been created.
Now it will update automagically AND compile the server core, hehe
__________________
Use the middle mouse button on Here for forum rules, if nothing happens get firefox and try again!!!
Kenny164 is offline   Reply With Quote
Old 11-09-2006, 05:51 PM   #11 (permalink)
Forum Master
 
Lord_Greywolf's Avatar
 
Join Date: Dec 2005
Posts: 6,633
Send a message via Yahoo to Lord_Greywolf
Default

thanks to you both very much

next time i go to run it i will try the batch file - does sound a lot easier

but i got it compiled from the other directions (glad those were there )

and did not take to much change over for all of the custom scripts i have to get the new one to work (i was surprised on how few had to be changed)
__________________
http://www.AoAUO.com

:) ..... Come for the Customs, Play for the Fun. Return to see your new Friends ..... :)
Lord_Greywolf is offline   Reply With Quote
Old 11-09-2006, 06:12 PM   #12 (permalink)
Forum Expert
 
Kenny164's Avatar
 
Join Date: Sep 2004
Location: Ballymena, Northern Ireland
Age: 23
Posts: 464
Send a message via MSN to Kenny164
Default

No problem, I'd like to wish you unneeded luck with the SVN

It's nice to know if the devs fix a problem in their code, we can have it workin within minutes instead of waiting for a release or patch as such.
__________________
Use the middle mouse button on Here for forum rules, if nothing happens get firefox and try again!!!
Kenny164 is offline   Reply With Quote
Old 11-11-2006, 09:52 PM   #13 (permalink)
Forum Expert
 
Broadside's Avatar
 
Join Date: Jul 2004
Location: Minnesota
Age: 32
Posts: 1,488
Send a message via ICQ to Broadside Send a message via MSN to Broadside Send a message via Yahoo to Broadside
Default

How about the assemblyinfo.cs Anyone know how i should go about setting that one up that seems to be my only problem with this working.
__________________
Broadside ~AkA~ Bad Karma
Broadside is offline   Reply With Quote
Old 11-12-2006, 09:01 AM   #14 (permalink)
Forum Master
 
Lord_Greywolf's Avatar
 
Join Date: Dec 2005
Posts: 6,633
Send a message via Yahoo to Lord_Greywolf
Default

i followed the directions laid out in the one link that i said was it - and i got no errors from it at all - compiled very nicely then
__________________
http://www.AoAUO.com

:) ..... Come for the Customs, Play for the Fun. Return to see your new Friends ..... :)
Lord_Greywolf is offline   Reply With Quote
Old 11-12-2006, 02:08 PM   #15 (permalink)
Forum Expert
 
Broadside's Avatar
 
Join Date: Jul 2004
Location: Minnesota
Age: 32
Posts: 1,488
Send a message via ICQ to Broadside Send a message via MSN to Broadside Send a message via Yahoo to Broadside
Default

Well apparently your supposed to make changes to assemblyinfo or you will get errors upon trying to make the server. I then took it out just to see and it made one fine. I popped in game and everytime i used props server crashed. Wierd.
__________________
Broadside ~AkA~ Bad Karma
Broadside is offline   Reply With Quote
Old 11-12-2006, 08:15 PM   #16 (permalink)
Forum Master
 
Lord_Greywolf's Avatar
 
Join Date: Dec 2005
Posts: 6,633
Send a message via Yahoo to Lord_Greywolf
Default

i just folowed the directions in this link to the letter and i had no problems

Easy how to compile new server......
__________________
http://www.AoAUO.com

:) ..... Come for the Customs, Play for the Fun. Return to see your new Friends ..... :)
Lord_Greywolf is offline   Reply With Quote
Old 11-12-2006, 08:35 PM   #17 (permalink)
Forum Novice
 
Join Date: Feb 2006
Location: Wisconsin USA
Posts: 211
Default svn instuctions

Code:
How_to_compile_a_new_server_Build 
Here are, I hope, easy to follow step by step instructions for compiling the Server .svn. 
For these instructions I use visual c# 2005 Express. It can be downloaded for free at http://msdn.microsoft.com/downloads/ 
After downloading and installing visual c#, copy the .svn Server folder to a separate location. (It may not be necessary to do this step, but it would not give me permission to work with the files until I did) 
NOW open visual c# and click on File then New project. In the box that opens click on "console Application" and at the bottom of the screen you can name the project if you wish. Then click "OK". 
It will then open a file called "program.cs" in the center of the screen and a window on the right called "solution Explorer". 
In the solution explorer delete the "program.cs" and click the + sign next to "properties" and delete the "Assemblylnfo.cs" under it. 
NOW open the new folder you made with the Server .svn folder inside it. Drag the Server folder onto the Icon underneath the "solution" icon. (If you named the project in the 3rd step, drag the folder onto the icon that has your project name.) You should now see the folder "Server" at the bottom of the list in the solution Explorer window. 
Now click "project" at the top of the screen. click properties at the bottom of the list. 
It should open to a window that has "Application", "Build", "Build Events", "Debug", "Resources", "settings", and "Reference paths" down the left side. 
under Assembly Name You can name the finished project name. Below that is Output type. Make sure that says console Application. Set the startup object field to "Server.Core". In the Icon Field, you can point it to the server folder at the Icon there. 
In the Build screen put a check next to "Allow unsafe code". Below that you set where you want the compiled server should save to. 
Now go to the top and click on Build, Build Solution. 
Thats it. You have now compiled the new Server.exe. 
In most cases you should now be able to drop the new Server.exe into your Runuo 2 folder. Remember to delete the scripts\output\scripts.cs.dll (This is the file that allows cacheing of the scripts) It will write a new copy when the scripts recompile on server start.
hope that helps
Boulder is offline   Reply With Quote
Old 11-12-2006, 11:54 PM   #18 (permalink)
Forum Expert
 
Broadside's Avatar
 
Join Date: Jul 2004
Location: Minnesota
Age: 32
Posts: 1,488
Send a message via ICQ to Broadside Send a message via MSN to Broadside Send a message via Yahoo to Broadside
Default

Lol boulder that is the same thing i got the server up and running fine. What i was wondering is how important the assemblyinfo.cs file was cause if i remove it that is only way i can make the server exe and then i go in game add ann item props it and insta crash. It may just be a unfixed download or something i will hold off. Thank you for your help.
__________________
Broadside ~AkA~ Bad Karma
Broadside is offline   Reply With Quote
Old 11-13-2006, 09:13 PM   #19 (permalink)
Forum Newbie
 
Join Date: Nov 2006
Location: Denver
Age: 47
Posts: 3
Default Here are my custom csproj and sln files...

If you are using Visual Studio 2005 (I am using the Pro edition, but they should work fine on other editions) you can use these solution and project files on the file structure created when the SVN files are copied locally using TortoiseSVN.

Here are the basic steps:
  • Install TortoiseSVN
  • Create a directory for your VS solution
  • Use TortoiseSVN to copy the RunUO SVN files to your new directory
  • Unzip the solution files into your solution directory. The csproj files will be put where they need to be (I think).
  • Note that I use a cludge with robocopy to copy the data and script files to the proper place to run the executable. You will need to download Robocopy.exe from Microsoft. It is a part of the Windows 2003 Server Resource Kit. I originally used the Copy task from MSBuild, but there are too many script files in the Scripts project for this task to succeed.
  • Open the solution.
  • Edit the project properties for the Data, Scripts, and Server projects to point to your RunUO.exe directory
  • Build your solution.
  • Since the project files look for wildcard based files, the solution should update itself as changes are made to your local copy of from the SVN site.
  • There are better ways to create these project files (for instance, it is a bit of a waste to use a build type project file for the Data project), but it will work fine...
  • Run the RunUO executable in your output directory and the server should start.

Good luck and I hope this helps!
Attached Files
File Type: zip RunUO2.zip (5.9 KB, 30 views)
Stilbourne is offline   Reply With Quote
Old 11-14-2006, 12:27 AM   #20 (permalink)
Forum Novice
 
shtoink's Avatar
 
Join Date: Sep 2006
Location: EvE Online
Posts: 111
Send a message via ICQ to shtoink Send a message via AIM to shtoink Send a message via MSN to shtoink Send a message via Yahoo to shtoink Send a message via Skype™ to shtoink
Default

Tyvm!

Im installing c# express now, I already had tortise. I know my way around the linux programmin world much better than windows, as im coming from a decent background working at a few ISPs (php, mysql, ruby, c++, html). While I can slowly work thru a c# script and figure out what its doing, im a loooong way from creating anything very useful, and help like this on compiling is great! Once again the community here impresses me!
shtoink is offline   Reply With Quote
Old 11-14-2006, 07:13 PM   #21 (permalink)
Forum Newbie
 
Join Date: Nov 2006
Location: Denver
Age: 47
Posts: 3
Default Errata on the project files

One change you may want to make to the project files I uploaded earlier is in the RUNUO.RCJ file in the Data project. I suggest you comment out the line that has /Purge on it. The /Purge parameter to Robocopy will delete files in the destination directory that no longer exist in the source. This is fine in the Scripts project, since that is where you are likely to be putting new scripts for RunUO. However, in the Data project, this behavior my delete changes made to data files used by RunUO during it's operation...
Stilbourne is offline   Reply With Quote
Old 11-16-2006, 01:07 PM   #22 (permalink)
Forum Newbie
 
Join Date: Aug 2005
Age: 37
Posts: 74
Default Set the startup object field to "Server.Core".

Set the startup object field to "Server.Core".

i cant get this to change it just has the option not set
frank is offline   Reply With Quote
Old 11-24-2006, 11:15 AM   #23 (permalink)
Forum Expert
 
Broadside's Avatar
 
Join Date: Jul 2004
Location: Minnesota
Age: 32
Posts: 1,488
Send a message via ICQ to Broadside Send a message via MSN to Broadside Send a message via Yahoo to Broadside
Default

Ok i wanted to update it again but now when i drago the Server folder into console application window it won't move there??
__________________
Broadside ~AkA~ Bad Karma
Broadside is offline   Reply With Quote
Old 11-26-2006, 11:20 PM   #24 (permalink)
Forum Expert
 
WeEzL's Avatar
 
Join Date: Apr 2006
Location: The Great White North!
Age: 34
Posts: 887
Default

Just outta curiosity, does anyone know if there are some extra options that need to be added to the command line to compile the core as a 64-bit EXE? Or is the designation about whether the server operates as 32-bit or 64-bit just dependent on which version of the zlib DLL is used? (I've been away from RunUO too long... I used to know the answer to this question a while ago.)
__________________
I R GEEK!
WeEzL is offline   Reply With Quote
Old 11-26-2006, 11:42 PM   #25 (permalink)
Forum Expert
 
Join Date: Mar 2005
Location: Berlin, Germany
Age: 27
Posts: 1,136
Send a message via ICQ to Sotho Tal Ker Send a message via MSN to Sotho Tal Ker
Default

RunUO should autodetect if the CPU/OS is 64bit.
Sotho Tal Ker is offline   Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools