UO:KR How to setup?

Get Help on scripting in POL with configurations, config setups, script trouble shooting, etc.

Moderator: POL Developer

Post Reply
User avatar
Sadahar
Adept Poster
Posts: 81
Joined: Mon Dec 03, 2007 11:15 am

UO:KR How to setup?

Post by Sadahar » Sat Feb 21, 2009 1:25 am

Well ive tryed to setup a uo:kr server but i didnt know what could I change, what encryption, packets an so i must set...

Any help will be appreciated :)

User avatar
Sadahar
Adept Poster
Posts: 81
Joined: Mon Dec 03, 2007 11:15 am

Re: UO:KR How to setup?

Post by Sadahar » Sat Feb 21, 2009 8:43 am

When i try to login:

Undefined message type 28
Unexpected message type 28, 79 bytes (IP:127.0.0.1, Account:None)

User avatar
Sadahar
Adept Poster
Posts: 81
Joined: Mon Dec 03, 2007 11:15 am

Re: UO:KR How to setup?

Post by Sadahar » Sat Feb 21, 2009 12:32 pm

Ok ive tried out with pol098 BETA #4 and i can even select the character.
It crashes at login, and pol localices the crash at the b5 packet.... open chat window :S

I enabled the chat packet... but still crashes just after entring the world...

If I try to create a character... i must hook the uokr character creation packet... so it also gives error..

Pierce
Forum Regular
Posts: 420
Joined: Thu Feb 02, 2006 8:33 am

Re: UO:KR How to setup?

Post by Pierce » Sat Feb 21, 2009 2:33 pm

May i ask what uokr client you're using? The original surely won't work.
And first of all. Did you have a custom map or multis? In that case don't waste your
time yet.
You can connect with uokr clients but atm it is pretty useless, means unplayable because
there has to be e.g. changes in the backpack packet handling first. Also for clients 2D > 6.0.5.0.

User avatar
Sadahar
Adept Poster
Posts: 81
Joined: Mon Dec 03, 2007 11:15 am

Re: UO:KR How to setup?

Post by Sadahar » Sat Feb 21, 2009 2:57 pm

oh i see....
its the latest uokr....2.53.x
no custom multis. I must wait for extended core suport then xD

Pierce
Forum Regular
Posts: 420
Joined: Thu Feb 02, 2006 8:33 am

Re: UO:KR How to setup?

Post by Pierce » Sat Feb 21, 2009 3:01 pm

Did you remove the encryption?
In that case you should be able to login and run around.

User avatar
Sadahar
Adept Poster
Posts: 81
Joined: Mon Dec 03, 2007 11:15 am

Re: UO:KR How to setup?

Post by Sadahar » Sat Feb 21, 2009 3:11 pm

Encryption is removed... but it crashes afer selecting the player... just afer login

Pierce
Forum Regular
Posts: 420
Joined: Thu Feb 02, 2006 8:33 am

Re: UO:KR How to setup?

Post by Pierce » Sun Feb 22, 2009 1:35 pm

What i realize when i login with a KR client is that the KR client somehow tries to connect the UO chat. Only from the KR client messages i get after login. I personally have a chat packet hook activated which uses the internal uo chat. I don't know if that works without that chat, but i think a year or more ago with the first versions of KR i could login it works without that chat. Afterwards we all couldn't connect with newer versions of KR cause Pol doesn't support them. In this time i scripted the chat. So i personally don't know if newer KR client only work with that chat. But i don't believe that. If i have time i deactivate it for a test, and check if i can connect without problems. I think tomorrow.
You could perhaps use SpyUO to check what packets in your case went wrong. There is a KR version of SpyUO avaiable.

Just an idea: If something went wrong. You could make the character naked with 2D first :D
This way you could avoid possible causing errors like mounts, wearables or else. But that's really just a weird idea ;)

User avatar
Sadahar
Adept Poster
Posts: 81
Joined: Mon Dec 03, 2007 11:15 am

Re: UO:KR How to setup?

Post by Sadahar » Sun Feb 22, 2009 2:40 pm

Yes, i thought about it too... but i would test it creating the character with a simple script, not with a 2d client.

Ill make more tests when i have more freetime :) and ill use spyuo too i was looking for a uokr version xd ive already found it. Anyway there's too many support needed from core to make a decent shard xD

guniu
New User
Posts: 6
Joined: Sat Nov 29, 2008 11:50 am

Re: UO:KR How to setup?

Post by guniu » Sun Feb 22, 2009 5:20 pm

I have a question, maybe not related, but...
Is there a program that removes encryption like uorice does, but for client 6.0.6.2 and above ?
I heard that there are programs that removes encryption in memory, but I need one that does it manually on a file.

User avatar
CWO
POL Expert
Posts: 1153
Joined: Sat Feb 04, 2006 5:49 pm
Location: Chicago, IL USA

Re: UO:KR How to setup?

Post by CWO » Mon Feb 23, 2009 4:15 am

http://forums.polserver.com/viewtopic.php?f=1&t=2545
Read that topic, in the second post it was modified to do 6.0.6.2+

Pierce
Forum Regular
Posts: 420
Joined: Thu Feb 02, 2006 8:33 am

Re: UO:KR How to setup?

Post by Pierce » Mon Feb 23, 2009 11:09 am

Pierce wrote:So i personally don't know if newer KR clients only work with that chat. But i don't believe that. If i have time i deactivate it for a test, and check if i can connect without problems. I think tomorrow.
Just tested. I can also login without the chat. Client 2.57.0.16 and Pol098beta-2009-02-18.

westrupp
Adept Poster
Posts: 87
Joined: Wed Aug 01, 2007 3:07 am
Location: Brazil
Contact:

Re: UO:KR How to setup?

Post by westrupp » Wed Mar 04, 2009 6:01 am

How convert uo:kr maps? File names are different...

Thx.

Tomi
POL Developer
Posts: 477
Joined: Tue Feb 21, 2006 5:08 pm

Re: UO:KR How to setup?

Post by Tomi » Wed Mar 04, 2009 7:29 am

just convert from 2D, they works with KR aswell. Pol UOConvert doesn't support the .uop fileformat.

Nando
POL Developer
Posts: 268
Joined: Wed Sep 17, 2008 6:53 pm
Contact:

Re: UO:KR How to setup?

Post by Nando » Wed Mar 04, 2009 8:51 am

Does anyone knows which format is used for .uop? I could try taking a look at it.

coltain
Grandmaster Poster
Posts: 159
Joined: Tue Mar 20, 2007 7:17 am
Location: Poland

Re: UO:KR How to setup?

Post by coltain » Wed Mar 04, 2009 11:56 am

some info from another forum:

Code: Select all

UOP Fileformat ( aka Mythic Package )
---------------------------------------
--Draft 0.2 - OMISSIS --

(Every Offset value is its first evidence as example)
All values are stored in Little Endian sequence, as usual in x86 architecture.
Compression method is DEFLATE using zlib.

sizeof(DWORD) = 4
sizeof(QWORD) = 8

[1] - General Format Header (sizeof: 40bytes )
Byte(23) 0x0 - 0x17 -> Containing general file headers (Version etc.)
DWORD? 0x18 -> Amount of contained files/indexes
byte(12) -> Unknown gibberish

[2] - Index Block Header (sizeof: 24bytes)
There can be multiple index blocks, they are splitted into chunks.
DWORD 0x28 -> Amount of contained files in this index, max 100/0x64
QWORD 0x2c -> Offset to the next index block header OR Zero
QWORD 0x34 -> Offset to start of Data Block( -> WORD[2] 0x0008 0x0003 )
DWORD 0x3c -> End of header, Form Feed (0x0000000c)
When a index block doesn't contain 100 index definitions, it will be padded with nulls

[3] - FileIndex Definitions (sizeof: 34bytes )
DWORD 0x40 -> Lenght of compressed data
DWORD 0x44 -> Size of decompressed file
QWORD 0x48 -> UNKNOWN-1 (maybe CRC)
DWORD 0x50 -> UNKNOWN-2
WORD 0x54 -> Separator? (always 0x0001)
QWORD 0x56 -> offsetdatablock + (12 + current compressed size)*id current block {1...max} (last one is 0)
DWORD 0x5e -> end of definition, Form Feed ( 0x0000000c)
...this repreats, until all FileIndexes are processed

[4] - Data Block/File (sizeof: 8+Lenght bytes)
DWORD 0xd7c -> separator, start of Data ( WORD[2] 0x0008 0x0003 )
QWORD 0xd80 -> UNKNOWN, possibly a CRC
BYTE(Lenght) 0xd88 -> compressed data
...this is repeated until all Files from FileIndexes are processed

repreat until next Index Block=0.


Pseudocode:

[1] - General Format Header (sizeof: 40bytes )

while ( repreatindex ) do
[2] - Index Block Header (sizeof: 24bytes)

while ( indexfilenumber~=indexfilecounter ) do
[3] - FileIndex Definitions (sizeof: 34bytes )
end
while ( indexfilenumber~=indexfilecounter ) do
[4] - Data Block/File (sizeof: 8+Lenght bytes)
end
end

Feel free to add your own chapters.
well. on this same forum there are some other interesting things...:
http://www.uodev.de/viewtopic.php?t=5382

Pierce
Forum Regular
Posts: 420
Joined: Thu Feb 02, 2006 8:33 am

Re: UO:KR How to setup?

Post by Pierce » Thu Mar 05, 2009 4:58 am

Tomi wrote:just convert from 2D, they works with KR aswell.
Are you sure?
As i converted our custom map over a year ago it was far more complicated.
First you have to unpack the .uop facet file if you have a custom map.
The format is completly different. There are no different files for map and statics
anymore. It's all in that facet file put together in 64x64 blocks which contain the
maptiles and also the static tiles. So i write a pol script to export all map and static
tiles exist on the 2D map in such 64x64 "files". After that a pearl script to convert
the 64x64 blocks to the new KR format and repack the whole thing to .uop with already
existing tools. Sounds easy but it wasn't. That's why i always ask for a binary reader/writer
for pol.

Did they change the facet format or did someone publish a converter lately?

First pol has to deal with the changed packets or at least allow us to hook them.
Before that didn't happen, the map isn't really the problem, because you only can run around. Playing is impossible.

If you're using no custom everything you're the luckiest guy in that case :D

MuadDib
Former Developer
Posts: 1090
Joined: Sun Feb 12, 2006 9:50 pm
Location: Cross Lanes, WV

Re: UO:KR How to setup?

Post by MuadDib » Thu Mar 05, 2009 6:12 am

First POL has to do what? :)

Code: Select all

03-01-2009 MuadDib:
    Fixed:   Issue with Mount Objtype 0xF021 and EquipItem() ignoring setting it's Layer.
    Added:   Complete packethook support with Clients 6.0.1.7 and higher. This is handled via
             the earlier added Is6017 uopacket.cfg entry. This will allow you to specify a 
             packethook to be triggered ONLY if the client involved is 6.0.1.7 and higher.
             It does not have to be a different packet size for this to work, only the client.
    Added:   "KR" for expansion type. This includes sending the 0x86DB with packet 0xB9.


02-28-2009 MuadDib:
    Added:   ML Expansion statmsg packet support. If Expansion for account is ML or higher, 
             and client version is 5.0 or higher (or is KR), sends ML Info Flag and data.


02-27-2009 MuadDib:
    Added:   Base 6.0.1.7 and up Incoming Packet Handling ability to core.
    Changed: Packets 0x3C updated for supporting clients 6.0.1.7. and newer.
    Changed: Grid index support (KR and 6.0.1.7) for Drop item Packet and sending. Grid
             Index is still not set on Container Add by scripts and core yet (since this is
             only truly needed for KR support for slotted bags).
    Changed: Updated Secure Trade Drop Item packet to support 6.0.1.7 and newer clients.
    Changed: Updated sending of packet 0x25  to support 6.0.1.7 and newer clients.


02-25-2009 MuadDib:
    Added:   Support for UOKR Poisoned Status bar updates. Core will now update UOKR clients correctly
             when poisoned set to true or false for a character.

coltain
Grandmaster Poster
Posts: 159
Joined: Tue Mar 20, 2007 7:17 am
Location: Poland

Re: UO:KR How to setup?

Post by coltain » Thu Mar 05, 2009 6:19 am

Pierce... Ever thougth about releasing Your tool???

pleeeaaaaseeee!!!!

westrupp
Adept Poster
Posts: 87
Joined: Wed Aug 01, 2007 3:07 am
Location: Brazil
Contact:

Re: UO:KR How to setup?

Post by westrupp » Thu Mar 05, 2009 8:38 am

UO:KR Launcher and SpyUO for UO:KR

http://forums.polserver.com/viewtopic.php?f=1&t=2637

Thx.

Pierce
Forum Regular
Posts: 420
Joined: Thu Feb 02, 2006 8:33 am

Re: UO:KR How to setup?

Post by Pierce » Fri Mar 06, 2009 2:34 pm

MuadDib wrote:First POL has to do what? :)
I'm really sorry. I didn't know that you have a test core with that features appear soon.
Coltain wrote: Pierce... Ever thougth about releasing Your tool???

pleeeaaaaseeee!!!!
First, it's really no tool. A tool for me is something like UOFiddler, something you can easily use.
What i made after Pol allowed KR login for the first time before EA newly changed packets over a year ago, was a set of scripts (Pol and Pearl) to get the differences in the newer KR files especially the map/statics/multis and to convert our own shard files. Which worked but far to complicated, because it uses 4 different systems i had to explain first. As i said i would translate the whole thing into a pol script, if pol would allow read/write binary files, which obviously didn't find any reminiscence by the devs. Which i understand, don't get me wrong. But the explanation of the use would take me more time as the conversion of the scripts or the devs to insert such a binary writer.

But that's no problem, cause i think there is at least one i think italian guy writing an easy converter. I mean a tool to simply click to convert as i read a few month ago:

http://www.uodev.de/viewtopic.php?t=531 ... b15d5d5b26

Post Reply