2013-04-07T00:07:38 *** fsvgm777 has quit IRC 2013-04-07T01:25:05 *** nurupo has quit IRC 2013-04-07T01:46:01 *** nurupo has joined #thcrap 2013-04-07T01:59:00 *** nurupo has quit IRC 2013-04-07T02:13:29 *** nurupo has joined #thcrap 2013-04-07T02:19:37 *** nurupo has quit IRC 2013-04-07T02:21:06 *** nurupo has joined #thcrap 2013-04-07T05:31:28 *** Taro has quit IRC 2013-04-07T06:13:45 *** Nazeo has quit IRC 2013-04-07T06:14:27 *** Nazeo has joined #thcrap 2013-04-07T07:24:10 *** Nazeo has quit IRC 2013-04-07T08:26:57 *** tosiaki has quit IRC 2013-04-07T09:07:08 *** tosiaki has joined #thcrap 2013-04-07T10:25:23 *** tosiaki has quit IRC 2013-04-07T10:50:33 *** fsvgm777 has joined #thcrap 2013-04-07T12:36:08 *** tosiaki has joined #thcrap 2013-04-07T12:49:18 *** Taro has joined #thcrap 2013-04-07T12:54:10 *** tosiaki has quit IRC 2013-04-07T15:41:21 *** Nmlgc has joined #thcrap 2013-04-07T18:01:44 *** tosiaki has joined #thcrap 2013-04-07T19:22:35 *** nurupo_ has joined #thcrap 2013-04-07T19:25:32 *** nurupo has quit IRC 2013-04-07T19:25:33 *** nurupo_ is now known as nurupo 2013-04-07T21:11:17 *** tosiaki has quit IRC 2013-04-07T21:25:02 *** tosiaki has joined #thcrap 2013-04-07T21:29:54 *** Nmlgc has quit IRC 2013-04-07T22:45:21 *** GreaseMonkey has joined #thcrap 2013-04-07T22:45:39 apparently you guys are working on PC98 patches, i take it you've cracked the .exe compression they've used? 2013-04-07T22:46:14 my attempts do successfully decompress at least TH05's op.exe but unfortunately i get the STOP error, probably because i don't deal with that really weird entry point they use 2013-04-07T22:46:43 Nmlgc isn’t here yet, it’s him that is doing most of the work. 2013-04-07T22:46:45 wait nvm apparently you have this in the bag 2013-04-07T22:47:24 I didn’t even know they compressed the executables. ^^ 2013-04-07T22:48:33 i reverse engineered the compression by essentially doing a direct port of the asm to python 2013-04-07T22:51:07 https://gist.github.com/iamgreaser/1a9930bfeda83931f39e 2013-04-07T22:51:08 <[Bot]MagicStone> Title: this should decompress TH05s OP.EXE, look for a DLZ0 signature at 0x1C to see if any .exe is compressed, this WILL need to be genericised sadly --GreaseMonkey (at gist.github.com) 2013-04-07T22:51:41 *** Nmlgc has joined #thcrap 2013-04-07T22:52:05 Nmlgc: 2013-04-07T22:52:06 i reverse engineered the compression by essentially doing a direct port of the asm to python 2013-04-07T22:52:07 https://gist.github.com/iamgreaser/1a9930bfeda83931f39e 2013-04-07T22:52:08 <[Bot]MagicStone> Title: this should decompress TH05s OP.EXE, look for a DLZ0 signature at 0x1C to see if any .exe is compressed, this WILL need to be genericised sadly --GreaseMonkey (at gist.github.com) 2013-04-07T22:52:16 apparently you're the one responsible for the PC98 stuff 2013-04-07T22:52:21 Yup. 2013-04-07T22:52:29 PC-98 executables are compressed using Diet 2013-04-07T22:52:41 fff i guess that was redundant then @_@ 2013-04-07T22:55:25 by the way how far are you guys through applying the translations and whatnot? 2013-04-07T22:55:53 https://www.dropbox.com/s/qvldb84teljmga9/TRON.EXE << This is the decompressor I use for development; we probably won't be needing an open-source implementation because I'll be patching the games in memory 2013-04-07T22:55:55 <[Bot]MagicStone> Title: Dropbox - TRON.EXE (at www.dropbox.com) 2013-04-07T22:56:11 We're still at the very beginning, setting up the environment and stuff -.- 2013-04-07T22:57:16 GreaseMonkey, I don’t know if you are interested in that, but I started reverse-engineering various data formats, some of the documentation is here: http://pytouhou.linkmauve.fr/doc/04/ and some is in a few patches against PyTouhou I started writing a long time ago, here: http://pytouhou.linkmauve.fr/98/ 2013-04-07T22:57:20 <[Bot]MagicStone> Title: Lotus Land Story (at pytouhou.linkmauve.fr) 2013-04-07T22:57:37 oh yeah does anyone have a file format spec for .hdi? 2013-04-07T22:57:42 i DO know how to do FAT stuff 2013-04-07T22:58:04 It’s an useless header and then a normal msdos partition table with a fat16 partition. 2013-04-07T22:58:22 This is still going to take very, very long because we're going multilingual, I'll try to implement proportional font rendering (because 8x16 fixed-width was apparently not enough) and there's Touhou 14 coming out soon, which will be our top priority for a month or two 2013-04-07T22:58:24 A very minimal documentation is on top of the page I just linked. 2013-04-07T22:58:39 k 2013-04-07T22:59:01 oh brilliant, even gives me the commands i need to screw with it, thanks 2013-04-07T22:59:40 linkmauve1: Except that this header is not _that_ useless if you have different HDIs :-) 2013-04-07T23:00:47 I know it’s not entirely useless, but for most purposes it isn’t needed. :p 2013-04-07T23:02:49 I will do a free reimplementation of a few PC-98 Touhou in some far future, but currently we are focused on a better EoSD support, finishing the initial PCB support and extending the compatibility of our engine. Switching to a pure SDL2/OpenGL wrapper helped a lot for non-Linux support or non-X11. 2013-04-07T23:03:06 But I won’t forget PC-98. :) 2013-04-07T23:05:18 *** Nmlgc has quit IRC 2013-04-07T23:06:34 i'm adding 80186 opcodes to my disassembler which i used to disassemble ZZT 2013-04-07T23:07:16 What is ZZT? 2013-04-07T23:07:51 old game creation system 2013-04-07T23:08:00 written in turbo pascal 2013-04-07T23:08:09 looking at the disassembly, i just about throw up as to how unoptimised the code is 2013-04-07T23:08:30 and this is pertaining to how turbo pascal compiles stuff 2013-04-07T23:09:40 I found some pearls reading EoSD. ^^ 2013-04-07T23:10:04 I guess it has been compiled from C++, but microsoft’s compiler did a very poor job at optimizing it. 2013-04-07T23:11:07 I found funny that the debug strings were still present, just the display function was changed to a noop, so we could add back a printf and it would work. :D 2013-04-07T23:11:49 Or how his short arithmetic worked, after EACH operation on a short it does & 0xffff… 2013-04-07T23:13:48 i remember MSVC optimised a game in an amusing way which exposed a blatant (but extremely obscure and virtually never-triggered) bug 2013-04-07T23:13:51 ?_4490: xor eax, eax ; 00427477 _ 33. C0 2013-04-07T23:13:51 ?_4491: mov eax, dword [eax] ; 00427479 _ 8B. 00 2013-04-07T23:14:04 only in very rare cases will it ever hit ?_4490 2013-04-07T23:15:19 fff now i have to implement 0x66 in my disasembler >_< 2013-04-07T23:15:45 ...giving up and using tron 2013-04-07T23:16:25 I disagree with Nmlgc, of course we’ll need a free decompressor, but having a non-free one will probably help. 2013-04-07T23:16:36 ...which crashes dosbox >_< 2013-04-07T23:16:48 i might as well start a git repo 2013-04-07T23:18:41 Maybe it’s a PC-98 tool. 2013-04-07T23:18:57 Try it under a PC-98 emulator, instead of a PC one. 2013-04-07T23:19:53 on the other hand some stuff works on PC-98 as well as PC 2013-04-07T23:20:01 thanks for that note though 2013-04-07T23:20:18 i MAY use my disassembler to force it to work on dosbox though :P 2013-04-07T23:20:25 ^^ 2013-04-07T23:20:44 Even if they both use the same processor, the whole architecture is very different. 2013-04-07T23:21:12 started: https://github.com/iamgreaser/mzdis 2013-04-07T23:21:13 <[Bot]MagicStone> Title: iamgreaser/mzdis · GitHub (at github.com) 2013-04-07T23:21:33 still, if they simply stick with INT 0x21, it should be portable 2013-04-07T23:21:50 *** Nmlgc has joined #thcrap 2013-04-07T23:22:17 but yeah i'll need to rework the disassembler to handle 80386 stuff 2013-04-07T23:22:48 Strange, Tron just worked on cmd for me... but that was back when I still used 32-bit Windows XP 2013-04-07T23:23:42 and i'm using 64-bit linux hence dosbox 2013-04-07T23:24:14 GreaseMonkey, if it’s really a dosbox crash you may want to report it upstream. 2013-04-07T23:24:50 ok it's an issue with the dynamic core 2013-04-07T23:25:16 ffffff i was looking for a disassembler not an unpacker >_< 2013-04-07T23:25:34 anyhow i have to head to uni, cya 2013-04-07T23:25:51 \o_ 2013-04-07T23:26:13 *** tosiaki has quit IRC 2013-04-07T23:26:39 *** GreaseMonkey has quit IRC 2013-04-07T23:27:43 *** Nmlgc has quit IRC 2013-04-07T23:35:21 *** tosiaki has joined #thcrap 2013-04-07T23:54:10 *** fsvgm777 has quit IRC