Commit graph

121 commits

Author SHA1 Message Date
mykola2312
c4a0c6b0c5 fix 2023-09-02 21:52:43 +03:00
mykola2312
7f0be36c30 fix 2023-09-02 21:52:41 +03:00
mykola2312
b190315920 deny rust 2018 idioms so no hidden lifetimes - I will be able to manage lifetimes better 2023-09-02 21:43:20 +03:00
mykola2312
535bcc8b94 impl Entity. todo! 2023-09-01 15:49:03 +03:00
mykola2312
10fd8bb7cc Decoder now has Opt type of implementing additional info that required to deal with complex decoding and add more context to result objects 2023-09-01 15:12:05 +03:00
mykola2312
c49622e2ac update on entity_file: successfully able to parse all entities, therefore reverse-engineering theory is complete and proved for entity_file 2023-09-01 02:31:29 +03:00
mykola2312
ea5874594f update on entity_file 2023-09-01 01:15:05 +03:00
mykola2312
d8f1ef6dbd cargo fmt 2023-08-31 13:51:41 +03:00
mykola2312
4d78a5ca8b implement correct Hash for FString so indexing and hash maps would be working as intended 2023-08-31 13:51:13 +03:00
mykola2312
4df2803fdb implement Display, PartialEq and Borrow for FString. May need to complete it so indexing by &str would be possible 2023-08-31 13:46:20 +03:00
mykola2312
a5d44bd730 implement Display for ESHValue 2023-08-31 13:03:47 +03:00
mykola2312
8fe330b368 fixed bug wihen WriteStream::write_bytes wrote data at wrong position. ESH encoding and decoding fully implemented and tested 2023-08-31 12:12:33 +03:00
mykola2312
bc339d57a6 implemented ESH encoding, but found out there was a critical bug in WriteStream. Needs to be fixed ASAP 2023-08-31 11:15:50 +03:00
mykola2312
c69ae933c0 implement full decoding of ESH values 2023-08-31 10:32:24 +03:00
mykola2312
1339b4da9e implement more ESH types 2023-08-31 09:43:45 +03:00
mykola2312
344ec241e7 add some ESH types to enum 2023-08-31 09:17:53 +03:00
mykola2312
71de729437 update on format 2023-08-31 08:53:40 +03:00
mykola2312
e03785e045 update on ESH data types 2023-08-31 08:36:24 +03:00
mykola2312
561e4a4dd3 some discoveries about ESH data types 2023-08-31 06:54:57 +03:00
mykola2312
628010e6c2 implement ESH 2023-08-31 00:17:20 +03:00
mykola2312
7ac969aff4 implement SSG (though it's unknown) 2023-08-30 23:57:03 +03:00
mykola2312
6597063d7c World::encode now uses ReadStream 2023-08-30 22:45:21 +03:00
mykola2312
2868f90a77 SGD decoding and encoding fully implemented and tested 2023-08-30 21:58:38 +03:00
mykola2312
3765844efb fix bug in read_bytes 2023-08-30 21:36:05 +03:00
mykola2312
cc8a49f8da fix bug in read_bytes 2023-08-30 21:36:03 +03:00
mykola2312
ee124abf64 implement encode for SGD 2023-08-30 21:30:56 +03:00
mykola2312
a52aed8934 start implementing SGD 2023-08-30 20:57:05 +03:00
mykola2312
236bf7fdca Tag now uses streamed read/write 2023-08-30 01:44:52 +03:00
mykola2312
4a60850712 implement WriteStream 2023-08-30 01:36:27 +03:00
mykola2312
69aa2ded18 update on sgd: found out that unk1 was actually a number of dialog lines 2023-08-30 00:36:15 +03:00
Микола
d2a9a9394b add license 2023-08-30 00:32:49 +03:00
mykola2312
a978269cd5 add README.md 2023-08-30 00:30:10 +03:00
mykola2312
26c99c529d test ReadStream with SGD decoding 2023-08-29 23:26:24 +03:00
mykola2312
aa0990e472 add visibility in impl ReadStream 2023-08-29 23:08:53 +03:00
mykola2312
36a6140ca9 implement ReadStream 2023-08-29 23:08:04 +03:00
mykola2312
584d361095 cargo fmt 2023-08-29 23:01:44 +03:00
mykola2312
b43efe1abd successful attempt to decode sgd. Realized, that I need to implement some stream reading 2023-08-29 21:39:07 +03:00
mykola2312
889e2060b3 fix get_enc_size for FString 2023-08-29 19:26:11 +03:00
mykola2312
1c1c7754d4 refactor FString a little bit 2023-08-29 08:18:16 +03:00
mykola2312
e24f67843f FString ANSI decoding/encoding 2023-08-29 08:15:41 +03:00
mykola2312
0eb6de377c make FString pub 2023-08-29 07:56:52 +03:00
mykola2312
2ac56b9f01 encode in Decoder trait now returns Result, so encoding errors will be handled 2023-08-29 07:54:49 +03:00
mykola2312
0cd80927be FString proper encoding 2023-08-29 07:51:49 +03:00
mykola2312
650cbcaaca implement FString for ANSI and WCS2 (UTF-16 1251) encodings 2023-08-29 07:10:52 +03:00
mykola2312
1b05779355 update save.rs to use super instead of crate 2023-08-29 06:01:07 +03:00
mykola2312
edfa27a8d5 migrate from "crate::" to "super::" for more flexibility 2023-08-29 05:59:50 +03:00
mykola2312
cdd6ec023e change get_enc_len to get_enc_size because "size" is more appropriate term 2023-08-29 05:48:00 +03:00
mykola2312
ecfd10adbc add get_enc_len to Decoder trait 2023-08-28 19:04:57 +03:00
mykola2312
493376a805 update notes 2023-08-28 04:50:41 +03:00
mykola2312
17df24833f update on esh format 2023-08-28 00:51:26 +03:00