Author Topic: Help with thanm.exe  (Read 3375 times)

Torashama

Help with thanm.exe
« on: August 20, 2012, 07:12:20 AM »
someone could help me, what happens is that in thanm.exe, when I want to replace an image in the file. anm this says:
Code: [Select]
C:\Users\Tora\Desktop\Touhou\C\datpacker-5> r thanm stg2enm.anm backup/stg2enm.png
  stg2enm.png
thanm: stg2enm.anm: backup/stg2enm.png not found in archive
but the file is there
what could be?  :ohdear: :ohdear: :ohdear: :( :(

oh, I use the model here:

Code: [Select]
- Alter the. Bat so that it is as follows
thanm x (anm file)
eg thanm x stg6enm.anm
-------------------------------------------------- -----------------
Replace images in the. Anm

-alter the .bat so that it is as follows
thanm r (eg.anm) (folder) / (image.png) (image.png)
example stg6enm.png thanm stgenm/stg6enm.png r stg6enm
and voila, you altered an image of the game :D

but it does not work with me  :ohdear: :(

[off topic] Oh my! I'm a Neophyte?!! :ohdear: [/off topic]
« Last Edit: August 20, 2012, 07:14:31 AM by Torashama »

EthanSilver

  • Lunatic Programmer
  • Got squid, will travel.
    • Ethan Silver's Junkpile - Hacks and translation patches
Re: Help with thanm.exe
« Reply #1 on: August 20, 2012, 07:58:22 AM »
You're telling it to replace "backup/stg2enm.png" contained in "stg2end.anm" with the file "stg2enm.png". The error message is telling you that this file was not found in the archive, not on your disk. Are you sure you haven't reversed the two files? Try this...

thanm r stg2enm stg2enm.png backup/stg2enm.png

Code: [Select]
Usage: thanm COMMAND
COMMAND can be:
...
  r[OPTION...] ARCHIVE NAME FILE  replace entry in archive
...
OPTION can be:
  f  ignore errors when possible


Latest works
The Strongest

Torashama

Re: Help with thanm.exe
« Reply #2 on: August 20, 2012, 04:07:45 PM »
You're telling it to replace "backup/stg2enm.png" contained in "stg2end.anm" with the file "stg2enm.png". The error message is telling you that this file was not found in the archive, not on your disk. Are you sure you haven't reversed the two files? Try this...

thanm r stg2enm stg2enm.png backup/stg2enm.png

Code: [Select]
Usage: thanm COMMAND
COMMAND can be:
...
  r[OPTION...] ARCHIVE NAME FILE  replace entry in archive
...
OPTION can be:
  f  ignore errors when possible

I tried that and still says the same thing:

Code: [Select]
thanm: stg2enm.anm: stg2enm.png not found in archive
I think it's because the file "stg2enm.png" is there, but isn't that name in "stg2enm.anm" but I'm not sure, just in case this helps:
These are the PCB files (th07.dat)
I extracted the files with Brightmoon
I created the .png images of the .anm with anm2png
I modify the images of Chen (stg2enm.png) with photoshop
Also let me know if the .png can be converted into .anm with datpacker

Drake

  • *
Re: Help with thanm.exe
« Reply #3 on: August 20, 2012, 09:41:19 PM »
You can't replace a file in an archive when the file in the archive doesn't exist. If you extract stg2enm.anm and no backup folder comes out, then you aren't going to be able to replace things in that nonexistent backup folder. Skipping past the need to compile a new archive, why would you even want to "replace" images in a new "backup" folder if they aren't going to be used in the game?

A Colorful Calculating Creative and Cuddly Crafty Callipygous Clever Commander
- original art by Aiけん | ウサホリ -

Torashama

Re: Help with thanm.exe
« Reply #4 on: August 21, 2012, 02:09:38 AM »
You can't replace a file in an archive when the file in the archive doesn't exist. If you extract stg2enm.anm and no backup folder comes out, then you aren't going to be able to replace things in that nonexistent backup folder. Skipping past the need to compile a new archive, why would you even want to "replace" images in a new "backup" folder if they aren't going to be used in the game?

oh thanks, then what I have to do is: extract the file that I want (stg2enm.anm), then turn it into stg2enm.png, I edit it, then I go back to extract the stg2enm.anm from the unmodified th07.dat and replace it, right?

when I try to create a new stg2enm.anm I get this error:

Code: [Select]
Problem signature:
   Problem Event Name: APPCRASH
   Application Name: thanm.exe
   Application Version: 0.0.0.0
   Timestamp implementation: 4e4683a1
   Fault Module Name: thanm.exe
   Fault Module Version: 0.0.0.0
   Timestamp Fault Module: 4e4683a1
   Exception code: C0000005
   Exception Offset: 00002543
   OS Version: 6.1.7601.2.1.0.256.48
   Locale ID: 2058
   Additional Information 1: 988C
   Additional Information 2: 988ccf55ea012c2ae146ab508887e609
   Additional Information 3: 9ff1
   Additional Information 4: 9ff1c7c248e1dff9eed22f609ab1f41f

Read our privacy statement online:
   http://go.microsoft.com/fwlink/?linkid=104288&clcid=0x0c0a

If the online privacy statement is not available, please read our privacy statement offline:
   C:\ Windows\system32\ en-US\ erofflps.txt
« Last Edit: August 21, 2012, 02:29:38 AM by Torashama »