Git Product home page Git Product logo

ms2tools's People

Contributors

miyuyami avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

ms2tools's Issues

Repacking Issue

First, thanks for these utilities! Compiled and having no problems extracting, but using MS2Create always throws

[Error] [11/10/2018 12:02:15 AM] System.AggregateException: One or more errors occurred. ---> System.EntryPointNotFoundException: Unable to find an entry point named 'Delete' in DLL 'Decrypt64.dll'.

This happens pretty much immediately, unsurprisingly. Any suggestions?

MS2Create 1.1 generates different sized file and/or does not work and/or re-extract properly compared to 1.0

I've been using 1.0 for a while now and grabbed a new copy since I just built a new PC. I still have my old build of 1.0 on my platform, and I've been doing some testing with 1.1. I know multiple crypto changes were made with the rework back in September 2020. I'm not sure if I'm missing something on my platform, or if there's an underlying issue. This issue strictly appears to be a problem with MS2Create, not MS2Extract.

I started with a known good extracted Xml directory. I created a m2d via version 1.0 and 1.1. Size differences are below.

1.0 - m2d (96,333,184 bytes) | m2h (1,417,964 bytes)
1.1 - m2d (96,222,336 bytes) | m2h (1,431,076 bytes)

output.log run from debug logging is identical on both versions.

I then proceeded to extract the m2d/m2h pair on 1.0 and 1.1 respectively within their directories. I was able to extract with both versions 1.0 and 1.1 MS2Extract on the 1.0 file and everything was successful. When I try to extract the 1.1 file with either the 1.0 or the 1.1 MS2Extract file, I have the following issues below:

The 1.0 MS2Extract program throws an error at this point:

[Info] [1/8/2021 10:11:08 PM] Extracting file "effect/npc/skill/papulatus/papulatusmod/eff_papulatus_attack_03_a_power_mod.xml", "850 B". (69907/69909)
[Info] [1/8/2021 10:11:08 PM] Extracting file "effect/npc/skill/papulatus/papulatusmod/eff_papulatus_blockdrop_mod.xml", "1.833 KiB". (69908/69909)
[Info] [1/8/2021 10:11:08 PM] Extracting file "effect/npc/skill/papulatus/papulatusmod/eff_papulatus_mod_hit_01.xml", "1.688 KiB". (69909/69909)
[Error] [1/8/2021 10:11:11 PM] System.AggregateException: One or more errors occurred. ---> System.Runtime.InteropServices.SEHException: External component has thrown an exception.
at MS2Lib.NativeMethods.Decrypt64(Byte[] src, UIntPtr srcSize, Byte[] dst, UIntPtr dstSize, Byte[] key, UIntPtr keySize, Byte[] iv)
at MS2Lib.Decryption.Decrypt(Byte[] src, UInt32 dstSize, Byte[] key, Byte[] iv)
at MS2Lib.CryptoHelper.Decrypt(MS2CryptoMode cryptoMode, Byte[] src, UInt32 compressedSize, UInt32 size)
at MS2Lib.CryptoHelper.<>c__DisplayClass2_0.b__0()
at System.Threading.Tasks.Task1.InnerInvoke() at System.Threading.Tasks.Task.Execute() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at System.Runtime.CompilerServices.ConfiguredTaskAwaitable1.ConfiguredTaskAwaiter.GetResult()
at MS2Lib.CryptoHelper.d__2.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at System.Runtime.CompilerServices.ConfiguredTaskAwaitable1.ConfiguredTaskAwaiter.GetResult() at MS2Lib.CryptoHelper.<DecryptStreamToDataAsync>d__1.MoveNext() --- End of inner exception stack trace --- at System.Threading.Tasks.Task1.GetResultCore(Boolean waitCompletionNotification)
at MS2Lib.CryptoHelper.<>c.b__0_0(Task1 t) at System.Threading.Tasks.ContinuationResultTaskFromResultTask2.InnerInvoke()
at System.Threading.Tasks.Task.Execute()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at System.Runtime.CompilerServices.ConfiguredTaskAwaitable1.ConfiguredTaskAwaiter.GetResult() at MS2Lib.MS2File.<GetDecryptedStreamAsync>d__28.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at System.Runtime.CompilerServices.ConfiguredTaskAwaitable1.ConfiguredTaskAwaiter.GetResult()
at MS2Extract.Program.d__17.MoveNext() in C:\Users\etch\Downloads\MS2Tools-master\MS2Tools-master\MS2Extract\Program.cs:line 195
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at System.Runtime.CompilerServices.ConfiguredTaskAwaitable.ConfiguredTaskAwaiter.GetResult()
at MS2Extract.Program.d__15.MoveNext() in C:\Users\etch\Downloads\MS2Tools-master\MS2Tools-master\MS2Extract\Program.cs:line 166
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at System.Runtime.CompilerServices.ConfiguredTaskAwaitable.ConfiguredTaskAwaiter.GetResult()
at MS2Extract.Program.d__12.MoveNext() in C:\Users\etch\Downloads\MS2Tools-master\MS2Tools-master\MS2Extract\Program.cs:line 118
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at System.Runtime.CompilerServices.ConfiguredTaskAwaitable.ConfiguredTaskAwaiter.GetResult()
at MS2Extract.Program.d__11.MoveNext() in C:\Users\etch\Downloads\MS2Tools-master\MS2Tools-master\MS2Extract\Program.cs:line 79
---> (Inner Exception #0) System.Runtime.InteropServices.SEHException (0x80004005): External component has thrown an exception.
at MS2Lib.NativeMethods.Decrypt64(Byte[] src, UIntPtr srcSize, Byte[] dst, UIntPtr dstSize, Byte[] key, UIntPtr keySize, Byte[] iv)
at MS2Lib.Decryption.Decrypt(Byte[] src, UInt32 dstSize, Byte[] key, Byte[] iv)
at MS2Lib.CryptoHelper.Decrypt(MS2CryptoMode cryptoMode, Byte[] src, UInt32 compressedSize, UInt32 size)
at MS2Lib.CryptoHelper.<>c__DisplayClass2_0.b__0()
at System.Threading.Tasks.Task1.InnerInvoke() at System.Threading.Tasks.Task.Execute() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at System.Runtime.CompilerServices.ConfiguredTaskAwaitable1.ConfiguredTaskAwaiter.GetResult()
at MS2Lib.CryptoHelper.d__2.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at System.Runtime.CompilerServices.ConfiguredTaskAwaitable`1.ConfiguredTaskAwaiter.GetResult()
at MS2Lib.CryptoHelper.d__1.MoveNext()<---

The 1.1 MS2Extract program throws an error at this point:

[Info ] [2021-01-08T22:11:36.6150573Z] Extracting file "effect/npc/skill/papulatus/papulatusmod/eff_papulatus_attack_03_a_power_mod.xml", "850 B". (69907/69909)
[Info ] [2021-01-08T22:11:36.6151200Z] Extracting file "effect/npc/skill/papulatus/papulatusmod/eff_papulatus_blockdrop_mod.xml", "1.833 KiB". (69908/69909)
[Info ] [2021-01-08T22:11:36.6151823Z] Extracting file "effect/npc/skill/papulatus/papulatusmod/eff_papulatus_mod_hit_01.xml", "1.688 KiB". (69909/69909)
[Error ] [2021-01-08T22:11:36.6509256Z] System.IO.IOException: invalid characters encountered in base64 data
at Org.BouncyCastle.Utilities.Encoders.Base64Encoder.Decode(Byte[] data, Int32 off, Int32 length, Stream outStream) in /_/crypto/src/util/encoders/Base64Encoder.cs:line 167
at MS2Lib.CryptoHelper.GetDecryptionStreamAsync(Stream input, IMS2SizeHeader size, IMultiArray key, IMultiArray iv, Boolean zlibCompressed) in C:\Users\Etch\source\repos\MS2Tools\MS2Lib\MS2Lib\Cryptography\CryptoHelper.cs:line 24
at MS2Lib.NS2F.CryptoRepositoryNS2F.GetDecryptionStreamAsync(Stream input, IMS2SizeHeader size, Boolean zlibCompressed) in C:\Users\Etch\source\repos\MS2Tools\MS2Lib\MS2Lib\CryptoRepository\NS2F\CryptoRepositoryNS2F.cs:line 21
at MS2Extract.Program.ExtractFileAsync(String destinationPath, IMS2File file) in C:\Users\Etch\source\repos\MS2Tools\MS2Extract\Program.cs:line 187
at MS2Extract.Program.ExtractArchiveAsync(String headerFile, String dataFile, String destinationPath) in C:\Users\Etch\source\repos\MS2Tools\MS2Extract\Program.cs:line 163
at MS2Extract.Program.ExtractArchivesInDirectoryAsync(String sourcePath, String destinationPath) in C:\Users\Etch\source\repos\MS2Tools\MS2Extract\Program.cs:line 118
at MS2Extract.Program.RunAsync(String[] args) in C:\Users\Etch\source\repos\MS2Tools\MS2Extract\Program.cs:line 79

This tells me that during the creation of the archive file(s), something must be failing somewhere and not recording on the log.

According to a successful extraction, the eff_papulatus_mod_hit_01.xml file should actually be at position 19885/69909, so it's also reordering when it's building the file, I'm not sure if this information is relevant at all. I can provide my files for research if required, and I'll continue to poke around and figure out if I can identify anything on my end, but this is the current use case I've found with using version 1.1 of MS2Create.

Various .dll files missing

Building the solution after checking out each library and re-constructing the reference as laid out in the main MS2Tools, I am getting missing .dll files errors.

Image of build errors

Thank you and please let me know if there's anything I'm doing incorrectly.

hahaha this's good work. It so wonderful.. But..

Isn't it so illegal method?? How did U get the key at Maple2?
It's seems t b little vague..
but I wanna know, How can I try it.

Sorry for my poor vocabulary. I'm Korean so I have not choice. It's hard to learn more right now.
I can't trust the translator. So, i'm set the order myself.

This is a great tool!

I am very glad to use this tool within one day of your release. This tool is excellent.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.