Page 1 of 1

Work on a .TIM with 2 set

Posted: November 6th, 2016, 9:02 am
by ~PSXLoVeR95~
Hi guys :-)!
I have .TIM extracted from Ace Combat 3 JAP ver, and have two sets. But i have a problem, how can i extracts both sets and insert it again?
Here's my example :
Image
Image

What i want to do is :
-Extracts all the set on .bmp (also in .png is good)
-Insert the edited images on the .TIM again.

I've tried with TIM2VIEW but it always replace the 1st set. It's a very important project for my translation, guys :)
So thank you in advance !
Have a nice day.

Re: Work on a .TIM with 2 set

Posted: November 8th, 2016, 1:28 pm
by Greg
What version of TIM2VIEW do you use?

Re: Work on a .TIM with 2 set

Posted: November 9th, 2016, 8:59 am
by ~PSXLoVeR95~
Hi Greg, thank you for the answer :).
I'm actually using Tim2View r89. It's possibile to replace a BMP as a set of a .TIM?
For example :
I've the extracted the 1st set on BMP, after editing, i want to replace that set with mine.

Re: Work on a .TIM with 2 set

Posted: November 9th, 2016, 2:23 pm
by Greg
You need to convert BMP to TIM first. You can use TIMUTIL.EXE or LameGuy64's "img2tim - Image to TIM conversion tool" to do the conversion.

Re: Work on a .TIM with 2 set

Posted: November 9th, 2016, 10:06 pm
by ~PSXLoVeR95~
Hi again Greg.
img2tim is pretty damn handy, awesome tool :).
Now the problem is to join the the two .TIM and i think we done ^^!

Re: Work on a .TIM with 2 set

Posted: November 9th, 2016, 11:50 pm
by LameGuy64
I have not seen a TIM file containing multiple TIM files before. In fact, the official documentation of the TIM file format shows no support for more than 1 texture entry.

I think they just appended 1 TIM file on top of another which you can try by performing copy /b tim1.tim+tim2.tim output.tim. If that doesn't work, send me the original TIM file for me to analyze.

Re: Work on a .TIM with 2 set

Posted: November 10th, 2016, 1:43 am
by ~PSXLoVeR95~
Hi LameGuy64!
Thank you so much for this program, it's very easy to use. I've try to join the two .TIM with your syntax but nothing is happened. It says always "Error file not found".
Probably is my fault but i'm not sure. So, okay, i send you the original files (not touched - extracted on the game) and splitted files.
PM sended, and, thank you again for the help!

Re: Work on a .TIM with 2 set

Posted: November 10th, 2016, 5:36 pm
by Greg
@ ~PSXLoVeR95~
your file contain 1 image but 2 CLUT. the font use only 4 colors, when the palette is swap the image change.

Re: Work on a .TIM with 2 set

Posted: November 10th, 2016, 10:19 pm
by ~PSXLoVeR95~
Hi Greg :)
Yes,i know and i really don't know how to insert my work on it. There is a procedure to edit these type of .TIM ?
Thanks :)

Re: Work on a .TIM with 2 set

Posted: November 11th, 2016, 2:00 pm
by LameGuy64
The TIM file you've sent appears to be just a regular TIM file but with 2 16-color CLUTs (or palettes) instead of 1. The easiest way to add a second CLUT is through the sprite editing tool included with the Graphic Artist Tools CD used by PlayStation developers but we don't have a CD image of it yet.

I could write a tool for managing CLUTs but I'm very busy with school stuff at the moment.

Re: Work on a .TIM with 2 set

Posted: November 12th, 2016, 4:56 am
by ~PSXLoVeR95~
Hi Lameguy , don't worry, do it with calm if you want.
Really an enormous THANK YOU for your help. I appreciated that :)...
If I find a solution, I write on the topic!
Have a nice day, guys :D!

Re: Work on a .TIM with 2 set

Posted: November 13th, 2016, 6:29 pm
by Greg
@ ~PSXLoVeR95~

I made a app that do the work. MergeTim.exe

Usage: MergeTim Tim1 Tim2 <number of color> <output Tim>
Tim1 - Tim file 1
Tim2 - Tim file 2
<number of color> - Total color, min 2 max 16
<output Tim> - ouput filename for merged Tim

Tim1 and Tim2 must have the same resolution, and same palette. Total color is mandatory, it's the number of color actually use by the tim file you want to merge.

Good luck.

Re: Work on a .TIM with 2 set

Posted: November 14th, 2016, 1:36 pm
by ~PSXLoVeR95~
Wow Greg, thanks a lot for the program :)!!!
It works but i've two important problem :
1) I create the double-clut tim with your sample (precisly with the files set1.tim and set2.tim). After this procedure, i've checked with Tim2view and the resolution of the VRAM (X/Y) are 0x0 for both side.
Image

2) I can't create the .TIM with your exactly palette combination.
Image

Image

My procedures to split a double-CLUT .TIM are this :
- Open a double-CLUT .TIM with timviewer.exe and save the single set on .bmp
- Edit the single .bmp with a program called AC3_Text_Editor (created by dashman)
https://raw.githubusercontent.com/Dashm ... shadow.jar
- After i've created the edited bmp, i used the img2tim of lameguy to create two single .TIM and join with your mergetim.
Hope is a good procedure. Thanks again guys for your support! :)

Re: Work on a .TIM with 2 set

Posted: November 14th, 2016, 5:17 pm
by Greg
I found what happened, the bmp files from AC3_Text_Editor when use gray as text color, generate a picture that use 4 colors, but start from entry palette #1 instead of entry palette 0. to fix that you have to move all the palette 1 step to left with a paint program.

here 2 bmp files with correct palette.

Re: Work on a .TIM with 2 set

Posted: November 15th, 2016, 4:14 am
by ~PSXLoVeR95~
.....IT WORKS!!!
PSOGL2_007.jpg
PSOGL2_008.jpg
Greg....you save my translation project. It's awesome :D!

Re: Work on a .TIM with 2 set

Posted: November 15th, 2016, 9:20 am
by Greg
:D You are welcome.

Change log for MergeTim.exe

ver. 0.01
- VRAM (X/Y) info from file 1 are use in merged file.
- Show info from file 1.

ver. 0.00
- First release.

Re: Work on a .TIM with 2 set

Posted: November 15th, 2016, 8:26 pm
by ~PSXLoVeR95~
Now is PERFECT!!!
It creates perfectly the .TIM with the original resolution.
You're awesome, man. I can't thank you enough, seriously!