tag:blogger.com,1999:blog-8915729172140938960.post5680526563840740927..comments2023-12-15T10:13:03.167-08:00Comments on ISANS: A Musical InterludeAnoHitohttp://www.blogger.com/profile/01370977773684710611noreply@blogger.comBlogger27125tag:blogger.com,1999:blog-8915729172140938960.post-83049599416441891442015-08-19T06:26:05.434-07:002015-08-19T06:26:05.434-07:00Hey, it's been quite a long time since I last ...Hey, it's been quite a long time since I last visited your blog.<br /><br />I don't know if you're still working on it, but looks like they will be releasing a HD version with japanese voices.Anonymoushttps://www.blogger.com/profile/10993699764600863015noreply@blogger.comtag:blogger.com,1999:blog-8915729172140938960.post-50530613879609779202014-08-17T13:40:09.587-07:002014-08-17T13:40:09.587-07:00Yeah now the patching works without problems.
No p...Yeah now the patching works without problems.<br />No problem, I am all for these undubing of projects.Jouvenhttps://www.blogger.com/profile/18433121057407783449noreply@blogger.comtag:blogger.com,1999:blog-8915729172140938960.post-20500808357077569982014-08-17T08:10:20.317-07:002014-08-17T08:10:20.317-07:00I accidentally pressed the wrong button and delete...I accidentally pressed the wrong button and deleted the comment I wrote with an explanation what the problem was. >,< Well, long story short, the bug was caused by a recent change in how ruby handles multi-byte characters in strings. I would have found the problem sooner, but due to a little mistake on my part, I was actually testing with the wrong version of ruby without realizing it. Once I actually did run the script with ruby 2.0, I figured things out pretty quickly. And so here is a fixed iso9660.rb:<br /><br />https://mega.co.nz/#!C0A3HAYC!F4akQaW6T2_ifO4k1IUoRlxHFaPgtdWXIEMegg3ftEc<br /><br />Anyway, thanks for your help getting things figured out. Now I would have to deal with a mountain of complaints when the full 1.0 patch is released. ;) Which by the way, is still a thing that is going to happen, though I'm still not going to say when exactly. In the mean time please continue testing the game and report anything you can find.AnoHitohttps://www.blogger.com/profile/01370977773684710611noreply@blogger.comtag:blogger.com,1999:blog-8915729172140938960.post-64426271278006775932014-08-17T04:08:16.021-07:002014-08-17T04:08:16.021-07:00the results:
http://pastebin.com/4keYCpF7the results:<br />http://pastebin.com/4keYCpF7Jouvenhttps://www.blogger.com/profile/18433121057407783449noreply@blogger.comtag:blogger.com,1999:blog-8915729172140938960.post-85536991039387525492014-08-16T14:42:31.257-07:002014-08-16T14:42:31.257-07:00This is just incredibly weird. The output you sent...This is just incredibly weird. The output you sent indicates that the MultiIO class was working correctly right up until the point of failure, so that couldn't be the problem. Okay, one more thing then, let's look at iso9660.rb.<br /><br />Here is a copy of iso9660.rb with some debug output enabled:<br /><br />https://mega.co.nz/#!T9gGzRpT!fLrsHSyjUxPyDdoIeU1xFLY_clWJeK6vBZFPIOdArOk<br /><br />And here is a copy of the new multiio.rb without the debug stuff since it seems to be working correctly and the extra output would just get in the way:<br /><br />https://mega.co.nz/#!D1oSxQiC!55RI354_mCOKs2t_Ek9rSUuJq2SMbB4zNHBWDlDNwEI<br /><br />Could you try this one more time with "undub.rb > output.txt" and pastie the results? I think this should finally reveal what's going wrong, although after repeatedly looking at the code, I still have no idea what it could be.AnoHitohttps://www.blogger.com/profile/01370977773684710611noreply@blogger.comtag:blogger.com,1999:blog-8915729172140938960.post-28888567201044352612014-08-16T13:28:32.098-07:002014-08-16T13:28:32.098-07:00the results:
http://pastebin.com/ezisCf4ithe results:<br />http://pastebin.com/ezisCf4iJouvenhttps://www.blogger.com/profile/18433121057407783449noreply@blogger.comtag:blogger.com,1999:blog-8915729172140938960.post-67949325940287513012014-08-16T13:08:15.649-07:002014-08-16T13:08:15.649-07:00One last thing to try, but if this doesn't hel...One last thing to try, but if this doesn't help, I really am stumped. Here is a copy of multiio.rb that prints a lot of additional debug information whenever the stream position is set:<br /><br />https://mega.co.nz/#!PtoC0ALb!ZK5e6LMn8NO93v3f5amm8LjfjDylDuYQgfVlAFOzlzE<br /><br />When you have time, could you please use this new multiio with the 0.91 patcher using the following command?:<br /><br />undub.rb > output.txt<br /><br />The patching script won't tell you when it's done because all the output will be routed to output.txt, so you'll have to open output.txt to check and see if it's reached the point where it crashes, and then you can close the command window. The text won't update while it's open though, so you'll have to close the file and reopen it every time you want to check it. But it shouldn't take longer than usual either way. Then you'll need to upload the contents of output.txt to pastie.org and post the link here, because I think the output will be too long for a comment. If the contents of output.txt are even slightly different than what they are on my computer, that should help me identify what the problem is.AnoHitohttps://www.blogger.com/profile/01370977773684710611noreply@blogger.comtag:blogger.com,1999:blog-8915729172140938960.post-37149746352152725682014-08-16T11:48:49.429-07:002014-08-16T11:48:49.429-07:00I have the gdi + bins + raws compressed in a singl...I have the gdi + bins + raws compressed in a single file, it's the original downloaded file that I did link you, so every time I'm doing the patching I extract your patch on a folder, emptied previously, I extract the image, I rename the the *.gdi file to GrandiaII.gdi and I launch the undub.rb... so I don't know... the 0.90 patch still works for me every time and, regarding the patch 0.91, looks like the error is now on another part of the patching process:<br />Error: Cannot load an entry that isn't a directory.<br />F:/isos clients/dc/dctemp/trans/iso9660.rb:111:in `load'<br />...Jouvenhttps://www.blogger.com/profile/18433121057407783449noreply@blogger.comtag:blogger.com,1999:blog-8915729172140938960.post-84245730907841723192014-08-16T11:32:56.183-07:002014-08-16T11:32:56.183-07:00Okay, so it looks like all the data tracks are bei...Okay, so it looks like all the data tracks are being loaded correctly (I don't load the audio tracks because they are not modified in any way), and track03.bin (which contains the ISO header that I need to modify) is being loaded to the correct offset. Are you absolutely, completely sure your GDI image did not get corrupted somehow? Have you tried using the patch on a new, freshly made copy of the original GDI image that you have never run the patching script on or modified in any way? Other than a corrupted GDI image, I don't have any idea what else could be wrong.AnoHitohttps://www.blogger.com/profile/01370977773684710611noreply@blogger.comtag:blogger.com,1999:blog-8915729172140938960.post-86541862991233180632014-08-16T11:07:13.756-07:002014-08-16T11:07:13.756-07:00[#< File:track01.bin>, #< StringIO:0x0000...[#< File:track01.bin>, #< StringIO:0x00000000499698>, #< File:track03.bin>, #< Strin<br />gIO:0x000000004b1478>, #< File:track05.bin>]<br />Added an space between < and what follows because otherwise it removes everything between a <> sectionJouvenhttps://www.blogger.com/profile/18433121057407783449noreply@blogger.comtag:blogger.com,1999:blog-8915729172140938960.post-38347682936876445862014-08-16T11:02:41.733-07:002014-08-16T11:02:41.733-07:00F:\isos clients\dc\dctemp\trans>ruby -r debug u...F:\isos clients\dc\dctemp\trans>ruby -r debug undub.rb<br />DL is deprecated, please use Fiddle<br />Debug.rb<br />Emacs support available.<br /><br />C:/Ruby200-x64/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:57:<br />(rdb:1) b undub.rb:33<br />Set breakpoint 1 at undub.rb:33<br />(rdb:1) c<br />Let's undub Grandia II!<br />Converting tracks from raw to user mode...<br />Dumping files from original GDI...<br />Breakpoint 1, toplevel at undub.rb:33<br />undub.rb:33: iso = ISO.new(stream, 45000 * 2048 + 0x8000)<br />(rdb:1) stream.streams<br />[#, #, #, #, #]<br />(rdb:1) stream.length<br />1124659200<br />(rdb:1) stream.streams.each {|s|puts s.length}<br />1241088<br />90918912<br />9975808<br />1538048<br />1020985344<br />[#, #, #, #, #]<br />(rdb:1)Jouvenhttps://www.blogger.com/profile/18433121057407783449noreply@blogger.comtag:blogger.com,1999:blog-8915729172140938960.post-6973257634744654092014-08-16T10:51:56.493-07:002014-08-16T10:51:56.493-07:00Ungh, they are still distributing the debugger wit...Ungh, they are still distributing the debugger with the rubygems breakpoint issue? Okay, instead of "b 33", use the command "b undub.rb:33" instead. The rest should stay the same.AnoHitohttps://www.blogger.com/profile/01370977773684710611noreply@blogger.comtag:blogger.com,1999:blog-8915729172140938960.post-1084176739437016662014-08-16T10:29:55.949-07:002014-08-16T10:29:55.949-07:000.91 patch + your last multiio.rb
F:\isos clients\...0.91 patch + your last multiio.rb<br />F:\isos clients\dc\dctemp\trans>ruby -r debug undub.rb<br />DL is deprecated, please use Fiddle<br />Debug.rb<br />Emacs support available.<br /><br />C:/Ruby200-x64/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:57:<br />(rdb:1) b 33<br />Set breakpoint 1 at C:/Ruby200-x64/lib/ruby/2.0.0/rubygems/core_ext/kernel_requi<br />re.rb:33<br />(rdb:1) c<br />Let's undub Grandia II!<br />Converting tracks from raw to user mode...<br />Dumping files from original GDI...<br />Error: Cannot load an entry that isn't a directory.<br />F:/isos clients/dc/dctemp/trans/iso9660.rb:111:in `load'<br />F:/isos clients/dc/dctemp/trans/iso9660.rb:100:in `initialize'<br />F:/isos clients/dc/dctemp/trans/iso9660.rb:421:in `new'<br />F:/isos clients/dc/dctemp/trans/iso9660.rb:421:in `load'<br />F:/isos clients/dc/dctemp/trans/iso9660.rb:350:in `get'<br />F:/isos clients/dc/dctemp/trans/iso9660.rb:69:in `load'<br />F:/isos clients/dc/dctemp/trans/iso9660.rb:49:in `initialize'<br />undub.rb:33:in `new'<br />undub.rb:33:in `'<br />Press any key to continue . . .<br /><br />And then it goes back to the command prompt.Jouvenhttps://www.blogger.com/profile/18433121057407783449noreply@blogger.comtag:blogger.com,1999:blog-8915729172140938960.post-36138618759856869602014-08-16T09:00:46.846-07:002014-08-16T09:00:46.846-07:00I think I may have found the problem, though if I&...I think I may have found the problem, though if I'm right I still have no idea why it would have worked for me but not for you. Here is an updated multiio.rb:<br /><br />https://mega.co.nz/#!X9pCBCCK!3xbmG_rfuHPU-9vLh-6Q6yMdas8L1kZm15hx80KI4tA<br /><br />I ended up rewriting a ton of stuff because I wasn't entirely satisfied with my original code, so it may still have a few bugs, but I tested it and it did work (then again, so did the old one...). Try it out with the 0.91 patcher and see if you can get it to work. And if not, could you try opening a command prompt, running the following commands, and posting the output for me?:<br /><br />e:<br />cd E:\dctemp\t<br />(change the above two lines if you moved the patch files somewhere else)<br />ruby -r debug undub.rb<br />b 33<br />c<br />stream.streams<br />stream.length<br />stream.streams.each { | s | puts s.length }AnoHitohttps://www.blogger.com/profile/01370977773684710611noreply@blogger.comtag:blogger.com,1999:blog-8915729172140938960.post-34747611260059499602014-08-16T07:13:14.534-07:002014-08-16T07:13:14.534-07:00Okay, glad you finally got it to work. ;) I'm ...Okay, glad you finally got it to work. ;) I'm using Windows 7 x64 and Ruby 2.0.0-p481 as well, but after repeated testing I can't duplicate your error. The only way an error like that could even happen is if there was some problem opening the tracks from the GDI image, or if your GDI image had become corrupted somehow. What the script tries to do, is to open each track of the GDI image individually and then use a special class that allows you to treat the tracks as a single file. This is preferable to my old approach of copying the tracks into a new file, because it ends up being much faster and not using as much disk space. An error like this would only happen if the total length of the tracks was less than the position in the disc image where my script looks for the ISO header. So I would double check and make sure all the tracks in your GDI image are the correct size, and did not get truncated somehow. But it's still really weird that my old script would still work and the new one wouldn't...AnoHitohttps://www.blogger.com/profile/01370977773684710611noreply@blogger.comtag:blogger.com,1999:blog-8915729172140938960.post-19640448218512371312014-08-16T03:01:20.302-07:002014-08-16T03:01:20.302-07:00The new undub.rb:
https://mega.co.nz/#!n1AQyYxL!F7...The new undub.rb:<br />https://mega.co.nz/#!n1AQyYxL!F7NZEX3gpNF-l2yWWkP25mwspc949lAkfOh2Vfqi4ao<br />Still gives me the same error. My OS is windows 7 64 bit, the ruby version I installed is from http://www.rubyinstaller.org/ "RubyInstaller 2.0.0-p481"<br />I tried using the ruby scripts from the version 0.90 with everything else from the 0.91 and it works, the voices are on Japanese and the smoke trail shows.Jouvenhttps://www.blogger.com/profile/18433121057407783449noreply@blogger.comtag:blogger.com,1999:blog-8915729172140938960.post-84021397954853149562014-08-15T18:55:59.263-07:002014-08-15T18:55:59.263-07:00Well I tested my new patching script with the copy...Well I tested my new patching script with the copy of Grandia II you linked to, and it still worked perfectly on my end, so I'm not really sure what's wrong. I tried it with ruby 1,8, 1.9, and 2.0, and all the different versions worked correctly. For now, you can just copy the contents of the 0.91 undub folder over the contents of the 0.90 patch and use that since the old patching script seemed to work for you. That should bypass any issues created by the new patching script. But any information you could give my about your system's configuration (OS, Ruby version, ect.) might help me track the issue down. By the way, I have to delete your comment in order to remove the link to the Grandia II download. I had actually just meant for you to post the .gdi file somewhere...AnoHitohttps://www.blogger.com/profile/01370977773684710611noreply@blogger.comtag:blogger.com,1999:blog-8915729172140938960.post-91124545640070693472014-08-15T18:06:12.823-07:002014-08-15T18:06:12.823-07:00Whoops, uh, minor oversight. ;) Try this link inst...Whoops, uh, minor oversight. ;) Try this link instead: https://mega.co.nz/#!n1AQyYxL!F7NZEX3gpNF-l2yWWkP25mwspc949lAkfOh2Vfqi4aoAnoHitohttps://www.blogger.com/profile/01370977773684710611noreply@blogger.comtag:blogger.com,1999:blog-8915729172140938960.post-86438098002183583782014-08-15T17:58:05.414-07:002014-08-15T17:58:05.414-07:00This comment has been removed by a blog administrator.Jouvenhttps://www.blogger.com/profile/18433121057407783449noreply@blogger.comtag:blogger.com,1999:blog-8915729172140938960.post-42697397391550705372014-08-15T15:06:05.867-07:002014-08-15T15:06:05.867-07:00Does this work?:
https://mega.co.nz/#!T1J02bqZ!mC...Does this work?:<br /><br />https://mega.co.nz/#!T1J02bqZ!mC29Y2SrnLYOq8E3U6qbu5TnhOJwQ9OfOjoWYjhxok4<br /><br />And if not could you tell me what ruby version your are using, and upload a copy of your GDI file so I can test it?<br />AnoHitohttps://www.blogger.com/profile/01370977773684710611noreply@blogger.comtag:blogger.com,1999:blog-8915729172140938960.post-74508728789041268352014-08-15T14:33:02.389-07:002014-08-15T14:33:02.389-07:00Something isn't right with the new patch, the ...Something isn't right with the new patch, the ruby script fails:<br />Let's undub Grandia II!<br />Converting tracks from raw to user mode...<br />Dumping files from original GDI...<br />Error: undefined method `length' for nil:NilClass<br />E:/dctemp/t/multiio.rb:111:in `pos='<br />E:/dctemp/t/iso9660.rb:54:in `load'<br />E:/dctemp/t/iso9660.rb:49:in `initialize'<br />E:/dctemp/t/undub.rb:33:in `new'<br />E:/dctemp/t/undub.rb:33:in `'<br />Press any key to continue . . .Jouvenhttps://www.blogger.com/profile/18433121057407783449noreply@blogger.comtag:blogger.com,1999:blog-8915729172140938960.post-84252412389471775402014-08-15T07:47:06.326-07:002014-08-15T07:47:06.326-07:00Okay, I managed to fix the problem. To be honest, ...Okay, I managed to fix the problem. To be honest, Grandia II's game engine is still a mystery to me in many ways, so I ended up having to fix things through trial and error, but it does seem to work correctly now. Here is a link to an updated patch that you can try: https://mega.co.nz/#!2k5gXJKL!ikTCIxNKLbJMcO-Fu8D0EHbcjskUzrF08g3Af21Ejv0 In addition to the fix for the issue you reported, it also fixes a few minor errors in the script for the early part of the game, and includes a much better patching script. If you could try the new patch out and report any problems you find with it, it would really help me out. I'm bad at spotting small things like the smoke trail issue you pointed out.AnoHitohttps://www.blogger.com/profile/01370977773684710611noreply@blogger.comtag:blogger.com,1999:blog-8915729172140938960.post-39356831956542575922014-08-14T12:42:47.539-07:002014-08-14T12:42:47.539-07:00Not to worry, this is absolutely the right place t...Not to worry, this is absolutely the right place to contact me about this kind of thing. The opening scene of the game was one of the first things I undubbed, so it's not too surprising I might have messed something up there. I'll take a look at it later and see if I can figure out what happened. The existing patch is sort of beta quality, so if you find any other issues, please let me know about them.AnoHitohttps://www.blogger.com/profile/01370977773684710611noreply@blogger.comtag:blogger.com,1999:blog-8915729172140938960.post-32274246486255932162014-08-14T12:10:01.857-07:002014-08-14T12:10:01.857-07:00First thanks for your work on the undub of Grandia...First thanks for your work on the undub of Grandia 2 dreamcast version.<br />I know it might not be the best place for this... but since you don't have links to a mailing list, forum post, w/e... so here it goes:<br />I managed to run your undub version, and it changed the voices alright, but I didn't make it too far because I found an issue that bothered me, it removes the smoke trail that leave the lizard man while they run at the beginning of the game, for some time I though it was a problem on my end and I tried many stuff, until I tried running the same gdi image without the undub patch and the smoke trail showed up again. Tested with demul 0.58 and nulldc.Jouvenhttps://www.blogger.com/profile/18433121057407783449noreply@blogger.comtag:blogger.com,1999:blog-8915729172140938960.post-44376626728899153812014-07-04T08:24:11.660-07:002014-07-04T08:24:11.660-07:00Sorry to say, but I have not done any work on the ...Sorry to say, but I have not done any work on the undub since the preview release. I was planning on starting up again once I had it working on my shiny new GD-ROM emulator (http://gdemu.wordpress.com), but I ran into a small issue getting it to work on the unit. Deunan said he would try to fix the problem in the next firmware update, so once that is released and I have a change to confirm that everything I've done with the undub works correctly on real Dreamcast hardware, I am planning on resuming work and hopefully finishing things up in a relatively short period. Oh, and there is a donate button on the top right of the page in case your missed it. ;)AnoHitohttps://www.blogger.com/profile/01370977773684710611noreply@blogger.com