Jump to content

Home

[Diary] Attempting to Mod the VOICE.LAB File


SkyEye
 Share

Recommended Posts

After some hours trying to convert the .wv files i decided to create this topic.

 

The game caches the audio used in game in a folder called "cache"

All the files in cache are wave, which are playable.

 

The files in VOICE.LAB which can be opened using SCUMM program, are in .wv format, aka wavepack.

These files are smaller and cant be converted even with the 2003 wvunpack.

 

All the files in voice.lab starts with INDYWV tag. Which must be a clue to something.

 

wvunpack AGD6201

WVUNPACK  Hybrid Lossless Wavefile Decompressor  Win32 Version 3.97  2-18-03
Copyright (coffee) 1998 - 2003 Conifer Software.  All Rights Reserved.

AGD6201.WV is not a valid WavPack file!

 

 

Still researching.But getting hopeless

 

http://forum.xentax.com/viewtopic.php?f=17&t=8271

 

 

Theres also an old topic here where zanzibar says they didnt do anything complicated with the audio files.

 

 

2 ideas :

a) I will try to look for anything related to wavepack on WMAIN process with cheat engine.

b) look for "Indiana Jones and his Desktop Adventures" wv topics

Link to comment
Share on other sites

B = Fail.

 

So i got the java source code of wavepack decoder.

So what im going to do is to try to somehow figure... wtf is going on.

 

 

The wave files begins with the tag RIFF...

 

AGD6201

RIFF¤œ  WAVEfmt      "V  D¬    data€œ                                                                                                                                                                                                                                                                                                                                                                                                                                                           > 7   < < < '  .  , % öÿ< R   -  âÿõÿÖÿÆÿÕÿëÿ  çÿ üÿüÿüÿ	 òÿ¿ÿØÿØÿ»ÿÍÿìÿìÿìÿûÿâÿÍÿæÿïÿ
 ÌÿÜÿÿÿÍÿÍÿÜÿÆÿÆÿØÿÎÿÎÿ  ÿÿÿÿÄÿÄÿÄÿÔÿ»ÿ»ÿ•ÿ´ÿëÿýÿ/ /  ûÿ  ÿÿ èÿ  îÿÿÿÿÿíÿþÿ þÿ& 3   $ $  3 

 ôÿôÿþÿôÿßÿøÿ   ) ; a B 6 @ 6 6 / / ) < < ) > O 6 )  ‘ÿéþeþ³ý+ýÓü$ýmþŒÿ) ~ i„ƒƒƒÄ‹ýªOOO333Þ óÿóÿ¥ÿÐþ‚þ~ý)ý)ýãüöûöû€û¾úûû£ú£úUûUûÐûýÎýþ ÿ" ¿ ¿ ¿ 5ËËËCÔyäEyÊõÎI ¤ðZù¡q(°gï k  ´ÿ"ÿpþèý%ýºü€üüÕûÕû®û®ûÏûíû?ü…ü²üýýýwýðýþSþ*þÿ2ÿ•ÿ D ˜ å Sw˜€€\}Kù³˜€€mN3$É † , œÿ!ÿ°þJþîý²ýÿýYþÊýÊýþìý(þ(þFþ…þ¾þÔþÿ!ÿpÿòÿ D h  r ¡Ì N”þ üüzz儸ˆ"á›0ö q œ K K $ Ðÿ ÿÄÿ”ÿ²þ0þüÿÖþdþVÿšý"ÿ"ÿ"ÿüý¡ÿ+ °þóÿuÿçÿN N †ÿÔÿ© ' ' ’ ’ ^ 1» » Ä ¦ªÿªÿÐ +ÿ+ÿ+ÿ+ÿ  ÈÿÈÿ £ÿÝÿ…ÿ˜þíþoÿkþkþVÿ«ÿ«ÿ«ÿ Æ Æ Œ Œ Œ a ˆ ˆ ˆ j ¼ ;Ø q $ òÿòÿ 1 lÿÿoÿ=ÿÿÿYÿYÿYÿÿÃþÃþ‘þ¬þƒþÕþ'ÿ	ÿ[ÿ¡ÿ¡ÿÊÿ‡ÿoÿoÿ‚ÿ¡ÿ‘ÿõÿY àÿVü=únømùÇûûHýâüˆÿM¿îDDDÝÝÝÝ¡Ò	Š
2g	ï  ...............

 

AGD6201

INDYWV"V        86      €œ                                                                                                                   pg >Ÿ ©*)ÿÿg <‚œ‘"´˜‚Ïÿ¿(²H‚ËAYÿüÁ=¨) ‰ÿÄ€Œ6Š¢
.0²5Æ“‹mÀ´Y7 a¹‰‰@Ä=¯ ÿùþéͺ'þmRp8Bˆ¬ØŒ€œ	Éىج¨P7ý1T 0p1$2!!«ð?ªšÊ̫ݽ©¹‰2`Q#QD#5c‰Ë™‰ªšðœßÿœ»»£N’3'ÿpaÄp!¶Š‚¡›p©:Ê	³ÿùŸþ²§ÿü¹?ýš0‹QѱJ‰j‚§/ÿªƒÐ 0˜ÿé-„‚@˜		C°ß qº‚ÿl¤ÿð«ŠT”8,˜—ÿõ]ÿÅoú=Òi$U$<‚ Dpæ|«ÓÒ£næÏ’pC@Q¿ÛÒ)œ@˜€E8>*ÌíOU]dÄŒnä‚@)‘˜ š*I*îÕÜÌeÝeVæ
A[D?øYª`Þ@\ÕGÿÅtÀNI¿ùÜÀ« ‚)U‹€§ÔŒEuÌYpˆeɵI?þ@T"MÄàËVBTH7ÈÿéüRð?×! *²ŠHcFõ¡Ñ µM¯£‚ƒŒ*˜3S(¡ÿ}T‹*!ƒSðEüð
*1*‹šÉ¸'þšD!
‘A˜¢gØ
Ûˆ‰˜À	ÛTX›“ÿù#8,Ë1`ë§ c Κ$0ºª,ÕQ‹µƒp [Ü€!»ÌX`ëÈ•P Y¬Ú·þ£RaZä  BëÈ"(!AÜÿÛÚ5bG3:Ê*2Ø2‰B«¢-*%À-\07Íj4¤1M,ôHÇ”oЀ ‰n2êE—ûP9É;£p4!ßY˜ÚÐR·”Kà9Gþ±ÿÒc62T¨
C"â¥%3*†C*
%Â<ôï€YŒ)JÚ
?¹p!;H(d€Ì! .....

 

Just the start part of each file, opened with notepad++

Link to comment
Share on other sites

I found this :

http://forums.residualvm.org/viewtopic.php?t=257

 

.3do files (3D Objects) These are the 3D meshes for each object and character in the game.

.mat files (Materials) These are the actual textures, devoid of any colour palette information.

.cmp files (Colour Maps) These are matched with the .mat files to create a texture with the right colours.

.cos files (Costumes) These are plain text files that contain information on (among other things) which which .cmps are used by different .3do files.

 

I also founded this...

 

http://www.lucasforums.com/showthread.php?t=169307

Link to comment
Share on other sites

I tried to wavpack a different audio and substitute a obi voice but, it wont play.

The game skips the coverting and wont play it.

Although if i do change it in cache folder as a wave, it works fine.

 

So, if wv -> wave and wave -> wv is impossible for TPM then, we could force WMAIN to not erase cache folder or write on it... right ? and simply have a static cache with all the game voices?

Is that possible? hmm

Link to comment
Share on other sites

The following opcodes accessed 003B18EA.

I loaded mos espa arena saved game.

 

Counts:3 004743DA - 8B 7D FC - mov edi,[ebp-04]

Counts:1 004748A0 - C1 E9 02 - shr ecx,02

Counts:1 004748A3 - F3 A5 - repe movsd

Counts:1 004748AA - F3 A4 - repe movsb

Counts:4 004738A5 - 8A 02 - mov al,[edx]

Counts:3 004738BA - 8A 42 01 - mov al,[edx+01]

 

 

Interesting.

So the game is loading the dir reference to save files in the cache. Now...

I just need to find which code erases the cache.

 

~~

 

So i pressed quit and the files inside the cache were erased.

No 'count' changes in this address.

 

So i guess once it loads the address , it doesnt need to load it until the next time the game is open.

 

So what we know..

We know it access it during a 'load'

We know cache is generated during the 'load'

We know cache files are erased when quit is pressed

We know cache folder is erased when quit is pressed on main menu.

 

So somehow. using that information, i will have to isolate the op that erases the cache

Edited by SkyEye
Link to comment
Share on other sites

 Share

×
×
  • Create New...