UO:SA Enhanced Client patch 4.0.8.3 - Edit IP and Port

Open discussion forum. For topics that do not fit anywhere else.

Moderator: POL Developer

Post Reply
Justae
Expert Poster
Posts: 79
Joined: Thu May 24, 2007 2:12 pm
Location: South Africa

UO:SA Enhanced Client patch 4.0.8.3 - Edit IP and Port

Post by Justae »

Getting the latest UO:SA Enhanced client (UOSA.exe) patched with your shard IP and port can be troublesome.

The latest enhanced client patch fixes some of the classic gump issues, such as the offset cursor when doing text entries inside a gump. Quite a bit of additional functionality added to the client interface as well.

Use a hex editor of your choice. UltraEdit can also do this. The enhanced client does not use the Login.cfg file, the site address and port is coded into the UOSA.exe

Make a backup copy of UOSA.exe and hex-edit this file.

search for offset 0x1e8a72 - read 4 bytes, this is the IP address in reverse order.
4f d1 99 9f
79 209 153 159
= IP 159.153.209.79

Compare the above to the original EA Login.cfg:
LoginServer=login.owo.com,7775 = login.owo.com = 159.153.209.79
LoginServer=login.owo.com,7776
login.owo.com = 159.153.209.79

offset 0x1e8a7a and 0x1e8a84 2 bytes each port reverse order
5f 1E 5f 1E
95 30 95 30
= port 3095

search for offset 0x1efa7d 4 bytes ip reverse again offset
4f d1 99 9f
79 209 153 159

port again, 0x1efa86 2 bytes reverse order
5f 1E
95 30
= port 3095

Seems the ports for updating Enhanced client are different to classic client ports (7775, 7776) and the same port seems to be defined twice.

Running POL099 with encryption settings set to 'none' in pol.cfg (please see changelog.txt for more information regarding POL099 and client encryption). Editting the hex values above to match your server should get you logged in with your own patched client.

My thanks to my friend and Developer, Dragos, for this analysis.

REQUEST
Is there anyone out there who has normal books working with enhanced client and POL099 ? Not the spellbooks, the normal books you write in. The SendOpenBook(character, book) function from UO.EM does not currently work with Enhanced client and POL099. If you have any information on this please let me know.

Best regards,
Justae.

"Because sharing is caring"
User avatar
Indy
New User
Posts: 6
Joined: Tue Aug 31, 2010 1:29 am

Re: UO:SA Enhanced Client patch 4.0.8.3 - Edit IP and Port

Post by Indy »

Cheers for sharing. Got to try that.
Justae
Expert Poster
Posts: 79
Joined: Thu May 24, 2007 2:12 pm
Location: South Africa

UO:SA Enhanced Client patch 4.0.8.3 - Remove encryption

Post by Justae »

For those who may be interested, my good friend Dragos found how to remove the client encryption :

Make a backup copy of your UOSA.EXE file before doing this.

Again, use your favourite Hex editor and search :

Search 0x2137c9
bytes 30 45 00
replace with 90 90 90

Search 0x21569b
bytes 30 10
replace with 90 90

Search 0x215faa
bytes 30 08
replace with 90 90

That should remove the client encryption.

Cheers,
Justae
Tomi
POL Developer
Posts: 478
Joined: Tue Feb 21, 2006 5:08 pm

Re: UO:SA Enhanced Client patch 4.0.8.3 - Edit IP and Port

Post by Tomi »

Could take a look at these when I have free time and see if there is any logic in them and add to UOCH but that is just a maybe for now because Im too busy irl
Tomi
POL Developer
Posts: 478
Joined: Tue Feb 21, 2006 5:08 pm

Re: UO:SA Enhanced Client patch 4.0.8.3 - Edit IP and Port

Post by Tomi »

If I remember correctly EA removed the AES encryption from UO:SA and now it just has the same encryptions as the 2D clients ( login, twofish+md5 ) not sure though because I never checked it carefully enough, but if the thing is like I remember then it should be just a loginkey patch into core to make it support even encrypted UO:SA clients
Tomi
POL Developer
Posts: 478
Joined: Tue Feb 21, 2006 5:08 pm

Re: UO:SA Enhanced Client patch 4.0.8.3 - Edit IP and Port

Post by Tomi »

About sysbooks for UO:SA Im working on adding unicode support into them using the new packets ( UO:SA dont seem to work with the old ASCII sysbook packets ) But as I said in another post many stuff irl taking mostly all my time so dont have too high hopes atm
Justae
Expert Poster
Posts: 79
Joined: Thu May 24, 2007 2:12 pm
Location: South Africa

Re: UO:SA Enhanced Client patch 4.0.8.3 - Edit IP and Port

Post by Justae »

Hello Tomi,

I agree, rl takes precedent over such things, even with me.
Hopefully you can find the time for some of the stuff like sysbooks.
In the meantime, we do what we can to make things work.
I'm battling at the moment trying to get item and armor MegaCliloc working as it is under POL096.7 but have run-up against a wall, I hope to be able to find a workaround. I suspect there may be a difference in the way packet D6 is handled by the UO:SA client.

Thank you for your feedback Tomi, keep well :D

Best regards,
Justae
Tomi
POL Developer
Posts: 478
Joined: Tue Feb 21, 2006 5:08 pm

Re: UO:SA Enhanced Client patch 4.0.8.3 - Edit IP and Port

Post by Tomi »

The sysbook implementation should not be that hard to do with some packethooks

Things needed done is:

Stop using the old ASCII packet 0x93 and change to using 0xD4

Code: Select all

Packet: 0x93
 Sent By: Both
Size: 99 Bytes

Packet Build
BYTE[1] 0x93
BYTE[4] Book Serial
BYTE[1] Write Flag (see notes)
BYTE[1] 0x1 (unknown)
BYTE[2] Page Count
BYTE[60] Title
BYTE[30] Author

Code: Select all

Packet: 0xD4
 Sent By: Both
Size: Variable

Packet Build
BYTE[1] cmd 
BYTE[2] length 
BYTE[4] book ID 
BYTE[1] flag1 
BYTE[1] flag2 ( writable ? )
BYTE[2] number of pages 
BYTE[2] length of author (0 terminator included) 
BYTE[?][2] author (Unicode, 0 terminated) 
BYTE[2] length of title (0 terminator included) 
BYTE[?][2] title (Unicode, 0 terminated)
After that you need to do changes into packet 0x66

Code: Select all

Packet: 0x66
 Sent By: Both
Size: Variable

Packet Build
BYTE[1] 0x66
BYTE[2] Length
BYTE[4] Book Serial
BYTE[2] Page Count
Page Loop

◦BYTE[2] Page # 
◦BYTE[2] Line Count 
◦Line Loop ( if used old packet 0x93 to open the book ) 
◦     BYTE[var] Line Text, Null Terminated
◦Line Loop ( if used new packet 0xD4 to open the book ) 
◦     BYTE[var][2] Unicode Line Text, Null Terminated
Im making a patch into core with something like SendOpenBookUC() to support the new unicode way instead of the old SendOpenBook() so thats why it may take a while.

But if you know anything about working with packets it should not be that difficult to make the scripts sending these new packets.
AvatarICEMAN
New User
Posts: 3
Joined: Sat Sep 04, 2010 8:25 pm

Re: UO:SA Enhanced Client patch 4.0.8.3 - Edit IP and Port

Post by AvatarICEMAN »

Justae wrote:Getting the latest UO:SA Enhanced client (UOSA.exe) patched with your shard IP and port can be troublesome.

The latest enhanced client patch fixes some of the classic gump issues, such as the offset cursor when doing text entries inside a gump. Quite a bit of additional functionality added to the client interface as well.

Use a hex editor of your choice. UltraEdit can also do this. The enhanced client does not use the Login.cfg file, the site address and port is coded into the UOSA.exe

Make a backup copy of UOSA.exe and hex-edit this file.

search for offset 0x1e8a72 - read 4 bytes, this is the IP address in reverse order.
4f d1 99 9f
79 209 153 159
= IP 159.153.209.79

Compare the above to the original EA Login.cfg:
LoginServer=login.owo.com,7775 = login.owo.com = 159.153.209.79
LoginServer=login.owo.com,7776
login.owo.com = 159.153.209.79

offset 0x1e8a7a and 0x1e8a84 2 bytes each port reverse order
5f 1E 5f 1E
95 30 95 30
= port 3095

search for offset 0x1efa7d 4 bytes ip reverse again offset
4f d1 99 9f
79 209 153 159

port again, 0x1efa86 2 bytes reverse order
5f 1E
95 30
= port 3095

Seems the ports for updating Enhanced client are different to classic client ports (7775, 7776) and the same port seems to be defined twice.

Running POL099 with encryption settings set to 'none' in pol.cfg (please see changelog.txt for more information regarding POL099 and client encryption). Editting the hex values above to match your server should get you logged in with your own patched client.

My thanks to my friend and Developer, Dragos, for this analysis.

REQUEST
Is there anyone out there who has normal books working with enhanced client and POL099 ? Not the spellbooks, the normal books you write in. The SendOpenBook(character, book) function from UO.EM does not currently work with Enhanced client and POL099. If you have any information on this please let me know.

Best regards,
Justae.

"Because sharing is caring"
Thank you so much for this it really helped, I'm still trying to get it too work .
I was testing out ABC one and they did the same thing, I have edited all the information but cannot get it to work, eventually I found a UOSA Loader that a guy had downloaded from a Russian site and after a good scan of it tried it and it worked, ill try to provide a download of it.
(Thanks to Razorq at Pandora - (http://www.pandorauo.com/forum/viewtopi ... 4&start=20)
http://www.rofl.net.ua/files/UO/UOSALoader.rar
you :!: :!: should :!: :!: extract files to your ultima online folder which includes uosa.exe . then edit cheese.cfg , type your shard's ip adress. start loader and enjoy.)

I used GemUO for it but it doesn't allow Mysticism, however I am wanting to get a POL099 up and running, I have tried it several times but I think I need to tweak it as I keep getting into errors.

Hope it helps and let me know if there are any other clients similar to POL or GemUO.
AvatarICEMAN
New User
Posts: 3
Joined: Sat Sep 04, 2010 8:25 pm

Re: UO:SA Enhanced Client patch 4.0.8.3 - Edit IP and Port

Post by AvatarICEMAN »

Am trying to work with POL099 and the setup is great especially just walking through the starthere and taking things bit by bit.

Only problems once the POL099 is up and running I just cant seem to login into it.

I have tried using Razor, ConnectUO and even just UO.

Any suggestions on what I am doing wrong?

Image
old_school
New User
Posts: 1
Joined: Mon Oct 04, 2010 8:43 pm

Re: UO:SA Enhanced Client patch 4.0.8.3 - Edit IP and Port

Post by old_school »

Not sure were I went wroung here. I edited my UOSA.exe file as suggested above and renamed the modded version UOKUOSA.exe So is there more to it then this?

75.184.119.138
Hex = 4B D8 77 8A

Port 25 93
Hes - 19 5D
in reverse
5D 19
moondog
New User
Posts: 1
Joined: Tue May 08, 2018 7:53 am

Re: UO:SA Enhanced Client patch 4.0.8.3 - Edit IP and Port

Post by moondog »

First of all I want to apologize for bumping a near 10year post.

Trying to get into contact with Justae
If you manage to find this post, you please drop me a mail at JonnyQuest64@protonmail.com
Post Reply