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!

Community Effort to Restore Patching

Simon Omega

Traveler
Hi,

many compliment for the work but unfortunately I'm not so expert and I'm not able to set-up it.
I install the UO Classic Client 7_0_15_1.

I create an archive folder in C:\ with all patch ut to 7_0_24_2 and in the C:\ I have the UOPatchServer.py script.

I run the script and here the first problem:

Code:
127.0.0.1 listening on 8888
Socket: Waiting on Connections.
PatchHandler for %s is using directory %s ('127.0.0.1', '/home\\simonomega\\archive')
Traceback (most recent call last):
  File "C:\UOPatchServer.py", line 155, in <module>
    _CLIENTS[ip_port[0]] = PatchHandler(connection, ip_port[0], _PATCH_DIR)
  File "C:\UOPatchServer.py", line 26, in __init__
    for a_file in listdir(_PATCH_DIR):
FileNotFoundError: [WinError 3] Impossibile trovare il percorso specificato: '/home\\simonomega\\archive\\*.*'
>>>

I change the _PATCH_DIR at line 134 and here the second problem.

Code:
127.0.0.1 listening on 8888
Socket: Waiting on Connections.
PatchHandler for %s is using directory %s ('127.0.0.1', '.\\archive')
PatchHandler for 127.0.0.1 is using file list ['uosa_win32_7-0-16-0.pat', 'uosa_win32_7-0-16-0.rtp', 'uosa_win32_7-0-16-1.pat', 'uosa_win32_7-0-16-1.rtp', 'uosa_win32_7-0-16-3.pat', 'uosa_win32_7-0-16-3.rtp', 'uosa_win32_7-0-17-0.pat', 'uosa_win32_7-0-17-0.rtp', 'uosa_win32_7-0-18-0.pat', 'uosa_win32_7-0-18-0.rtp', 'uosa_win32_7-0-19-0.pat', 'uosa_win32_7-0-19-0.rtp', 'uosa_win32_7-0-19-1.pat', 'uosa_win32_7-0-19-1.rtp', 'uosa_win32_7-0-20-0.pat', 'uosa_win32_7-0-20-0.rtp', 'uosa_win32_7-0-21-1.pat', 'uosa_win32_7-0-21-1.rtp', 'uosa_win32_7-0-21-2.pat', 'uosa_win32_7-0-21-2.rtp', 'uosa_win32_7-0-22-0.pat', 'uosa_win32_7-0-22-0.rtp', 'uosa_win32_7-0-22-8.pat', 'uosa_win32_7-0-22-8.rtp', 'uosa_win32_7-0-23-0.pat', 'uosa_win32_7-0-23-0.rtp', 'uosa_win32_7-0-23-1.pat', 'uosa_win32_7-0-23-1.rtp', 'uosa_win32_7-0-24-2.pat', 'uosa_win32_7-0-24-2.rtp']
Socket: Waiting on Connections.>> 127.0.0.1 sent Client Hello/Request (b'\x00\x00\x00\x15')
 
Server Sending: Protocol, Command, and UseSelf
>> 127.0.0.1 sent Version Information ({'addon': 'Win32_UOSA', 'version': 51, 'namelen': 10})
<< Sever sent 127.0.0.1 PatchListData entry {'working_filelen': b'\x00\x00\x00\r', 'working_filename': b'uosa_win32_7-0-16-0.pat', 'namelen': b'\x00\x00\x00\x17'}
<< Sever sent 127.0.0.1 PatchListData entry {'working_filelen': b'\x03\x19<\x98', 'working_filename': b'uosa_win32_7-0-16-0.rtp', 'namelen': b'\x00\x00\x00\x17'}>> 127.0.0.1 sent a Request for File uosa_win32_7-0-16-0.pat ({'working_filename': 'uosa_win32_7-0-16-0.pat', 'namelen': 23, 'padding': 0})
 
<< Sever sent 127.0.0.1 PatchListData entry {'working_filelen': b'\x00\x00\x00\r', 'working_filename': b'uosa_win32_7-0-16-1.pat', 'namelen': b'\x00\x00\x00\x17'}>> 127.0.0.1 sent Version Information ({'addon': 'Win32_UOSA', 'version': 51, 'namelen': 10})Exception in thread Thread-4:
Traceback (most recent call last):
  File "C:\Program Files\Python33\lib\threading.py", line 901, in _bootstrap_inner
    self.run()
  File "C:\Program Files\Python33\lib\threading.py", line 858, in run
    self._target(*self._args, **self._kwargs)
  File "C:\UOPatchServer.py", line 68, in commands
    if file == None:
NameError: global name 'file' is not defined
 
 
 
<< Sever sent 127.0.0.1 PatchListData entry {'working_filelen': b'\x00\t\xde\x9c', 'working_filename': b'uosa_win32_7-0-16-1.rtp', 'namelen': b'\x00\x00\x00\x17'}>> 127.0.0.1 sent a Request for File uosa_win32_7-0-16-1.pat ({'working_filename': 'uosa_win32_7-0-16-1.pat', 'namelen': 23, 'padding': 0})<< Sever sent 127.0.0.1 PatchListData entry {'working_filelen': b'\x00\x00\x00\r', 'working_filename': b'uosa_win32_7-0-16-0.pat', 'namelen': b'\x00\x00\x00\x17'}
 
 
<< Sever sent 127.0.0.1 PatchListData entry {'working_filelen': b'\x00\x00\x00\r', 'working_filename': b'uosa_win32_7-0-16-3.pat', 'namelen': b'\x00\x00\x00\x17'}Exception in thread Thread-6:
Traceback (most recent call last):
  File "C:\Program Files\Python33\lib\threading.py", line 901, in _bootstrap_inner
    self.run()
  File "C:\Program Files\Python33\lib\threading.py", line 858, in run
    self._target(*self._args, **self._kwargs)
  File "C:\UOPatchServer.py", line 68, in commands
    if file == None:
NameError: global name 'file' is not defined
 
>> 127.0.0.1 sent Version Information ({'addon': 'Win32_UOSA', 'version': 51, 'namelen': 10})<< Sever sent 127.0.0.1 PatchListData entry {'working_filelen': b'\x03\x19<\x98', 'working_filename': b'uosa_win32_7-0-16-0.rtp', 'namelen': b'\x00\x00\x00\x17'}
 
 
<< Sever sent 127.0.0.1 PatchListData entry {'working_filelen': b'\x00\x00\x01\xe2', 'working_filename': b'uosa_win32_7-0-16-3.rtp', 'namelen': b'\x00\x00\x00\x17'}>> 127.0.0.1 sent a Request for File uosa_win32_7-0-16-0.pat ({'working_filename': 'uosa_win32_7-0-16-0.pat', 'namelen': 23, 'padding': 0})<< Sever sent 127.0.0.1 PatchListData entry {'working_filelen': b'\x00\x00\x00\r', 'working_filename': b'uosa_win32_7-0-16-0.pat', 'namelen': b'\x00\x00\x00\x17'}<< Sever sent 127.0.0.1 PatchListData entry {'working_filelen': b'\x00\x00\x00\r', 'working_filename': b'uosa_win32_7-0-16-1.pat', 'namelen': b'\x00\x00\x00\x17'}
 
 
 
<< Sever sent 127.0.0.1 PatchListData entry {'working_filelen': b'\x00\x00\x00\r', 'working_filename': b'uosa_win32_7-0-17-0.pat', 'namelen': b'\x00\x00\x00\x17'}>> 127.0.0.1 sent Version Information ({'addon': 'Win32_UOSA', 'version': 51, 'namelen': 10})Exception in thread Thread-8:
Traceback (most recent call last):
  File "C:\Program Files\Python33\lib\threading.py", line 901, in _bootstrap_inner
    self.run()
  File "C:\Program Files\Python33\lib\threading.py", line 858, in run
    self._target(*self._args, **self._kwargs)
  File "C:\UOPatchServer.py", line 68, in commands
    if file == None:
NameError: global name 'file' is not defined
 
<< Sever sent 127.0.0.1 PatchListData entry {'working_filelen': b'\x03\x19<\x98', 'working_filename': b'uosa_win32_7-0-16-0.rtp', 'namelen': b'\x00\x00\x00\x17'}<< Sever sent 127.0.0.1 PatchListData entry {'working_filelen': b'\x00\t\xde\x9c', 'working_filename': b'uosa_win32_7-0-16-1.rtp', 'namelen': b'\x00\x00\x00\x17'}
 
 
 
<< Sever sent 127.0.0.1 PatchListData entry {'working_filelen': b'\x03\xbec\xd8', 'working_filename': b'uosa_win32_7-0-17-0.rtp', 'namelen': b'\x00\x00\x00\x17'}>> 127.0.0.1 sent a Request for File uosa_win32_7-0-16-0.rtp ({'working_filename': 'uosa_win32_7-0-16-0.rtp', 'namelen': 23, 'padding': 0})<< Sever sent 127.0.0.1 PatchListData entry {'working_filelen': b'\x00\x00\x00\r', 'working_filename': b'uosa_win32_7-0-16-0.pat', 'namelen': b'\x00\x00\x00\x17'}<< Sever sent 127.0.0.1 PatchListData entry {'working_filelen': b'\x00\x00\x00\r', 'working_filename': b'uosa_win32_7-0-16-1.pat', 'namelen': b'\x00\x00\x00\x17'}<< Sever sent 127.0.0.1 PatchListData entry {'working_filelen': b'\x00\x00\x00\r', 'working_filename': b'uosa_win32_7-0-16-3.pat', 'namelen': b'\x00\x00\x00\x17'}
 
 
 
 
<< Sever sent 127.0.0.1 PatchListData entry {'working_filelen': b'\x00\x00\x00\r', 'working_filename': b'uosa_win32_7-0-18-0.pat', 'namelen': b'\x00\x00\x00\x17'}Exception in thread Thread-10:
Traceback (most recent call last):
  File "C:\Program Files\Python33\lib\threading.py", line 901, in _bootstrap_inner
    self.run()
  File "C:\Program Files\Python33\lib\threading.py", line 858, in run
    self._target(*self._args, **self._kwargs)
  File "C:\UOPatchServer.py", line 68, in commands
    if file == None:
NameError: global name 'file' is not defined
 
<< Sever sent 127.0.0.1 PatchListData entry {'working_filelen': b'\x03\x19<\x98', 'working_filename': b'uosa_win32_7-0-16-0.rtp', 'namelen': b'\x00\x00\x00\x17'}<< Sever sent 127.0.0.1 PatchListData entry {'working_filelen': b'\x00\t\xde\x9c', 'working_filename': b'uosa_win32_7-0-16-1.rtp', 'namelen': b'\x00\x00\x00\x17'}<< Sever sent 127.0.0.1 PatchListData entry {'working_filelen': b'\x00\x00\x01\xe2', 'working_filename': b'uosa_win32_7-0-16-3.rtp', 'namelen': b'\x00\x00\x00\x17'}
 
 
 
<< Sever sent 127.0.0.1 PatchListData entry {'working_filelen': b'\x00\x0e\x11)', 'working_filename': b'uosa_win32_7-0-18-0.rtp', 'namelen': b'\x00\x00\x00\x17'}<< Sever sent 127.0.0.1 PatchListData entry {'working_filelen': b'\x00\x00\x00\r', 'working_filename': b'uosa_win32_7-0-16-1.pat', 'namelen': b'\x00\x00\x00\x17'}<< Sever sent 127.0.0.1 PatchListData entry {'working_filelen': b'\x00\x00\x00\r', 'working_filename': b'uosa_win32_7-0-16-3.pat', 'namelen': b'\x00\x00\x00\x17'}<< Sever sent 127.0.0.1 PatchListData entry {'working_filelen': b'\x00\x00\x00\r', 'working_filename': b'uosa_win32_7-0-17-0.pat', 'namelen': b'\x00\x00\x00\x17'}
 
Exception in thread Thread-1:
Traceback (most recent call last):
  File "C:\Program Files\Python33\lib\threading.py", line 901, in _bootstrap_inner
    self.run()
  File "C:\Program Files\Python33\lib\threading.py", line 858, in run
    self._target(*self._args, **self._kwargs)
  File "C:\UOPatchServer.py", line 128, in run
    self.requesthandler()
  File "C:\UOPatchServer.py", line 92, in requesthandler
    self.data = self.connection.recv(self.buffer_len)
ConnectionResetError: [WinError 10054] Connessione in corso interrotta forzatamente dall'host remoto
 
 
 
Exception in thread Thread-3:
Traceback (most recent call last):
  File "C:\Program Files\Python33\lib\threading.py", line 901, in _bootstrap_inner
    self.run()
  File "C:\Program Files\Python33\lib\threading.py", line 858, in run
    self._target(*self._args, **self._kwargs)
  File "C:\UOPatchServer.py", line 63, in commands
    self.connection.send(file_listing['namelen'])
ConnectionResetError: [WinError 10054] Connessione in corso interrotta forzatamente dall'host remoto
 
Exception in thread Thread-9:
Traceback (most recent call last):
  File "C:\Program Files\Python33\lib\threading.py", line 901, in _bootstrap_inner
    self.run()
  File "C:\Program Files\Python33\lib\threading.py", line 858, in run
    self._target(*self._args, **self._kwargs)
  File "C:\UOPatchServer.py", line 63, in commands
    self.connection.send(file_listing['namelen'])
ConnectionResetError: [WinError 10054] Connessione in corso interrotta forzatamente dall'host remoto
 
Exception in thread Thread-7:
Traceback (most recent call last):
  File "C:\Program Files\Python33\lib\threading.py", line 901, in _bootstrap_inner
    self.run()
  File "C:\Program Files\Python33\lib\threading.py", line 858, in run
    self._target(*self._args, **self._kwargs)
  File "C:\UOPatchServer.py", line 63, in commands
    self.connection.send(file_listing['namelen'])
ConnectionResetError: [WinError 10054] Connessione in corso interrotta forzatamente dall'host remoto
 
Exception in thread Thread-5:
Traceback (most recent call last):
  File "C:\Program Files\Python33\lib\threading.py", line 901, in _bootstrap_inner
    self.run()
  File "C:\Program Files\Python33\lib\threading.py", line 858, in run
    self._target(*self._args, **self._kwargs)
  File "C:\UOPatchServer.py", line 63, in commands
    self.connection.send(file_listing['namelen'])
ConnectionResetError: [WinError 10054] Connessione in corso interrotta forzatamente dall'host remoto

Can someone help me?

Thanks,

Andrea

I'm using Python 3.3.3 on Windows 7 Home premium x64

These lines are examples:
Code:
  _PATCH_DIR = path.join('.', 'archive')
  _PATCH_DIR = path.join('/home', 'simonomega', 'archive')

You are right to do what you did.
Code:
# _PATCH_DIR = path.join('/home', 'simonomega', 'archive')
In the same directory that my .py script is in make a folder named "archive"
Copy all your patches into it.
Run the script again.

Now the second errors. I am at work and can't do much debugging. It looks like it can't find the files. Did you copy them all to the "archive" folder after you made it?
 
Top