Talk:ARCTool
Put any bug reports or feature requests for ARCTool here.
Windows
I tested this on windows and its works normally(I will test shortly on linux). I also created a compiled version for windows, without needing python to be installed. I will try to contact you through IRC(sakisds, always on freenode) for this.-- Sakisds —Preceding undated comment added 13:37, 5 January 2010 (UTC).
NameError: global name 'f' is not defined
Hi, so I'm having a bit of trouble using this tool on Windows 10 with Python 2.6 or 2.7. When I run it with the -l argument it lists the contents of the archive fine, but when I actually try to extract it throws an error. The Only Zac (talk) 18:12, 18 June 2016 (CEST)
F:\Zac\ARCTool 0.3b>python ARCTool.py photo.arc -l U8 archive arc/ anim/ photo_win_00_cmnBtnA_in.brlan - 356 bytes photo_win_00_cmnBtnA_out.brlan - 356 bytes photo_win_00_cmnBtnA_psh.brlan - 168 bytes photo_win_00_NoPhoto.brlan - 832 bytes photo_win_00_scrlIcon_00.brlan - 196 bytes blyt/ photo_win_00.brlyt - 6068 bytes timg/ beta_8x8.tpl - 96 bytes btn_A_00.tpl - 5216 bytes photoTex_00.tpl - 583744 bytes scrolPhoto_Icn_00.tpl - 2112 bytes winFrmL_01.tpl - 131136 bytes
F:\Zac\ARCTool 0.3b>python ARCTool.py photo.arc U8 archive Processing node arc Processing node anim Dumping file node photo_win_00_cmnBtnA_in.brlan 0% Traceback (most recent call last): File "ARCTool.py", line 397, in <module> main() File "ARCTool.py", line 390, in main unu8(f, of) File "ARCTool.py", line 320, in unu8 dest.write(f.read(size)) NameError: global name 'f' is not defined
I found a fix for the "NameError: global name 'f' is not defined " error
The error you most likely got:
Traceback (most recent call last): File "ARCTool.py", line 397, in <module> main() File "ARCTool.py", line 390, in main unu8(f, of) File "ARCTool.py", line 320, in unu8 dest.write(f.read(size)) NameError: global name 'f' is not defined
How you fix this is on line 320, which says "dest.write(f.read(size))", all you need to do is change it to "dest.write(i.read(size))" I guess the dev just made a typo when writing the function.
-whamer100