Post Pacific

Post Pacific (https://postpacific.loc-online.com/index.php)
-   Темы без сохранившегося раздела (https://postpacific.loc-online.com/forumdisplay.php?f=10001)
-   -   [HELP / WIP] Interlude Meshes (https://postpacific.loc-online.com/showthread.php?t=7937)

khelben 29.06.2007 09:13

[HELP / WIP] Interlude Meshes
 
I'm messing around with modifying the C4 client to add the meshes from C6.

I'm not exactly sure how this is done but i have managed to get this far....

I have the meshes, there aren't any bones in them, and I've been able to export the mesh to a psk, importable by UnrealEd.

The trick is i get an error when i try to use the ukx i rolled in unrealed on the c4 client.

Code:

SkeletalMesh iLineageWeapons.shyid_bow_m00_wp: Serial size mismatch: Got 211915, Expected 211919
 
 History: LoadObject <- (SkeletalMesh iLineageWeapons.shyid_bow_m00_wp 212109==212109/212143 194 211919)
<- ULinkerLoad::Preload <- PreLoadObjects <- UObject::EndLoad <- UObject::StaticLoadObject
<- (Engine.SkeletalMesh iLineageWeapons.shyid_bow_m00_wp NULL) <- IsLoadedResource
<- User::SetPawnResource <- UNetworkHandler::Tick <- Function Name=UserInfoPacket <- UGameEngine::Tick
<- UpdateWorld <- MainLoop

I'm hoping someone a bit more familiar with modeling or the UT2003 package data can look at this and see where it's going wrong.

I suspect that there is a header missing or a header that is normally stripped out is present (the package mismatch size is only 4 bytes)

As I'm not a DLL programmer, this would be my only acceptable alternative method to add Interlude content.

The below package contains my max project, a dds texture, the psk i generated, and the ukx package i generated for the test item (Shyeed's Bow)

Any help getting this to work would be greatly appreciated.

Вложения из исходного сообщения (сами файлы в копии отсутствуют):
Shyeed_Bow.rar — 226282 байт

DeKoth 29.06.2007 12:23

The mesh files are encrypted which is why unreal ed wont read em.

khelben 29.06.2007 12:27

Unreal Ed reads this fine. It's after I write it out.
Also if you look at the error message, the difference between the size received as well as the size expected is 4 bytes... to me that screams some type of header data was either inserted and should have been omitted or vice versa.

I can personally guarantee i didn't encrypt the mesh before i rolled it ;p

DeKoth 29.06.2007 17:24

Hm Im not sure than, your further in than I am. Keep working at it and keep us posted.

khelben 30.06.2007 09:09

Ok, here's what i have so far.

It looks like L2 Format and UnrealEd format do differ by 4 bytes per payload object.

I confirmed this by comparing a decrypted Texture Package with a Decrypted Texture Package ran through L2Tool.

For each object in the payload so far the difference in the payload has been an insert of 4 bytes then a modded value.

Decrypted Value (d)
UnrealEd Value (u)

u = d + (2^10 * position in export table)
i.e. 1st = +1024, 2nd = +2048, 3rd = +3072

in addition to these changes, obviously the offsets changed too....

I'm still trying to learn the ut package format.

If anyone else wants to pipe in, or better yet if some hexer wants to tell me why these extra bytes are needed and what they do... that'd be awesome.

Edit:
Found some interesting reading.
http://anonym.to?http://www.unrealwi...ge_File_Format
http://anonym.to?http://www.unrealwi...t/Data_Details
http://anonym.to?http://www.acordero...Format_pdf.zip
http://anonym.to?http://wiki.xentax....Specifications
http://anonym.to?http://www.acordero...Format_pdf.zip

Edit:
Random thought.. values could be increasing by 2^10 because of compact indexes.... the borrowed bits could make this look like an ordered increase due to the 4 byte insertion if the value is an address pointer... I'll have to look into this once i have some more time and a better understanding of the format.

Вложения из исходного сообщения (сами файлы в копии отсутствуют):
hex compare.rar — 30433 байт

khelben 30.06.2007 16:34

Little Tool To Help
 
I went cross eyed trying to compute compact indicies, so i wrote a little tool to do it for me....

If you are looking to help out, maybe it will help you too.

Source available also.

Вложения из исходного сообщения (сами файлы в копии отсутствуют):
CITool.rar — 7878 байт
CITool_Source.rar — 5120 байт

khelben 01.07.2007 08:26

Wow, the interest in creating a package tool is overwhelming.

Perhaps I'm the only one that thinks being able to convert between unrealed and l2 packages is a worthwhile endeavor?

Fair Enough.

~Marquis~ 01.07.2007 11:44

Well i spent days finding a way to import animations and meshes, i find a way to edit them with a brazilian tool, but this tool was not working with C4 animations. I dropped the idea that one day we could import meshes. If you find the way to do it, it'd be great. Unfortunately i have no skill in hexin so i cannot help you out.

m4rk 01.07.2007 13:05

I'm afraid most developers lean towards modifying the server to accept interlude and have it's features than towards client modding.

khelben 01.07.2007 13:32

Well, this isn't just about interlude and it's features though....

If we had a package tool for L2 I could model and skin the Sw0rd of M4rk and add it to my client.

Or custom NPCs, etc.... the more we can pick apart the more customization is possible.

I dunno about you but i think that's pretty exciting.

~Marquis~ 01.07.2007 15:06

Modifying/importing animations and meshes is hella exciting, imaging what you could be able to do with it. If you could import in L2, UT2003 animations for example :>

DeKoth 02.07.2007 01:24

Gun in L2 ;) LOL

SilentBot 19.07.2007 10:06

I was checking your model and saw that there's something wrong on it..:
http://img300.imageshack.us/img300/3...ptedlh7.th.jpg
I wonder if this causes the crash...

nish 19.07.2007 13:49

lol i been tryin to do this for quite some time now with no luck

ncsoft uses something else to pack some stuff

same with kamael it is even worse to decode

Quote:

Originally Posted by DeKoth (Post 90237)
Gun in L2 ;) LOL

lol check this out found it on some chinese mod site


http://thumbnails.keepmyfile.com/35/...8758e0538e.gif



Вложения из исходного сообщения (сами файлы в копии отсутствуют):
ADA.rar — 327280 байт

blackman 19.07.2007 14:44

WOW. Give a textures and scripts plzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzz

DeKoth 19.07.2007 16:00

that shits nuts lol i love it

Dkilla 19.07.2007 21:43

OMFG guns in l2!

Nice outfit btw.


All times are GMT. The time now is 15:09.