Go Back   RunUO - Ultima Online Emulation > RunUO > Core Modifications > Network Modifications

Network Modifications This forum is for modifications to the networking code of RunUO

Reply
 
Thread Tools Display Modes
Old 07-26-2007, 11:43 PM   #76 (permalink)
Forum Novice
 
Mideon's Avatar
 
Join Date: May 2005
Location: Canada
Age: 24
Posts: 543
Default

Anyone have a list of what changes needed to be made? I'm likely going to try and get RunUO 1.0 to support the new clients, but the first post changed, and I can't remember all of the changes that were necessary.
__________________
A sense of community is the lifeblood of RunUO.
http://www.runuo.com/forums/announcements/67400-something-all-you-chew.html

Satire, man's greatest weapon (Flame Wars!)

The darkness is patient and in the end it always wins...but even the smallest light can overcome the blackest shadow.
Mideon is offline   Reply With Quote
Old 07-27-2007, 12:36 AM   #77 (permalink)
Forum Novice
 
Join Date: Jan 2005
Age: 30
Posts: 117
Default

Sorry to throw in a noob question to a seemingly productive thread, but how do you use the server.exe file?
__________________
Dumples

I play on Age of Valor
Behringer is offline   Reply With Quote
Old 07-27-2007, 09:15 AM   #78 (permalink)
Account Terminated
 
Join Date: Mar 2007
Posts: 58
Default

You would just replace your own server.exe but I would recommend doing the changes yourself so your core code matches your exe in case you do other changes in the future.
quantomsadmn is offline   Reply With Quote
Old 07-27-2007, 09:42 AM   #79 (permalink)
Newbie
 
Join Date: Feb 2004
Age: 22
Posts: 16
Default

I am getting some errors when I replace to code.

Problem1:

Click to see full size image

After fix:
Problem2:

Click to see full size image

I have a feeling the problem lies within the server.exe. How do you build that?
DragonsVirtue is offline   Reply With Quote
Old 07-27-2007, 10:02 AM   #80 (permalink)
Forum Novice
 
Join Date: Jan 2005
Age: 30
Posts: 117
Default

Quote:
Originally Posted by DragonsVirtue View Post
I am getting some errors when I replace to code.

Problem1:

Click to see full size image

I have a feeling the problem lies within the server.exe. How do you build that?
This is the same problem I have. I liked the idea of it already being compiled bcause I am new to compiling the core. If there is an easy way to get the already compiled one up and running, then that would be useful. Otherwise, I'll spend a little more time and figure out the core changes myself and try to recompile it all.
__________________
Dumples

I play on Age of Valor
Behringer is offline   Reply With Quote
Old 07-27-2007, 11:43 AM   #81 (permalink)
Account Terminated
 
Join Date: Mar 2007
Posts: 58
Default

looks like you are using a exe of the latest svn with rc1 scripts. Tons of stuff changed. So I'd suggest using a program to search for differences and only edit the lines you need. Basically the ones having to do with packets, the rest are SVN changes since RC1 which you can skip.
quantomsadmn is offline   Reply With Quote
Old 07-27-2007, 12:01 PM   #82 (permalink)
Newbie
 
Join Date: Feb 2004
Age: 22
Posts: 16
Default

I am running RC1. I will try merging them and see how that goes.
DragonsVirtue is offline   Reply With Quote
Old 07-27-2007, 01:12 PM   #83 (permalink)
Forum Novice
 
Join Date: Jan 2005
Age: 30
Posts: 117
Default

Ok... Here's where I am at.

*I downloaded all the svn187 files with TortoiseSVN and put them in a folder.
*I dropped your newly compiled Server.exe in that folder.
*I dropped your support files into the folder overwriting the existing file.

(Its all a new install withno custom scripts other than the svn187 files and the files attached to this post)

Here is what I get:

Code:
RunUO - [www.runuo.com] Version 2.0, Build 2761.16107
Core: Running on .NET Framework Version 2.0.50727
Scripts: Compiling C# scripts...failed (1 errors, 0 warnings)
Errors:
 + Misc/BuffIcons.cs:
    CS0117: Line 17: 'Server.EventSink' does not contain a definition for 'Clie
tVersionReceived'
    CS0246: Line 17: The type or namespace name 'ClientVersionReceivedHandler'
ould not be found (are you missing a using directive or an assembly reference?)
    CS0246: Line 17: The type or namespace name 'ClientVersionReceivedArgs' cou
d not be found (are you missing a using directive or an assembly reference?)
Scripts: One or more scripts failed to compile or no script files were found.
 - Press return to exit, or R to try again.
__________________
Dumples

I play on Age of Valor
Behringer is offline   Reply With Quote
Old 07-27-2007, 01:49 PM   #84 (permalink)
Forum Expert
 
stormwolff's Avatar
 
Join Date: Nov 2003
Location: The Internet
Age: 28
Posts: 3,510
Default

Quote:
Originally Posted by Behringer View Post
Ok... Here's where I am at.

*I downloaded all the svn187 files with TortoiseSVN and put them in a folder.
*I dropped your newly compiled Server.exe in that folder.
*I dropped your support files into the folder overwriting the existing file.

(Its all a new install withno custom scripts other than the svn187 files and the files attached to this post)

Here is what I get:

Code:
RunUO - [www.runuo.com] Version 2.0, Build 2761.16107
Core: Running on .NET Framework Version 2.0.50727
Scripts: Compiling C# scripts...failed (1 errors, 0 warnings)
Errors:
 + Misc/BuffIcons.cs:
    CS0117: Line 17: 'Server.EventSink' does not contain a definition for 'Clie
tVersionReceived'
    CS0246: Line 17: The type or namespace name 'ClientVersionReceivedHandler'
ould not be found (are you missing a using directive or an assembly reference?)
    CS0246: Line 17: The type or namespace name 'ClientVersionReceivedArgs' cou
d not be found (are you missing a using directive or an assembly reference?)
Scripts: One or more scripts failed to compile or no script files were found.
 - Press return to exit, or R to try again.
In BuffIcons.cs

Change

Code:
EventSink.ClientVersionReceived += new ClientVersionReceivedHandler( delegate( ClientVersionReceivedArgs args )
to

Code:
EventSink.ClientVersionRecieved += new ClientVersionRecievedHandler( delegate( ClientVersionRecievedArgs args )
stormwolff is offline   Reply With Quote
Old 07-27-2007, 02:19 PM   #85 (permalink)
Forum Novice
 
Join Date: Jan 2005
Age: 30
Posts: 117
Default

Quote:
Originally Posted by stormwolff View Post
In BuffIcons.cs

Change

Code:
EventSink.ClientVersionReceived += new ClientVersionReceivedHandler( delegate( ClientVersionReceivedArgs args )
to

Code:
EventSink.ClientVersionRecieved += new ClientVersionRecievedHandler( delegate( ClientVersionRecievedArgs args )
Ahhh... the 'ei' and changed to 'ie' in the word 'Recieved'.

It got past the compiled portion now. I'll try the rest of it out.

Thanks for the help.
__________________
Dumples

I play on Age of Valor
Behringer is offline   Reply With Quote
Old 07-27-2007, 03:43 PM   #86 (permalink)
Newbie
 
Join Date: Jun 2006
Posts: 94
Default

BuffIcon still has the spelled correctly Received?

I fixed that
__________________
Record for the sentence that makes the least sense - Go HERE

Last edited by Kamron; 07-27-2007 at 03:52 PM.
Kamron is offline   Reply With Quote
Old 07-27-2007, 11:44 PM   #87 (permalink)
Forum Novice
 
Join Date: Aug 2003
Age: 23
Posts: 770
Unhappy

I've been gone from the RunUO scene for a while, and figuring this new revision thing out is being a painful experience.

Let me see if I get this method right (and I'm looking for corrections...):

1) Create Folder -> Download Latest RunUO Files
2) Extract RunUO 2.0 RC1 Files into separate folder.
3) Extract support files to SVN Folder
4) Build Server.exe
5) Copy Server.exe to RunUO folder...

(This gives me a bunch of errors...)
So what am I doing wrong? Do I need to copy the script files over from the SVN to the script folder actually being used by the server?

I've been searching for the forums for at least an hour now and maybe I just don't know the right terms to search for, but this all started because I let the UO patcher go too far, and now I'm having issues staying logged in. Well I'm sure this will fix it, but I keep running into errors along the way.

So am I doing something wrong, or do I just need to go modify all these files?

(I'll post error logs if necessary)
FLuXx() is offline   Reply With Quote
Old 07-28-2007, 06:54 AM   #88 (permalink)
Forum Expert
 
Join Date: Oct 2002
Age: 45
Posts: 4,372
Default

Quote:
Originally Posted by FLuXx() View Post
Do I need to copy the script files over from the SVN to the script folder actually being used by the server?
Yes. Some of the changes to the core require changes to some of the scripts.
__________________
HellRazor is offline   Reply With Quote
Old 07-28-2007, 12:09 PM   #89 (permalink)
Forum Novice
 
Join Date: Aug 2003
Age: 23
Posts: 770
Default

Once I merge the script folders I get this:

PHP Code:
Errors:
 + 
Mobiles/Vendors/BaseVendor.cs:
    
CS1501Line 636No overload for method 'VendorBuyContent' takes '2' arguments
 
Items/Skill Items/Magical/Spellbook.cs:
    
CS1501Line 487No overload for method 'ContainerContentUpdate' takes '2' arguments
 
Items/Misc/BulletinBoards.cs:
    
CS1501Line 161No overload for method 'ContainerContent' takes '3' arguments 
So I'm guessing I have to code those methods to allow the extra argument? I thought the support files were supposed to do that already...
FLuXx() is offline   Reply With Quote
Old 07-28-2007, 12:31 PM   #90 (permalink)
Forum Expert
 
Join Date: Oct 2002
Age: 45
Posts: 4,372
Default

SVN 187 should compile and run out-of-the-box. So I'm not sure what's wrong, mine is working fine.
__________________
HellRazor is offline   Reply With Quote
Old 07-28-2007, 05:34 PM   #91 (permalink)
Forum Novice
 
Join Date: Mar 2004
Location: Czech Republic
Age: 28
Posts: 119
Send a message via ICQ to RadstaR
Default

Quote:
Originally Posted by FLuXx() View Post
Once I merge the script folders I get this:

PHP Code:
Errors:
 + 
Mobiles/Vendors/BaseVendor.cs:
    
CS1501Line 636No overload for method 'VendorBuyContent' takes '2' arguments
 
Items/Skill Items/Magical/Spellbook.cs:
    
CS1501Line 487No overload for method 'ContainerContentUpdate' takes '2' arguments
 
Items/Misc/BulletinBoards.cs:
    
CS1501Line 161No overload for method 'ContainerContent' takes '3' arguments 
So I'm guessing I have to code those methods to allow the extra argument? I thought the support files were supposed to do that already...
You merged scripts folder wrong, try it agan.
You have now in BaseVendor.cs (for example) this :
from.Send( new VendorBuyContent( list ) );
but you must have:
from.Send( new VendorBuyContent( list, from.NetState.Version ) );
__________________
http://ultima.lonet.cz - Programs for editing MUL files.

Last edited by RadstaR; 07-28-2007 at 05:37 PM.
RadstaR is offline   Reply With Quote
Old 07-28-2007, 06:26 PM   #92 (permalink)
Newbie
 
Join Date: Jun 2006
Posts: 94
Default

The easiest thing to do is to set up Tortoise SVN on your computer, checkout the RunUO 2.0 SVN and use that instead of the downloaded RC1.
__________________
Record for the sentence that makes the least sense - Go HERE
Kamron is offline   Reply With Quote
Old 07-28-2007, 07:47 PM   #93 (permalink)
Forum Novice
 
Join Date: Aug 2003
Age: 23
Posts: 770
Default

Quote:
Originally Posted by RadstaR View Post
You merged scripts folder wrong, try it agan.
You have now in BaseVendor.cs (for example) this :
from.Send( new VendorBuyContent( list ) );
but you must have:
from.Send( new VendorBuyContent( list, from.NetState.Version ) );

Well that's what I don't understand...because my BaseVendor does say:

from.Send( new VendorBuyContent( list, from.NetState.Version ) );

Also, I do have tortoise installed, and few hours ago I downloaded all the files again, starting from scratch, replaced the files needed with the support files, compiled the server, copied the server, Scripts and Data folders to a new folder for running the server, and got the same errors as before.

Edit: I used Visual Studio to go to the definition of VendorBuyContent and this is all it had:

PHP Code:
using System.Collections;

namespace Server.Network
{
    public 
sealed class VendorBuyContent Packet
    
{
        public 
VendorBuyContent(ArrayList list);
    }

So I'm assuming I'll had to modify that before the server is compiled right?

Btw I really appreciate the feedback.

Last edited by FLuXx(); 07-28-2007 at 07:55 PM. Reason: Giving more info...
FLuXx() is offline   Reply With Quote
Old 07-28-2007, 08:14 PM   #94 (permalink)
Forum Expert
 
Join Date: Dec 2005
Posts: 465
Default

Quote:
Originally Posted by FLuXx() View Post
Well that's what I don't understand...because my BaseVendor does say:

from.Send( new VendorBuyContent( list, from.NetState.Version ) );

Also, I do have tortoise installed, and few hours ago I downloaded all the files again, starting from scratch, replaced the files needed with the support files, compiled the server, copied the server, Scripts and Data folders to a new folder for running the server, and got the same errors as before.

Edit: I used Visual Studio to go to the definition of VendorBuyContent and this is all it had:

PHP Code:
using System.Collections;

namespace Server.Network
{
    public 
sealed class VendorBuyContent Packet
    
{
        public 
VendorBuyContent(ArrayList list);
    }

So I'm assuming I'll had to modify that before the server is compiled right?

Btw I really appreciate the feedback.
Did you put the appropriate files from the first post into the Server directory before recompiling it? VendorBuyContent is a packet that is in the core that was changed (in Packets.cs i believe) and the errors are coming when compiling Scripts because the necessary changes haven't been made in the core or you haven't recompiled with the necessary changes (or you're running the original svn187 core)
__________________
Accurately, the persanagem is young is written to the side of the name
snicker7 is offline   Reply With Quote
Old 07-28-2007, 09:00 PM   #95 (permalink)
Forum Novice
 
Join Date: Aug 2003
Age: 23
Posts: 770
Default

I am fairly certain that I did. So I'm starting things over and trying one more time, if not, I'm just reinstalling UO and not letting it go too far beyond 5.0.0 client. I'll let you guys know how that goes...

(I tried to start a server that I compiled from SVN and it worked fine, totally stock. It said it wouldn't allow any clients beyond 6.0.9 or something like that and because my client is 6.0.9b I suppose it still didn't work.)
FLuXx() is offline   Reply With Quote
Old 07-29-2007, 08:37 AM   #96 (permalink)
Forum Novice
 
Join Date: Mar 2004
Location: Czech Republic
Age: 28
Posts: 119
Send a message via ICQ to RadstaR
Default

Aha. Hmm i can't help you, becasuse we have core based on RunUO 1.0.
__________________
http://ultima.lonet.cz - Programs for editing MUL files.
RadstaR is offline   Reply With Quote
Old 07-29-2007, 01:10 PM   #97 (permalink)
Forum Novice
 
Mideon's Avatar
 
Join Date: May 2005
Location: Canada
Age: 24
Posts: 543
Default

Quote:
Originally Posted by RadstaR View Post
Aha. Hmm i can't help you, becasuse we have core based on RunUO 1.0.
Have you managed to support the new clients on RunUO 1.0? If so may I ask how you went about this?
__________________
A sense of community is the lifeblood of RunUO.
http://www.runuo.com/forums/showthread.php?t=67400

Satire, man's greatest weapon (Flame Wars!)

The darkness is patient and in the end it always wins...but even the smallest light can overcome the blackest shadow.
Mideon is offline   Reply With Quote
Old 07-29-2007, 09:23 PM   #98 (permalink)
Newbie
 
Join Date: Jun 2006
Posts: 94
Default

Once my computer is working again, I will update this (if needed) to work with SVN 190.
__________________
Record for the sentence that makes the least sense - Go HERE
Kamron is offline   Reply With Quote
Old 07-29-2007, 09:45 PM   #99 (permalink)
Forum Novice
 
Join Date: Mar 2004
Location: Czech Republic
Age: 28
Posts: 119
Send a message via ICQ to RadstaR
Default

Quote:
Originally Posted by Mideon View Post
Have you managed to support the new clients on RunUO 1.0? If so may I ask how you went about this?
Sorry i can't help you. I'm not scripter (ehm .. scripter ... novice, lama) and our core is heavy modified, but support for 6.0.1.7 client is based on this modification (not problem for real scripters).
__________________
http://ultima.lonet.cz - Programs for editing MUL files.
RadstaR is offline   Reply With Quote
Old 07-30-2007, 01:46 AM   #100 (permalink)
Newbie
 
Join Date: Jun 2006
Posts: 94
Default

I would support RunUO 1.0, but the problem is that most people who still use RunUO 1.0, use it for only a few reasons:

1) They modified the core so much they do not know how to update to 2.0
2) They do not want to modify (lazy, no time, too hard)
3) They think its better/faster (which is delusional)
__________________
Record for the sentence that makes the least sense - Go HERE
Kamron is offline   Reply With Quote