|
||
|
|||||||
| Network Modifications This forum is for modifications to the networking code of RunUO |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 (permalink) |
|
Join Date: Dec 2003
Posts: 1,069
|
I have noticed that when a user disconnects from the shard it always shows 1 more user online than there is after the disconnect. This is an easy fix:
On line 721 and 723 in Netstate.cs (from the core) is where these messages are displayed. Replace this: Code:
if ( ns.m_Account != null )
Console.WriteLine( "Client: {0}: Disconnected. [{1} Online] [{2}]", ns, m_Instances.Count, ns.m_Account );
else
Console.WriteLine( "Client: {0}: Disconnected. [{1} Online]", ns, m_Instances.Count );
Code:
if ( ns.m_Account != null )
Console.WriteLine( "Client: {0}: Disconnected. [{1} Online] [{2}]", ns, (m_Instances.Count - 1), ns.m_Account );
else
Console.WriteLine( "Client: {0}: Disconnected. [{1} Online]", ns, (m_Instances.Count - 1) );
__________________
HI! |
|
|
|
|
#2 (permalink) |
|
Forum Expert
Join Date: Mar 2003
Location: where I belong
Posts: 1,761
|
Great. I'll put it in and try it out soon. Thanks for the mod.
__________________
"Misfortune shows those who are not really friends." -Aristotle "A multitude of words is no proof of a prudent mind." -Thales |
|
|
|
|
#5 (permalink) | |
|
Forum Newbie
Join Date: Dec 2004
Location: Moronica
Age: 35
Posts: 99
|
Quote:
__________________
POTS, stooge™ Amalgamated Association of Morons - Local 6⅞ "For Duty & Humanity!" ________________________________ Heed these words... (click here) |
|
|
|
|
|
#6 (permalink) |
|
Forum Expert
Join Date: Mar 2003
Location: where I belong
Posts: 1,761
|
What jjarmis posted is the fix for it. It's clearly not damaging, but it's a nuisance that's easily solvable.
__________________
"Misfortune shows those who are not really friends." -Aristotle "A multitude of words is no proof of a prudent mind." -Thales |
|
|
|
|
#7 (permalink) | |
|
Forum Newbie
Join Date: Dec 2004
Location: Moronica
Age: 35
Posts: 99
|
Quote:
I can't find NetState.cs in my RunUO folder. I did a search.Edit: I downloaded the Source Code and unzipped it and found NetState.cs. of course. Now it's time for me to read up on how to edit/recompile it all after I make the fix. Thanks again.
__________________
POTS, stooge™ Amalgamated Association of Morons - Local 6⅞ "For Duty & Humanity!" ________________________________ Heed these words... (click here) |
|
|
|
|
|
#9 (permalink) |
|
Master of the Internet
|
It's a violation of the EULA for anyone to send you the files. You are better off waiting for the next release if you (like some of us) don't want to recompile the core.
__________________
Paranoia is what happens when you finally have all of the facts. |
|
|
|
|
#10 (permalink) | |
|
Forum Newbie
Join Date: Dec 2004
Location: Moronica
Age: 35
Posts: 99
|
Quote:
__________________
POTS, stooge™ Amalgamated Association of Morons - Local 6⅞ "For Duty & Humanity!" ________________________________ Heed these words... (click here) |
|
|
|
|
|
#12 (permalink) |
|
Wow, quick to jump down my throat are we? If I knew a moderator would get pissy about people sending me files, I wouldnt of brought it up. But hey, how can you make sure nobody sends me files? I mean, cant someone IM me and send it to me from there?
Just a thought. |
|
|
|
|
|
#20 (permalink) |
|
Okay, say that I hire someone to my shard, and give him FTP access to my folder that has the core. Technically hes not downloading the core, hes updating the files on my computer though FTP. Or, if he uses a program like AnywherePC and uses my screen to make changes. Technically thats "legal" isnt it?
|
|
|
|
|
|
#22 (permalink) |
|
Technically hes not distributing it to me though. If a guy comes to my house and edits it on my computer, its not redistribution. Its helping! Ok ok ok, how about this, I get someone to come over, and tell me exactly what to put on what line, pointing me the whole way though. Would that be distribution too?
|
|
|
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|