FileForums

FileForums (https://fileforums.com/index.php)
-   Conversion Tutorials (https://fileforums.com/forumdisplay.php?f=55)
-   -   WaveInjector (https://fileforums.com/showthread.php?t=97177)

DarkSoul19 13-09-2015 00:48

WaveInjector
 
1 Attachment(s)
Hey Packers :) First time Thread from me. Ive been Doing Repacks for a very very long time, but took Years off too raise my children. Now that the youngest is two i feel i can have a little time to spend on Repacks
I notice Most people use Arc/Precomp/Srep/Reflate/Msc combinations, and for good reason, if used properly they are fantastic.
I saw MadMax compressed to 4.5 g which is pretty cool, and inspecting it found they used Arc//Srep/Msc and precomp.
I have noticed nearly no one use`s WaveInjector, So im wondering if this is because

1. You never heard of it
2. Cant be bothered with the effort it takes to use it(A lot)
3. Dont know how to use it

If you are wondering what it is, let me tell you
WaveInjector is a program that allows you to inject waves into a container, For example you might have a .pak file that contains lots of wave files. You would extract the waves with a program like DragonPacker, at the same time you would record in text file each waves address eg 433234D-4334543E located in the .pak file(Automated). You will then delete all data from the .pak at those addresses( Its automated) So you are left with a Wave folder and a highly compressable .Pak file(for example, but could be any container)
You then use a lossless compression on the wave files you extracted( must be lossless,bit-bit identical)and delete the waves
Now you will have a highly compressed sound files in whatever format you chose
Thats where WaveInjector come in, it allowes you to, (after you convert back to wave) inject your waves back into the .pak(container) using the text file as a reference to where each wave goes. The result can be staggering
Anyone interested? or .... :cool:

Okay i promised a tutorial so here it is
Moderators feel free to alter this guide to be more gramaticly correct or just plain old spelling errors

Tools you will need
Total Commander
Dragon Unpacker
Dummy.exe (from first page)
inject.exe (from first page)

Instal Total Commander and Dragon Unpacker
Open the file that contains the raw audio in dragon unpacker, use the hyper ripper, then under advanced tab paste this %f.%x_%h_%l
Then click the search button, after it`s finished export all the sounds to a new folder
Now open Total Commander and navigate to the folder containing the exported audio, then selecting all the files, use the muli-file rename tool. Enter 8 zero`s in the search for box and click start
Next make a copy of your extracted Audio folder, then open Total Commander again. Navigate to the Audio_copy folder and press Ctr+A then navigate to the multi-file rename tool.Paste this, without the commas "dummy.exe [N].[E] [=tc.size.bytes] 0" in Rename mask File Name box
Make sure extention box is blank and click start
Open cmd and type pushd followed by folder location of Audio_copy eg. Pushd C:\Audio_Copy
Now type dir /b *.*>_first.txt then enter
Open file _first.txt and delete last line "_first.txt" , then save
Cut and past _first.txt file to folder containing dummy.exe and rename it to _first.bat
double right click on _first.bat and wait until it`s finished proccesing
Now copy the original File containing the raw audio into the folder containing the dummy files, past the inject.exe into the same folder then open cmd and type pushd followed by inject (and the name of the Audio_archive)
eg inject sound.pak press enter
done, the Archive has been injected
Cut this injected Archive to the folder Audio_folder (original extracted waves)
The Archive can be zipped or Rared to a tiny size
The waves can be compressed with a lossless bit to bit identical compresser(your choice)
then the original waves deleted
Now to inject the original waves back into the Archive follow these steps
Make sure inject.exe is in the folder
Extract the commpressed sound Achive
Convert the compressed waves back to wave format (method depends on your choice of lossless compresser used
create a bat file and type inject "name of your Archive, without commas"
done save it
To reinject All the waves back in simple launch that bat. All the waves will be injected back in
Final Words.. you would delete All irrelevent folders and files if your creating a rip
Basicly you would have dummy Archive/inject.exe and your compressed waves in the same folder. I create a bat file to delete the compressed waves after they are restored to wave files, there is no reson to delete the actual waves as they will be deleted as they are injected
Hope this Helps, feel free to ask questions

Bilawal 13-09-2015 01:48

I used for a year or two(When I don't know about Inno Setup). :)

truerepacks 13-09-2015 06:00

I also use wave injector for sometime but left it because it becomes complicated sometime.
and about the wave file I think you can achieve same results by using msc on containers without even extracting them.(only if you use loseless compression but if you use others such as ogg then story may be different). you may found some group using wave injector and provide us game which are awesomely compressed.

DarkSoul19 13-09-2015 06:39

Yes TrueRepacks, this is so. Although im new to Msc and cant compare yet
Its very true that some "Groups" are using it. Funny too cos it was created by a warz group. But i think its still of great importance, or more too say useful. I only wish i had access to the sourse code. because it could be adapted for almost any file format

truerepacks 13-09-2015 08:18

I don't think you can get wave injector's source code anywhere becoz majority of warez groups are now closed.
I know this becoz I do a lot of research on such oldschool compression topics and one more thing sometimes extracted wave file also don't supported by oggenc2 at its best compression level.

DarkSoul19 13-09-2015 09:14

Pretty sure oggenc2 isnt lossless,
I know of one group that claims to have source code to it, but they werent willing to part with it. Dissasembling was another option, but the hell im going to code with asm/masm
Anyway ill write up a tutorial "Soonish" maybe it will inspire someone to program their own

truerepacks 13-09-2015 09:37

There is already one on youtube.(by some one who called himself 'vikki')

pakrat2k2 13-09-2015 10:53

now the only issue I see with lossless compression, is if the files don't match CRC exactly after unpacking, any future updates will not install as the CRC's don't match original files
before extracting/ repacking etc ). This is a big concern, & a major issue with lossless compression repacks.

DarkSoul19 13-09-2015 13:48

Thats true pakrat2k2, thats why it needs to be bit identical. There are a few that will do the job
Truepacks, Vikki is a woman, but it was upped by a dude from india :-P
Ill say this much, Most of the tightest repacks use lossless compression of dds, wave etc
Just depends on what your goals are. With the precompresors avalible today there`s less reason too use programs like waveinjector, especially concidering the time taken for the job, but in games that have very large amounts of wave data you can endup with an even smaller file. As i mentioned it`s still been used by groups suck as Blac$B@x who end up with the smallest rips, actually Blac$B@x also have 1 for texture related achives that works the same. Gone are the days of lossy
Quote:

Originally Posted by truerepacks (Post 443190)
There is already one on youtube.(by some one who called himself 'vikki')

Do you think you can post a link, might save me lots of time :-)
Update: I mentioned Blackbox, but ment KaOs although Blackbox have used it

CoreGames 14-09-2015 03:01

Quote:

Originally Posted by DarkSoul19 (Post 443195)
As i mentioned it`s still been used by groups suck as Blac$B@x who end up with the smallest rips, actually Blac$B@x also have 1 for texture related achives that works the same. Gone are the days of lossy

Smallest rips ? LOL, I hardly see them with smallest rips these days. Also, I have never ever seen any of their repacks using WaveInjector.

truerepacks 14-09-2015 04:14

yes no one uses it nowadays but it is very useful
and about the tutorial then you can easily get it from YouTube.

gozarck 14-09-2015 06:09

Your contribution is very useful, everyday more people show interest in learning different compression techniques. you put your ideas and information, but users must choose which method is best for them.(they only need read and test)
Quote:

Anyone interested? or ....
don't ask, ofcourse we are interested.

Mini 14-09-2015 06:40

Quote:

Originally Posted by truerepacks (Post 443213)
yes no one uses it nowadays

KaOs:cool:

DarkSoul19 15-09-2015 08:01

Quote:

Originally Posted by CoreGames (Post 443212)
Smallest rips ? LOL, I hardly see them with smallest rips these days. Also, I have never ever seen any of their repacks using WaveInjector.

Yes your right, it wasnt Blackbox that use it, It was KaOsKrew.(Autually Blackbox did use it in their Fifa 2014 repack, i could provide proof if needed) The File (That KaOsKrew use) has been Resource edited or they have source code, Im going on 2 year old memory though. I do remember when i disasembled it i found lots of Class/Backslash reference, which is why i think it was resource hacked. I actually chatted about it, they said it was their`s until i pointed out the obvious, at which time, i was told they obtained the source on some old now dead site, but i doubted that story :-)
Okay ive searched you-tube and i find nothing on its use in English, Apparently its been taken down so i will write one as soon as i can( give me a few weeks as i have a big couple of weeks )
But i will promise you will have this tutorial :-) here`s a list of tools you will need
tools to use wave injector:-
=-=-=-=-=-=-=-=-=-=-=-=-=
+ -Wave Injector (Inject.exe)
+ -Dragon Unpacker
+ -Total Commander
+ -dummy file creator
Ive included Inject.exe and Dummy file creator in my first post- The rest to be continued

truerepacks 15-09-2015 08:32

I already have a tutorial on it and may post it here by coming monday with some updates.

DarkSoul19 15-09-2015 08:50

Quote:

Originally Posted by truerepacks (Post 443244)
I already have a tutorial on it and may post it here by coming monday with some updates.

That would be great, otherwise i Will :p

DarkSoul19 27-09-2015 08:27

Tutorial now located in first post

pakrat2k2 27-09-2015 10:03

awesome post, seeing as this information is in first post it could be removed.
Just edit post to say information now located in first post.
very handy information, thanks for posting it, & how-to.


All times are GMT -7. The time now is 05:47.

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
FileForums @ https://fileforums.com