2014-04-07T00:01:33 *** Ibaraki_Ibuki has joined #thcrap 2014-04-07T01:04:55 *** albel727 has joined #thcrap 2014-04-07T01:33:47 *** Nazeo has joined #thcrap 2014-04-07T01:46:38 *** Ibaraki_Ibuki has quit IRC 2014-04-07T01:54:50 @later tell Nmlgc We got a question from someone new! I'll be here all night so I'll let you know what I see you! 2014-04-07T01:54:50 <[Bot]MagicStone> Nazeo: The operation succeeded. 2014-04-07T02:12:10 *** Ramnik5 has joined #thcrap 2014-04-07T03:20:07 *** Ibaraki_Ibuki has joined #thcrap 2014-04-07T04:12:38 *** Tosiaki1 has quit IRC 2014-04-07T04:27:26 *** Nazeo has quit IRC 2014-04-07T05:31:17 *** Nazeo has joined #thcrap 2014-04-07T07:40:15 *** Nmlgc has joined #thcrap 2014-04-07T07:40:59 OK Nazeo, what's it about? 2014-04-07T07:43:27 ... I see. 2014-04-07T07:43:45 That's exactly that PC-98 string relocation problem I'm currently struggling with. 2014-04-07T07:44:48 For starters, I don't know if that person got that, but you can't write any permanent hacks using the Neko Project II debugger. It's just there to find out how to do things, which must be applied in a different way later. 2014-04-07T07:45:18 Mm... 2014-04-07T07:45:27 What should we tell them? 2014-04-07T07:46:44 I'll tell you in an hour, got to leave now ^^ 2014-04-07T07:46:47 *** Nmlgc has quit IRC 2014-04-07T07:47:24 Okies! See ya later~ 2014-04-07T07:58:52 *** Ibaraki_Ibuki has quit IRC 2014-04-07T08:15:45 *** Ramnik5 has quit IRC 2014-04-07T08:48:15 *** Nmlgc has joined #thcrap 2014-04-07T08:51:43 So, judging from the lack of information that person gave us, I assume he doesn't know about the Diet compression on the executables. Otherwise, he would have found some text he could easily change. 2014-04-07T08:53:45 However, even with that, he will run into the problem that the new strings he'd like to put in will most likely be longer than the space given in the executable. 2014-04-07T08:55:15 Ah... 2014-04-07T08:55:34 That would take awhile to teach no? 2014-04-07T08:56:15 The only way to get around that is to disassemble the program, track down every reference to the original string and point that to a different location where you can put more bytes. 2014-04-07T08:57:53 That game come with source code? 2014-04-07T08:58:28 Well of course not. :( 2014-04-07T09:01:31 Meeeeeeeeeeeeeh 2014-04-07T09:01:36 Never easy 2014-04-07T09:04:51 We do have the source code for master.lib and the Borland C++ run-time though, and that significantly cuts down the amount of code we have to deal with (that is, the part that was actually written by ZUN). 2014-04-07T09:10:47 I wouldn't consider my analysis done by any means, but in th05's OP.EXE, ZUN wrote no more than 30% of the code in the file. 2014-04-07T09:11:09 (in numbers: 136 out of 440 functions) 2014-04-07T09:11:32 That's more than a 1/4! 2014-04-07T09:13:24 So, back to the relocations… 2014-04-07T09:14:36 It should be possible to just enlarge the .exe file to allocate the new space you need for your longer strings, but I haven't really looked into that yet. 2014-04-07T09:18:43 But this seems pretty difficult with the flat, segmented memory model of DOS, and you might even run into memory problems (see: "640 KB ought to be enough for anybody") if you intend to insert a lot of strings. 2014-04-07T09:19:54 (And yes, I'm aware that Bill Gates never said that, but *someone* must have thought that before shipping DOS, and that's the point.) 2014-04-07T09:20:37 Bottom line: Wait for thcrap. 2014-04-07T09:23:57 Okey doke! 2014-04-07T09:24:00 Same message for both? 2014-04-07T09:24:03 *peoples 2014-04-07T09:24:38 That's only for the PC-98 guy. As for Sosso… 2014-04-07T09:28:24 Well, I didn't find any Japanese text in the .assets files either. But then again, I didn't look particularly closely. 2014-04-07T09:30:18 I'm not familiar with Unity, so I don't know how you would usually store text in that engine. Heck, they could have even encrypted it. 2014-04-07T09:31:00 *** Ramnik5 has joined #thcrap 2014-04-07T09:31:32 It's most certainly not in the .exe file, or at least not in any usual encoding (Shift-JIS, UTF-8 or UTF-16). 2014-04-07T09:32:05 Tell her it's a thing in the works? 2014-04-07T09:33:20 … nah, I can't afford to put a lot of time into this now. 2014-04-07T09:34:04 * Nazeo nod nods 2014-04-07T09:34:14 I'll explain the situation! 2014-04-07T09:34:49 *** Boxmanbr has joined #thcrap 2014-04-07T09:36:07 Since there is some amount of .NET code involved here, I'll try the usual decompilation tools later today, but I don't expect anything helpful to come out of tha. 2014-04-07T09:39:25 *that 2014-04-07T09:41:57 Roger! 2014-04-07T09:43:33 *** Nmlgc has quit IRC 2014-04-07T10:33:30 *** Nmlgc has joined #thcrap 2014-04-07T10:33:37 (09:38:09 AM) Nmlgc: So yeah, I'd recommend contacting other people who have some experience in hacking Unity games. 2014-04-07T10:39:08 *** Nmlgc has quit IRC 2014-04-07T10:47:47 i found the best 4chan thread 2014-04-07T10:47:49 im in heaven 2014-04-07T10:48:02 http://boards.4chan.org/jp/res/12019144 2014-04-07T10:48:03 <[Bot]MagicStone> Title: /jp/ - Otaku Culture (at boards.4chan.org) 2014-04-07T11:21:12 *** Ramnik5 has quit IRC 2014-04-07T12:23:00 *** Boxmanbr_ has joined #thcrap 2014-04-07T12:25:29 *** Boxmanbr has quit IRC 2014-04-07T12:55:01 *** Boxmanbr_ has quit IRC 2014-04-07T13:36:01 *** Nmlgc has joined #thcrap 2014-04-07T14:27:38 *** Nazeo has quit IRC 2014-04-07T14:54:01 *** Nmlgc1 has joined #thcrap 2014-04-07T14:55:40 *** Nmlgc has quit IRC 2014-04-07T15:08:57 *** Tosiaki has joined #thcrap 2014-04-07T16:01:09 *** Nazeo has joined #thcrap 2014-04-07T16:21:34 Success: https://www.dropbox.com/s/18ox2e2xm4e6bwy/Splash%20text%20change.png 2014-04-07T16:21:36 <[Bot]MagicStone> Title: Dropbox - Splash text change.png (at www.dropbox.com) 2014-04-07T16:22:13 o: 2014-04-07T16:22:21 Did that take you a lot of effort? 2014-04-07T16:23:27 Not at all. 2014-04-07T16:24:02 That's goooooood 2014-04-07T16:24:12 How did you do it? :o 2014-04-07T16:24:21 It appears that all of the relevant game code (of Unity games in general?) is stored in _Data/Managed/Assembly-CSharp.dll 2014-04-07T16:25:02 ... which, as the name already tells, is a C# assembly. Ergo, the game is basically open-source. 2014-04-07T16:26:40 However, dumping a working source project from that one file still seems to require some work, either due to obfuscation or because the decompiler I used (JetBrains dotPeek) can't cope with some of the advanced C# features yet. 2014-04-07T16:27:53 Do you think Sosso would be able to figure that out? o: 2014-04-07T16:29:17 Hmm. I guess that if she was familiar with C#, she could have guessed everything up to that point herself. Thus, I doubt it. -.- 2014-04-07T16:30:34 As for that modification, that was possible because the original splash text ("ちゆうどう") was hardcoded into that file. 2014-04-07T16:30:35 Ah... :< 2014-04-07T16:31:02 She would need to depend on us then... 2014-04-07T16:32:40 Hardcoded strings in C# are always UTF-16. That means that my new string couldn't be longer than 5 Unicode characters, so "Yay^^" is the best I could have done. 2014-04-07T16:33:17 I guess I would need to ask her what the scope was for extraction... 2014-04-07T16:33:47 If we wanted a longer text there, we'd either have to 1) relocate the string (here we go again...) oder 2) successfully recompile the game. 2014-04-07T16:37:51 The people who patched Age of Ethanols can probably be of more help here, given that they've already did the same for that game. 2014-04-07T16:38:04 They seem pretty busy with their own game project right now, though. 2014-04-07T16:38:11 Yeah... was going to say 2014-04-07T16:38:46 Hmm, let me stare at the code for another while, maybe I'll figure out how they store that scenario text. 2014-04-07T16:39:10 Standing by! 2014-04-07T16:43:47 ... OK, with all these hardcoded Japanese strings, there'll be no way around a recompilation, eventually. 2014-04-07T16:43:58 Ouch... 2014-04-07T17:02:38 https://github.com/ata4/disunity/releases << This seems to be a better extractor for the .assets files. 2014-04-07T17:02:39 <[Bot]MagicStone> Title: Releases · ata4/disunity · GitHub (at github.com) 2014-04-07T17:03:14 Noted! 2014-04-07T17:05:00 Yep, that one dumps nicely sorted text files from resources.assets. 2014-04-07T17:06:26 Alright. I'll send it to Sosso when I get back 2014-04-07T17:07:19 *** Nazeo has quit IRC 2014-04-07T18:14:20 *** Nmlgc1 has quit IRC 2014-04-07T20:13:03 *** Tosiaki has quit IRC 2014-04-07T20:29:49 *** Nazeo has joined #thcrap 2014-04-07T20:31:51 *** Boxmanbr has joined #thcrap 2014-04-07T20:54:39 *** Tosiaki has joined #thcrap 2014-04-07T21:21:22 *** Nazeo has quit IRC 2014-04-07T21:57:48 *** Tosiaki has quit IRC 2014-04-07T22:04:09 *** [Bot]MagicStone` has joined #thcrap 2014-04-07T22:06:05 *** squimmy_ has joined #thcrap 2014-04-07T22:10:14 *** albel727 has quit IRC 2014-04-07T22:10:14 *** [Bot]MagicStone has quit IRC 2014-04-07T22:10:14 *** squimmy has quit IRC 2014-04-07T22:10:15 *** [Bot]MagicStone` is now known as [Bot]MagicStone 2014-04-07T22:12:58 *** Boxmanbr has quit IRC 2014-04-07T22:13:43 *** Boxmanbr has joined #thcrap 2014-04-07T22:30:05 *** Tosiaki has joined #thcrap 2014-04-07T22:43:08 *** Ibaraki_Ibuki has joined #thcrap 2014-04-07T22:45:49 *** Boxmanbr_ has joined #thcrap 2014-04-07T22:48:53 *** Boxmanbr has quit IRC 2014-04-07T22:50:28 *** Boxmanbr_ has quit IRC 2014-04-07T22:57:39 *** Boxmanbr has joined #thcrap 2014-04-07T23:37:48 *** albel727 has joined #thcrap 2014-04-07T23:48:10 *** Boxmanbr has quit IRC