Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The creationDate in OnexTreeItem *NosZlibOpener::decrypt is the type of the file #4

Open
sd5986 opened this issue Oct 8, 2020 · 4 comments

Comments

@sd5986
Copy link

sd5986 commented Oct 8, 2020

Recently, I translated Onex Explorer's unpack ,packing and cryptography to C# for my own use.
I used the those translated codes to repack map textures. The result is, if I used the translated code of OnexTreeZlibItem::setCreationDate and repack texture, the game can no longer read them. Then I addressed this issue and records the so called"Creation Date" when unpacking, then write the so called"Date Time" when repacking.
Then the repacked NStpData works just fine, textures can be read by the game.
Also , if someone use Nosunpack to view the .NOS package file,
Will find out the CreationDate is actually type instead of a DATE.

@morsisko
Copy link
Contributor

I don't think if I understand you correctly. Do you mean that if you use your own library (translated code) the game cannot read the texture anymore? What happens if you repack this texture with OnexExplorer?

@sd5986
Copy link
Author

sd5986 commented Oct 26, 2020

I don't think if I understand you correctly. Do you mean that if you use your own library (translated code) the game cannot read the texture anymore? What happens if you repack this texture with OnexExplorer?

This conclusion is based on three evidence.
1: new Textures have a creationDate of 2005??
2:Their creation date repeats. (537198896, 537133574) in NStpData
3.When I use generateOLETime, to generate the time and writes them, the game can no longer read the texture (OnexExplorer can read!) The dateTime dispalyed in OnexExplorer is also incorrect, they become english character. like ee/df/hjgg etc...

@sd5986
Copy link
Author

sd5986 commented Oct 26, 2020

I don't think if I understand you correctly. Do you mean that if you use your own library (translated code) the game cannot read the texture anymore? What happens if you repack this texture with OnexExplorer?

What I did is, I unpacked the whole .Nos package, and repacked the whole file.Since there is a massive number of files replaced, it is impractical repack the textures in OnexExplorer. I did this because i wish to make a special, unique server with old maps, but at the same time with new contents.

@morsisko
Copy link
Contributor

morsisko commented Oct 26, 2020

What have you used to repack the whole file? If it's problem with your tool I don't understand how it is connected to OnexExplorer

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants