Author Topic: How do you do retextures?  (Read 16756 times)

Halca

  • Kawaii Bastard
How do you do retextures?
« on: June 24, 2009, 11:48:45 PM »
It looks like something fun to do but I have no idea how to do it at all...  Help?

Re: How do you do retextures?
« Reply #1 on: June 25, 2009, 05:30:37 AM »
You need programs to edit the files of the touhou games (Images and Sounds).
And no... i don?t know where to get them...

Emarrel

  • Something of pokeballs
Re: How do you do retextures?
« Reply #2 on: June 25, 2009, 10:11:29 PM »
Which games to you intend on retexturing? Each game has a slightly different method, and going through them all could be rather lengthy.

As Daniel said, you're going to need some bitmap editing software. Transparency is a must for anything post-EoSD.

I personally use Photoshop. How you acquire it is up to you; if you know what I mean. Or you could use Gimp, but I have no idea how well it racks up against Photoshop.

Sound editing software isn't a big deal. I'd suggest Audacity if you intend to edit sound though - it's free and fairly easy to use.

Once I know which game you intend to edit, I can force feed you a tonne of information.

Halca

  • Kawaii Bastard
Re: How do you do retextures?
« Reply #3 on: June 25, 2009, 10:28:49 PM »
Which games to you intend on retexturing? Each game has a slightly different method, and going through them all could be rather lengthy.

As Daniel said, you're going to need some bitmap editing software. Transparency is a must for anything post-EoSD.

I personally use Photoshop. How you acquire it is up to you; if you know what I mean. Or you could use Gimp, but I have no idea how well it racks up against Photoshop.

Sound editing software isn't a big deal. I'd suggest Audacity if you intend to edit sound though - it's free and fairly easy to use.

Once I know which game you intend to edit, I can force feed you a tonne of information.

YAY FORCE FEEDING!!!

Anyway, the game I want to edit is Subterranean Animism.  I have all the programs mentioned above and a little bit extra.  I just want to know how to get this project going and keep it going.

Emarrel

  • Something of pokeballs
Re: How do you do retextures?
« Reply #4 on: June 26, 2009, 03:05:45 AM »
Right. I assume you've already downloaded the tools for MoF and SA? If not, you can find them here: http://www.mediafire.com/download.php?fml2midyynl (courtesy of Drake).

Right, a lot of this is done through the command prompt. I haven't done anything for a while though, so forgive me if I miss any details.

Change command prompt's directory by typing:

Code: [Select]
cd {DIRECTORY}This will make things easier.

You can copy and paste into command prompt by right clicking. This'll save loads of time.

So, we want to extract the contents of the .DAT archives:
Code: [Select]
thamlt.bat {FILENAME}.dat
This will extract its contents into the same directory. The only files that'll be of interest will be the .anm files and maybe the .wav files. It's pretty easy to judge which files contain what by looking at the file names.

Now to extract the .anm files.

Code: [Select]
anm2png2.bat {FILENAME}.anm
This'll extract the files into a folder in the same directory.

Edit the images as you see fit. We'll now have to repack the files using thinspng.bat

Copy the edited images over to the th-anm2png-inspng folder. Make sure to copy over the unedited files too.

Code: [Select]
thinspng.bat FILENAME.png FILENAME2.anm
You only have to input the names of the edited .png files.

You'll now have your new .anm file. Now to repack the .dat. Remember the contents of the .dat files we got in the first step? Copy it all into the datpacker folder. Then copy over your new files, overwriting the original. You'll notice replacing the sound files is as easy as just overwriting straight away.

In the command prompt:
Code: [Select]
datpacker-O2 th11.dat ascii.anm bullet.anm enemy.anm front.anm pl00.anm pl01.anm sig.anm st01logo.anm stage01.anm stgenm01.anm stage01.std stage01.ecl st01_00a.msg st01_00b.msg st01_00c.msg st01_01a.msg st01_01b.msg st01_01c.msg st02logo.anm stage02.anm stgenm02.anm stage02.std stage02.ecl st02_00a.msg st02_00b.msg st02_00c.msg st02_01a.msg st02_01b.msg st02_01c.msg st03logo.anm stage03.anm stgenm03.anm stage03.std stage03.ecl st03_00a.msg st03_00b.msg st03_00c.msg st03_01a.msg st03_01b.msg st03_01c.msg st04logo.anm stage04.anm stgenm04.anm stage04.std stage04.ecl stage4c00a.ecl stage4c00b.ecl stage4c00c.ecl stage4c01a.ecl stage4c01b.ecl stage4c01c.ecl st04_00a.msg st04_00b.msg st04_00c.msg st04_01a.msg st04_01b.msg st04_01c.msg st05logo.anm stage05.anm stgenm05.anm stage05.std stage05.ecl stage05mboss.ecl stage05boss.ecl st05_00a.msg st05_00b.msg st05_00c.msg st05_01a.msg st05_01b.msg st05_01c.msg st06logo.anm stage06.anm stgenm06.anm stage06.std stage06.ecl stage06mboss.ecl stage06boss.ecl st06_00a.msg st06_00b.msg st06_00c.msg st06_01a.msg st06_01b.msg st06_01c.msg st07logo.anm stage07.anm stgenm07.anm stage07.std stage07.ecl stage07mboss.ecl stage07boss.ecl st07_00a.msg st07_00b.msg st07_00c.msg st07_01a.msg st07_01b.msg st07_01c.msg text.anm title.anm title_v.anm default.ecl musiccmt.txt pl00a.sht pl00b.sht pl00c.sht pl01a.sht pl01b.sht pl01c.sht e00.msg e00.anm e01.msg e01.anm e02.msg e02.anm e03.msg e03.anm e04.msg e04.anm e05.msg e05.anm e06.msg e06.anm e07.msg e07.anm e08.msg e08.anm e09.msg e09.anm e10.msg e10.anm e11.msg e11.anm staff.msg staff.anm se_plst00.wav se_enep00.wav se_pldead00.wav se_power0.wav se_power1.wav se_tan00.wav se_tan01.wav se_tan02.wav se_ok00.wav se_cancel00.wav se_select00.wav se_gun00.wav se_cat00.wav se_lazer00.wav se_lazer01.wav se_enep01.wav se_damage00.wav se_item00.wav se_kira00.wav se_kira01.wav se_kira02.wav se_timeout.wav se_graze.wav se_powerup.wav se_pause.wav se_cardget.wav se_option.wav se_damage01.wav se_timeout2.wav se_invalid.wav se_slash.wav se_ch00.wav se_ch01.wav se_hint00.wav se_extend.wav se_bonus2.wav se_water.wav se_warpl.wav se_warpr.wav se_nep00.wav se_msl.wav se_bonus.wav se_cat01.wav se_enep02.wav se_alert.wav demo0.rpy demo1.rpy demo2.rpy demo3.rpy thbgm.fmt th11_0100a.ver
Yes, that's every single file in the game being declared. (Also, thanks to Drake for giving me the list).

Now. You should have your new .DAT - assuming you did everything right. The final .dat should come out as at least 66mb, but this depends on your edits. It's bigger than the original because the datpacker doesn't compress the contents back to their original size.

Also, as a bonus here's MoF's file list:

Code: [Select]
datpacker-O2 th10.dat ascii.anm bullet.anm capture.anm enemy.anm front.anm nowloading.anm pl00.anm pl01.anm sig.anm st01logo.anm stage01.anm stgenm01.anm stage01.std stage01.ecl st01_00.msg st01_01.msg st02logo.anm stage02.anm stgenm02.anm stage02.std stage02.ecl st02_00.msg st02_01.msg st03logo.anm stage03.anm stgenm03.anm stage03.std stage03.ecl st03_00.msg st03_01.msg st04logo.anm stage04.anm stgenm04.anm stage04.std stage04.ecl st04_00.msg st04_01.msg st05logo.anm stage05.anm stgenm05.anm stage05.std stage05.ecl st05_00.msg st05_01.msg st06logo.anm stage06.anm stgenm06.anm stage06.std stage06.ecl st06_00.msg st06_01.msg st07logo.anm stage07.anm stgenm07.anm stage07.std stage07.ecl st07_00.msg st07_01.msg text.anm title.anm title_v.anm default.ecl musiccmt.txt pl00a.sht pl00b.sht pl00c.sht pl01a.sht pl01b.sht pl01c.sht e00.msg e00.anm e01.msg e01.anm e02.msg e02.anm e03.msg e03.anm e04.msg e04.anm e05.msg e05.anm e06.msg e06.anm e07.msg e07.anm e08.msg e08.anm e09.msg e09.anm e10.msg e10.anm e11.msg e11.anm staff.msg staff.anm se_bonus3.wav se_cancel00.wav se_cardget.wav se_cat00.wav se_ch00.wav se_ch01.wav se_damage00.wav se_damage01.wav se_enep00.wav se_enep01.wav se_extend.wav se_graze.wav se_gun00.wav se_hint00.wav se_invalid.wav se_item00.wav se_kira00.wav se_kira01.wav se_kira02.wav se_lazer00.wav se_lazer01.wav se_ok00.wav se_option.wav se_pause.wav se_pldead00.wav se_plst00.wav se_power0.wav se_power1.wav se_powerup.wav se_select00.wav se_slash.wav se_tan00.wav se_tan01.wav se_tan02.wav se_timeout.wav se_timeout2.wav se_water.wav demo0.rpy demo1.rpy demo2.rpy demo3.rpy thbgm.fmt title.anm title_v.anm staff.anm text.anm default.ecl th10_0100a.ver
Feel free to ask if you have any problems.
« Last Edit: June 26, 2009, 03:13:09 AM by Emarrel »

Halca

  • Kawaii Bastard
Re: How do you do retextures?
« Reply #5 on: June 26, 2009, 02:13:41 PM »
I can't even do the first part D:
It keeps saying I have the wrong label or syntax...
I type this:

Code: [Select]
cd {D:GamesSubterranean Animism}

Emarrel

  • Something of pokeballs
Re: How do you do retextures?
« Reply #6 on: June 26, 2009, 04:14:53 PM »
I can't even do the first part D:
It keeps saying I have the wrong label or syntax...
I type this:

Code: [Select]
cd {D:\Games\Subterranean Animism}

Derp. Remove the braces in every instance I've mentioned them. They were just there to show a place holder.

So, like this:
Code: [Select]
cd D:\Games\Subterranean Animism

Halca

  • Kawaii Bastard
Re: How do you do retextures?
« Reply #7 on: June 26, 2009, 04:33:15 PM »
It says it doesn't recognize thamlt.bat, should I put the tool sin my program files?

Drake

  • *
Re: How do you do retextures?
« Reply #8 on: June 26, 2009, 05:47:11 PM »
asdf

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

Emarrel

  • Something of pokeballs
Re: How do you do retextures?
« Reply #9 on: June 26, 2009, 11:08:12 PM »
I assume the directory structure to the tools is something like:

Code: [Select]
D:\Games\Subterranean Animism\Tools-MoF-SA
Thamlt.bat probably isn't working because you're inputting something like this:

Code: [Select]
D:\Games\Subterranean Animism\Tools-MoF-SA>thamlt.bat th11.dat
Instead of:

Code: [Select]
D:\Games\Subterranean Animism\Tools-MoF-SA\th-amlt>thamlt.bat th11.dat
If it still doesn't work, give us a screenshot of your command prompt after the error comes up.

Halca

  • Kawaii Bastard
Re: How do you do retextures?
« Reply #10 on: June 27, 2009, 12:16:52 AM »
It's still being weird, but I have a question. 
Can't someone just unpack it and then put the files up so anyone can edit it then pack it themselves?  If this has already been done, where can I find these files?

Emarrel

  • Something of pokeballs
Re: How do you do retextures?
« Reply #11 on: June 27, 2009, 12:32:56 AM »
The exact error is:
Code: [Select]
'thamlt.bat' is not a recognized as an internal or external command,
operable program or batch file.
Right?

If it doesn't recognize thamlt.bat then it can't find it, which is why I think it's a current directory issue. If you can give me a screenshot of the command prompt after it throws up the error, then it'll be easier to pinpoint the problem.

Drake has already uploaded the images in his thread, but then there's still the issue of actually repacking everything. By the sound of things, you'll still end up with the same error.


Halca

  • Kawaii Bastard
Re: How do you do retextures?
« Reply #12 on: June 27, 2009, 12:43:48 AM »
The exact error is:
Code: [Select]
'thamlt.bat' is not a recognized as an internal or external command,
operable program or batch file.
Right?

If it doesn't recognize thamlt.bat then it can't find it, which is why I think it's a current directory issue. If you can give me a screenshot of the command prompt after it throws up the error, then it'll be easier to pinpoint the problem.

Drake has already uploaded the images in his thread, but then there's still the issue of actually repacking everything. By the sound of things, you'll still end up with the same error.

Ok, well I'll get to editing all those thingies first then I'll figure out those issues.