/-/S'pht-Translator-Active/-/


No Go - STDIN problems? (was: Empty Output)
Posted By: AntarcticoDate: 9/3/13 10:53 a.m.

In Response To: Re: Empty Output (was: Hopper's rsrc2mml.pl Utilit (Hopper)

: : my Perl Windows install does NOT contain "Macbinary.pm"

: That file is in the classic-mac-utils directory on GitHub. (You do not want a
: different one: the others out there have bugs that will fail to unpack
: some Marathon files.) The script expects to find it in the same directory
: as the script itself; if you download the whole folder from GitHub, you
: should be fine. Of course, you should also be getting an error message
: from Perl if that's the problem.

I got your the version of Macbinary.pm from your classic-mac-utils directory and dropped it into my lib folder along with macbin2rsrc.pl and macbin2data.pl (in my case the path worked out to "J:\Apps\Dwimperl\perl\lib"). The results were not useful, again 0 byte output files. To test to see if the scripts were running at all, I inserted "print "Hello World.\n";" lines in to the two .pl files and then my output file was not 0 bytes but contained "hello world". As a further test, I removed my test line from the .pl files and it to Macbinary.pm, again my output file now contained "hello world". What I concluded from this is that perl found all three files and ran them, even if not in a useful way.

So, I gave up on the MacBinary conversion scripts and found a very functional Windows command line .exe, Mac Binary Converter that would do the conversion and splitting of the resource and data forks. Having done that, and now having converted and split data and resource files, when trying to run rsrc2mml.pl I get this error:

Use of uninitialized value $rsize in addition <+> at J:\Apps\Dwimperl\perl\lib\rsrc2mml.pl line 278

Line 278 is:

$BLOBoff += $rsize

My feeling is there is a problem with STDIN reading the source file and $rsize is not being filled (initialized) with any value. Line 277 being:

my $rsize = read STDIN, $chunk, $size;

Which is where, I assume, the variable $rsize is supposed to be filled with the raw data from the source file.

Any thoughts as to what is going awry? :)

[ Post a Reply | Message Index | Read Prev Msg | Read Next Msg ]
Pre-2004 Posts

Replies:

Hopper's rsrc2mml.pl UtilityAntarctico 8/30/13 5:05 p.m.
     Re: Hopper's rsrc2mml.pl UtilityHopper 8/31/13 6:07 a.m.
           Re: Hopper's rsrc2mml.pl UtilityAntarctico 8/31/13 10:10 a.m.
                 Empty Output (was: Hopper's rsrc2mml.pl Utility)Antarctico 8/31/13 11:21 a.m.
                       Re: Empty Output (was: Hopper's rsrc2mml.pl UtilitHopper 8/31/13 12:11 p.m.
                             Re: Empty Output (was: Hopper's rsrc2mml.pl UtilitAntarctico 8/31/13 1:03 p.m.
                                   Re: Empty Output (was: Hopper's rsrc2mml.pl UtilitHopper 9/1/13 5:55 a.m.
                                         No Go - STDIN problems? (was: Empty Output)Antarctico 9/3/13 10:53 a.m.
                 Re: Hopper's rsrc2mml.pl UtilityHopper 8/31/13 11:27 a.m.
                       Re: Hopper's rsrc2mml.pl UtilityAntarctico 8/31/13 12:00 p.m.
     Re: Hopper's rsrc2mml.pl UtilityForrest of B.org 9/3/13 11:25 p.m.
           Re: Hopper's rsrc2mml.pl UtilityAntarctico 9/4/13 4:28 p.m.
           Re: Hopper's rsrc2mml.pl Utilitytreellama 9/5/13 3:36 a.m.

[ Post a Reply | Message Index | Read Prev Msg | Read Next Msg ]
Pre-2004 Posts

 

 

Your Name:
Your E-Mail Address:
Subject:
Message:

If you'd like to include a link to another page with your message,
please provide both the URL address and the title of the page:

Optional Link URL:
Optional Link Title:

If necessary, enter your password below:

Password:

 

 

Problems? Suggestions? Comments? Email maintainer@bungie.org

Marathon's Story Forum is maintained with WebBBS 5.12.